:root {
  --ba-logo-blue-dark: #061b4d;
  --ba-logo-blue: #075ff0;
  --ba-logo-blue-light: #40a6ff;
  --ba-logo-cyan: #00e5ff;
  --ba-logo-gold: #ffc107;
  --ba-logo-gold-light: #fff06a;
  --ba-logo-red: #ff3830;
}

.ba-brand-mark--logo,
.brand-icon--logo {
  overflow: visible;
  color: inherit;
  background: transparent !important;
  box-shadow: none !important;
}

.ba-brand-mark--logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 0;
}

.brand-icon--logo {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 0;
}

.ba-logo-mark {
  --ba-logo-size: 70px;
  --ba-logo-delay: 0ms;
  position: relative;
  isolation: isolate;
  width: var(--ba-logo-size);
  height: var(--ba-logo-size);
  display: inline-grid;
  place-items: center;
  overflow: visible;
  transform: translateZ(0);
}

.ba-logo-mark,
.ba-logo-mark * {
  box-sizing: border-box;
}

.ba-logo-mark svg {
  display: block;
  max-width: none;
  overflow: visible;
  fill: none;
  stroke: none;
  pointer-events: none;
}

.ba-logo-mark--header,
.ba-logo-mark--onboarding,
.ba-logo-mark--error {
  --ba-logo-size: 46px;
}

.ba-logo-mark--install {
  --ba-logo-size: 82px;
}

.ba-logo-mark--start {
  --ba-logo-size: 124px;
}

.ba-logo-aura {
  position: absolute;
  z-index: -3;
  inset: -15%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 68%, rgb(0 229 255 / 45%), transparent 38%),
    radial-gradient(circle at 50% 42%, rgb(22 119 255 / 26%), transparent 56%);
  filter: blur(5px);
  opacity: .95;
}

.ba-logo-orbit {
  position: absolute;
  z-index: -2;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 22%;
  border-radius: 999px;
  border: 1px solid rgb(0 229 255 / 58%);
  box-shadow:
    0 0 10px rgb(0 229 255 / 30%),
    inset 0 0 10px rgb(22 119 255 / 24%);
  transform: perspective(90px) rotateX(64deg);
  opacity: .88;
}

.ba-logo-orbit--inner {
  left: 25%;
  right: 25%;
  bottom: 4%;
  opacity: .55;
}

.ba-logo-shield {
  position: absolute;
  z-index: 1;
  width: 82%;
  height: 92%;
  left: 9%;
  top: 0;
  filter:
    drop-shadow(0 9px 11px rgb(0 8 32 / 46%))
    drop-shadow(0 0 9px rgb(0 174 255 / 36%));
}

.ba-logo-shield__shadow {
  fill: rgb(0 8 32 / 28%);
  transform: translateY(2px);
}

.ba-logo-shield__rim {
  fill: var(--ba-logo-blue);
  stroke: #e6f5ff;
  stroke-width: 6;
  stroke-linejoin: round;
}

.ba-logo-shield__core {
  fill: #053cba;
  stroke: rgb(143 215 255 / 68%);
  stroke-width: 2.1;
  stroke-linejoin: round;
}

.ba-logo-shield__shine {
  fill: none;
  stroke: rgb(255 255 255 / 42%);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.ba-logo-bell {
  position: absolute;
  z-index: 3;
  width: 53%;
  height: 53%;
  left: 23.5%;
  top: 30%;
  filter:
    drop-shadow(0 6px 7px rgb(93 54 0 / 35%))
    drop-shadow(0 0 5px rgb(255 193 7 / 35%));
  transform-origin: 50% 17%;
}

.ba-logo-bell__cap,
.ba-logo-bell__body {
  fill: var(--ba-logo-gold);
  stroke: #fff0a3;
  stroke-width: 5;
  stroke-linejoin: round;
}

.ba-logo-bell__base {
  fill: #d77a00;
  stroke: #ffe066;
  stroke-width: 5;
  stroke-linecap: round;
}

.ba-logo-bell__shine {
  fill: none;
  stroke: rgb(255 255 255 / 50%);
  stroke-width: 5;
  stroke-linecap: round;
}

.ba-logo-alert {
  position: absolute;
  z-index: 4;
  top: 4%;
  right: -2%;
  width: 34%;
  height: 34%;
  min-width: 16px;
  min-height: 16px;
  display: grid;
  place-items: center;
  border: 2px solid rgb(255 160 152 / 92%);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 35% 25%, rgb(255 255 255 / 48%), transparent 24%),
    linear-gradient(145deg, #ff5148, var(--ba-logo-red));
  box-shadow:
    0 6px 11px rgb(0 0 0 / 28%),
    0 0 0 4px rgb(255 56 48 / 13%);
  font-size: calc(var(--ba-logo-size) * .19);
  font-weight: 1000;
  line-height: 1;
}

.ba-logo-mark--header .ba-logo-alert,
.ba-logo-mark--onboarding .ba-logo-alert,
.ba-logo-mark--error .ba-logo-alert {
  border-width: 1.5px;
}

.ba-logo-mark--header .ba-logo-orbit,
.ba-logo-mark--onboarding .ba-logo-orbit,
.ba-logo-mark--error .ba-logo-orbit {
  bottom: -4%;
}

.ba-logo-mark--header .ba-logo-aura,
.ba-logo-mark--onboarding .ba-logo-aura,
.ba-logo-mark--error .ba-logo-aura {
  filter: blur(3px);
  opacity: .82;
}

.brokeralert-loader {
  position: relative;
  width: 152px;
  height: 144px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.brokeralert-loader .ba-logo-mark {
  transform: translateY(-2px);
}

.brokeralert-loader__pulse,
.brokeralert-loader__line {
  position: absolute;
  pointer-events: none;
}

.brokeralert-loader__pulse {
  inset: 11px 11px 4px;
  border-radius: 999px;
  border: 1px solid rgb(0 229 255 / 32%);
  box-shadow: inset 0 0 16px rgb(0 229 255 / 18%);
}

.brokeralert-loader__line {
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(7 95 240 / 12%);
}

.brokeralert-loader__line::after {
  content: '';
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #1677ff, #00e5ff, transparent);
  animation: ba-loader-line 1.45s ease-in-out infinite;
}


/* Loader de pornire/login: iconiță creată din SVG/CSS, fără imagine PNG pătrată. */
.brokeralert-loader--start {
  width: 168px;
  height: 164px;
  margin: 0 auto 18px;
}

.brokeralert-loader--start .ba-logo-mark {
  --ba-logo-size: 128px;
  transform: translateY(-3px);
}

.brokeralert-loader--start .brokeralert-loader__line {
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 6px;
  border: 1px solid rgb(64 166 255 / 32%);
  background: linear-gradient(90deg, rgb(7 95 240 / 14%), rgb(0 229 255 / 16%), rgb(7 95 240 / 14%));
  box-shadow:
    inset 0 0 10px rgb(7 95 240 / 20%),
    0 0 20px rgb(0 229 255 / 22%);
}

.brokeralert-loader--start .brokeralert-loader__line::after {
  width: 48%;
  background: linear-gradient(90deg, transparent, #1677ff 18%, #00e5ff 52%, #e6f1ff 72%, transparent);
  animation-duration: 1.1s;
}

/* Loader simplificat pentru pornire/login: fără iconiță pătrată, doar bara animată. */
.brokeralert-loader--bar-only {
  width: min(100%, 248px);
  height: 34px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 10px 22px rgb(0 95 255 / 18%));
}

.brokeralert-loader--bar-only::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgb(0 229 255 / 26%), transparent 70%);
  filter: blur(8px);
}

.brokeralert-loader--bar-only .brokeralert-loader__line {
  left: 0;
  right: 0;
  bottom: 11px;
  height: 7px;
  border: 1px solid rgb(64 166 255 / 28%);
  background: linear-gradient(90deg, rgb(7 95 240 / 12%), rgb(0 229 255 / 16%), rgb(7 95 240 / 12%));
  box-shadow:
    inset 0 0 10px rgb(7 95 240 / 18%),
    0 0 18px rgb(0 229 255 / 20%);
}

.brokeralert-loader--bar-only .brokeralert-loader__line::after {
  width: 48%;
  background: linear-gradient(90deg, transparent, #1677ff 18%, #00e5ff 52%, #e6f1ff 72%, transparent);
  animation-duration: 1.15s;
}

/* Mică cosmetizare numai în jurul iconiței de pe website/install. Nu modifică textele. */
.brand-block:has(.brand-icon--logo) {
  align-items: center;
}

.brand-icon--logo::before,
.brand-icon--logo::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.brand-icon--logo {
  position: relative;
}

.brand-icon--logo::before {
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(0 229 255 / 20%), transparent 68%);
  filter: blur(7px);
}

.brand-icon--logo::after {
  left: 7%;
  right: 7%;
  bottom: 3%;
  height: 18%;
  border: 1px solid rgb(0 229 255 / 44%);
  border-radius: 999px;
  transform: perspective(72px) rotateX(64deg);
}

.ba-brand-mark--logo .ba-logo-mark {
  transform: translateY(1px);
}

.ba-error-card .ba-brand-mark--logo {
  margin-bottom: 18px;
}

.ba-logo-mark.is-ready {
  animation: ba-logo-enter 620ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--ba-logo-delay);
}

.ba-logo-mark.is-ready .ba-logo-alert {
  animation: ba-logo-alert-pulse 1.6s ease-in-out 260ms 2;
}

.ba-logo-mark.is-ready .ba-logo-bell {
  animation: ba-logo-bell-ring 900ms ease-in-out 180ms 1;
}

/* În header și login/onboarding, efectele rămân vii permanent, dar discret. */
.ba-logo-mark--header.is-ready .ba-logo-alert,
.ba-logo-mark--onboarding.is-ready .ba-logo-alert,
.ba-logo-mark--start.is-ready .ba-logo-alert {
  animation: ba-logo-alert-pulse 1.85s ease-in-out 220ms infinite;
}

.ba-logo-mark--header.is-ready .ba-logo-bell,
.ba-logo-mark--onboarding.is-ready .ba-logo-bell,
.ba-logo-mark--start.is-ready .ba-logo-bell {
  animation: ba-logo-bell-ring 1.95s ease-in-out 120ms infinite;
}

.ba-logo-mark.is-ready .ba-logo-orbit--outer {
  animation: ba-logo-orbit-pulse 2.2s ease-in-out 480ms infinite;
}

.ba-logo-mark--header.is-ready .ba-logo-aura,
.ba-logo-mark--onboarding.is-ready .ba-logo-aura,
.ba-logo-mark--start.is-ready .ba-logo-aura {
  animation: ba-logo-aura-breathe 2.4s ease-in-out infinite;
}

.brokeralert-loader .ba-logo-mark.is-ready .ba-logo-bell {
  animation: ba-logo-bell-ring 1.35s ease-in-out infinite;
}

.brokeralert-loader .ba-logo-mark.is-ready .ba-logo-alert {
  animation: ba-logo-alert-pulse 1.3s ease-in-out infinite;
}

.brokeralert-loader__pulse {
  animation: ba-loader-pulse 1.55s ease-in-out infinite;
}

@keyframes ba-logo-enter {
  from { opacity: 0; transform: translateY(5px) scale(.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ba-logo-bell-ring {
  0%, 100% { transform: rotate(0deg); }
  18% { transform: rotate(-9deg); }
  36% { transform: rotate(8deg); }
  54% { transform: rotate(-5deg); }
  72% { transform: rotate(3deg); }
}

@keyframes ba-logo-alert-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 11px rgb(0 0 0 / 28%), 0 0 0 4px rgb(255 56 48 / 13%); }
  48% { transform: scale(1.1); box-shadow: 0 7px 13px rgb(0 0 0 / 30%), 0 0 0 9px rgb(255 56 48 / 10%); }
}

@keyframes ba-logo-orbit-pulse {
  0%, 100% { opacity: .62; transform: perspective(90px) rotateX(64deg) scaleX(.95); }
  50% { opacity: 1; transform: perspective(90px) rotateX(64deg) scaleX(1.08); }
}

@keyframes ba-logo-aura-breathe {
  0%, 100% { opacity: .62; transform: scale(.96); }
  50% { opacity: .95; transform: scale(1.04); }
}

@keyframes ba-loader-pulse {
  0% { opacity: .25; transform: scale(.86); }
  70% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

@keyframes ba-loader-line {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .ba-logo-mark.is-ready,
  .ba-logo-mark.is-ready .ba-logo-alert,
  .ba-logo-mark.is-ready .ba-logo-bell,
  .ba-logo-mark.is-ready .ba-logo-orbit--outer,
  .ba-logo-mark--header.is-ready .ba-logo-aura,
  .ba-logo-mark--onboarding.is-ready .ba-logo-aura,
  .ba-logo-mark--start.is-ready .ba-logo-aura,
  .brokeralert-loader__pulse,
  .brokeralert-loader__line::after {
    animation: none !important;
  }
}

@media (max-width: 420px) {
  .brand-icon--logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .ba-logo-mark--install {
    --ba-logo-size: 72px;
  }

  .brokeralert-loader {
    width: 138px;
    height: 132px;
  }

  .ba-logo-mark--start {
    --ba-logo-size: 112px;
  }
}
