html,
body,
#root {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  background: transparent !important;
}

body {
  margin: 0;
  background: #06101d !important;
}

#expertmontazh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/expertmontazh-bg-desktop.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#expertmontazh-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.18);
}

#root {
  position: relative;
  z-index: 1;
}

#root > div,
#root > div > div,
#root > main,
#root main:first-child {
  background-color: transparent !important;
  background-image: none !important;
}

#expertmontazh-brand {
  display: none !important;
}

#expertmontazh-waiting-room {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(2, 8, 18, 0.34);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.expert-waiting-card {
  width: min(620px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 34px 38px 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(7, 17, 31, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  color: #fff;
  text-align: center;
}

.expert-waiting-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.expert-waiting-card p {
  margin: 0 auto;
  max-width: 520px;
}

.expert-waiting-main {
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.45;
  font-weight: 550;
}

.expert-waiting-sub {
  margin-top: 8px !important;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.45;
  opacity: 0.82;
}

.expert-waiting-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: expertmontazh-spin 0.9s linear infinite;
}

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

.expert-waiting-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 14px;
  line-height: 1.2;
}

.expert-waiting-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #83e6b5;
  box-shadow: 0 0 0 4px rgba(131, 230, 181, 0.12);
}

#expertmontazh-waiting-cancel {
  display: block;
  margin: 22px auto 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

#expertmontazh-waiting-cancel:hover {
  background: rgba(255, 255, 255, 0.19);
}

#expertmontazh-finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 20px auto 22px;
  max-width: 680px;
  text-align: center;
}

#expertmontazh-finish img {
  display: block;
  width: min(330px, 70vw);
  height: auto;
}

#expertmontazh-finish .expert-thanks {
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.45;
  font-weight: 500;
}

#expertmontazh-finish .expert-again {
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.4;
  opacity: 0.88;
}

@media (max-width: 900px), (orientation: portrait) {
  #expertmontazh-bg {
    background-image: url('/expertmontazh-bg-mobile.png');
    background-position: center center;
  }
}

@media (max-width: 600px) {
  #expertmontazh-waiting-room {
    padding: 16px;
  }

  .expert-waiting-card {
    width: 100%;
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expert-waiting-spinner {
    animation-duration: 1.8s;
  }
}


/* EXPERT_MONTAZH_RECORDING_GUEST_NOTICE_V170 */
#expertmontazh-recording-indicator {
  position: fixed;
  z-index: 2147483000;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.86);
  color: #fff;
  font: 600 13px/1.2 system-ui, sans-serif;
  box-shadow: 0 4px 18px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
#expertmontazh-recording-indicator > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: expert-record-pulse 1.35s ease-in-out infinite;
}
@keyframes expert-record-pulse { 0%,100% { opacity: 1; } 50% { opacity: .38; } }
