*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f7f4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -30%;
  background-image: url(images/logo-pattern.svg);
  background-repeat: repeat;
  background-size: 280px auto;
  transform: rotate(-15deg);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

body.embed-mode {
  background: transparent;
}
body.embed-mode::before {
  display: none;
}
body.embed-mode main {
  max-width: 1146px;
}
body.embed-mode .avatar-wrapper {
  max-width: 1146px;
}
body.embed-mode .credit-tag {
  display: none;
}

main {
  width: 100%;
  max-width: 1146px;
  padding: 8px 24px 40px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #005D26;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.3);
}

#avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  display: block;
}

.lang-dropdown {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
}

.avatar-wrapper.session-active .lang-dropdown {
  display: none;
}

.lang-current {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-home-btn {
  display: none;
}
@media (max-width: 768px) {
  .placeholder-home-btn {
    display: inline-flex;
    position: absolute;
    top: 16px;
    left: 20px;
    right: auto;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .placeholder-home-btn svg {
    width: 18px;
    height: 18px;
  }
  .placeholder-home-btn:hover,
  .placeholder-home-btn:focus-visible {
    color: #fff;
    border-color: #fff;
  }
  .avatar-wrapper.session-active .placeholder-home-btn {
    display: none;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .placeholder-home-btn {
    display: none !important;
  }
}

.lang-current:hover .lang-flag,
.lang-option:hover .lang-flag {
  opacity: 1;
}

.lang-flag {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .avatar-wrapper .lang-dropdown {
    display: flex !important;
  }
  .avatar-wrapper.session-active .lang-dropdown {
    display: none !important;
  }
}

.lang-option .lang-flag {
  width: 28px;
  height: 28px;
}

.lang-options {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  flex-direction: column;
  gap: 8px;
  background: none;
  padding: 0;
}

.lang-options.open {
  display: flex;
}

.lang-option {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topright-actions {
  position: absolute;
  top: 16px;
  right: 20px;
  
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-wrapper.session-active .topright-actions {
  display: none;
}

.info-corner {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {

  .info-corner { display: none !important; }
  .avatar-wrapper .info-popover {
    display: inline-flex !important;
    opacity: 0.35;
    bottom: 8px;
  }
}

.avatar-wrapper.session-active .info-corner {
  display: none;
}

.info-corner-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  padding: 0;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-corner-btn svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .info-corner-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
  }
}

.credit-tag {
  position: absolute;
  top: 16px;
  right: 20px;
  opacity: 0.45;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.04em;
  z-index: 10;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.credit-by {
  margin-right: 0;
}

.credit-version {
  display: none;
}

.credit-logo {
  height: 15px;
  width: auto;
  display: block;
}

.placeholder-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 260px;
  min-width: 0;
}

.placeholder-actions #start-btn,
.placeholder-actions .feedback-link,
.placeholder-actions .donate-btn,
.placeholder-actions .mobile-info-open-btn {
  width: 100%;
  max-width: 260px;
}

.feedback-link {
  position: relative;
  z-index: 10;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.feedback-link:hover {
  color: #ffffff;
}

.donate-btn {
  background-color: rgba(0, 61, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 11px 48px;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.donate-btn:hover {
  background-color: rgba(0, 93, 38, 0.6);
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1025px) {
  .donate-btn { display: none; }
}

.placeholder-icon-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.placeholder-icon-btn {
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.65);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.placeholder-icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.logo-overlay {
  display: none;
  position: absolute;
  top: 16px;
  left: 20px;
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  z-index: 10;
}

.avatar-wrapper.session-active .credit-tag {
  display: none;
}

.logo-content {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  align-self: flex-start;
  display: block;
  margin-top: -16px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

@-webkit-keyframes gradientShiftVertical {
  0%   { background-position: 50% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

@keyframes gradientShiftVertical {
  0%   { background-position: 50% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

@-webkit-keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes phoneShake {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-18deg); }
  30%  { transform: rotate(16deg); }
  45%  { transform: rotate(-14deg); }
  60%  { transform: rotate(10deg); }
  75%  { transform: rotate(-6deg); }
  90%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 80px;
  background: linear-gradient(-45deg, #003d18, #005D26, #00813a, #003d18);
  -webkit-background-size: 400% 400%;
  background-size: 400% 400%;
  -webkit-animation: gradientShift 16s ease infinite;
  animation: gradientShift 16s ease infinite;
}

.placeholder-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 0 48px;
  width: 100%;
}

.placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  max-width: 512px;
}

.placeholder-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
}

.placeholder-subtitle {
  color: #ffffff;
  font-size: 16px;
  text-align: left;
  line-height: 2;
  margin-bottom: 16px;
}

.placeholder-subtitle:last-of-type {
  margin-bottom: 0;
}

.placeholder-subtitle--muted {
  color: #ffffff;
}

@media (max-width: 768px) and (max-height: 700px) {
  .avatar-placeholder .placeholder-subtitle--muted {
    display: none;
  }
}

#start-btn {
  position: relative;
  background-color: rgba(0, 119, 48, 0.4);
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #6FB96B;
  border-radius: 64px;
  padding: 19px 62px;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

#start-btn .start-btn-icon {
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background-color: #6FB96B;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  transition: left .35s cubic-bezier(.4, 0, .2, 1), background-color .3s ease;
}

#start-btn .start-btn-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/vjp1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#start-btn:hover:not(:disabled) .start-btn-icon,
#start-btn.active .start-btn-icon {
  left: calc(100% - 50px);
}

#start-btn .start-btn-icon svg {
  display: none;
}

#start-btn .start-btn-label {
  transition: opacity .2s ease;
}

#start-btn .start-btn-hover {
  position: absolute;
  left: 62px;
  right: 62px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#start-btn:hover:not(:disabled) .start-btn-hover,
#start-btn.active .start-btn-hover {
  transition: opacity .2s ease .2s;
}

#start-btn:hover:not(:disabled),
#start-btn.active {
  background-color: #6FB96B;
  border-color: #6FB96B;
}

#start-btn:hover:not(:disabled) .start-btn-icon,
#start-btn.active .start-btn-icon {
  background-color: #005D26;
}

#start-btn:hover:not(:disabled) .start-btn-label,
#start-btn.active .start-btn-label {
  opacity: 0;
}

#start-btn:hover:not(:disabled) .start-btn-hover,
#start-btn.active .start-btn-hover {
  opacity: 1;
}

#start-btn:active:not(:disabled) {
  transform: translateY(0);
}

#start-btn:disabled {
  box-shadow: none;
  cursor: default;
}

#start-btn:disabled:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

.donate-popup {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(calc(-50% + 8px));
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  z-index: 20;
  width: 256px;
  opacity: 0;
  pointer-events: none;
  transition: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.donate-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.donate-popup-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #0d2818;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
}

.donate-popup-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.45);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease;
  touch-action: manipulation;
}

.donate-popup-close:hover {
  color: #0d2818;
}

.donate-popup-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donate-popup-body p {
  color: #0d2818;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.donate-popup-btn {
  display: inline-block;
  text-align: center;
  background-color: #F7A600;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}

.donate-popup-btn:hover {
  background-color: #F7A600;
  color: #fff;
  box-shadow: 0 4px 8px 0 rgba(123, 124, 133, 0.32);
}

.contact-page-btn {
  margin-top: 8px;
}

.newsletter-popup .donate-popup-body {
  gap: 8px;
}
.newsletter-input {
  margin-top: 0;
  margin-bottom: 0;
}

.newsletter-input + .newsletter-input {
  margin-top: -6px;
}
.newsletter-submit-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.contact-phone {
  display: block;
  text-align: center;
  color: #0d2818;
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

.contact-phone:hover {
  opacity: 0.8;
}

.contact-popup {
  width: 290px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

.contact-item:hover {
  opacity: 0.8;
}

.contact-item svg {
  flex-shrink: 0;
  color: #005D26;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item-main {
  color: #0d2818;
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-item-sub {
  color: rgba(13, 40, 24, 0.6);
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
}

.avatar-controls {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.avatar-controls > * { pointer-events: auto; }

.ptt-tooltip {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.ptt-tooltip.visible { opacity: 1; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, opacity 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

#mode-buttons {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 11;
}
#mode-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}

#ptt-btn {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#ptt-btn.mic-off::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 2px;
  background: #fff;
  transform: rotate(-45deg);
  pointer-events: none;
}
#ptt-btn.active {
  background: rgba(255, 255, 255, 0.35);
}

.stop-icon-btn,
#stop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.stop-icon-btn:hover,
#stop-btn:hover {
  opacity: 0.85;
}

#stop-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 11;
}
#stop-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.spacebar-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 15;
  background: rgba(0, 0, 0, 0.45);
}

.spacebar-hint.visible {
  opacity: 1;
}

.spacebar-hint svg {
  color: rgba(255, 255, 255, 0.95);
}

.spacebar-hint span {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

.spacebar-hint kbd {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (max-width: 1024px) {
  .spacebar-hint { display: none; }
}

.ptt-touch-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 15;
  background: rgba(0, 0, 0, 0.45);
}

.ptt-touch-hint.visible {
  opacity: 1;
}

.ptt-touch-hint svg {
  color: rgba(255, 255, 255, 0.95);
}

.ptt-touch-hint span {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.ptt-touch-hint-sub {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
}

@keyframes pttGlow {
  0%, 100% { box-shadow: inset 0 0 80px 20px rgba(0, 220, 80, 0.55); }
  50%       { box-shadow: inset 0 0 140px 40px rgba(0, 220, 80, 0.85); }
}

.avatar-wrapper.ptt-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pttGlow 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

.consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 10, 4, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.consent-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.consent-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 600px;
  max-height: 80vh;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.comingsoon-content {
  text-align: center;
  align-items: center;
}
.comingsoon-heading {
  color: #0d2818;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.comingsoon-content p {
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.comingsoon-content button {
  margin-top: 12px;
  align-self: center;
}

.consent-logo {
  height: 40px;
  width: auto;
  opacity: 1;
}

.consent-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.consent-heading {
  color: #0d2818;
  font-size: 18px;
  font-weight: 700;
}

.consent-body p {
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.consent-checkbox-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #005D26;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease;
  margin: 0;
}

.consent-checkbox-label input[type="checkbox"]:checked {
  background: #005D26;
  box-shadow: inset 0 0 0 3px #ffffff;
}

#consent-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.consent-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

#consent-btn {
  flex: 1 1 0;
  min-width: 0;
  background-color: #F7A600;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all .3s ease;
  touch-action: manipulation;
  text-align: center;
}

#consent-btn:hover:not(:disabled) {
  background-color: #F7A600;
  color: #fff;
  box-shadow: 0 4px 8px 0 rgba(123, 124, 133, 0.32);
}

.consent-privacy-link {
  display: inline;
  color: #005D26;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  margin: 0;
}

.consent-privacy-link:hover {
  color: #003d18;
}

.privacy-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.privacy-screen.visible {
  opacity: 1;
  pointer-events: auto;
}

.privacy-scroll {
  flex: 1;
  overflow-y: scroll;
  padding-right: 14px;
  scrollbar-color: #005D26 transparent;
  scrollbar-width: thin;
}

.privacy-scroll::-webkit-scrollbar {
  width: 8px;
  -webkit-appearance: none;
  display: block;
}

.privacy-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-scroll::-webkit-scrollbar-thumb {
  background: #005D26;
  border-radius: 4px;
  min-height: 40px;
}

.privacy-scroll h3 {
  color: #0d2818;
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.privacy-scroll h3:first-of-type {
  margin-top: 16px;
}

.privacy-scroll p {
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.privacy-scroll strong {
  color: #0d2818;
}

.privacy-scroll ul {
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 10px;
  padding-left: 20px;
}

.privacy-scroll ul li {
  margin-bottom: 4px;
}

.privacy-back-btn {
  margin-top: 16px;
  background: transparent;
  border: 1px solid rgba(13, 40, 24, 0.45);
  color: rgba(13, 40, 24, 0.8);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  align-self: center;
}

.privacy-back-btn:hover {
  color: #0d2818;
  border-color: #0d2818;
}

.consent-cancel {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(13, 40, 24, 0.45);
  border-radius: 8px;
  color: rgba(13, 40, 24, 0.7);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  text-align: center;
}

.consent-cancel:hover {
  color: #0d2818;
  border-color: #0d2818;
}

.capacity-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 10, 4, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.capacity-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.capacity-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 26px;
  width: 600px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.capacity-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

@media (max-width: 1024px) {
  .capacity-content {
    width: calc(100% - 32px);
    max-width: none;
    padding: 28px 20px;
    
    min-height: 260px;
  }
  
  .capacity-body {
    flex: 1;
    justify-content: center;
  }
}

.capacity-message {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4em;
  margin: 0;
}

.capacity-ok-btn {
  background: transparent;
  border: 1px solid rgba(13, 40, 24, 0.45);
  border-radius: 8px;
  color: rgba(13, 40, 24, 0.7);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 32px;
  transition: color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  text-align: center;
}

.capacity-ok-btn:hover {
  color: #0d2818;
  border-color: #0d2818;
}

.capacity-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #F7A600;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0;
  display: none;
}

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

.capacity-ok-btn.capacity-connect-btn {
  background: #F7A600;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  padding: 12px 24px;
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.capacity-ok-btn.capacity-connect-btn:hover {
  background: #F7A600;
  color: #fff;
  box-shadow: 0 4px 8px 0 rgba(123, 124, 133, 0.32);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #003d18, #005D26, #00813a, #003d18);
  -webkit-background-size: 400% 400%;
  background-size: 400% 400%;
  -webkit-animation: gradientShift 16s ease infinite;
  animation: gradientShift 16s ease infinite;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.avatar-wrapper:has(.loading-overlay.visible) .topright-actions,
.avatar-wrapper:has(.loading-overlay.visible) .info-corner,
.avatar-wrapper:has(.loading-overlay.visible) .placeholder-home-btn,
.avatar-wrapper:has(.loading-overlay.visible) .info-popover {
  display: none !important;
}

.avatar-wrapper:has(.consent-overlay.visible) .feedback-link,
.avatar-wrapper:has(.consent-overlay.visible) .info-corner,
.avatar-wrapper:has(.consent-overlay.visible) .placeholder-home-btn {
  z-index: 1;
}

.avatar-wrapper:has(.consent-overlay.visible) .lang-current .lang-flag {
  opacity: 1;
}

.loading-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-bottom {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  text-align: center;
}

.loading-bar-wrap {
  display: none;
}

.loading-bar-fill {
  display: none;
}

.loading-percent {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 4px;
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.loading-percent::before,
.loading-percent::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  animation: loadPulse 2.4s ease-in-out infinite;
}

.loading-percent::after {
  animation-delay: 1.2s;
}

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

@-webkit-keyframes dotPulse {
  0%, 80%, 100% { -webkit-transform: scale(0.6); transform: scale(0.6); opacity: 0.4; }
  40%           { -webkit-transform: scale(1);   transform: scale(1);   opacity: 1;   }
}

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}

@keyframes fadeInLex {
  to { opacity: 1; }
}

.loading-logo {
  height: 68px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0;
}

.loading-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  max-width: 340px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.loading-message {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.loading-message-text {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.loading-signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  text-align: center;
}

.loading-signature-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.loading-signature-role {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.loading-cancel {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 32px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.loading-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .consent-content {
    width: calc(100% - 32px);
    max-width: none;
    padding: 28px 20px;
  }

  .loading-message-text {
    font-size: 14px;
  }

  .donate-popup {
    top: auto;
    bottom: 136px;
    left: 50%;
    transform: translate(-50%, 8px);
    width: calc(100% - 40px);
  }

  .donate-popup.visible {
    transform: translate(-50%, 0);
  }

.newsletter-popup {
    top: 20px;
    bottom: auto;
    transform: translate(-50%, -8px);
  }
  .newsletter-popup.visible {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  html, body {
    min-height: 0;
    height: var(--real-vh, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    align-items: stretch;
    background-color: #005D26;
  }

  body::before {
    display: none;
  }

  .avatar-placeholder {
    background: linear-gradient(180deg, #003d18, #005D26, #00813a, #003d18);
    background-size: 100% 400%;
    animation: gradientShiftVertical 20s ease infinite;
    -webkit-animation: gradientShiftVertical 20s ease infinite;
  }

  main {
    padding: 0;
    max-width: 100%;
  }

  .avatar-wrapper {
    width: 100vw;
    height: var(--real-vh, 100dvh);
    aspect-ratio: unset;
    border-radius: 0;
    box-shadow: none;
  }

  .logo-content {
    height: 44px;
    margin-bottom: 5px;
    margin-top: 32px;
  }

  .avatar-placeholder {
    padding: 60px 0 60px;
  }

  .placeholder-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 28px;
  }
  .placeholder-text {
    gap: 7px;
  }

  .placeholder-actions {
    align-self: stretch;
    align-items: stretch;
    flex: none;
  }

  .placeholder-actions #start-btn,
  .placeholder-actions .feedback-link,
  .placeholder-actions .donate-btn,
  .placeholder-actions .mobile-info-open-btn {
    max-width: none;
  }

  .placeholder-title {
    font-size: 18px;
  }

  .placeholder-subtitle {
    font-size: 14px;
  }

}

@-webkit-keyframes phoneRotate {
  0%   { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
  30%  { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
  60%  { -webkit-transform: rotate(0deg);  transform: rotate(0deg);  }
  80%  { -webkit-transform: rotate(0deg);  transform: rotate(0deg);  }
  100% { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
}
@keyframes phoneRotate {
  0%   { transform: rotate(90deg); }
  30%  { transform: rotate(90deg); }
  60%  { transform: rotate(0deg);  }
  80%  { transform: rotate(0deg);  }
  100% { transform: rotate(90deg); }
}

.rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #003d18, #005D26, #00813a, #003d18);
  background-size: 400% 400%;
  animation: gradientShift 16s ease infinite;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}

.rotate-phone-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  -webkit-animation: phoneRotate 3s ease-in-out infinite;
  animation: phoneRotate 3s ease-in-out infinite;
}

@media (orientation: landscape) and (max-height: 500px),
       (orientation: landscape) and (max-width: 850px),
       (orientation: portrait) and (min-width: 601px) and (max-width: 1024px) {
  html, body {
    background-color: #005D26;
  }

  .rotate-overlay {
    display: flex;
  }
}

@media (min-width: 601px) {
  .avatar-placeholder {
    padding: 32px 0;
  }

  .placeholder-actions {
    align-items: center;
  }

  #start-btn {
    width: auto;
    min-width: 260px;
  }

  .donate-btn {
    width: auto;
    min-width: 260px;
  }

  .consent-actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  #consent-btn,
  .consent-cancel {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    font-size: 14px;
    padding: 12px 12px;
  }

}

#corner-btns {
  position: absolute;
  right: 24px;
  bottom: 30px;
  z-index: 11;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#corner-btns.visible {
  opacity: 1;
  pointer-events: auto;
}

.session-active #info-btn {
  display: none;
}

.session-active #corner-btns.visible #feedback-btn {
  background-color: rgba(0, 93, 38, 0.55);
  color: rgba(255, 255, 255, 0.9);
}

#feedback-btn,
#info-btn {
  background-color: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  touch-action: manipulation;
}

#feedback-btn:hover,
#info-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.chat-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 600px;
  max-width: 80%;
  background: transparent;
  padding: 0;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.chat-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input {
  flex: 1;
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 999px;
  color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1;
  outline: none;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.chat-input::placeholder {
  color: rgba(13, 40, 24, 0.5);
}

.chat-input:focus {
  background: rgba(255, 255, 255, 1);
}

.chat-stop-btn {
  display: none;
}

@media (max-width: 1024px) {
  #mode-buttons #chat-btn { display: none !important; }
  .chat-overlay { display: none !important; }
}

@media (max-width: 768px) {
  #stop-btn {
    width: 56px;
    height: 56px;
  }
  #stop-btn svg {
    width: 22px;
    height: 22px;
  }
}

.info-popover {
  display: none;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  z-index: 10;
  padding: 6px 10px;
}

.info-popover.open {
  display: inline-flex;
}

.info-label {
  color: rgba(255, 255, 255, 0.6);
}

.info-logo {
  height: 14px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  display: block;
}

.info-brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.info-brand-suffix {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.info-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-link:hover {
  color: #ffffff;
}

.info-sep {
  color: rgba(255, 255, 255, 0.45);
}

.info-version {
  color: rgba(255, 255, 255, 0.55);
}

.avatar-wrapper.session-active .info-popover {
  display: none !important;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 4, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 19;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.feedback-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

#feedback-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 380px;
  max-width: calc(100% - 40px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: none;
  transform: translate(-50%, calc(-50% + 8px));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#feedback-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  #feedback-popup {
    top: 20px;
    transform: translate(-50%, -8px);
  }
  #feedback-popup.visible {
    transform: translate(-50%, 0);
  }
}

.feedback-popup-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #0d2818;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
}

.feedback-popup-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.45);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease;
  touch-action: manipulation;
}

.feedback-popup-close:hover {
  color: #0d2818;
}

.feedback-popup-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-smileys {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.feedback-smiley {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
}

.feedback-smiley svg {
  width: 40px;
  height: 40px;
}

.feedback-smiley:hover {
  color: #F7A600;
  transform: scale(1.1);
}

.feedback-smiley.selected {
  color: #F7A600;
  transform: scale(1.1);
}

.feedback-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  resize: none;
  height: 140px;
  outline: none;
  transition: border-color 0.2s ease;
}

.feedback-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.feedback-textarea:focus {
  border-color: #005D26;
}

.feedback-email {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  margin-top: 2px;
  margin-bottom: 4px;
  transition: border-color 0.2s ease;
}

.feedback-email::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.feedback-email:focus {
  border-color: #005D26;
}

.feedback-submit {
  display: block;
  width: 100%;
  background-color: #F7A600;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all .3s ease;
  touch-action: manipulation;
}

.feedback-submit:hover:not(:disabled) {
  background-color: #F7A600;
  color: #fff;
  box-shadow: 0 4px 8px 0 rgba(123, 124, 133, 0.32);
}

.feedback-submit:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 1024px) {
  
  .feedback-textarea {
    font-size: 16px;
    height: 150px;
  }

  #feedback-popup {
    width: calc(100% - 24px);
  }
}

@media (min-width: 601px) {
  
  .loading-overlay.visible ~ #corner-btns {
    opacity: 0 !important;
    pointer-events: none !important;
  }

#corner-btns {
    opacity: 1;
    pointer-events: auto;
    bottom: 24px;
  }

  #feedback-btn,
  #info-btn {
    background-color: rgba(0, 93, 38, 0.3);
    color: rgba(255, 255, 255, 0.45);
    width: 44px;
    height: 44px;
  }

  #feedback-btn:hover,
  #info-btn:hover {
    background-color: rgba(0, 93, 38, 0.7);
    color: rgba(255, 255, 255, 0.95);
  }

.session-active #corner-btns {
    opacity: 0;
    pointer-events: none;
  }

.session-active #corner-btns.visible {
    opacity: 1;
    pointer-events: auto;
    bottom: 24px;
  }

  .session-active #corner-btns.visible #feedback-btn,
  .session-active #corner-btns.visible #info-btn {
    background-color: rgba(0, 93, 38, 0.55);
    color: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
  }

  .session-active #corner-btns.visible #feedback-btn:hover,
  .session-active #corner-btns.visible #info-btn:hover {
    background-color: rgba(0, 93, 38, 0.9);
    color: #ffffff;
  }

.placeholder-icon-btns {
    display: none;
  }

.chat-active #stop-btn {
    display: none;
  }
  .chat-active .chat-stop-btn {
    display: flex;
  }
}

.session-active #feedback-popup,
.session-active .feedback-backdrop {
  display: none !important;
}

.session-timer {
  display: none;
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 18;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 18, 7, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.session-timer.visible {
  display: block;
}

.session-timer.warning {
  color: #F7A600;
}

.session-timer.critical {
  color: #ff5a4d;
}

.idle-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 40, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  font-variant-numeric: tabular-nums;
}

.idle-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

.idle-content {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  max-width: 420px;
  width: 100%;
  color: #005D26;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#idle-banner-text,
#session-end-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4em;
  color: #1a1a1a;
}

.idle-stay-btn {
  background: #F7A600;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.1s ease;
}

.idle-stay-btn:hover {
  background: #F7A600;
  box-shadow: 0 4px 8px 0 rgba(123, 124, 133, 0.32);
}

.idle-stay-btn:active {
  transform: scale(0.98);
}
