:root {
  --brand-blue: #1652F0;
  --brand-blue-700: #0f49e3;
  --brand-orange: #FF7A00;
  --brand-orange-600: #E56E00;
  --live-red: #FF3B30;
  --text-onblue: #ffffff;
  --btn-min-h: 40px;
}

.brandbar {
  background: var(--brand-blue);
  min-height: 56px;
}

.navbar-brand .brand-mark {
  color: var(--brand-orange);
}

.brandbar .nav-link {
  color: rgba(255, 255, 255, .88);
  font-weight: 550;
  padding: .45rem .55rem;
  font-size: .9rem;
}

.brandbar .nav-link:hover,
.brandbar .nav-link.active {
  color: #fff;
  text-decoration: none;
}

.search-compact {
  background: #fff;
  border-radius: 1rem;
  padding: .32rem;
  gap: .4rem;
  display: flex;
  align-items: center;
  max-width: 560px;
  width: 100%;
}

.search-compact .form-select {
  border: 0;
  box-shadow: none;
  width: 120px;
  min-width: 120px;
  border-radius: .6rem;
  padding: .32rem .5rem;
  font-size: .9rem;
}

.search-compact .form-control {
  border: 0;
  box-shadow: none;
  border-radius: .6rem;
  flex: 1 1 auto;
  min-width: 160px;
  padding: .36rem .5rem;
  font-size: .95rem;
}

.btn-cta {
  background: var(--brand-orange);
  color: #fff;
  border: 0;
  font-weight: 500;
  border-radius: .55rem;
  padding: .38rem .6rem;
  line-height: 1;
  font-size: .82rem;
}

.btn-cta:hover {
  background: var(--brand-orange-600);
  color: #fff;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: .6rem;
  padding: .25rem .5rem;
}

.navbar-toggler .bi-list {
  font-size: 1.25rem;
  color: #fff;
}

.meta-bar {
  background: #fff;
  min-height: 46px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.meta-left,
.meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.live-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .1rem .3rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #FF3B30;
  color: #FF3B30;
  font-weight: 700;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.live-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3B30;
  position: relative;
}

.live-badge .pulse::before,
.live-badge .pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .55);
  animation: ripple 1.6s infinite ease-out;
}

.live-badge .pulse::after {
  animation-delay: .5s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, .55);
  }

  70% {
    transform: scale(2.2);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

.kpi {
  color: #0f172a;
  opacity: .92;
  font-size: .88rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.kpi i {
  color: var(--brand-orange);
}

.kpi + .kpi {
  border-left: 1px solid rgba(2, 6, 23, .08);
  padding-left: .75rem;
  margin-left: .75rem;
}

.btn-outline-lite {
  border: 1px solid #dbe3ff;
  color: var(--brand-blue);
  background: #fff;
  font-weight: 500;
  border-radius: .55rem;
  padding: .38rem .6rem;
  line-height: 1;
  font-size: .82rem;
}

.btn-outline-lite:hover {
  background: #f2f6ff;
  color: var(--brand-blue);
}

.lang-chip {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  border-radius: 999px;
  padding: .38rem .65rem;
  line-height: 1;
  font-size: .82rem;
}

.dropdown-menu .active {
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .search-compact {
    max-width: 100%;
  }

  .brandbar .nav-link {
    padding: .38rem .45rem;
    font-size: .88rem;
  }

  .meta-left {
    gap: .6rem;
  }
}

@media (max-width: 575.98px) {
  .meta-left {
    display: none !important;
  }

  .meta-right {
    flex: 1 1 100%;
    display: grid;
    gap: .5rem;
    align-items: stretch;
    min-width: 0;
  }

  .meta-right.state-guest {
    grid-template-columns: 1fr 1fr auto;
  }

  .meta-right.state-user {
    grid-template-columns: 1fr auto auto;
  }

  .meta-right.state-user-admin {
    grid-template-columns: 1fr auto auto auto;
  }

  .meta-right .btn,
  .meta-right .dropdown-toggle,
  .meta-right .lang-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--btn-min-h);
    padding: .55rem .75rem;
    border-radius: .55rem;
    line-height: 1.1;
  }

  .meta-right .btn-user {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .meta-right .btn-user i {
    margin-right: .35rem;
    flex: 0 0 auto;
  }

  .meta-right .btn-user span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .meta-right .btn-cta i {
    margin-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .meta-left .live-badge {
    display: none !important;
  }
}
