/* ================================================= */
/* ANIMATIONS                                        */
/* ================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.3s;
}

/* ================================================= */
/* GLOBAL HELPERS                                    */
/* ================================================= */

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

:root{
  --nav-h: 90px;
}

.hidden { display: none !important; }

body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1a1a1a;
  overflow-y: auto;
}

/* ================================================= */
/* LOADER                                             */
/* ================================================= */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.loader.active { opacity: 1; pointer-events: all; }
.apple-spinner {
  position: relative;
  width: 40px;
  height: 40px;
}
.apple-spinner-blade {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 10px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #8e8e93;
  transform-origin: center 20px;
  animation: apple-spinner-fade 1s linear infinite;
}
.apple-spinner-blade:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1s; }
.apple-spinner-blade:nth-child(2)  { transform: rotate(30deg);  animation-delay: -0.9167s; }
.apple-spinner-blade:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.8333s; }
.apple-spinner-blade:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.75s; }
.apple-spinner-blade:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.6667s; }
.apple-spinner-blade:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.5833s; }
.apple-spinner-blade:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
.apple-spinner-blade:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4167s; }
.apple-spinner-blade:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3333s; }
.apple-spinner-blade:nth-child(10) { transform: rotate(270deg); animation-delay: -0.25s; }
.apple-spinner-blade:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1667s; }
.apple-spinner-blade:nth-child(12) { transform: rotate(330deg); animation-delay: -0.0833s; }
@keyframes apple-spinner-fade {
  0%  { opacity: 1; }
  100% { opacity: 0.25; }
}

/* ================================================= */
/* HEADER                                             */
/* ================================================= */
header{
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
  text-align: center;
}
header img { max-width: 100%; height: auto; border-radius: 12px; }
header.scrolled { background: transparent; box-shadow: none; }

/* ================================================= */
/* NAVBAR (UNCHANGED)                                 */
/* ================================================= */
.navbar {
  background-color: #ffffff;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding-left: clamp(16px, 3vw, 36px) !important;
  padding-right: clamp(16px, 3vw, 36px) !important;
}
.navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.navbar a, .navbar button { outline: none !important; box-shadow: none !important; }

/* ================================================= */
/* MODERN NAVBAR                                       */
/* ================================================= */
.navbar-modern {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 10px clamp(16px, 3vw, 36px) !important;
  transition: box-shadow 0.2s ease;
}
.navbar-modern > .container-fluid {
  min-height: 36px;
  align-items: center;
}
.navbar-modern.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.navbar-brand-modern {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111 !important;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.navbar-brand-modern:hover { color: #333 !important; }

/* Nav links */
.nav-link-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-link-modern:hover {
  background: #f5f5f5;
  color: #111;
}
.nav-link-active {
  background: #f0f0f0;
  color: #111;
  font-weight: 600;
}
.nav-link-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-link-logout {
  color: #999;
}
.nav-link-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}
.nav-icon {
  font-size: 0.92rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Nav divider */
.nav-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 12px;
  list-style: none;
}

/* User identity row */
.nav-user-row {
  padding: 6px 12px 10px;
  list-style: none;
}
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
}

/* Role badges */
.role-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}
.role-badge-admin { background: #dbeafe; color: #1e40af; }
.role-badge-org { background: #f3f4f6; color: #374151; }
.role-badge-user { background: #f3f4f6; color: #6b7280; }

/* CTA button group — always visible in navbar */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
  margin-left: auto;
  margin-right: 10px;
}

/* Sign in button — black pill */
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #111;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.nav-signin-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-1px);
}

/* Book a Demo button — red pill */
.nav-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #dc2626;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.nav-demo-btn:hover {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-1px);
}

/* ================================================= */
/* MODERN FOOTER                                       */
/* ================================================= */
.site-footer {
  border-top: 1px solid #f0f0f0;
  padding: 20px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 0.82rem;
  color: #999;
  font-weight: 500;
}
.footer-sep {
  color: #ddd;
  font-size: 0.82rem;
}
.footer-link {
  font-size: 0.82rem;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover {
  color: #111;
}

.custom-toggler {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  order: 3;
  transition: none !important;
  cursor: pointer;
}
.custom-toggler:hover,
.custom-toggler:focus,
.custom-toggler:active {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}
.custom-toggler img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
  transition: none !important;
}

/* ================================================= */
/* HERO (NO VH/DVH — CONTENT DRIVEN)                  */
/* ================================================= */

#Hero-Value{
  position: relative;
  overflow: hidden;
  background: #fff;

  /* keeps it clearly below navbar; tight to fit above fold */
  padding-top: clamp(14px, 2vh, 28px) !important;
  padding-bottom: clamp(30px, 4vh, 50px) !important;

  /* kill the "card" look */
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Full hero background map (never cropped) */
#Hero-Value > .hero-map-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  opacity: 0.14;              /* faint background */
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Put hero content above the map */
#Hero-Value > .container{
  position: relative;
  z-index: 1;

  /* normal flow layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  gap: clamp(6px, 1vh, 12px);
}

/* Headline */
#Hero-Value h1{
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #0a0a0a;
  margin: 0 auto;

  font-size: clamp(2rem, 3vw, 3.4rem);
}

/* Smaller hero headline on phones — allow wrapping again */
@media (max-width: 576px) {
  #Hero-Value h1 {
    font-size: 1.45rem;
    line-height: 1.22;
    letter-spacing: 0em;
  }
  #Hero-Value h1 span[style] {
    white-space: normal !important;
  }
}

/* Lead copy */
#Hero-Value .lead{
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(0.98rem, 1.05vw, 1.18rem);
  line-height: 1.55;
  color: rgba(0,0,0,0.72);
}

@media (max-width: 576px) {
  #Hero-Value .lead {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* subtle emphasis under the key phrase */
.hero-accent{
  position: relative;
  display: inline-block;
}

/* Phones area — stable sizing, no shrinking to nothing */
.hero-btn-row{
  width: 100%;
  max-width: var(--hero-phones-w, 520px);
  margin-left: auto;
  margin-right: auto;
}

.hero-phones-wrap{
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: clamp(16px, 3vw, 32px) auto 0;

  display: flex;
  justify-content: center;

  background: transparent;
}

/* two phones */
.hero-phones{
  display: inline-flex;
  align-items: flex-end; /* bottoms aligned */
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
}

/* KEY: use vh so phones scale to fit viewport above the fold */
.hero-phone-img{
  height: clamp(360px, 44vh, 520px);
  width: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: none;
}

/* Mobile */
@media (max-width: 576px){
  #Hero-Value{
    padding-top: 5px !important;
    padding-bottom: 2px !important;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  #Hero-Value > .container{
    flex: 1;
    justify-content: flex-start;
    gap: 0px;
  }

  #Hero-Value .hero-typed-label{
    margin-bottom: 15px !important;
    min-height: auto !important;
  }

  #Hero-Value h1{
    margin-top: 0 !important;
    margin-bottom: 15px !important;
  }

  #Hero-Value .lead{
    line-height: 1.25;
    font-size: 0.85rem;
    margin-top: 0;
    margin-bottom: 15px;
  }

  /* Smaller buttons on mobile — equal size, always side-by-side */
  #Hero-Value .btn{
    font-size: 0.82rem;
    padding: 8px 0;
    min-width: 0 !important;
    width: 38vw;
    max-width: 160px;
    white-space: nowrap;
  }

  #Hero-Value .app-store-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .hero-btn-row{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-phones-wrap{
    margin-top: 15px;
  }

  #Metrics{
    margin-top: 16px !important;
    padding: 12px !important;
  }


  .hero-phones{
    gap: 6px;
  }

  .hero-phone-img{
    height: clamp(220px, 36vh, 340px);
  }
}

/* Tablet / small laptops */
@media (min-width: 768px) and (max-width: 1100px){
  .hero-phone-img{
    height: clamp(300px, 40vh, 480px);
    max-width: 44%;
  }
}

/* ================================================= */
/* TERMS AND CONDITIONS                                */
/* ================================================= */
.main-list { counter-reset: main-counter; list-style: none; padding-left: 1em; margin-bottom: 1rem; }
.main-list > li { counter-increment: main-counter; margin-bottom: 1rem; padding-left: 2.5em; position: relative; }
.main-list > li::before { content: counter(main-counter) ". "; position: absolute; left: 0; }

.sub-list { counter-reset: sub-counter; list-style: none; padding-left: 0; margin-top: 0.5rem; }
.sub-list > li { counter-increment: sub-counter; margin-bottom: 0.5rem; padding-left: 2.5em; position: relative; }
.sub-list > li::before { content: counter(main-counter) "." counter(sub-counter) " "; position: absolute; left: 0; }

.sub-sub-list { list-style-type: lower-alpha; padding-left: 2.5em; margin-top: 0.25rem; }

/* ================================================= */
/* BACK TO TOP BUTTON                                  */
/* ================================================= */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #111;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#back-to-top:hover,
#back-to-top:active {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ================================================= */
/* TABLES                                              */
/* ================================================= */
.table-sm { font-size: 0.8rem; }
#heatmap-container { width: 100%; height: 50vh; }
#heatmap-container > div,
#heatmap-container .plotly { height: 100% !important; width: auto !important; max-width: 100%; }

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
  position: absolute;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 0.5rem;
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
}
div.dataTables_wrapper .dataTables_length { left: 0; text-align: left; }
div.dataTables_wrapper .dataTables_filter { right: 0; text-align: right; }
div.dataTables_wrapper { position: relative; padding-top: 3rem; }
div.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  div.dataTables_wrapper .dataTables_filter { max-width: 50%; }
  div.dataTables_wrapper .dataTables_filter input { width: 100%; min-width: 80px; }
}
#Last-Updated p {
  font-size: 0.85rem;
  color: #555;
  background: #f8f9fa;
  border-left: 4px solid #000;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================================================= */
/* LOGIN PAGE                                          */
/* ================================================= */
.login-page {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (max-width: 576px) {
  .login-page { margin-top: 0.25rem; }
  .login-page .card { width: 100%; max-width: 100%; }
}

/* ================================================= */
/* SOE BUTTONS                                         */
/* ================================================= */
.soe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  min-width: 80px;
  border-radius: 8px;
  text-align: center;
}
@media (max-width: 768px) {
  .soe-button { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}
.form-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================= */
/* CAROUSEL (KEEN SLIDER)                              */
/* ================================================= */
.row.g-4 > [class*="col-"] { display: flex; }
.notif-panel { display: flex; flex-direction: column; justify-content: stretch; flex: 1 1 auto; height: 100%; min-height: 520px; border-color: #e8e8e8 !important; overflow: hidden; }
.notif-panel .keen-slider { flex: 1 1 auto; display: flex; height: 100%; }
.keen-slider__slide { flex: 1 1 auto; display: flex !important; justify-content: center !important; align-items: stretch !important; height: 100% !important; }
.uniform-card {
  flex: 1 1 auto;
  height: 100% !important;
  max-width: 700px;
  border: none !important;
  border-radius: 0 !important;
  background-color: #fff;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: none !important;
}
.uniform-card .card-body { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 0 !important; }
.uniform-card .card-body > .small { flex-grow: 1; }

/* Card title strip */
.card-title-strip {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px 14px;
  text-align: center;
  border-radius: 0;
}
.card-title-strip h5 {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 700;
  color: #111;
  margin: 0;
}
/* Override blue link styling inside card titles */
.card-title-strip h5 a,
.card-title-strip h5 a:visited,
.card-title-strip h5 a:link {
  color: #111;
  text-decoration: none;
  transition: color 0.15s;
}
.card-title-strip h5 a:hover { color: #555; text-decoration: underline; }

/* Card content area */
.card-content {
  padding: 14px 18px;
  flex-grow: 1;
}

/* Card actions area */
.card-actions {
  padding: 0 18px 16px;
}

.text-truncate-1 {
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 0;
  white-space: normal;
}

.uniform-card .btn-outline-primary {
  border: 1px solid #000 !important;
  color: #000 !important;
  background-color: transparent !important;
  font-weight: 500;
  transition: all 0.25s ease;
}
.uniform-card .btn-outline-primary:hover,
.uniform-card .btn-outline-primary:focus,
.uniform-card .btn-outline-primary:active {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
@media (max-width: 992px) {
  .notif-panel { min-height: 460px; }
  .uniform-card { max-width: 90%; }
}
.keen-slider,
.keen-slider__slide,
.uniform-card {
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: pan-y !important;
}

/* ================================================= */
/* NOTIFICATION SECTION HEADERS                        */
/* ================================================= */
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px 12px;
}
.notif-panel-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a1a1a;
}
.notif-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
/* Color-coded section accents */
.notif-panel.notif-discovered { border-top: 3px solid #16a34a; }
.notif-panel.notif-discovered .notif-count-badge { background: #dcfce7; color: #166534; }

.notif-panel.notif-ended { border-top: 3px solid #dc2626; }
.notif-panel.notif-ended .notif-count-badge { background: #fee2e2; color: #991b1b; }

.notif-panel.notif-weather { border-top: 3px solid #d97706; }
.notif-panel.notif-weather .notif-count-badge { background: #fef3c7; color: #92400e; }

.notif-panel.notif-gouging { border-top: 3px solid #7c3aed; }
.notif-panel.notif-gouging .notif-count-badge { background: #ede9fe; color: #5b21b6; }

/* ================================================= */
/* MOBILE NOTIFICATION TABS                           */
/* ================================================= */
.notif-mobile-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.notif-mobile-tabs::-webkit-scrollbar { display: none; }

.notif-mobile-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  color: #666;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  overflow: hidden;
}
.notif-mobile-tab:hover { background: #fafafa; }

/* Active states per category */
.notif-mobile-tab.notif-discovered.active {
  background: #f0fdf4; color: #166534; border-bottom-color: #16a34a;
}
.notif-mobile-tab.notif-ended.active {
  background: #fef2f2; color: #991b1b; border-bottom-color: #dc2626;
}
.notif-mobile-tab.notif-weather.active {
  background: #fffbeb; color: #92400e; border-bottom-color: #d97706;
}
.notif-mobile-tab.notif-gouging.active {
  background: #f5f3ff; color: #5b21b6; border-bottom-color: #7c3aed;
}

/* Hide mobile tabs on desktop */
@media (min-width: 992px) {
  .notif-mobile-tabs { display: none; }
}

/* ================================================= */
/* NOTIFICATION PAGE HEADER                            */
/* ================================================= */
.notif-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 4px 12px;
  margin-bottom: 8px;
}
.notif-page-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}
.notif-page-header .notif-subtitle {
  font-size: 0.88rem;
  color: #666;
  margin: 2px 0 0;
  line-height: 1.4;
}
.notif-subtitle-hide-mobile {
  display: inline;
}
@media (max-width: 575.98px) {
  .notif-subtitle-hide-mobile {
    display: none;
  }
}
.notif-date-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 160px;
}
.notif-date-select:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
@media (max-width: 576px) {
  .notif-page-header { padding-right: 12px; }
  .notif-date-select { min-width: 0; width: 100%; }
}

/* ================================================= */
/* NOTIFICATION CARD FIELD HIERARCHY                   */
/* ================================================= */
.card-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #f7f7f7;
}
.card-field-row:last-child { border-bottom: none; }
.card-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.card-field-value {
  font-size: 0.86rem;
  color: #222;
  text-align: right;
  font-weight: 500;
}
.card-field-value.highlight-green { color: #16a34a; font-weight: 600; }
.card-field-value.highlight-red { color: #dc2626; font-weight: 600; }

.card-fields-secondary-group {
  border-top: 1px solid #f0f0f0;
  padding-top: 6px;
  margin-top: 6px;
}
.card-fields-secondary-group .card-field-label {
  font-size: 0.72rem;
  color: #aaa;
}
.card-fields-secondary-group .card-field-value {
  font-size: 0.8rem;
  color: #666;
  font-weight: 400;
}

/* Status pill */
.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.01em;
}
.status-pill.active { background: #dcfce7; color: #166534; }
.status-pill.inactive { background: #f3f4f6; color: #6b7280; }
.status-pill.expired { background: #fee2e2; color: #991b1b; }

/* ================================================= */
/* CA PRICE GOUGING LIST                               */
/* ================================================= */
.gouging-list {
  padding: 4px 16px 16px;
  overflow-y: auto;
  flex: 1;
  text-align: left;
}
.gouging-group {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}
.gouging-county {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  text-align: center;
}
.gouging-detail {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

/* ================================================= */
/* EMPTY STATE CARD                                    */
/* ================================================= */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.notif-discovered .empty-state-icon { background: #dcfce7; color: #16a34a; }
.notif-ended .empty-state-icon { background: #fee2e2; color: #dc2626; }
.notif-weather .empty-state-icon { background: #fef3c7; color: #d97706; }
.notif-gouging .empty-state-icon { background: #ede9fe; color: #7c3aed; }
.empty-state-card h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #555;
  margin: 0;
}
.empty-state-card p {
  font-size: 0.82rem;
  color: #999;
  margin: 0;
}

/* ================================================= */
/* MODERN SUMMARY MODAL                                */
/* ================================================= */
.summary-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 200ms ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.summary-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.summary-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.summary-modal-header h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}
.summary-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-size: 1.1rem;
}
.summary-modal-close:hover {
  background: #e5e5e5;
  color: #111;
}
.summary-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
}
.summary-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
}
.summary-modal-btn {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.summary-modal-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.summary-modal-btn svg {
  width: 15px;
  height: 15px;
}

/* ================================================= */
/* SWIPE HINT TEXT                                     */
/* ================================================= */
.swipe-hint {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  min-height: 1.25rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  user-select: none;
}
.swipe-hint:has(+ .keen-slider) { cursor: grab; }

/* ================================================= */
/* CARD PAGINATOR                                      */
/* ================================================= */
.card-paginator {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  opacity: 1;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: none;
  user-select: none;
  letter-spacing: 0.02em;
}

/* ================================================= */
/* COPY TOAST ANIMATION                                */
/* ================================================= */
.toast { opacity: 0; transform: translateY(20px); transition: all 0.4s ease-in-out; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.text-bg-dark { border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }

/* ================================================= */
/* MOBILE CONTAINER FIX                                */
/* ================================================= */
@media (max-width: 768px) {
  section .container {
    max-width: 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ================================================= */
/* AGE SLIDER BUTTONS                                  */
/* ================================================= */
.age-arrow {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  transition: all 0.25s ease;
  margin: 0 4px;
  vertical-align: middle;
}
.age-arrow:hover { background: #000; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.age-arrow:disabled { opacity: 0.6; pointer-events: none; }

/* ================================================= */
/* GUARDRAIL DROPDOWN BUTTONS                          */
/* ================================================= */
.dropdown-guardrail {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 0.4rem 1rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dropdown-guardrail:hover,
.dropdown-guardrail:focus {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
  outline: none !important;
}
.dropdown-guardrail::after { display: none !important; }
.dropdown-menu.show {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

/* ================================================= */
/* DEMO VIDEO (Home)                                   */
/* ================================================= */
#Demo-Video .demo-video{ background: #fff; }
#Demo-Video .container{ padding-left: 0 !important; padding-right: 0 !important; }

.demo-video-shell{
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}
.demo-video{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 992px){
  #Demo-Video .demo-video-shell{ max-height: 72vh; }
  #Demo-Video .demo-video{ max-height: 72vh; }
}

/* ================================================= */
/* DEMO VIDEO CENTER OVERLAY                          */
/* ================================================= */

.demo-video-shell{
  position: relative; /* you already have this */
}

/* overlay container */
.demo-play-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;

  /* keeps poster visible but makes CTA pop */
  background: rgba(0,0,0,0.12);
  pointer-events: none; /* click still hits the shell/video */
}

/* circular play badge */
.demo-play-badge{
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

/* play icon */
.demo-play-icon{
  font-size: 34px;
  color: #000;
  transform: translateX(2px); /* optical centering */
}

/* text */
.demo-play-text{
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 10px rgba(0,0,0,0.55);
}

/* optional: subtle pulse */
.demo-play-badge{
  animation: demoPulse 1.8s ease-in-out infinite;
}

@keyframes demoPulse{
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ================================================= */
/* TRUSTED BY                                         */
/* ================================================= */
.trusted-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin-bottom: 16px;
}
.trusted-title{
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(0,0,0,0.65);
  text-transform: uppercase;
  white-space: nowrap;
}
.trusted-line{
  height: 1px;
  width: min(160px, 22vw);
  background: rgba(0,0,0,0.18);
}
#Trusted-By { overflow: hidden; }

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 6px 0 2px;
}
.trusted-logo {
  width: clamp(210px, 26vw, 320px);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
}
.trusted-logo img {
  max-height: 52px;
  max-width: 88%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
.trusted-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}
@media (max-width: 576px) {
  .trusted-logo { width: 100%; max-width: 360px; height: 78px; }
  .trusted-logo img { max-height: 46px; }
}

/* ================================================= */
/* METRIC TILES                                       */
/* ================================================= */
.metric-tile {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fafafa;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.metric-tile:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
@media (max-width: 576px) {
  .metric-tile:hover {
    transform: none;
    box-shadow: none;
  }
}
.metric-tile-value {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #dc2626;
  line-height: 1.1;
  margin-bottom: 4px;
}
.metric-tile-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
}
.metric-tile-sub {
  font-size: 0.78rem;
  color: #999;
  margin-top: 2px;
}

/* ================================================= */
/* REVIEWS                                            */
/* ================================================= */
#Reviews .row > [class*="col-"] { display: flex; }

.review-card {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 14px;
  padding: 24px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.review-card:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
@media (max-width: 576px) {
  .review-card:hover {
    transform: none;
    box-shadow: none;
  }
}
.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-quote {
  color: #333;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-attr {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #111;
}
.review-name a {
  color: #111;
  text-decoration: none;
}
.review-name a:hover { text-decoration: underline; }
.review-meta {
  font-size: 0.8rem;
  color: #888;
}
.review-meta a {
  color: #888;
  text-decoration: none;
}
.review-meta a:hover { text-decoration: underline; }
@media (max-width: 991.98px) {
  .review-quote { -webkit-line-clamp: 6; }
}

/* ================================================= */
/* CHAT LAUNCH BTN                                     */
/* ================================================= */
.chat-launch-btn {
  position: fixed;
  left: 18px;
  bottom: calc(20px + var(--vv-bottom, 0px));
  z-index: 1050;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.chat-launch-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.chat-launch-btn,
.chat-launch-btn:hover,
.chat-launch-btn:focus,
.chat-launch-btn:focus-visible,
.chat-launch-btn:active,
.chat-launch-btn:active:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ---- Chat panel ---- */
.chat-panel {
  position: fixed;
  bottom: 76px;
  left: 24px;
  width: 420px;
  max-height: 520px;
  border-radius: 20px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1050;
  display: flex;
  flex-direction: column;

  /* open/close animation */
  animation: chatSlideUp 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom left;
}

.chat-panel-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
}

/* ---- Resize handles ---- */
.chat-resize-top {
  position: absolute;
  top: -4px;
  left: 12px;
  right: 12px;
  height: 8px;
  cursor: n-resize;
  z-index: 10;
}
.chat-resize-right {
  position: absolute;
  top: 12px;
  right: -4px;
  bottom: 12px;
  width: 8px;
  cursor: e-resize;
  z-index: 10;
}
.chat-resize-corner {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  cursor: ne-resize;
  z-index: 11;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #111;
  color: #fff;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-panel-header .chat-title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.chat-tts-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #fff;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.chat-tts-toggle:hover {
  opacity: 1;
}
.max-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
  font-weight: 700;
  flex-shrink: 0;
}
.max-avatar-header {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}
.max-avatar-msg {
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
  margin-top: 2px;
}
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chat-row.user {
  justify-content: flex-end;
}
.chat-row.assistant {
  justify-content: flex-start;
}
.chat-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-logo {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.chat-panel-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  transition: background 0.15s;
}
.chat-panel-close:hover {
  background: rgba(255,255,255,0.3);
}
.chat-panel-close:focus,
.chat-panel-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.chat-messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.45;
}
.chat-bubble.user {
  background: #111;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
  background: #fff;
  color: #111;
  border: 1px solid #e8e8e8;
  border-bottom-left-radius: 4px;
}
.chat-input-area {
  padding: 12px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1;
  resize: none;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #111;
  background: #fafafa;
  transition: border-color 0.15s;
}
.chat-input-area textarea:focus {
  outline: none;
  border-color: #999;
  background: #fff;
  box-shadow: none;
}
.chat-send-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.chat-send-btn:hover { background: #333; transform: scale(1.06); }
.chat-send-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.chat-send-btn:focus,
.chat-send-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ---- Mobile chat tweaks ---- */
@media (max-width: 576px) {
  .chat-panel {
    width: calc(100vw - 2rem) !important;
    height: 60vh !important;
    max-height: 60vh !important;
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
    border-radius: 16px;
  }
  .chat-panel-inner {
    border-radius: 16px;
  }
  .chat-input-area {
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .chat-bubble {
    max-width: 88%;
    font-size: 0.88rem;
  }
  .chat-input-area textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .chat-resize-top,
  .chat-resize-right,
  .chat-resize-corner {
    display: none;
  }
}

/* ---- Black range slider ---- */
.form-range::-webkit-slider-thumb {
  background: #000 !important;
}
.form-range::-moz-range-thumb {
  background: #000 !important;
}
.form-range::-webkit-slider-runnable-track {
  background: #ccc !important;
}
.form-range::-moz-range-track {
  background: #ccc !important;
}
.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 0.25rem rgba(0,0,0,0.25) !important;
}
.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 0.25rem rgba(0,0,0,0.25) !important;
}

/* ---- Table rounded bottom corners (SOE & Weather only) ---- */
.table-rounded-bottom {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

/* ================================================= */
/* DISCLAIMER / MERGE LOOK                             */
/* ================================================= */
#Disclaimer{
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ================================================= */
/* HERO LOGO                                           */
/* ================================================= */
.hero-logo{
  width: clamp(110px, 9vw, 170px);
  height: auto;
  margin-bottom: 10px;
  opacity: 0.95;
}
@media (max-width: 576px){
  .hero-logo{ width: 115px; margin-bottom: 8px; }
}

/* ================================================= */
/* DROPDOWN CHECK BOXES                                */
/* ================================================= */
.form-check-input {
  accent-color: #000 !important;
  border-color: #000 !important;
}

.form-check-input:checked {
  background-color: #000 !important;
  border-color: #000 !important;
}

.form-check-input:focus {
  box-shadow: none !important;
  border-color: #000 !important;
}

.dropdown-menu .form-check-input {
  accent-color: #000 !important;
}

/* ================================================= */
/* ON-CARD SLIDER ARROWS                               */
/* ================================================= */
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  color: #555;
  font-size: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  z-index: 25;
}
.card-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.card-arrow.left { left: 6px; }
.card-arrow.right { right: 6px; }

.card-arrow:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.card-arrow:disabled {
  opacity: 0.2;
  pointer-events: none;
  box-shadow: none;
}

/* ================================================= */
/* DATA TABLE CHECK BOX STYLING                        */
/* ================================================= */
.rdt_Table input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border: 2px solid #000;
  border-radius: 3px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rdt_Table input[type="checkbox"]:checked {
  background-color: #fff;
  border-color: #000;
}

.rdt_Table input[type="checkbox"]:checked::after {
  content: '✓';
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
}

/* App Store Buttons */
.app-store-btn {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.app-store-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

#Hero-Value .app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a2e;
  padding: 0.375rem 1rem;
  flex: 1;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  filter: none;
  justify-content: center;
}

#Hero-Value .app-store-btn:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
  filter: none;
}

.app-store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.app-store-btn-text small {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* ================================================= */
/* PHONE ANIMATIONS                                  */
/* ================================================= */
/* Phones fly-in */
.fly-in-left,
.fly-in-right {
  opacity: 0;
  transform: translateX(0);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 700ms ease;
  will-change: transform, opacity;
}

.fly-in-left {
  transform: translateX(-140px);
}

.fly-in-right {
  transform: translateX(140px);
}

/* When animation is enabled */
.fly-in-left.in,
.fly-in-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* Optional: stagger the second phone slightly */
.fly-in-right {
  transition-delay: 120ms;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fly-in-left,
  .fly-in-right {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================= */
/* LIGHTNING STORM ANIMATION                          */
/* ================================================= */
.storm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

/* Accessibility: disable storm for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .storm-overlay {
    display: none !important;
  }
}

/* ================================================= */
/* REVIEWS ANIMATIONS                                  */
/* ================================================= */
/* Base animation */
.review-fly {
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 700ms ease;
  will-change: transform, opacity;
}

/* Starting positions */
.review-left {
  transform: translateX(-120px);
}

.review-right {
  transform: translateX(120px);
}

/* Final state */
.review-fly.in {
  opacity: 1;
  transform: translateX(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .review-fly {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================= */
/* CONTACT ICONS ANIMATIONS                           */
/* ================================================= */
.contact-fly {
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 700ms ease;
  will-change: transform, opacity;
}

/* Starting positions */
.contact-left { transform: translateX(-120px); }
.contact-right { transform: translateX(120px); }

/* Final state */
.contact-fly.in {
  opacity: 1;
  transform: translateX(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .contact-fly {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================= */
/* CONTACT US BUTTON SPIN-IN                         */
/* ================================================= */
.spin-in{
  opacity: 0;
  transform: rotate(-180deg) scale(0.85);
  transform-origin: center;
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.spin-in.in{
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .spin-in{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================= */
/* SOE FILTER PANEL                                   */
/* ================================================= */
.soe-filter-panel {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 20px 18px;
}
.soe-filter-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 16px;
}
.soe-filter-group {
  margin-bottom: 14px;
}
.soe-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.soe-filter-sublabel {
  display: block;
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 2px;
}
.soe-filter-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: #333;
  background: #fff;
  transition: border-color 0.15s;
}
.soe-filter-input:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.soe-date-input {
  font-size: 0.78rem;
  padding: 6px 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.soe-date-input::-webkit-date-and-time-value {
  text-align: left;
}
@media (max-width: 575.98px) {
  .soe-date-input {
    font-size: 0.68rem;
    padding: 4px 2px;
    letter-spacing: -0.02em;
  }
}
.soe-filter-clear {
  background: none;
  border: none;
  color: #666;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.soe-filter-clear:hover { color: #111; }

.soe-age-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.soe-age-btn:hover { background: #f0f0f0; color: #111; }
.soe-age-value {
  font-size: 0.78rem;
  color: #666;
  margin-top: 4px;
}

/* Dropdown button */
.soe-filter-dropdown-btn {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: #333;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.15s;
}
.soe-filter-dropdown-btn:hover { border-color: #999; }

/* States toggle button — visually distinct CTA */
.soe-states-toggle-btn {
  width: 100%;
  border: 1.5px solid #111;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #111;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  letter-spacing: 0.02em;
}
.soe-states-toggle-btn:hover {
  background: #fff;
  color: #111;
}

/* Dropdown menu */
.soe-filter-dropdown-menu {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-height: 200px;
  overflow-y: auto;
}
.soe-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.82rem;
  color: #333;
  cursor: pointer;
}
.soe-filter-check input[type="checkbox"] {
  accent-color: #111;
  width: 14px;
  height: 14px;
}

/* Status chips */
.soe-status-chip {
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 110px;
  height: 32px;
}
.soe-status-chip:hover { border-color: #bbb; }
.soe-status-chip-active.selected {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.soe-status-chip-inactive.selected {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.soe-status-check {
  font-size: 0.7rem;
  line-height: 1;
}

/* Country filter chips */
.soe-country-chip-usa.selected {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.soe-country-chip-canada.selected {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ================================================= */
/* SOE SELECTED STATE CHIP                            */
/* ================================================= */
.soe-selected-state-bar {
  margin-bottom: 12px;
}
.soe-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f4fd;
  border: 1px solid #bae0fd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0c5ea4;
}
.soe-state-chip-x {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 94, 164, 0.12);
  color: #0c5ea4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
  padding: 0;
  margin-left: 2px;
}
.soe-state-chip-x:hover { background: rgba(12, 94, 164, 0.22); }

/* ================================================= */
/* SOE TABLE AREA                                     */
/* ================================================= */
.soe-table-wrap {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 4px;
}
.soe-table-btn {
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.soe-table-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* SOE Edit textarea */
.soe-edit-textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}
.soe-edit-textarea:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* ================================================= */
/* WEATHER CERTAINTY CHIPS                            */
/* ================================================= */
.weather-chip-likely.selected {
  background: #fef9c3;
  border-color: #fde047;
  color: #854d0e;
}
.weather-chip-observed.selected {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ================================================= */
/* MY ACCOUNT PAGE                                    */
/* ================================================= */

/* Welcome Card */
.acct-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.acct-welcome-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.acct-org-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}
.acct-welcome-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.acct-welcome-meta {
  font-size: 0.82rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.acct-meta-sep {
  color: #ccc;
  margin: 0 2px;
}
.acct-welcome-stats {
  display: flex;
  gap: 24px;
}
.acct-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.acct-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}
.acct-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-top: 2px;
}

/* Section containers */
.acct-section {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.acct-section-header {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* Analytics tab bar */
.analytics-tab-bar {
  display: flex;
  gap: 0;
  margin-top: 12px;
  border-bottom: 2px solid #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.analytics-tab-bar::-webkit-scrollbar { display: none; }
.analytics-tab {
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #888;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.analytics-tab:hover { color: #333; }
.analytics-tab-active {
  color: #111;
  border-bottom-color: #111;
}
@media (max-width: 576px) {
  .analytics-tab { padding: 8px 12px; font-size: 0.78rem; }
}

/* Module cards */
.acct-module-card {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  background: #fff;
  transition: all 0.15s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.acct-module-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.acct-module-current {
  background: #fafafa;
  border-color: #e0e0e0;
}
.acct-module-current:hover {
  transform: none;
  box-shadow: none;
}
.acct-module-icon {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 8px;
}
.acct-module-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.acct-module-desc {
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 6px;
  line-height: 1.4;
}
.acct-module-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: #dc2626;
  margin-top: auto;
}

/* Send button */
.acct-send-btn {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #111;
  cursor: pointer;
  transition: all 0.15s;
}
.acct-send-btn:hover { background: #333; }
.acct-send-btn:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* Job trigger buttons */
.acct-job-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #111;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 230px;
  width: 230px;
  box-sizing: border-box;
  text-align: center;
}
.acct-job-btn:hover {
  background: #333;
  color: #fff;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .acct-welcome-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    text-align: left;
  }
  .acct-welcome-left {
    align-items: flex-start;
  }
  .acct-welcome-stats {
    width: 100%;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
  }
  .acct-welcome-meta {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .acct-meta-sep { display: none; }
}

/* Hero typewriter caret blink */
@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}