/* Blog Post Video Section */
.bh-blog-post-video {
  margin: 2.5rem 0;
}

/* ================= FILE VIEWER MODAL ================= */
.bh-file-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: bh-fade-in-overlay 0.2s ease-out;
}

@keyframes bh-fade-in-overlay {
  from {
    background: rgba(0, 0, 0, 0);
    opacity: 0;
  }
  to {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
  }
}

.bh-file-viewer__dialog {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  min-height: 80%;
  max-height: 90%;
  width: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  animation: bh-slide-up-viewer 0.3s ease-out;
}

@keyframes bh-slide-up-viewer {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .bh-file-viewer__dialog {
    width: 95%;
    max-height: 95%;
    border-radius: 8px;
  }
}

.bh-file-viewer__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.bh-file-viewer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
  flex: 1;
  padding-right: 10px;
}

.bh-file-viewer__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
  flex-shrink: 0;
  line-height: 1;
}

.bh-file-viewer__close:hover {
  background: #f3f4f6;
  color: #111827;
  transform: scale(1.15);
}

.bh-file-viewer__close:active {
  transform: scale(0.95);
}

.bh-file-viewer__content {
  flex: 1;
  overflow: auto;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.bh-file-viewer__content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.bh-file-viewer__content iframe {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.bh-file-viewer__unsupported {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.bh-file-viewer__unsupported i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #d1d5db;
}

.bh-file-viewer__unsupported p {
  margin: 0;
  font-size: 14px;
}

.bh-file-viewer__footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bh-file-viewer__footer-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.bh-file-viewer__footer-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.bh-file-viewer__footer-btn-close {
  background: #ef4444;
  color: white;
  border-color: #dc2626;
}

.bh-file-viewer__footer-btn-close:hover {
  background: #dc2626;
  border-color: #b91c1c;
}

/* Keep warning alert emphasis inline only for next month no-plan message. */
.bh-next-month-no-plan-alert strong {
  display: inline;
  margin-bottom: 0;
}

/* Align icon and title group inline for next month no-plan header. */
.bh-next-month-plan-card .bh-dashboard-card__title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Compact helper card shown under integration summary cards */
.bh-integration-help-card {
  min-height: auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(153, 102, 255, 0.03) 100%);
  border-radius: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25rem;
}

.bh-integration-help-card__content {
  max-width: none;
}

.bh-integration-help-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.bh-integration-help-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.bh-integration-help-card__description {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
}

.bh-integration-help-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  justify-self: end;
}

.bh-integration-help-card__actions .bh-button {
  width: 100%;
}

.bh-integration-help-card__actions .bh-button {
  white-space: nowrap;
}

@media (max-width: 992px) {
  .bh-integration-help-card {
    padding: 1rem;
    grid-template-columns: 1fr;
    row-gap: 0.9rem;
  }

  .bh-integration-help-card__actions {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    justify-self: start;
  }
}

@media (max-width: 576px) {
  .bh-integration-help-card__actions {
    gap: 0.625rem;
  }

  .bh-integration-help-card__actions .bh-button {
    width: 100%;
    justify-content: center;
  }
}
.bh-blog-post-video__container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background: #181A20;
  box-shadow: 0 2px 24px 0 rgba(44, 40, 80, 0.12);
}
.bh-blog-post-video__placeholder {
  min-height: 320px;
  background: #181A20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.bh-blog-post-video__placeholder:hover {
  background: #23263a;
}
.bh-blog-post-video__play {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-blog-post-video__caption {
  text-align: center;
  color: #b3b8c5;
  font-size: 1rem;
  margin-top: 1rem;
  font-style: italic;
}
.bh-blog-post-video__iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 1rem;
  background: #181A20;
  display: block;
}
@media (max-width: 768px) {
  .bh-blog-post-video__container {
    max-width: 100%;
  }
  .bh-blog-post-video__iframe {
    height: 220px;
  }
  .bh-blog-post-video__placeholder {
    min-height: 180px;
  }
}
/* ================= UNIFIED INFO TOOLTIP SYSTEM ================= */
/* Single, consistent tooltip implementation for all contexts */
.bh-info-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.bh-info-tooltip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  font-size: 0.95em;
  border-radius: 50%;
  background: #f3f4f6;
  color: #667eea;
  border: 1px solid #e0e7ef;
  cursor: help;
  transition: all 0.2s ease;
}

.bh-info-tooltip__icon:hover,
.bh-info-tooltip__icon:focus {
  background: #667eea;
  color: #fff;
  transform: scale(1.05);
}

.bh-info-tooltip__content {
  /* Initial hidden state */
  visibility: hidden;
  opacity: 0;
  
  /* Positioning - appears above the icon */
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  
  /* Sizing - reduced max-width to fit in modals */
  width: max-content;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 4rem));
  
  /* Styling */
  background: #1f2937;
  color: #ffffff;
  text-align: left;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  
  /* Typography */
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
  
  /* Elevation - very high z-index to appear over modals */
  z-index: 99999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  
  /* Interaction */
  pointer-events: none;
  
  /* Animation */
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Show tooltip on hover or focus */
.bh-info-tooltip:hover .bh-info-tooltip__content,
.bh-info-tooltip:focus-within .bh-info-tooltip__content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .bh-info-tooltip__content {
    /* Smaller width on mobile */
    min-width: 200px;
    max-width: calc(100vw - 2rem);
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .bh-info-tooltip__content {
    /* Even smaller on very small screens */
    min-width: 180px;
    max-width: calc(100vw - 1rem);
    left: auto;
    right: -0.5rem;
    transform: translateX(0) translateY(-4px);
  }
  
  .bh-info-tooltip:hover .bh-info-tooltip__content,
  .bh-info-tooltip:focus-within .bh-info-tooltip__content {
    transform: translateX(0) translateY(0);
  }
}
/* ================= BANK TRANSFER PAYMENT SUCCESS PAGE ================= */
.bh-bank-transfer-success {
  background: linear-gradient(180deg, #0b0f18 0%, #181e2f 100%);
  min-height: 100vh;
  padding-top: 32px;
  padding-bottom: 32px;
}


.bh-bank-success__header {
  margin-bottom: 2.5rem;
}
.bh-bank-success__icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 1rem;
}
.bh-bank-success__badge {
  display: inline-block;
  background: linear-gradient(90deg, #6f7dfa 0%, #9c5bff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  margin-top: 1rem;
  box-shadow: 0 4px 24px rgba(156,91,255,0.22);
  letter-spacing: 0.04em;
}

.bh-bank-success__card {
  background: #181e2f;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(15,23,42,0.22);
  border: 1px solid #232a3d;
  padding: 2rem 1.5rem;
  margin-bottom: 0;
  transition: box-shadow 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.bh-bank-success__card:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,0.32);
  background: #232a3d;
}
.bh-bank-success__rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.bh-bank-success__row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #e4e8ff;
  border-bottom: 1px solid #232a3d;
  padding: 0.5rem 0;
}
.bh-bank-success__row:last-child {
  border-bottom: none;
}
.bh-bank-success__preview {
  background: #232a3d;
  border-radius: 0.75rem;
  border: 1px solid #2e3650;
  padding: 1rem;
}
.bh-bank-success__hint {
  color: #9ca3af;
  font-size: 0.92rem;
}
.bh-bank-success__description {
  color: #cdd7ff;
  font-size: 1.1rem;
}

.bh-bank-success__card h3 {
  font-size: 1.25rem;
  color: #a5b4fc;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.bh-bank-success__card .bh-button {
  min-width: 180px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  pointer-events: auto;
  z-index: 2;
}

/* Custom hover for Download Proforma button */
#download-proforma.bh-button:hover, #download-proforma.bh-button:focus {
  background: linear-gradient(90deg, #6f7dfa 0%, #9c5bff 100%);
  color: #fff;
  box-shadow: 0 0 0 2px #9c5bff44;
  border-color: #9c5bff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}

.bh-bank-success__card .bh-button--ghost {
  background: #232a3d;
  color: #a5b4fc;
  border: 1.5px solid #6f7dfa;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.bh-bank-success__card .bh-button--ghost:hover, .bh-bank-success__card .bh-button--ghost:focus {
  background: #6f7dfa;
  color: #fff;
  border-color: #9c5bff;
  box-shadow: 0 0 0 2px #9c5bff44;
}

.bh-bank-success__card .bh-bank-success__preview {
  margin-top: 1.2rem;
}

.bh-bank-success__card iframe {
  background: #0b0f18;
  border-radius: 0.5rem;
  border: none;
}

/* Transfer Details Section */
#transfer-details {
  margin-top: 0.5rem;
}
.detail-section {
  margin-bottom: 1.2rem;
}
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #232a3d;
  border-radius: 0.7rem;
  padding: 0.6rem 1rem;
  color: #e4e8ff;
  box-shadow: 0 2px 8px rgba(15,23,42,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.detail-item:hover {
  background: #2e3650;
  box-shadow: 0 4px 16px rgba(15,23,42,0.14);
}
.detail-label {
  font-weight: 600;
  color: #a5b4fc;
  font-size: 1rem;
}
.detail-value {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.detail-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #e4e8ff;
}
.copy-btn {
  background: #232a3d;
  color: #cdd7ff;
  border: 1.5px solid #6f7dfa;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
}
.copy-btn:hover, .copy-btn:focus {
  background: #6f7dfa;
  color: #fff;
  border-color: #9c5bff;
  box-shadow: 0 0 0 2px #9c5bff44;
}
.instructions-section {
  background: #232a3d;
  border-radius: 0.7rem;
  padding: 0.7rem 1rem;
  color: #e4e8ff;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.08);
}

/* Next Steps Section */
.bh-bank-success__card .bh-bank-success__rows {
  margin-top: 0.5rem;
}
.bh-bank-success__row span:first-child {
  color: #a5b4fc;
  font-weight: 600;
  margin-right: 0.7rem;
}
.bh-bank-success__row span:last-child {
  color: #e4e8ff;
}

/* --- NEXT STEPS ENHANCED STYLE --- */
.bh-bank-success__card.next-steps {
  background: linear-gradient(180deg, #181e2f 60%, #232a3d 100%);
  border: 1.5px solid #6f7dfa;
  box-shadow: 0 8px 32px rgba(111,125,250,0.12);
  padding: 2.2rem 1.7rem;
  position: relative;
  overflow: hidden;
}
.bh-bank-success__card.next-steps::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #6f7dfa44 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.bh-bank-success__card.next-steps h3 {
  color: #6f7dfa;
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
  letter-spacing: 0.03em;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.bh-bank-success__rows.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
.bh-bank-success__row.next-step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: linear-gradient(90deg, #232a3d 80%, #6f7dfa22 100%);
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(111,125,250,0.10);
  padding: 1.15rem 1.4rem;
  font-size: 1.08rem;
  color: #e4e8ff;
  position: relative;
  border-left: 5px solid #6f7dfa;
  transition: box-shadow 0.2s, background 0.2s;
  overflow: hidden;
}
.bh-bank-success__row.next-step:hover {
  background: linear-gradient(90deg, #2e3650 80%, #9c5bff33 100%);
  box-shadow: 0 6px 20px rgba(111,125,250,0.18);
}
.bh-bank-success__row.next-step .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f7dfa, #9c5bff);
  color: #fff;
  font-weight: 800;
  font-size: 1.18rem;
  margin-right: 0.9rem;
  box-shadow: 0 2px 12px rgba(156,91,255,0.16);
  border: 2px solid #fff2;
  animation: nextstep-pop 0.7s cubic-bezier(.7,-0.5,.3,1.5);
}
.bh-bank-success__row.next-step strong {
  color: #a5b4fc;
  font-weight: 700;
}
@keyframes nextstep-pop {
  0% { transform: scale(0.7); opacity: 0.2; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 768px) {
  .bh-bank-success__card.next-steps {
    padding: 1.1rem 0.5rem;
  }
  .bh-bank-success__row.next-step {
    padding: 0.7rem 0.6rem;
    font-size: 0.98rem;
    gap: 0.7rem;
  }
  .bh-bank-success__row.next-step .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-right: 0.5rem;
  }
}
/* --- END NEXT STEPS ENHANCED STYLE --- */

@media (max-width: 991.98px) {
  .bh-bank-success__card {
    padding: 1.2rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .bh-bank-transfer-success {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .bh-bank-success__card {
    padding: 0.7rem 0.3rem;
  }
}
/* Highlight selected payment method in pricing modal */
.bh-payment-method--selected {
  border: 2px solid #6f7dfa !important;
  background: #f5f7ff;
  box-shadow: 0 0 0 2px #e0e7ff;
  transition: border 0.2s, background 0.2s;
}
.bh-auth__recaptcha {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  min-height: 78px;
}

.bh-auth__recaptcha > div {
  pointer-events: auto !important;
}

.bh-auth__recaptcha iframe {
  pointer-events: auto !important;
  touch-action: auto !important;
  -webkit-tap-highlight-color: transparent;
}

/* Toast Notifications */
/* BorgHive Toast */
.bh-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  z-index: 999999 !important;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.bh-toast-show {
  transform: translateX(0);
}

.bh-toast-success {
  border-left: 4px solid #10b981;
}

.bh-toast-error {
  border-left: 4px solid #ef4444;
}

.bh-toast-info {
  border-left: 4px solid #3b82f6;
}

.bh-toast-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}

.bh-toast-message {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
}

.bh-toast-message--multiline {
  white-space: pre-line;
  line-height: 1.45;
}

.bh-toast-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  margin-left: 1rem;
}

.bh-toast-close:hover {
  color: #374151;
}

.bh-toast--with-actions {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.bh-toast-actions {
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
  justify-content: center;
  flex: 1;
}

.bh-toast-action {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bh-toast-action--ghost {
  background-color: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.bh-toast-action--ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.bh-toast-action--accent {
  background-color: #667eea;
  color: white;
}

.bh-toast-action--accent:hover {
  background-color: #5568d3;
  transform: translateY(-1px);
}



.auth-error {
    margin-top: 4px;
    font-size: 13px;
    color: #dc3545; 
    min-height: 16px; 
}





/* Welcome Back Modal */
.bh-welcome {
  max-width: 420px;
  padding: 0;
  border-radius: 1.5rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 50px 120px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

/* Header */
.bh-welcome__header {
  padding: 2rem 2.5rem 1.5rem;
  background: linear-gradient(135deg, #6f7dfa, #9c5bff);
  color: #fff;
  text-align: center;
}

.bh-welcome__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin: 0 0 0.35rem;
}

.bh-welcome__header h3 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
}

/* Body */
.bh-welcome__body {
  padding: 2rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #0b0f24 0%, #111936 100%);
  color: #e4e8ff;
}

/* Avatar */
.bh-welcome__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  font-weight: 600;
  color: white;

  background: linear-gradient(135deg, #6f7dfa, #9c5bff);
  background-size: cover;
  background-position: center;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* Name */
.bh-welcome__name {
  font-size: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.bh-welcome__subtitle {
  color: #9aa4d5;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Recaptcha */
.bh-welcome__recaptcha {
  margin: 1rem auto 1.5rem;
  display: flex;
  justify-content: center;
}

/* Buttons */
.bh-welcome__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


.bh-button--primary {
  background: linear-gradient(135deg, #6b7bff, #8f46ff);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 18px 30px rgba(130, 88, 255, 0.3);
}

.bh-button--primary:hover:not(:disabled) {
  box-shadow: 0 24px 36px rgba(130, 88, 255, 0.35);
  transform: translateY(-2px);
}

.bh-button--primary:disabled,
.bh-button--primary.disabled {
  background: linear-gradient(135deg, #a2a2a2, #7a7a7a);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}




/* Forgot Password Modal */
.bh-forgot {
  max-width: 460px;
  padding: 0;
  border-radius: 1.5rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 50px 120px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

/* Header */
.bh-forgot__header {
  padding: 2rem 2.5rem 1.5rem;
  background: linear-gradient(135deg, #6f7dfa, #9c5bff);
  color: #fff;
}

.bh-forgot__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

.bh-forgot__header h3 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
}

/* Body */
.bh-forgot__body {
  padding: 2.25rem 2.5rem;
  background: linear-gradient(180deg, #0b0f24 0%, #111936 100%);
  color: #e4e8ff;
  max-height: 70vh;
  overflow-y: auto;
}

/* Form fields */
.bh-forgot__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #cdd7ff;
}

.bh-forgot__field {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.bh-forgot__field i {
  color: #9da7d9;
}

.bh-forgot__field input {
  width: 100%;
  padding-right: 3rem;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
}

.bh-forgot__field button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Error text */
.bh-forgot__error {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #ff6b6b;
}

/* Feedback global */
.bh-forgot__feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ff6b6b;
}

/* Spinner */
.bh-forgot__loading {
  text-align: center;
}

.bh-forgot__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.bh-spacer {
  height: 14px;
  visibility: hidden; 
}



.bh-button--ghost:hover:not(:disabled) {
  background: #EEF2FF;
  color: var(--bh-primary);
}

/* Disabled state */
.bh-button--ghost:disabled,
.bh-button--ghost.disabled {
  border-color: #c7c7c7;
  color: #aaa;
  background: transparent;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none; 
}

.bh-button--accent:disabled,
.bh-button--accent.disabled {
  background: linear-gradient(120deg, #a2a2a2, #7a7a7a);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  pointer-events: none;
}



.bh-forgot__error {
  color: #ff4d4f;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}



.bh-button--signup:disabled,
.bh-button--signup.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;        
  transform: none;         
  pointer-events: none;   
}


/* Loading Indicator */
.bh-loading {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 30, 0.55); 
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.25s ease;
}

.bh-loading__container {
  background: linear-gradient(180deg, #0b0f24 0%, #111936 100%);
  padding: 2rem 2.5rem;
  border-radius: 1.5rem;
  color: #e4e8ff;
  text-align: center;
  box-shadow: 0 40px 120px rgba(3, 6, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: bh-loading-appear 0.25s ease;
}


.bh-loading__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid #9c5bff; 
  border-radius: 50%;
  animation: bh-spin 0.8s linear infinite;
  margin: 0 auto;
}


.bh-loading__text {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #cdd7ff;
  opacity: 0.9;
  animation: bh-fade 1.2s ease-in-out infinite alternate;
}


@keyframes bh-spin {
  to {
    transform: rotate(360deg);
  }
}


@keyframes bh-fade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}


@keyframes bh-loading-appear {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}




/* Confirmation Modal */
.bh-confirm {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.bh-confirm.open {
  display: flex;
}

.bh-confirm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.bh-confirm__container {
  position: relative;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 16px;
  width: 95%;
  max-width: 420px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  animation: fadeInConfirm 0.2s ease;
}

@keyframes fadeInConfirm {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1);   }
}

.bh-confirm__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

#bh-confirm-message {
  font-size: 1rem;
  margin: 0;
  color: #333;
  text-align: center;
}

.bh-confirm__input {
  margin-top: 1rem;
  text-align: left;
}

.bh-confirm__input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2b2f38;
  margin-bottom: 0.4rem;
}

.bh-confirm__input input {
  width: 100%;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bh-confirm__input input:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

.bh-confirm__input-help {
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.bh-confirm__input-error {
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.82rem;
  display: none;
}

.bh-confirm__input.is-error input {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.bh-confirm__input.is-hidden {
  display: none;
}

/* --- CONTRAST FIX FOR HEADERS --- */
.bh-section__title,
.bh-bank-success__card h3,
.detail-section h4 {
  color: #e4e8ff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.detail-section h4 {
  font-size: 1.12rem;
  margin-bottom: 0.7rem;
}
.bh-section__title {
  font-size: 2.1rem;
}
/* --- END CONTRAST FIX --- */


/* .bh-pill.coming-soon {
  border-style: dashed;
  border-color: var(--cloud);
  background: #f8f9fc;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none; 
  box-shadow: none;
}

.bh-pill.coming-soon i {
  color: var(--ink);
  opacity: 0.6;
}


.bh-pill.coming-soon::after {
  content: "Coming soon";
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.8;
  margin-left: 0.3rem;
} */


.bh-pill.coming-soon {
  border-style: dashed;
  border-color: var(--cloud-dark, #c8d0d9);
  background: #f2f4f7;
  color: var(--ink-light, #6b7280);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  opacity: 1; 
}

.bh-pill.coming-soon i {
  color: var(--ink-light, #6b7280);
}

.bh-pill.coming-soon::after {
  content: "Coming soon";
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-light, #6b7280);
  margin-left: 0.45rem;
}

/* --- HOMEPAGE CONTRAST FIXES --- */
.bh-pill.coming-soon {
  color: #374151;
}

.bh-pill.coming-soon i,
.bh-pill.coming-soon::after {
  color: #374151;
}

.bh-code .text-secondary,
.bh-code .small.text-secondary {
  color: #d1d5db !important;
}

.bh-badge--green {
  background: #15803d !important;
  color: #ffffff !important;
}

.bh-badge--blue {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

.bh-badge--yellow {
  background: #facc15 !important;
  color: #1f2937 !important;
}

.bh-live-bubble span {
  color: #475569;
}

.bh-price-card__badge {
  background: #c2410c;
  color: #ffffff;
}

.bh-news .text-primary {
  color: #1d4ed8 !important;
}

.bh-news-card__tag--orange {
  color: #7c2d12;
}

.bh-news-card__tag--purple {
  color: #5b21b6;
}

.bh-news-card__tag--blue {
  color: #1e40af;
}

.bh-footer {
  color: rgba(255, 255, 255, 0.9);
}

.bh-footer__legal,
.bh-footer__brand p,
.bh-footer__links a {
  color: rgba(255, 255, 255, 0.88);
}
/* --- END HOMEPAGE CONTRAST FIXES --- */

/* Video YT HOMEPAGE */

.bh-video__iframe-wrapper {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.bh-video__iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}


.bh-video__stage::before,
.bh-video__stage::after {
  pointer-events: none; 
}


.bh-steps__code {
  max-width: 610px;
}


.yt-facade{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
  cursor:pointer;
  border-radius:12px; /* optional */
}
.yt-facade__play{
  position:absolute;
  inset:0;
  margin:auto;
  width:68px;
  height:48px;
  background:rgba(0,0,0,.65);
  border-radius:14px;
}
.yt-facade__play::before{
  content:"";
  position:absolute;
  left:26px;
  top:14px;
  border-style:solid;
  border-width:10px 0 10px 16px;
  border-color:transparent transparent transparent #fff;
}

/* Integration Guide - avoid Bootstrap .ratio::before spacer for yt-facade blocks */
.bh-integration-guide__video .ratio {
  aspect-ratio: 16 / 9;
}

.bh-integration-guide__video .ratio::before {
  display: none;
}

.bh-integration-guide__video .ratio > .yt-facade {
  position: relative;
  inset: auto;
  height: 100%;
}





/* =================
    PRICING PAGE - stiluri current package, unavalilable pack
    ================= */


/* FREE indisponibil */
.bh-price-card.bh-unavailable {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}

.bh-price-card.bh-unavailable::after {
  content: "Unavailable";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e11d48;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bh-price-card.bh-unavailable button {
  background: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}


/* PLAN CURENT — combinație varianta A + B */
.bh-price-card.bh-current-plan {
  border: 2px solid #6366f1 !important;
  background: #eef2ff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  position: relative;
}

.bh-price-card.bh-current-plan::before {
  content: "CURRENT PLAN";
  position: absolute;
  top: -12px;
  left: 16px;
  background: #eef2ff;
  color: #4338ca;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}


.bh-price-card.bh-current-plan button {
  background: #6366f1 !important;
  color: white !important;
}


.bh-price-card.bh-current-plan:hover {
  transform: none !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}



.bh-gpt-breakdown {
  background: #f8f9ff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #e0e3fa;
}

.bh-gpt-breakdown__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #4f46e5;
}

/* =================
    END PRICING PAGE
    ================= */


/* =================
    Section Loading Spinner
    ================= */
.bh-inline-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  width: 100%;
  text-align: center;
  animation: bh-loader-fadein .25s ease-out;
}


.bh-inline-loader__spinner {
  width: 56px;               
  height: 56px;              
  border: 5px solid rgba(255, 255, 255, 0.18);   
  border-top-color: var(--bh-loader-spinner-color, #9c5bff);
  border-radius: 50%;
  animation: bh-spin .8s linear infinite;
  margin: 0 auto;
}


.bh-inline-loader__text {
  font-size: 1.25rem;        
  font-weight: 600;
  color: var(--bh-loader-text-color, #cdd7ff);
  opacity: 0.95;
  letter-spacing: 0.4px;
  animation: bh-fade 1.2s ease-in-out infinite alternate;
  text-align: center;
}

/* ANIMATII */
@keyframes bh-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bh-fade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

@keyframes bh-loader-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =================
    END Section Loading Spinner
    ================= */


/* =================
    START 404 PAGE STYLE
    ================= */


/* 404 Page Styling */
.bh-404-wrapper {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 2rem;
}

.bh-404-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: bh-fade-in 0.6s ease-out;
}

.bh-404-subtitle {
  font-size: 1.25rem;
  color: #cdd7ff;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.bh-404-text {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* Floating AI Orb (animated) */
.bh-404-orb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 2rem auto;
  background: radial-gradient(circle at 35% 35%, #9c5bff, #6d28d9, #0f172a);
  box-shadow: 0 0 25px rgba(156, 91, 255, 0.6), 0 0 60px rgba(109, 40, 217, 0.4);
  animation: bh-orb-float 4s ease-in-out infinite, bh-orb-pulse 3s ease-in-out infinite;
}

/* Animations */
@keyframes bh-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes bh-orb-pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(156, 91, 255, 0.55); }
  50% { box-shadow: 0 0 45px rgba(156, 91, 255, 0.75); }
}

@keyframes bh-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================
    END 404 PAGE STYLE
    ================= */




/* =================
    PAYU Payment Secure Section
    ================= */


.bh-payment-secure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.bh-payment-secure:hover {
  opacity: 1;
}

.bh-payment-secure img {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.bh-payment-secure__text {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--bh-text-secondary, #6c757d);
  letter-spacing: 0.3px;
}

/* =================
    END PAYU Payment Secure Section
    ================= */




/* =================
   Payment Modals
    ================= */


/* Allow JS .open class to work with new modal system */
.bh-modal.open {
  display: flex;
}

/* Extra large modal variant for templates browser */
.bh-modal__dialog--xlarge {
  max-width: 1400px;
  width: 95%;
}

@media (max-width: 1500px) {
  .bh-modal__dialog--xlarge {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .bh-modal__dialog--xlarge {
    max-width: 95%;
    width: 95%;
  }
}

/* Template browser chips - darker text for better visibility */
.bh-modal .bh-chip.bh-chip--ghost,
.bh-template-card-use-case .bh-chip.bh-chip--ghost {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.05);
}

.bh-modal .bh-chip.bh-chip--ghost:hover,
.bh-template-card-use-case .bh-chip.bh-chip--ghost:hover {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.08);
}

/* Template card actions container */
.bh-template-card-use-case__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bh-template-card-use-case__actions .bh-button {
  flex: 1;
  justify-content: center;
}

/* Templates modal search row */
#bhBrowseTemplatesModal .bh-templates-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

#bhBrowseTemplatesModal .bh-templates-filter__wrapper {
  width: 100%;
}

.bh-templates-search-row {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.bh-templates-search {
  position: relative;
  width: 40%;
}

@media (max-width: 480px) {
  .bh-templates-search {
    width: 80%;
  }
}

.bh-templates-search__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ash);
  pointer-events: none;
}

.bh-templates-search .bh-input {
  padding-left: 2.5rem;
  border-radius: 999px;
}

.bh-templates-search .bh-input::placeholder {
  color: var(--ash);
}

/* Create Assistant Modal - Instructions Section */
.bh-instructions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bh-instructions-header label {
  margin-bottom: 0;
  flex: 1;
  position: relative;
}

/* Adjust tooltip positioning for instructions header (2-column layout) */
.bh-agent-modal .bh-instructions-header .bh-info-tooltip__content {
  /* Position to stay within left side of the layout */
  left: 0;
  right: auto;
  transform: translateY(0);
  /* Ensure it doesn't overlap with the button on the right */
  max-width: min(320px, calc(60vw - 4rem));
}

/* Required field asterisk */
.bh-required {
  color: #ef4444;
  font-weight: bold;
  margin-left: 2px;
}

/* Tooltip styles now unified above - no duplicate definitions needed */

.bh-instructions-warning {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #92400e;
  border-radius: 0.25rem;
}

.bh-instructions-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.bh-progress-wrap {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bh-progress-bar {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
}

.bh-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bh-error-text {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ---------- Payment modal ---------- */

.bh-payment-modal {
  padding: 2.25rem 2.25rem 2rem;
}

.bh-payment-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-payment-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 1rem;
  background: rgba(129, 140, 248, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
}

.bh-payment-modal__header-text h3 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.bh-payment-modal__header-text p {
  margin: 0;
  color: #a5b4fc;
  font-size: 0.95rem;
}

.bh-payment-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bh-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 991.98px) {
  .bh-payment-layout {
    grid-template-columns: 1fr;
  }
}

/* Loading state */
.bh-payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: #e5e7eb;
}

.bh-payment-loading__spinner {
  position: relative;
  width: 56px;
  height: 56px;
}

.bh-payment-loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid rgba(129, 140, 248, 0.25);
  border-top-color: #a855f7;
  animation: bh-payment-spin 1s linear infinite;
}

.bh-payment-loading__ring:nth-child(2) {
  border-top-color: #22c55e;
  animation-duration: 1.4s;
}

.bh-payment-loading__ring:nth-child(3) {
  border-top-color: #0ea5e9;
  animation-duration: 1.8s;
}

@keyframes bh-payment-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Summary card */
.bh-payment-summary {
  border-radius: 1.25rem;
  background: #050716;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.bh-payment-summary__header {
  margin-bottom: 1rem;
}

.bh-payment-summary__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
}

.bh-payment-summary__header h4 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.bh-payment-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bh-payment-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bh-payment-summary__label {
  color: #9ca3af;
}

.bh-payment-summary__value {
  font-weight: 600;
}

.bh-payment-summary__divider {
  margin: 1rem 0;
  height: 1px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.8), transparent);
}

.bh-payment-summary__divider--subtle {
  opacity: 0.6;
}

.bh-payment-summary__total h5 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.bh-payment-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bh-payment-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.bh-payment-price-row--vat .bh-payment-price-label {
  color: #f97316;
}

.bh-payment-price-row--total {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.bh-payment-price-row--accent {
  margin-top: 0.5rem;
  font-weight: 600;
}

.bh-payment-price-label {
  color: #9ca3af;
}

.bh-payment-price-amount {
  font-weight: 600;
}

.bh-payment-summary__hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Methods header & security */
.bh-payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: #191d33;
  transition: all 0.2s ease;
}


.bh-payment-methods-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bh-payment-methods-section__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.bh-payment-methods-section__header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bh-payment-security {
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #c4d1ff;
}

.bh-payment-security__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.bh-payment-security--subtle {
  background: transparent;
  padding: 0;
  color: #9ca3af;
}

/* Methods list – hooks into existing .bh-payment-methods styles */
.bh-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Add some minor extensions on top of existing payment method styles */
.bh-payment-method__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
/* Right column for radio box in payment method row */
.bh-payment-method__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 72px;
  height: 100%;
}

.bh-payment-method__icon--wallet {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.bh-payment-method__icon--card {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.bh-payment-method__icon--bank {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.bh-payment-method__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.bh-payment-method__badge--primary {
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
}

/* Wallet details */
.bh-payment-wallet {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.86rem;
}

.bh-payment-wallet__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.bh-payment-wallet__label {
  color: #9ca3af;
}

.bh-payment-wallet__amount {
  font-weight: 600;
}

.bh-payment-wallet__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.bh-payment-wallet__status--error {
  color: #fecaca;
}

.bh-payment-wallet__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.bh-payment-wallet__status-dot--ok {
  background: #22c55e;
}

.bh-payment-wallet__status-dot--error {
  background: #ef4444;
}

/* VAT info accordion */
.bh-payment-vat {
  margin-top: 0.75rem;
}

.bh-payment-vat__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.5);
  color: #e5e7eb;
  cursor: pointer;
}

.bh-payment-vat__header:hover {
  border-color: #a855f7;
}

.bh-payment-vat__icon {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: rgba(129, 140, 248, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bh-payment-vat__text h6 {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
}

.bh-payment-vat__text p {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.bh-payment-vat__chevron {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.2s ease;
}

/* Use existing 'rotated' class from your JS logic */
#vat-toggle-icon.rotated .bh-payment-vat__chevron {
  transform: rotate(180deg);
}

.bh-payment-vat__details {
  margin-top: 0.6rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.86rem;
}

.bh-payment-vat__highlight {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.bh-payment-vat__highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
}

.bh-payment-vat__highlight-content h6 {
  margin: 0 0 0.1rem;
}

.bh-payment-vat__highlight-content p {
  margin: 0;
  color: #9ca3af;
}

.bh-payment-vat__price {
  margin-top: 0.4rem;
}

/* Process steps */
.bh-payment-process {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bh-payment-process__step {
  display: flex;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.bh-payment-process__icon {
  width: 28px;
  height: 28px;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
}

.bh-payment-process__content h6 {
  margin: 0 0 0.1rem;
  font-size: 0.88rem;
}

.bh-payment-process__content p {
  margin: 0;
  color: #9ca3af;
}

/* Card brands */
.bh-payment-cards {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bh-payment-cards__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bh-payment-card-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
}

.bh-payment-cards__provider-img {
  height: 52px;
  width: auto;
}

/* Bank transfer mini section */
.bh-payment-bank__time {
  font-size: 0.82rem;
  color: #fbbf24;
}

/* Footer */
.bh-payment-modal__footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bh-payment-modal__footer-actions {
  display: flex;
  gap: 0.75rem;
}

/* ---------- Recurring modal ---------- */

.bh-recurring-modal {
  max-width: 900px;
}

.bh-recurring-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bh-recurring-modal__icon {
  width: 40px;
  height: 40px;
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.bh-recurring-modal__header-text h3 {
  margin: 0 0 0.25rem;
}

.bh-recurring-modal__header-text p {
  margin: 0;
  color: #a5b4fc;
  font-size: 0.95rem;
}

.bh-recurring-modal__body {
  margin-top: 0.5rem;
}

.bh-recurring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .bh-recurring-layout {
    grid-template-columns: 1fr;
  }
}

.bh-recurring-card {
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.25rem 1.5rem;
}

.bh-recurring-card__description {
  font-size: 0.9rem;
  color: #c7d2fe;
}

.bh-recurring-options {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bh-recurring-option input[type="radio"] {
  display: none;
}

.bh-recurring-option__label {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bh-recurring-option__icon {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bh-recurring-option__icon--yes {
  background: rgba(34, 197, 94, 0.18);
  color: #6ee7b7;
}

.bh-recurring-option__icon--no {
  background: rgba(248, 250, 252, 0.08);
  color: #e5e7eb;
}

.bh-recurring-option__content h6 {
  margin: 0 0 0.1rem;
  font-size: 0.95rem;
}

.bh-recurring-option__content p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* highlight checked state */
.bh-recurring-option input[type="radio"]:checked + .bh-recurring-option__label {
  border-color: #8b5cf6;
  background: rgba(88, 28, 135, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

/* Info column */
.bh-recurring-info__card {
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.bh-recurring-info__icon {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: rgba(59, 130, 246, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bfdbfe;
}

.bh-recurring-info__content h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.bh-recurring-info__content p {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.bh-recurring-info__section {
  margin-top: 1rem;
}

.bh-recurring-benefits {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.bh-recurring-steps {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bh-recurring-step {
  display: flex;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.bh-recurring-step__number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.bh-recurring-info__notice {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.03);
  border: 1px solid rgba(248, 250, 252, 0.12);
  font-size: 0.85rem;
}

.bh-recurring-info__notice-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.08);
}

.bh-recurring-info__notice-content h6 {
  margin: 0 0 0.35rem;
}

.bh-recurring-info__notice-content ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Footer */
.bh-recurring-modal__footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bh-recurring-modal__footer-info {
  font-size: 0.85rem;
  color: #9ca3af;
}

.bh-recurring-modal__footer-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

/* ---------- Bank transfer modal ---------- */

.bh-bank-modal {
  max-width: 840px;
}

.bh-bank-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bh-bank-modal__icon {
  width: 40px;
  height: 40px;
  border-radius: 1rem;
  background: rgba(249, 115, 22, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fed7aa;
}

.bh-bank-modal__header-text h3 {
  margin: 0 0 0.25rem;
}

.bh-bank-modal__header-text p {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.bh-bank-modal__body {
  margin-top: 0.5rem;
}

/* Loading & error */
.bh-bank-loading,
.bh-bank-error {
  text-align: center;
  padding: 2.5rem 1rem;
}

.bh-bank-loading__spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.5);
  border-top-color: #f97316;
  animation: bh-payment-spin 1s linear infinite;
}

.bh-bank-error__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fecaca;
  margin-bottom: 0.5rem;
}

/* Content */
.bh-bank-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bh-bank-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Let your JS toggle active state with a class if needed */
.bh-bank-details {
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.25rem 1.5rem;
}

/* Toast for copy */
.toast-notification,
.bh-bank-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  z-index: 1300;
}

/* Footer */
.bh-bank-modal__footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bh-bank-modal__footer-info {
  font-size: 0.85rem;
  color: #9ca3af;
}

.bh-bank-modal__footer-actions {
  display: flex;
  gap: 0.75rem;
}

.bh-bank-notice {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.03);
  border: 1px solid rgba(248, 250, 252, 0.12);
  font-size: 0.86rem;
}

.bh-bank-notice__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.08);
}

.bh-bank-notice__content h5 {
  margin: 0 0 0.35rem;
}

.bh-bank-notice__content ul {
  margin: 0;
  padding-left: 1.1rem;
}


/* =================
   END Payment Modals
    ================= */


/* --- PAYMENT METHOD RADIO BUTTONS ENHANCED STYLE (CENTERED RIGHT, FULL-ROW CLICKABLE) --- */
.bh-payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

/* Hide payment method card if disabled */
.bh-payment-method.disabled {
  display: none !important;
}

/* =================
   PAST SUBSCRIPTIONS SECTION
   Styles for subscription history modal and table
   ================= */

/* Equal height cards for Past Subscriptions and Billing History */
#past-subscription-billing .row {
  display: flex;
  align-items: stretch;
}

#past-subscription-billing .col-lg-6 {
  display: flex;
}

.bh-subscription-history {
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bh-subscription-history .table-responsive {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bh-subscription-history table {
  height: 100%;
}

/* Empty state should also fill available space */
.bh-subscription-history .bh-empty-state {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Pagination at bottom */
#past-subscriptions-pagination {
  margin-top: auto;
  padding-top: 1rem;
}

/* Table overlay loader for page changes */
.bh-table-overlay-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 1rem;
  animation: bh-fade 0.2s ease-in;
}

.bh-table-overlay-loader .bh-inline-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Past Subscriptions Details Modal Body */
.bh-past-subscription-details {
  padding: 0;
}

.bh-details-section {
  padding: 0;
}

.bh-details-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

/* Modal body with lighter background for better contrast */
#pastSubscriptionModal .bh-auth__body {
  background-color: #f8f9fa;
  border-radius: 0.75rem;
}

/* Ensure good contrast for all text in modal */
#pastSubscriptionModal .bh-detail-label,
#pastSubscriptionModal .bh-detail-value,
#pastSubscriptionModal .bh-feature-item,
#pastSubscriptionModal p {
  color: #212529 !important;
}

/* Section backgrounds for better separation */
#pastSubscriptionModal .bh-details-section {
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Details Grid Layout */
.bh-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bh-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bh-detail-label {
  font-size: 0.875rem;
  color: var(--bh-text-secondary, #6c757d);
  font-weight: 500;
}

.bh-detail-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 600;
}

.bh-detail-value code {
  font-size: 0.875rem;
  background-color: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #212529;
  font-family: 'Roboto Mono', monospace;
}

/* Feature List for Extra Options */
.bh-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bh-feature-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #212529;
}

.bh-feature-item i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

/* Empty State (No Past Subscriptions) */
.bh-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.bh-empty-state i {
  opacity: 0.5;
}

.bh-empty-state p {
  margin: 0;
  font-size: 1rem;
  color: var(--bh-text-secondary, #6c757d);
}

/* Large Modal Dialog */
.bh-modal__dialog--large {
  max-width: 900px;
}

/* Auto recharge values display (threshold + amount) */
.bh-auto-recharge-info .bh-auto-recharge-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.bh-auto-recharge-info .bh-auto-recharge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.2));
  background: var(--bs-tertiary-bg, rgba(255, 255, 255, 0.06));
  text-align: center;
}

.bh-auto-recharge-info .bh-auto-recharge-card__label {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.bh-auto-recharge-info .bh-auto-recharge-card__value {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 768px) {
  .bh-auto-recharge-info .bh-auto-recharge-cards {
    grid-template-columns: 1fr;
  }

  .bh-auto-recharge-info .bh-auto-recharge-card {
    min-height: 92px;
  }
}

/* Past Subscriptions Table Hover Effects */
.bh-subscription-table tbody tr {
  transition: background-color 0.2s ease;
}

.bh-subscription-table tbody tr:hover {
  background-color: var(--bh-bg-secondary, #f8f9fa);
}

/* Usage Section Separate Styling */
#usage-section {
  margin-bottom: 1.5rem;
}

/* Responsive Layout for Past Subscriptions */
@media (max-width: 768px) {
  .bh-details-grid {
    grid-template-columns: 1fr;
  }

  .bh-modal__dialog--large {
    max-width: 95%;
  }

  .bh-empty-state {
    padding: 2rem 1rem;
  }

  .bh-details-section h4 {
    font-size: 1rem;
  }

  /* On mobile, reset equal height behavior */
  #past-subscription-billing .row {
    display: block;
  }

  #past-subscription-billing .col-lg-6 {
    display: block;
    margin-bottom: 1rem;
  }

  .bh-subscription-history {
    height: auto;
  }
}

.bh-payment-method__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  min-width: 64px;
  height: 100%;
  box-sizing: border-box;
  padding-right: 1.5rem;
}

.bh-payment-method__actions input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #6f7dfa;
  border-radius: 50%;
  background: #fff;
  outline: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(111,125,250,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-payment-method__actions input[type="radio"]:checked {
  border-color: #9c5bff;
  background: linear-gradient(135deg, #6f7dfa 60%, #9c5bff 100%);
}
.bh-payment-method__actions input[type="radio"]:checked::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 5px;
  left: 5px;
  box-shadow: 0 0 0 2px #9c5bff44;
}
.bh-payment-method__actions input[type="radio"]:focus {
  border-color: #9c5bff;
  box-shadow: 0 0 0 2px #9c5bff44;
}
.bh-payment-method__actions label.bh-payment-method__radio {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: box-shadow 0.2s;
}
.bh-payment-method__actions input[type="radio"]:hover + label.bh-payment-method__radio,
.bh-payment-method__actions label.bh-payment-method__radio:hover {
  box-shadow: none;
}
.bh-payment-method__actions,
.bh-payment-method__actions * {
  pointer-events: none;
}
.bh-payment-method {
  cursor: pointer;
}
.bh-payment-method input[type="radio"] {
  pointer-events: auto;
}
.bh-payment-method:active,
.bh-payment-method:hover {
  background: #232a3d;
}
@media (max-width: 768px) {
  .bh-payment-method__actions {
    min-width: 36px;
    min-height: 36px;
    padding-right: 0.2rem;
  }
  .bh-payment-method__actions input[type="radio"],
  .bh-payment-method__actions label.bh-payment-method__radio {
    width: 18px;
    height: 18px;
  }
}
/* --- END PAYMENT METHOD RADIO BUTTONS ENHANCED STYLE (CENTERED RIGHT, FULL-ROW CLICKABLE) --- */

/* ======================
   PAYMENT SUCCESS PAGE
   ====================== */

   /* Fireworks canvas as background for success page */

#fireworks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}


.bh-success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem 0;
  background: linear-gradient(120deg, #f8f9ff 60%, #eef2ff 100%);
}

.bh-success-container {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(111,125,250,0.10);
  padding: 2.5rem 2.2rem 2rem 2.2rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.bh-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ee7b7 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(16,185,129,0.18);
  position: relative;
}
.bh-success-icon::before {
  content: '\2714';
  font-size: 2.8rem;
  color: #fff;
  font-weight: bold;
  display: block;
  margin: auto;
}

.bh-floating-shapes {
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 0;
}
.bh-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(2px);
}
.bh-shape-1 { width: 60px; height: 60px; background: #6f7dfa; left: 10%; top: 10px; }
.bh-shape-2 { width: 40px; height: 40px; background: #9c5bff; left: 30%; top: 30px; }
.bh-shape-3 { width: 30px; height: 30px; background: #10b981; left: 60%; top: 0; }
.bh-shape-4 { width: 50px; height: 50px; background: #2563eb; left: 80%; top: 20px; }
.bh-shape-5 { width: 25px; height: 25px; background: #fbbf24; left: 90%; top: 40px; }

.confetti {
  position: absolute;
  top: 0;
  width: 12px;
  height: 24px;
  background: linear-gradient(135deg, #6f7dfa, #9c5bff, #10b981, #fbbf24);
  border-radius: 4px;
  opacity: 0.7;
  animation: confetti-fall 2.8s linear infinite;
  z-index: 10;
}
@keyframes confetti-fall {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0.7; }
  80% { opacity: 1; }
  100% { transform: translateY(420px) rotate(360deg); opacity: 0; }
}

.bh-loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.7);
  z-index: 1000;
}

.success-title {
  color: #2563eb;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}
.success-subtitle {
  color: #10b981;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.bh-payment-details {
  background: #f8f9ff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(111,125,250,0.06);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin: 1.5rem 0 1.2rem 0;
  text-align: left;
}
.detail-grid-wrapper {
  margin-bottom: 1.2rem;
}


/* --- DETAIL GRID & ITEMS (SCOPED FOR PAYMENT SUCCESS) --- */
.bh-payment-success-root .detail-grid,
.bh-payment-success-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.7rem;
  margin-bottom: 0.5rem;
}

/* =================
   UPDATE ASSISTANT MODAL - VOICE DEMO SECTION
   ================= */

/* Hidden error message for instructions validation */
#bhUpdateInstrError {
  display: none;
}

/* Empty state for files list */
#bhUpdateAssistantFilesEmpty {
  display: none;
}

/* Voice field wrapper (hidden by default, shown when audio processing is enabled) */
#bhUpdateVoiceFieldWrapper {
  display: none;
}

/* Voice demo container */
#bhUpdateVoiceDemo {
  margin-top: 0.75rem;
  display: none;
}

/* Voice demo label styling */
#bhUpdateVoiceDemo > label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4b5563;
}

/* Voice demo audio player */
#bhUpdateVoiceDemo audio {
  width: 100%;
  max-width: 400px;
}
.bh-payment-success-root .detail-item,
.bh-payment-success-detail-item {
  flex: 1 1 110px;
  background: #fff;
  border-radius: 1rem;
  padding: 1.05rem 1.3rem 0.95rem 1.3rem;
  color: #232a3d;
  box-shadow: 0 2px 12px rgba(111,125,250,0.08);
  margin-bottom: 0.2rem;
  border: 1.5px solid #eef2ff;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.13s;
  position: relative;
  z-index: 1;
}
.bh-payment-success-root .detail-item:hover,
.bh-payment-success-detail-item:hover,
.bh-payment-success-root .detail-item:focus,
.bh-payment-success-detail-item:focus {
  box-shadow: 0 6px 24px rgba(111,125,250,0.16);
  border-color: #eef0ffe6;
  transform: translateY(-2px) scale(1.025);
}
.bh-payment-success-root .detail-label,
.bh-payment-success-detail-item .detail-label {
  font-weight: 700;
  color: #6f7dfa;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.18rem;
  display: block;
}
.bh-payment-success-root .detail-value,
.bh-payment-success-detail-item .detail-value {
  font-size: 1.13rem;
  color: #181e2f;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.05rem;
  word-break: break-word;
}

/* --- SUBSCRIPTION PERIOD --- */
.bh-payment-success-root .subscription-period,
.bh-payment-success-subscription-period {
  margin: 1.2rem 0 0.7rem 0;
  background: linear-gradient(90deg, #eef2ff 60%, #f8f9ff 100%);
  border-radius: 1.1rem;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(111,125,250,0.07);
  border: 1.5px solid #e0e7ff;
}
.bh-payment-success-root .period-info,
.bh-payment-success-period-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.7rem;
}
.bh-payment-success-root .period-item,
.bh-payment-success-period-item {
  flex: 1 1 120px;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 2px 8px rgba(111,125,250,0.06);
  border: 1.2px solid #eef2ff;
}
.bh-payment-success-root .period-label,
.bh-payment-success-period-item .period-label {
  color: #6f7dfa;
  font-size: 1.01rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  display: block;
}
.bh-payment-success-root .period-value,
.bh-payment-success-period-item .period-value {
  color: #181e2f;
  font-size: 1.13rem;
  font-weight: 700;
  margin-top: 0.05rem;
}
.bh-payment-success-root .period-arrow,
.bh-payment-success-period-arrow {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #6f7dfa 0%, #9c5bff 100%);
  border-radius: 2px;
}
.bh-payment-success-root .subscription-status,
.bh-payment-success-subscription-status {
  margin-top: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, #10b981 0%, #6f7dfa 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.01rem;
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  box-shadow: 0 2px 8px rgba(16,185,129,0.10);
  letter-spacing: 0.01em;
  text-align: center;
}

/* --- BUSINESS INFO --- */
.bh-payment-success-root .business-info,
.bh-payment-success-business-info {
  margin-top: 1.2rem;
}
.bh-payment-success-root .business-details,
.bh-payment-success-business-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.7rem;
  margin-bottom: 0.5rem;
}
.bh-payment-success-root .business-item,
.bh-payment-success-business-item {
  flex: 1 1 210px;
  background: #fff;
  border-radius: 1rem;
  padding: 1.05rem 1.3rem 0.95rem 1.3rem;
  color: #232a3d;
  box-shadow: 0 2px 12px rgba(111,125,250,0.08);
  margin-bottom: 0.2rem;
  border: 1.5px solid #eef2ff;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.13s;
  position: relative;
  z-index: 1;
}
.bh-payment-success-root .business-item:hover,
.bh-payment-success-business-item:hover,
.bh-payment-success-root .business-item:focus,
.bh-payment-success-business-item:focus {
  box-shadow: 0 6px 24px rgba(111,125,250,0.16);
  border-color: #6f7dfa44;
  transform: translateY(-2px) scale(1.025);
}
.bh-payment-success-root .business-label,
.bh-payment-success-business-item .business-label {
  font-weight: 700;
  color: #6f7dfa;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.18rem;
  display: block;
}
.bh-payment-success-root .business-value,
.bh-payment-success-business-item .business-value {
  font-size: 1.13rem;
  color: #181e2f;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.05rem;
  word-break: break-word;
}

@media (max-width: 900px) {
  .detail-grid, .business-details {
    gap: 0.7rem 0.7rem;
  }
  .detail-item, .business-item {
    flex: 1 1 140px;
    padding: 0.8rem 0.7rem 0.7rem 0.7rem;
  }
}

@media (max-width: 600px) {
  .detail-grid, .business-details {
    flex-direction: column;
    gap: 0.5rem 0;
  }
  .detail-item, .business-item {
    flex: 1 1 100%;
    padding: 0.7rem 0.5rem 0.6rem 0.5rem;
  }
}
/* 
.subscription-period {
  margin: 1.2rem 0 0.7rem 0;
  background: #eef2ff;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
}
.period-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
}
.period-item {
  flex: 1 1 120px;
}
.period-label {
  color: #6f7dfa;
  font-size: 0.98rem;
  font-weight: 600;
}
.period-value {
  color: #181e2f;
  font-size: 1.08rem;
  font-weight: 600;
}
.period-arrow {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #6f7dfa 0%, #9c5bff 100%);
  border-radius: 2px;
}
.subscription-status {
  margin-top: 0.5rem;
  display: inline-block;
  background: linear-gradient(90deg, #10b981 0%, #6f7dfa 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  box-shadow: 0 2px 8px rgba(16,185,129,0.10);
}
.business-info {
  margin-top: 1.2rem;
}
.business-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}
.business-item {
  flex: 1 1 180px;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.6rem 1rem;
  color: #222;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  margin-bottom: 0.2rem;
}
.business-label {
  font-weight: 600;
  color: #6f7dfa;
  font-size: 1rem;
}
.business-value {
  font-size: 1.08rem;
  color: #181e2f;
  font-weight: 600;
} */
.consent-badge {
  display: inline-block;
  background: linear-gradient(90deg, #10b981 0%, #6f7dfa 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  margin-left: 0.2rem;
}
.consent-badge.inactive {
  background: linear-gradient(90deg, #fbbf24 0%, #ef4444 100%);
}
.wallet-balance {
  margin-top: 1.2rem;
  background: #eef2ff;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  text-align: center;
}
.balance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.balance-item {
  flex: 1 1 120px;
}
.balance-label {
  color: #6f7dfa;
  font-size: 0.98rem;
  font-weight: 600;
}
.balance-value {
  color: #181e2f;
  font-size: 1.08rem;
  font-weight: 600;
}

.bh-next-steps {
  background: #f8f9ff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(111,125,250,0.06);
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  margin: 1.5rem 0 1.2rem 0;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f7dfa, #9c5bff);
  color: #fff;
  font-weight: 800;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(156,91,255,0.16);
  border: 2px solid #fff2;
}
.step-text {
  color: #222;
  font-size: 1.08rem;
  font-weight: 500;
}


/* --- ACTION BUTTONS (IMBUNATATIT) --- */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1.2rem;
  justify-content: center;
  margin-top: 2.2rem;
  padding: 0.5rem 0;
}
.single-action-button {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.action-btn {
  min-width: 160px;
  padding: 0.85rem 2.1rem;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 0.9rem;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(111,125,250,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  margin: 0;
  position: relative;
  z-index: 1;
}
.action-btn.primary {
  background: linear-gradient(90deg, #2563eb 0%, #6f7dfa 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,99,235,0.13);
}
.action-btn.secondary {
  background: #f8f9ff;
  color: #2563eb;
  border: 1.5px solid #2563eb22;
  box-shadow: 0 2px 10px rgba(111,125,250,0.07);
}
.action-btn.primary:hover, .action-btn.primary:focus {
  background: linear-gradient(90deg, #1e40af 0%, #6f7dfa 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,99,235,0.18);
  transform: translateY(-2px) scale(1.03);
}
.action-btn.secondary:hover, .action-btn.secondary:focus {
  background: #e0e7ff;
  color: #1e40af;
  border-color: #2563eb55;
  box-shadow: 0 4px 18px rgba(111,125,250,0.13);
  transform: translateY(-2px) scale(1.03);
}
.action-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    gap: 0.9rem;
    align-items: stretch;
  }
  .action-btn {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 0.85rem 1.1rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bh-success-container {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .bh-payment-details, .bh-next-steps {
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
  }
  .action-buttons {
    flex-direction: column;
    gap: 0.7rem;
  }
  .bh-success-icon {
    width: 60px; height: 60px;
  }
}



/* ================= PAYMENT FAILED PAGE ================= */

/* --- PAYMENT FAILED SCOPED STYLES --- */
.bh-payment-failed-root {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(120deg, #f8d7da 0%, #fff 100%);
  overflow: hidden;
}
.bh-payment-failed-root .bh-payment-failed-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
.bh-payment-failed-root .bh-payment-failed-page {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.08);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bh-payment-failed-root .bh-floating-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.bh-payment-failed-root .bh-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.bh-payment-failed-root .bh-shape-1 { width: 120px; height: 120px; background: #dc3545; top: 5%; left: 10%; }
.bh-payment-failed-root .bh-shape-2 { width: 80px; height: 80px; background: #f8d7da; top: 60%; left: 80%; }
.bh-payment-failed-root .bh-shape-3 { width: 60px; height: 60px; background: #dc3545; top: 80%; left: 20%; }
.bh-payment-failed-root .bh-shape-4 { width: 100px; height: 100px; background: #f8d7da; top: 30%; left: 70%; }
.bh-payment-failed-root .bh-shape-5 { width: 40px; height: 40px; background: #dc3545; top: 50%; left: 40%; }
.bh-payment-failed-root .bh-failed-icon {
  width: 72px;
  height: 72px;
  background: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
}
.bh-payment-failed-root .bh-failed-icon::before {
  content: "\2716";
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  text-align: center;
}
.bh-payment-failed-root .bh-h1.failed-title {
  color: #dc3545;
  margin-bottom: 12px;
  text-align: center;
}
.bh-payment-failed-root .bh-text-large.failed-subtitle {
  color: #212529;
  margin-bottom: 24px;
  text-align: center;
}
.bh-payment-failed-root .bh-error-details {
  width: 100%;
  background: #f8d7da;
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.05);
}
.bh-payment-failed-root .bh-error-details h3 {
  color: #dc3545;
  margin-bottom: 8px;
}
.bh-payment-failed-root .bh-error-main {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}
.bh-payment-failed-root .bh-error-code {
  font-weight: 700;
  color: #dc3545;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 1rem;
}
.bh-payment-failed-root .bh-error-message {
  color: #212529;
  font-size: 1rem;
}
.bh-payment-failed-root .bh-error-description {
  color: #495057;
  font-size: 0.95rem;
}

/* =================
   ACTIVE ACTIONS CARDS (GREEN ACCENT - SIMILAR TO ACTION OPTIONS GRID)
   ================= */

.bh-active-action-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  margin-bottom: 12px;
}

.bh-active-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

.bh-active-action-card:hover::before {
  opacity: 0.1;
}

.bh-active-action-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.bh-active-action-card__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.bh-active-action-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.bh-active-action-card__content {
  flex: 1;
  min-width: 0;
}

.bh-active-action-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 4px;
  line-height: 1.3;
}

.bh-active-action-card__desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bh-active-action-card__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.bh-active-action-card__remove:hover {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.1);
}

.bh-active-action-card__remove:active {
  transform: scale(0.95);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .bh-active-action-card__inner {
    padding: 14px;
    gap: 12px;
  }

  .bh-active-action-card__icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .bh-active-action-card__name {
    font-size: 14px;
  }

  .bh-active-action-card__desc {
    font-size: 12px;
  }

  .bh-active-action-card__remove {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
.bh-payment-failed-root .bh-transaction-details {
  width: 100%;
  margin-bottom: 24px;
}
.bh-payment-failed-root .bh-transaction-details h3 {
  color: #dc3545;
  margin-bottom: 8px;
}
.bh-payment-failed-root .bh-payment-failed-detail-grid-wrapper {
  width: 100%;
  margin-bottom: 12px;
}
.bh-payment-failed-root .bh-payment-failed-detail-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.bh-payment-failed-root .bh-payment-failed-detail-item {
  flex: 1 1 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.04);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
}
.bh-payment-failed-root .detail-label {
  font-size: 0.95rem;
  color: #dc3545;
  font-weight: 600;
}
.bh-payment-failed-root .detail-value {
  font-size: 1.1rem;
  color: #212529;
  font-weight: 700;
}
.bh-payment-failed-root .bh-card-details {
  background: #f8d7da;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}
.bh-payment-failed-root .bh-card-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.bh-payment-failed-root .bh-card-item {
  flex: 1 1 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bh-payment-failed-root .card-label {
  font-size: 0.9rem;
  color: #dc3545;
  font-weight: 600;
}
.bh-payment-failed-root .card-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 700;
}
.bh-payment-failed-root .bh-solutions-section {
  width: 100%;
  margin-bottom: 24px;
}
.bh-payment-failed-root .bh-solutions-section h3 {
  color: #dc3545;
  margin-bottom: 8px;
}
.bh-payment-failed-root .bh-solutions-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.bh-payment-failed-root .bh-solution-item {
  flex: 1 1 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.04);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bh-payment-failed-root .bh-solution-icon {
  width: 32px;
  height: 32px;
  background: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-payment-failed-root .bh-solution-content h4 {
  color: #dc3545;
  margin-bottom: 4px;
}
.bh-payment-failed-root .bh-solution-content p {
  color: #212529;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.bh-payment-failed-root .bh-solution-content ul {
  margin: 0 0 0 16px;
  padding: 0;
  color: #495057;
  font-size: 0.9rem;
}
.bh-payment-failed-root .bh-next-steps {
  width: 100%;
  margin-bottom: 24px;
}
.bh-payment-failed-root .bh-next-steps h3 {
  color: #dc3545;
  margin-bottom: 8px;
}
.bh-payment-failed-root .bh-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-payment-failed-root .bh-step-item {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bh-payment-failed-root .bh-step-number {
  width: 28px;
  height: 28px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.bh-payment-failed-root .bh-step-text {
  color: #212529;
  font-size: 0.98rem;
}
.bh-payment-failed-root .bh-action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
/* Specific failed page buttons */
.bh-payment-failed-root .bh-failed-btn-primary {
  background: #dc3545;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.08);
  border-radius: 8px;
  font-weight: 700;
  padding: 0.85rem 2.1rem;
  min-width: 160px;
  font-size: 1.08rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.bh-payment-failed-root .bh-failed-btn-primary:hover,
.bh-payment-failed-root .bh-failed-btn-primary:focus {
  background: #b71c1c;
}
.bh-payment-failed-root .bh-failed-btn-secondary {
  background: #fff;
  color: #dc3545;
  border: 1.5px solid #dc3545;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.85rem 2.1rem;
  min-width: 160px;
  font-size: 1.08rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.bh-payment-failed-root .bh-failed-btn-secondary:hover,
.bh-payment-failed-root .bh-failed-btn-secondary:focus {
  background: #f8d7da;
  color: #b71c1c;
}
.bh-payment-failed-root .bh-support-info {
  width: 100%;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.bh-payment-failed-root .bh-support-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.04);
  padding: 10px 14px;
  min-width: 160px;
  text-align: center;
}
.bh-payment-failed-root .bh-support-item strong {
  color: #dc3545;
  font-weight: 700;
}
.bh-payment-failed-root .bh-support-item p {
  color: #212529;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .bh-payment-failed-root .bh-payment-failed-container {
    padding: 20px 6px;
  }
  .bh-payment-failed-root .bh-payment-failed-page {
    padding: 18px 6px;
  }
  .bh-payment-failed-root .bh-payment-failed-detail-grid {
    flex-direction: column;
    gap: 8px;
  }
  .bh-payment-failed-root .bh-solutions-grid {
    flex-direction: column;
    gap: 8px;
  }
  .bh-payment-failed-root .bh-action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .bh-payment-failed-root .bh-support-info {
    flex-direction: column;
    gap: 8px;
  }
}



.bh-session-expired {
  max-width: 600px;
}



/* === Custom style for Session Expired Modal (BorgHive) === */
#sessionExpiredModal .bh-session-expired__header {
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

#sessionExpiredModal .bh-session-expired__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#sessionExpiredModal .bh-session-expired__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
}

#sessionExpiredModal .bh-session-expired__actions > button {
  min-width: 140px;
  margin: 0 8px;
}

@media (max-width: 600px) {
  #sessionExpiredModal .bh-session-expired__actions {
    flex-direction: column;
    gap: 16px;
  }
  #sessionExpiredModal .bh-session-expired__actions > button {
    width: 100%;
    min-width: unset;
  }
}



/* ================= PAGINATION ================= */
.bh-pagination {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.bh-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background: none;
  padding: 0;
  border: none;
}
.bh-pagination .page-item {
  display: inline-block;
}
.bh-pagination .page-link {
  color: var(--bh-primary);
  background: var(--bh-white);
  border: 1px solid var(--bh-neutral-very-light);
  border-radius: var(--radius-s);
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border 0.15s;
  box-shadow: 0 1px 2px rgba(102,126,234,0.04);
  outline: none;
}
.bh-pagination .page-link:hover,
.bh-pagination .page-link:focus {
  background: var(--bh-neutral-very-light);
  color: var(--bh-secondary);
  border-color: var(--bh-secondary);
  text-decoration: none;
}
.bh-pagination .page-item.active .page-link {
  background: var(--bh-grad);
  color: var(--bh-white);
  border-color: var(--bh-primary);
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  cursor: default;
}
.bh-pagination .page-item.disabled .page-link {
  color: var(--bh-neutral-light);
  background: var(--paper);
  border-color: var(--bh-neutral-very-light);
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 600px) {
  .bh-pagination .page-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
  }
}
/* ================= END PAGINATION ================= */

/* Website Chatbot Domain feedback */
#bhWebchatDomainFeedback,
#bhWebchatUpdateDomainFeedback {
  display: block !important;
  font-size: 0.78rem;
}

#bhWebchatDomainFeedback.validation-feedback.error,
#bhWebchatUpdateDomainFeedback.validation-feedback.error {
  color: #d9534f;
}

#bhWebchatDomainFeedback.validation-feedback.success,
#bhWebchatUpdateDomainFeedback.validation-feedback.success {
  color: #28a745;
}


/* Contrast text for dark sections */
.bh-section--hero .bh-section__description {
  color: #e5e7fa;
}

/* =================
   GPT Model Badges - Dashboard & Subscription
   ================= */
#dashboardGptCard .badge,
.bh-subscription-plan__tags .badge,
.bh-subscription-package__grid .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  border-radius: var(--radius-full, 999px);
  background: linear-gradient(135deg, #4c5fd7, #5a3a8a);
  color: var(--bh-white, #FFFFFF);
  margin-right: 6px;
  margin-bottom: 6px;
  box-shadow: var(--shadow-small, 0 2px 8px rgba(14, 18, 32, 0.06));
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#dashboardGptCard .badge:hover,
.bh-subscription-plan__tags .badge:hover,
.bh-subscription-package__grid .badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium, 0 4px 16px rgba(14, 18, 32, 0.08));
}

#dashboardGptCard .badge:last-child,
.bh-subscription-plan__tags .badge:last-child,
.bh-subscription-package__grid .badge:last-child {
  margin-right: 0;
}

/* Variant pentru multiple badges - flex wrap */
#dashboardGptCard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #dashboardGptCard .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}
/* ================= END GPT MODEL BADGES ================= */


/* =================
   NEW USER PROMOTION SECTION
   ================= */

.new-user-promotion {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 1rem 0;
}

/* Welcome Banner */
.new-user-promotion .welcome-banner {
  background: var(--bh-grad);
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
}

.new-user-promotion .welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.new-user-promotion .welcome-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.new-user-promotion .welcome-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.new-user-promotion .welcome-content p {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .new-user-promotion .welcome-content h1 {
    font-size: 1.5rem;
  }
  
  .new-user-promotion .welcome-content p {
    font-size: 0.9375rem;
  }
}

/* Free Plan Card */
.new-user-promotion .free-plan-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.new-user-promotion .free-plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bh-grad);
}

.new-user-promotion .plan-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.new-user-promotion .plan-name {
  display: inline-block;
  background: var(--bh-grad);
  color: white;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.new-user-promotion .plan-price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--bh-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
}

.new-user-promotion .plan-billing {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

/* Plan Features */
.new-user-promotion .plan-features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.new-user-promotion .feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.new-user-promotion .feature-item:hover {
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  transform: translateX(4px);
}

.new-user-promotion .feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-grad);
  border-radius: 1rem;
  color: white;
}

.new-user-promotion .feature-icon svg {
  width: 20px;
  height: 20px;
}

.new-user-promotion .feature-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.new-user-promotion .feature-content p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.new-user-promotion .cta-section {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.new-user-promotion .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--bh-grad);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(118, 75, 162, 0.3);
  margin-bottom: 0.75rem;
}

.new-user-promotion .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(118, 75, 162, 0.4);
}

.new-user-promotion .cta-button:active {
  transform: translateY(0);
}

.new-user-promotion .cta-button svg {
  width: 20px;
  height: 20px;
}

.new-user-promotion .cta-note {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Benefits Section */
.new-user-promotion .benefits-section {
  margin-top: 2.5rem;
}

.new-user-promotion .benefits-header {
  text-align: center;
  margin-bottom: 2rem;
}

.new-user-promotion .benefits-header h2 {
  font-size: 1.875rem;
  font-weight: 800;
  background: var(--bh-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.new-user-promotion .benefits-header p {
  font-size: 1rem;
  color: #64748b;
  max-width: 550px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .new-user-promotion .benefits-header h2 {
    font-size: 1.5rem;
  }
  
  .new-user-promotion .benefits-header p {
    font-size: 0.9375rem;
  }
}

/* Benefits Grid */
.new-user-promotion .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .new-user-promotion .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ================= INTEGRATION GUIDE ENHANCEMENTS ================= */
.bh-integration-guide-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(0.5rem, 1.2vw, 1rem);
}

.bh-integration-guide-page .bh-integration-guide-tabs {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}

.bh-integration-guide-page #integrationTabContent,
.bh-integration-guide-page .tab-pane {
  width: 100%;
}

.bh-integration-guide-page .bh-integration-guide {
  margin: 0 auto;
  width: min(100%, 1040px);
}

.bh-integration-guide-page .bh-integration-guide__header {
  max-width: 900px;
  margin-inline: auto;
}

.bh-integration-guide-page .bh-integration-guide__video {
  width: 100%;
  margin-inline: auto;
}

.bh-integration-guide-page .bh-integration-step {
  width: 100%;
  margin-inline: auto;
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bh-integration-guide-page .bh-integration-step__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bh-integration-guide-page .bh-integration-config-card,
.bh-integration-guide-page .bh-code-block,
.bh-integration-guide-page .bh-alert {
  border-radius: 0.95rem;
}

.bh-integration-guide-page .bh-integration-options {
  margin-top: 0.5rem;
}

.bh-integration-guide-page .bh-integration-option-card {
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.bh-integration-guide-page .bh-integration-option__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.bh-integration-guide-page .bh-integration-option__steps {
  margin: 0;
  padding-left: 1.25rem;
}

.bh-integration-guide-page .bh-integration-option__steps li + li {
  margin-top: 0.45rem;
}

@media (max-width: 991.98px) {
  .bh-integration-guide-page {
    max-width: 100%;
    padding-inline: 0;
  }

  .bh-integration-guide-page .bh-integration-guide {
    width: 100%;
  }

  .bh-integration-guide-page .bh-integration-guide-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
}

@media (max-width: 575.98px) {
  .bh-integration-guide-page .bh-integration-step {
    padding: 1.25rem;
  }

  .bh-integration-guide-page .bh-integration-guide__title {
    line-height: 1.2;
  }
}

.new-user-promotion .benefit-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.new-user-promotion .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
}

.new-user-promotion .benefit-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.new-user-promotion .benefit-card h3 svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #764BA2;
}

.new-user-promotion .benefit-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .new-user-promotion .free-plan-card {
    padding: 1.5rem;
  }
  
  .new-user-promotion .plan-price {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .new-user-promotion {
    padding: 0.5rem 0;
  }
  
  .new-user-promotion .welcome-banner {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
  }
  
  .new-user-promotion .free-plan-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
  
  .new-user-promotion .plan-price {
    font-size: 2rem;
  }
  
  .new-user-promotion .benefits-section {
    margin-top: 1.5rem;
  }
  
  .new-user-promotion .benefits-header {
    margin-bottom: 1.5rem;
  }

  .new-user-promotion .benefit-card {
    padding: 1.25rem;
  }

  .new-user-promotion .benefit-card h3 {
    font-size: 1rem;
  }

  .new-user-promotion .benefit-card h3 svg {
    width: 20px;
    height: 20px;
  }
}

/* ================= END NEW USER PROMOTION SECTION ================= */


/* =================
   UPGRADE INVITATION SECTION (Expired FREE Plan)
   ================= */

.upgrade-invitation {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 1.5rem 0;
}

/* Expired Trial Banner */
.upgrade-invitation .expired-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 25px 60px rgba(251, 191, 36, 0.15);
}

.upgrade-invitation .expired-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.upgrade-invitation .expired-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.upgrade-invitation .expired-content h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.upgrade-invitation .expired-content p {
  font-size: 1rem;
  color: #78350f;
  margin: 0;
}

/* Plans Comparison Section */
.upgrade-invitation .plans-comparison {
  margin-bottom: 2.5rem;
}

.upgrade-invitation .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.upgrade-invitation .section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--bh-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.upgrade-invitation .section-header p {
  font-size: 1.0625rem;
  color: #64748b;
}

/* Plans Grid */
.upgrade-invitation .plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.upgrade-invitation .upgrade-plan-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.upgrade-invitation .upgrade-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.upgrade-invitation .upgrade-plan-card--featured {
  border: 2px solid rgba(102, 126, 234, 0.4);
  box-shadow: 0 40px 80px rgba(102, 126, 234, 0.15);
}

.upgrade-invitation .featured-ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--bh-grad);
  color: white;
  padding: 0.4rem 1.25rem;
  border-radius: 0 1.75rem 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.upgrade-invitation .plan-badge-container {
  margin-bottom: 1.5rem;
}

.upgrade-invitation .plan-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.upgrade-invitation .plan-badge--standard {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.upgrade-invitation .plan-badge--pro {
  background: var(--bh-grad);
  color: white;
}

.upgrade-invitation .plan-price-section {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.upgrade-invitation .plan-price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--bh-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.upgrade-invitation .plan-billing {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

.upgrade-invitation .plan-description {
  margin-bottom: 1.5rem;
}

.upgrade-invitation .plan-description p {
  font-size: 0.9375rem;
  color: #64748b;
  text-align: center;
  margin: 0;
}

.upgrade-invitation .plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upgrade-invitation .plan-features-list h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.upgrade-invitation .feature-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: background 0.3s ease;
}

.upgrade-invitation .feature-row:hover {
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.upgrade-invitation .feature-row svg {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.upgrade-invitation .feature-row span {
  font-size: 0.9375rem;
  color: #475569;
}

/* CTA Section */
.upgrade-invitation .upgrade-cta-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05);
  margin-bottom: 3rem;
}

.upgrade-invitation .upgrade-cta-section h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.upgrade-invitation .upgrade-cta-section > p {
  font-size: 1.0625rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.upgrade-invitation .upgrade-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  background: var(--bh-grad);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(118, 75, 162, 0.3);
  margin-bottom: 0.75rem;
}

.upgrade-invitation .upgrade-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(118, 75, 162, 0.4);
  color: white;
  text-decoration: none;
}

.upgrade-invitation .upgrade-cta-button:active {
  transform: translateY(0);
}

.upgrade-invitation .upgrade-cta-button svg {
  width: 20px;
  height: 20px;
}

.upgrade-invitation .upgrade-note {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.75rem;
}

/* Benefits Section */
.upgrade-invitation .upgrade-benefits {
  text-align: center;
}

.upgrade-invitation .upgrade-benefits h3 {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--bh-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.upgrade-invitation .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.upgrade-invitation .benefit-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.upgrade-invitation .benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
}

.upgrade-invitation .benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-grad);
  border-radius: 1rem;
  color: white;
}

.upgrade-invitation .benefit-icon svg {
  width: 28px;
  height: 28px;
}

.upgrade-invitation .benefit-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.upgrade-invitation .benefit-item p {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .upgrade-invitation .expired-content {
    flex-direction: column;
    text-align: center;
  }
  
  .upgrade-invitation .expired-icon {
    font-size: 2.5rem;
  }

  .upgrade-invitation .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .upgrade-invitation {
    padding: 1rem 0;
  }

  .upgrade-invitation .expired-banner {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 1.5rem;
  }

  .upgrade-invitation .expired-content h1 {
    font-size: 1.5rem;
  }

  .upgrade-invitation .expired-content p {
    font-size: 0.9375rem;
  }

  .upgrade-invitation .section-header h2 {
    font-size: 1.5rem;
  }

  .upgrade-invitation .upgrade-plan-card {
    padding: 1.5rem;
  }

  .upgrade-invitation .plan-price {
    font-size: 2.5rem;
  }

  .upgrade-invitation .upgrade-cta-section {
    padding: 2rem 1.5rem;
  }

  .upgrade-invitation .upgrade-cta-section h3 {
    font-size: 1.5rem;
  }

  .upgrade-invitation .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .upgrade-invitation .benefit-item {
    padding: 1.25rem;
  }

  .upgrade-invitation .benefit-icon {
    width: 48px;
    height: 48px;
  }

  .upgrade-invitation .benefit-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ================= END UPGRADE INVITATION SECTION ================= */



.bh-signup__change_password_help {
  font-size: 0.85rem;
  color: #9aa4d5;
}



/* ========================================================
   Custom styles for 2FA Authentication Modal (BorgHive)
   ======================================================== */


.bh-auth__step {
  display: none;
}

.bh-auth__step.is-active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bh-auth__step-title {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 16px;
}

.bh-auth__step-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 25px;
}

.bh-auth__step-timer {
  font-size: 0.9rem;
  color: #94a3b8;
}

.bh-auth__step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bh-auth__step-submit {
  margin-top: 30px;
}

/* Phone Number Modal Specific Styles */
#changePhoneNumberModal .bh-auth__field select.bh-input {
  color: #fff;
  background: rgba(8, 8, 20, 0.75);
}

#changePhoneNumberModal .bh-auth__field select option {
  background: rgba(8, 8, 20, 0.95);
  color: #fff;
  padding: 0.5rem;
}

/* Cancel Subscription Modal & Manage Plan Modal - Select Styles */
#cancelSubscriptionModal .bh-auth__field select.bh-input,
#managePlanModal .bh-auth__field select.bh-input {
  color: #000;
  background: #fff;
}

#cancelSubscriptionModal .bh-auth__field select option,
#managePlanModal .bh-auth__field select option {
  background: #fff;
  color: #000;
  padding: 0.5rem;
}

#cancelSubscriptionModal .bh-auth__field select option:hover,
#managePlanModal .bh-auth__field select option:hover {
  background: #f0f0f0;
}

#cancelSubscriptionModal .bh-auth__field textarea.bh-input,
#managePlanModal .bh-auth__field textarea.bh-input {
  color: #000;
  background: #fff;
}

/* Account Type Modal - Readonly inputs */
#accountTypeModal .bh-input:read-only {
  color: #fff;
  background: rgba(8, 8, 20, 0.75);
}

/* Phone Country Selector Custom Dropdown */
.phone-country-selector {
  position: relative;
}

.phone-country-input {
  cursor: pointer;
}

.phone-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: rgba(8, 8, 20, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  margin-top: 0.5rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.phone-country-dropdown::-webkit-scrollbar {
  width: 6px;
}

.phone-country-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.phone-country-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.phone-country-dropdown.is-open {
  display: block;
}

.phone-country-option {
  padding: 0.75rem 1rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-country-option:last-child {
  border-bottom: none;
}

.phone-country-option:hover,
.phone-country-option.is-highlighted {
  background: rgba(181, 140, 255, 0.2);
}

.phone-country-option.is-hidden {
  display: none;
}

.phone-country-option .country-name {
  font-weight: 500;
}

.phone-country-option .country-code {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* ========================================================
   End Custom styles for 2FA Authentication Modal (BorgHive)
   ======================================================== */

/* ================= BUSINESS DETAILS MANUAL FORM ================= */
#businessDetailsManual {
  display: none;
}

#businessDetailsManual .business-manual-info {
  margin-top: 24px;
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 4px;
}

#businessDetailsManual .business-manual-info p {
  margin: 0;
  color: #f7f9ff;
  font-size: 0.95rem;
  line-height: 1.4;
}

#businessDetailsManual h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: center;
}

/* Dropdown styling for businessDetailsManual */
#businessDetailsManual select.bh-input {
  background-color: #1f2937;
  color: #f3f4f6;
}

#businessDetailsManual select.bh-input option {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 8px;
}

#businessDetailsManual select.bh-input option:checked {
  background: linear-gradient(#3b82f6, #3b82f6);
  background-color: #3b82f6;
  color: #ffffff;
}

/* ================= GOOGLE ACCOUNT CONNECTION (PROFILE) ================= */
#google-link-card {
  display: none;
}

#google-link-card .google-connect-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 12px;
}

#google-link-card .google-linked-info {
  display: none;
  text-align: center;
  margin-bottom: 12px;
}

#google-link-card .google-linked-label {
  margin: 0;
  font-size: 0.95rem;
}

#google-link-card .google-linked-actions {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

#google-link-card .google-linked-address {
  color: var(--card-foreground);
}

#google-link-card .google-unlink-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

#google-link-card #g_id_signin_container {
  display: none; /* Hidden by default, shown by JS when no Gmail linked */
}

#google-link-card .google-link-note {
  display: none; /* Hidden by default, shown by JS when no Gmail linked */
  margin-top: 12px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}


/* ================================================
   SIMILAR BUSINESSES SECTION (Profile Page)
   ================================================ */

#similar-businesses-card {
  display: none; /* Hidden by default, shown by JS if similar businesses exist */
}

.similar-businesses-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Main Business Item Card */
.bh-similar-business-item {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 1.5rem;
  background: var(--card-background, #ffffff);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bh-similar-business-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9c5bff 0%, #7c3aed 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bh-similar-business-item:hover {
  border-color: var(--primary-color, #9c5bff);
  box-shadow: 0 8px 24px rgba(156, 91, 255, 0.15);
  transform: translateY(-2px);
}

.bh-similar-business-item:hover::before {
  opacity: 1;
}

/* Header Section */
.bh-similar-business-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.bh-similar-business-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color, #9c5bff) 0%, #7c3aed 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(156, 91, 255, 0.2);
}

.bh-similar-business-title-group {
  flex: 1;
  min-width: 0;
}

.bh-similar-business-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #1a202c);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.3px;
}

.bh-similar-business-cui {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary, #718096);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.bh-similar-business-cui strong {
  color: var(--text-primary, #1a202c);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* Details Section */
.bh-similar-business-details {
  margin-top: 0;
}

.bh-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Detail Field */
.bh-detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bh-detail-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #718096);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bh-detail-label i {
  opacity: 0.7;
  width: 16px;
  height: 16px;
}

/* Blurred Value (for sensitive data) */
.bh-blurred-value {
  padding: 0.75rem;
  background: var(--input-background, #f7fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  filter: blur(5px);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 500;
  color: var(--text-primary, #1a202c);
  min-height: 40px;
  display: flex;
  align-items: center;
  position: relative;
}

.bh-blurred-value:hover {
  background: var(--input-hover-background, #edf2f7);
  border-color: var(--primary-color, #9c5bff);
  box-shadow: 0 2px 8px rgba(156, 91, 255, 0.1);
}

.bh-blurred-value:focus {
  outline: none;
  border-color: var(--primary-color, #9c5bff);
  box-shadow: 0 0 0 3px rgba(156, 91, 255, 0.1);
}

/* Hint text for blurred values */
.bh-detail-hint {
  font-size: 0.75rem;
  color: var(--text-secondary, #718096);
  opacity: 0.7;
  margin-top: -0.25rem;
}

/* Regular Detail Value (not blurred) */
.bh-detail-value {
  padding: 0.75rem;
  background: var(--input-background, #f7fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-primary, #1a202c);
  min-height: 40px;
  display: flex;
  align-items: center;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .bh-similar-business-item {
    padding: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .bh-similar-business-header {
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .bh-similar-business-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .bh-similar-business-title {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }

  .bh-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bh-detail-label {
    font-size: 0.8125rem;
  }
}

/* Section Header Gradient Icons */
.bh-section-icon-gradient {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.bh-subscription-plan__actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}


/* =================
    ACTIONS CONFIGURATION SECTION - ENHANCED DASHBOARD STYLE
    ================= */

.bh-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  border-radius: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Header Section with Stats */
.bh-actions-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(153, 102, 255, 0.02) 100%);
  border: none;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bh-actions-header__content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
  min-width: 300px;
}

.bh-actions-header__icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.bh-actions-header__text h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
}

.bh-actions-header__text .bh-dashboard-card__note {
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.bh-actions-header__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bh-action-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border-radius: 0.875rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bh-action-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.bh-action-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bh-action-stat--muted .bh-action-stat__value {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Two Column Grid Layout */
.bh-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .bh-actions-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.bh-actions-column {
  display: flex;
  flex-direction: column;
}

/* Card Container Styling */
.bh-actions-card-container {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: all 0.3s ease;
}

.bh-actions-card-container:hover {
  border-color: rgba(102, 126, 234, 0.15);
}

/* Gate System: Allow integrations, block add-ons */
.bh-actions-card-container[data-gate="closed"] {
  position: relative;
}

/* Block ONLY add-on actions when gate is closed */
.bh-actions-card-container[data-gate="closed"] [data-gated="requires-integration"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Card Header */
.bh-actions-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(153, 102, 255, 0.01) 100%);
}

.bh-actions-card-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bh-actions-card-header h4 i {
  color: #667eea;
  font-size: 1rem;
}

.bh-actions-pill {
  display: inline-block;
  background: #eef2ff;
  color: #667eea;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.bh-actions-helper {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Card Body */
.bh-actions-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

/* Scrollable Container for Action Options Only */
.bh-actions-scroll-container {
  flex: 1;
  overflow-y: auto;
  max-height: 500px;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.2) transparent;
}

.bh-actions-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.bh-actions-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.2);
  border-radius: 999px;
}

.bh-actions-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.3);
}

/* Active Actions List */
.bh-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.bh-actions-list:empty::after {
  content: 'No actions selected yet';
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
  font-size: 0.95rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.1);
}

/* Empty State - No Actions */
.bh-no-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(153, 102, 255, 0.02) 100%);
  border: 1.5px dashed rgba(102, 126, 234, 0.2);
  border-radius: 1.1rem;
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
}

.bh-no-actions:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(153, 102, 255, 0.03) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.bh-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(153, 102, 255, 0.02) 100%);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 0.875rem;
  transition: all 0.2s ease;
}

.bh-action-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(153, 102, 255, 0.04) 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.bh-action-info {
  flex: 1;
}

.bh-action-name {
  display: block;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.2rem;
}

.bh-action-item .button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.bh-action-item .button.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.bh-action-item .button.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Action Types Grid */
.bh-action-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

/* Action Option Styling */
.bh-action-option {
  position: relative;
  cursor: pointer;
}

.bh-action-option input {
  display: none;
}

.bh-action-option__inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  border: 1.5px solid #e5e7f0;
  border-radius: 1rem;
  background: #fff;
  transition: all 0.25s ease;
}

.bh-action-option:has(input:checked) .bh-action-option__inner {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(153, 102, 255, 0.04) 100%);
  border-color: #667eea;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.12);
}

.bh-action-option:not(.bh-action-option--coming-soon):hover .bh-action-option__inner {
  border-color: rgba(102, 126, 234, 0.4);
  background: #f9fafb;
}

.bh-action-option--coming-soon .bh-action-option__inner {
  opacity: 0.6;
  cursor: not-allowed;
}

.bh-action-option--coming-soon:hover .bh-action-option__inner {
  border-color: #e5e7f0;
  background: #fff;
}

.bh-action-option__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.875rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #667eea;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bh-action-option:has(input:checked) .bh-action-option__icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.bh-action-option__content {
  flex: 1;
  min-width: 0;
}

.bh-action-option__name {
  display: block;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.bh-action-option__desc {
  display: block;
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 0;
}

.bh-action-option__checkbox {
  width: 24px;
  height: 24px;
  border-radius: 0.6rem;
  background: #f0f3ff;
  border: 2px solid #e5e7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.bh-action-option:has(input:checked) .bh-action-option__checkbox {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #fff;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.25);
}

/* Disabled/Locked States */
.bh-action-option.is-disabled .bh-action-option__inner,
.bh-action-option.is-locked .bh-action-option__inner {
  opacity: 0.55;
  border-color: #e5e7f0;
  background: #f9fafb;
  cursor: not-allowed;
}

.bh-action-option.is-disabled .bh-action-option__icon,
.bh-action-option.is-locked .bh-action-option__icon {
  background: #e5e7f0;
  color: #9ca3af;
}

.bh-action-option.is-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.02);
  border-radius: 1.1rem;
  pointer-events: none;
}

/* Coming Soon Styling */
.bh-action-option--coming-soon .bh-action-option__icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(153, 102, 255, 0.08) 100%);
  color: #667eea;
}

.bh-action-option--coming-soon .bh-action-option__checkbox {
  display: none;
}

/* Gate Message for Closed State - Visual only */
.bh-actions-card-container[data-gate="closed"]::after {
  content: 'First, select an integration (WhatsApp or Website Chatbot)';
  position: absolute;
  top: -2.5rem;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(153, 102, 255, 0.95) 100%);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  pointer-events: none;
}

/* Actions Footer - Static at bottom */
.bh-actions-footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(153, 102, 255, 0.01) 100%);
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

.bh-action-btn-primary {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.bh-action-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.bh-action-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.bh-action-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  box-shadow: none;
}

/* Loading State */
.bh-loading-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: #9ca3af;
}

.bh-actions-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: bh-actions-spin 0.8s linear infinite;
}

@keyframes bh-actions-spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .bh-actions-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bh-actions-header__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .bh-actions-grid {
    grid-template-columns: 1fr;
  }

  .bh-action-option__inner {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .bh-action-option__icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .bh-action-option__name {
    font-size: 0.9rem;
  }

  .bh-action-option__desc {
    font-size: 0.8rem;
  }
}


/* ===================================================
   Next Month Plan Price Section
   =================================================== */

.bh-next-month-price-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem;
  background: #fcfcff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bh-next-month-price-section__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bh-next-month-price-section__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4c5fd7;
}

/* ===================================================
   Next Month Modal - Dropdown Options Styling
   =================================================== */

#nextMonthModal .bh-auth__field select option {
  background: transparent;
  color: inherit;
  padding: 0.5rem;
}

/* ===================================================
   Usage Section Layout
   =================================================== */

.bh-usage-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.bh-usage-section h3 {
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.bh-usage-section__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  flex: 1;
}

.bh-usage-section__item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bh-usage-section__item .bh-subscription-progress {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.bh-usage-section__item .progress {
  height: 8px;
  flex-shrink: 0;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.1);
}

.bh-usage-section__item .progress-bar {
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .bh-usage-section {
    min-height: 350px;
  }

  .bh-usage-section__container {
    gap: 1.5rem;
  }
}

/* ================= ASSISTANTS EMPTY STATE CARD ================= */
.bh-assistants-empty-card-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  margin-top: 40px;
}

.bh-agent-card--empty {
  max-width: 400px;
  text-align: center;
}

.bh-agent-card__header--empty {
  flex-direction: column;
  gap: 20px;
}

.bh-agent-card__avatar--empty {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
}

.bh-agent-card__avatar--empty img {
  display: none;
}

.bh-agent-card__emoji {
  font-size: 48px;
  line-height: 1;
}

.bh-agent-card__actions--empty {
  justify-content: center;
}

.bh-agent-card__button--empty {
  margin-top: 20px;
}

/* ================= END ASSISTANTS EMPTY STATE CARD ================= */

/* ================= ASSISTANTS CARD AVATAR & CONNECTIONS ================= */
.bh-agent-card__avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 25px;
  color: #ffffff;
  background: var(--avatar-bg, linear-gradient(135deg, #1f6feb, #0f172a));
  letter-spacing: 0.5px;
}

.bh-agent-card {
  margin-bottom: 16px;
}

.bh-agent-card:last-child {
  margin-bottom: 0;
}

.bh-agent-card__connections {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bh-agent-connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bh-agent-connection i {
  font-size: 12px;
}

.bh-agent-connection:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.bh-agent-connection--website {
  background: #e0f2fe;
  color: #0369a1;
}

.bh-agent-connection--whatsapp {
  background: #dcfce7;
  color: #166534;
}

.bh-agent-card__connections--empty {
  display: inline-flex;
  align-items: center;
}

.bh-agent-card__no-connections {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  background: #f3f4f6;
  color: #6b7280;
}

.bh-agent-card__no-connections i {
  font-size: 12px;
  opacity: 0.6;
}

/* ================= END ASSISTANTS CARD AVATAR & CONNECTIONS ================= */

/* Update assistant modal - empty files state */
#bhUpdateAssistantFilesEmpty {
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px 16px;
  background: #f9fafb;
}

/* ================= TEST ASSISTANT MODAL STYLES ================= */

/* Test Modal Container - extends base modal styles */
.bh-test-modal {
  z-index: 9999;
}

.bh-test-modal .bh-modal__dialog {
  max-width: 750px;
  height: 700px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  box-shadow: 0 20px 60px -15px rgba(102, 126, 234, 0.25),
              0 0 0 1px rgba(102, 126, 234, 0.05);
  overflow: hidden;
}

.bh-test-modal .bh-modal__header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.bh-modal__header-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bh-test-modal .bh-modal__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.bh-test-modal .bh-modal__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--bh-color-text-primary, #1f2937);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bh-test-modal .bh-modal__title i {
  font-size: 1.25rem;
  color: #667eea;
}

.bh-test-modal .bh-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: var(--bh-color-text-secondary, #6b7280);
}

.bh-test-modal .bh-modal__close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Test Modal Body - chat messages container */
.bh-test-modal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bh-color-bg-secondary, #f9fafb);
  overflow: hidden;
}

/* Actions Section - Reset Button Area */
.bh-test-modal__actions {
  padding: 1rem 1.75rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Small Button Variant - Used across multiple components */
.bh-button--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  min-width: auto;
}

/* Reset Button */
.bh-test-modal__reset-btn {
  white-space: nowrap;
}

.bh-test-modal__reset-btn i {
  font-size: 0.875rem;
}

.bh-test-modal__reset-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  transform: none !important;
}

/* Messages Container - Scrollable */
.bh-test-modal__messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.bh-test-modal__messages::-webkit-scrollbar {
  width: 6px;
}

.bh-test-modal__messages::-webkit-scrollbar-track {
  background: transparent;
}

.bh-test-modal__messages::-webkit-scrollbar-thumb {
  background: var(--bh-color-border, #d1d5db);
  border-radius: 3px;
}

.bh-test-modal__messages::-webkit-scrollbar-thumb:hover {
  background: var(--bh-color-text-secondary, #9ca3af);
}

/* Message Styling - DEPRECATED: See UX ENHANCEMENTS section below for new styles */

/* Test Modal Footer - Input Area */
.bh-test-modal .bh-modal__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bh-color-bg-primary, #ffffff);
  border-top: 2px solid var(--bh-color-border, #e5e7eb);
  padding: 1.75rem;
}

.bh-test-modal__input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.bh-test-modal__textarea {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 0.625rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: none;
  max-height: 5rem;
  min-height: 2.75rem;
  transition: all 0.2s ease;
  background: white;
  color: var(--bh-color-text-primary, #1f2937);
}

.bh-test-modal__textarea::placeholder {
  color: var(--bh-color-text-secondary, #9ca3af);
}

.bh-test-modal__textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.bh-test-modal__textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f9fafb;
  border-color: #e5e7eb;
}

.bh-test-modal__send-btn {
  white-space: nowrap;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bh-test-modal__send-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.bh-test-modal__send-btn:not(:disabled):active {
  transform: translateY(0);
}

.bh-test-modal__send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  box-shadow: none;
}

.bh-test-modal__footer-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--bh-color-text-secondary, #6b7280);
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-radius: 0.5rem;
  border-left: 3px solid #fbbf24;
  line-height: 1.5;
}

.bh-test-modal__footer-note strong {
  color: var(--bh-color-text-primary, #1f2937);
  font-weight: 600;
}

.bh-test-modal__footer-note i {
  color: #fbbf24;
  margin-right: 0.375rem;
}

/* Animations */
@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.75rem);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .bh-test-modal .bh-modal__dialog {
    max-width: 92%;
    height: 80vh;
  }
}

@media (max-width: 768px) {
  .bh-test-modal .bh-modal__dialog {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .bh-test-modal .bh-modal__header {
    padding: 1.25rem 1.5rem;
    flex-wrap: nowrap;
  }

  .bh-test-modal .bh-modal__header::before {
    height: 2px;
  }

  .bh-test-modal .bh-modal__title {
    font-size: 1.125rem;
  }

  .bh-test-modal .bh-modal__title i {
    font-size: 1rem;
  }

  .bh-modal__header-content {
    gap: 0.75rem;
  }

  .bh-test-modal__reset-btn {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }

  .bh-test-modal .bh-modal__header {
    padding: 1.25rem 1.5rem;
  }

  .bh-test-modal .bh-modal__close {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }

  .bh-test-modal .bh-modal__footer {
    padding: 1.25rem 1.5rem;
  }

  .bh-test-modal__input-group {
    gap: 0.5rem;
  }

  .bh-test-modal__action-buttons {
    gap: 0.375rem;
    margin-right: 0.375rem;
  }

  .bh-test-modal__action-btn {
    min-width: 38px;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
  }

  .bh-test-modal__textarea {
    font-size: 1rem;
    padding: 0.75rem 0.875rem;
  }

  .bh-test-modal__send-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .bh-test-modal__footer-note {
    font-size: 0.75rem;
    padding: 0.625rem 0.875rem;
  }
}

/* ========================
   TEST MODAL ENHANCEMENTS
   ======================== */

/* Action Buttons Container */
.bh-test-modal__action-buttons {
  display: flex;
  gap: 0.5rem;
  margin-right: 0.5rem;
  align-items: center;
}

.bh-test-modal__action-btn {
  background: white;
  border: 1px solid rgba(102, 126, 234, 0.15);
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
  min-width: 42px;
  min-height: 42px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Image button styling */
#bhTestImageButton {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.2);
}

#bhTestImageButton i {
  display: inline-flex;
  font-size: 1.125rem;
  line-height: 1;
}

#bhTestImageButton:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
  border-color: #ec4899;
  color: #db2777;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
  transform: translateY(-2px);
}

/* Audio button styling */
#bhTestAudioButton {
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.2);
}

#bhTestAudioButton i {
  display: inline-flex;
  font-size: 1.125rem;
  line-height: 1;
}

#bhTestAudioButton:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-color: #8b5cf6;
  color: #7c3aed;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.bh-test-modal__action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.bh-test-modal__action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.bh-test-modal__action-btn:disabled:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Preview Container - Modal for Image/Audio */
.bh-test-modal__preview-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3),
              0 0 0 1px rgba(102, 126, 234, 0.1);
  z-index: 10001;
  min-width: 420px;
  max-width: 600px;
  max-height: 75vh;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: bh-preview-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bh-preview-slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.bh-test-modal__preview-container[style*="display: block"],
.bh-test-modal__preview-container[style*="display: flex"] {
  display: flex !important;
}

/* Preview Header */
.bh-test-modal__preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  flex-shrink: 0;
}

.bh-test-modal__preview-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.bh-test-modal__preview-header h4 i {
  font-size: 1rem;
  color: #667eea;
}

.bh-test-modal__preview-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s;
  line-height: 1;
}

.bh-test-modal__preview-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Preview Content Area */
.bh-test-modal__preview-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(75vh - 80px);
}

.bh-test-modal__preview-content::-webkit-scrollbar {
  width: 6px;
}

.bh-test-modal__preview-content::-webkit-scrollbar-track {
  background: transparent;
}

.bh-test-modal__preview-content::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.2);
  border-radius: 3px;
}

.bh-test-modal__preview-content::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.3);
}

/* Preview Content Items */
#bhTestImagePreview {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  max-height: 350px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

#bhTestImageCaption,
.bh-test-modal__preview-content input[type="text"] {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
  color: #1f2937;
}

#bhTestImageCaption:focus,
.bh-test-modal__preview-content input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#bhTestImageCaption::placeholder,
.bh-test-modal__preview-content input[type="text"]::placeholder {
  color: #9ca3af;
}

/* Audio Controls */
.bh-test-modal__audio-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

#bhTestSendImageBtn,
#bhTestSendAudioBtn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#bhTestSendImageBtn:hover,
#bhTestSendAudioBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

#bhTestSendImageBtn:active,
#bhTestSendAudioBtn:active {
  transform: translateY(0);
}

#bhTestDeleteAudioBtn,
#bhTestStopAudioBtn {
  background: white;
  color: #6b7280;
  border: 1px solid rgba(102, 126, 234, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

#bhTestDeleteAudioBtn {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

#bhTestDeleteAudioBtn:hover {
  background: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
  color: #dc2626;
}

#bhTestStopAudioBtn:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: #667eea;
  color: #667eea;
}

.bh-test-modal__audio-timer {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #667eea;
  min-width: 60px;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 0.5rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

#bhTestAudioPreview {
  width: 100%;
  border-radius: 0.625rem;
  outline: none;
}

/* Preview Overlay Backdrop */
.bh-test-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  animation: bh-overlay-fade-in 0.2s ease;
}

@keyframes bh-overlay-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Show overlay when either preview container is visible */
#bhTestImagePreviewContainer[style*="display: block"] ~ .bh-test-preview-overlay,
#bhTestImagePreviewContainer[style*="display: flex"] ~ .bh-test-preview-overlay,
#bhTestAudioPreviewContainer[style*="display: block"] ~ .bh-test-preview-overlay,
#bhTestAudioPreviewContainer[style*="display: flex"] ~ .bh-test-preview-overlay {
  display: block !important;
}

/* Responsive Design for Preview */
@media (max-width: 768px) {
  .bh-test-modal__preview-container {
    min-width: 90vw;
    max-width: 95vw;
    max-height: 80vh;
  }

  .bh-test-modal__preview-header {
    padding: 1rem 1.25rem;
  }

  .bh-test-modal__preview-header h4 {
    font-size: 1rem;
  }

  .bh-test-modal__preview-content {
    padding: 1rem;
  }

  #bhTestImagePreview {
    max-height: 250px;
  }

  .bh-test-modal__audio-controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  #bhTestSendImageBtn,
  #bhTestSendAudioBtn,
  #bhTestDeleteAudioBtn,
  #bhTestStopAudioBtn {
    width: 100%;
    justify-content: center;
  }
}

/* Message Content - Image */
.bh-test-message__content--image {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.bh-test-message__content--image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  max-height: 250px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bh-test-message__caption {
  font-size: 12px;
  font-style: italic;
  margin-top: 4px;
}

/* Message Content - Audio */
.bh-test-message__content--audio {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 220px;
  max-width: 320px;
}

.bh-test-message__content--audio audio {
  max-width: 100%;
  max-width: 300px;
  flex: 1;
}

/* Typing Indicator */
.bh-typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
}

.bh-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  animation: bh-typing-animation 1.4s infinite;
}

.bh-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.bh-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bh-typing-animation {
  0%, 60%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

/* Modal Overlay for Preview */
.bh-test-modal__preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.bh-test-modal__preview-overlay.active {
  display: block;
}

/* Responsive Design for Preview */
@media (max-width: 768px) {
  .bh-test-modal__preview-container {
    min-width: auto;
    width: 90vw;
    max-height: 80vh;
  }

  .bh-test-modal__action-buttons {
    gap: 4px;
    margin-right: 4px;
  }

  .bh-test-modal__action-btn {
    padding: 6px 10px;
    font-size: 14px;
  }

  .bh-test-modal__reset-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .bh-test-message__content--image img {
    max-height: 200px;
  }

  .bh-test-message__content--audio audio {
    max-width: 250px;
  }
}

/* ================= UX ENHANCEMENTS FOR TEST ASSISTANT ================= */

/* Welcome Message */
.bh-test-welcome {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bh-test-welcome--visible {
  opacity: 1;
  transform: translateY(0);
}

.bh-test-welcome__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bh-test-welcome__content {
  flex: 1;
}

.bh-test-welcome__content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--bh-color-text-primary, #1f2937);
  font-size: 1.125rem;
  font-weight: 700;
}

.bh-test-welcome__content p {
  margin: 0 0 1rem 0;
  color: var(--bh-color-text-secondary, #6b7280);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bh-test-welcome__tips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bh-test-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--bh-color-text-secondary, #6b7280);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.bh-test-tip i {
  color: #fbbf24;
  font-size: 0.875rem;
}

/* Enhanced Message Styling with Avatars */
.bh-test-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bh-test-message--visible {
  opacity: 1;
  transform: translateY(0);
}

.bh-test-message--removing {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.bh-test-message--user {
  flex-direction: row-reverse;
}

.bh-test-message--assistant {
  flex-direction: row;
}

.bh-test-message__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bh-test-message--user .bh-test-message__avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.bh-test-message--assistant .bh-test-message__avatar {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #64748b;
  border: 2px solid #cbd5e1;
}

.bh-test-message--typing .bh-test-message__avatar {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #64748b;
  border: 2px solid #cbd5e1;
}

.bh-test-message__wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 75%;
}

.bh-test-message__content {
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  word-wrap: break-word;
  word-break: break-word;
  font-size: 0.9375rem;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.bh-test-message__content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bh-test-message--user .bh-test-message__content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.bh-test-message--assistant .bh-test-message__content {
  background: white;
  color: var(--bh-color-text-primary, #1f2937);
  border-bottom-left-radius: 0.25rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.bh-test-message__timestamp {
  font-size: 0.75rem;
  color: var(--bh-color-text-tertiary, #9ca3af);
  padding: 0 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.bh-test-message:hover .bh-test-message__timestamp {
  opacity: 1;
}

.bh-test-message--user .bh-test-message__timestamp {
  text-align: right;
}

.bh-test-message--assistant .bh-test-message__timestamp {
  text-align: left;
}

/* Typing Indicator Enhancement */
.bh-test-typing {
  display: inline-flex;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bh-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: bh-typing-bounce 1.4s infinite ease-in-out;
}

.bh-typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.bh-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.bh-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bh-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Empty State Message */
.bh-test-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--bh-color-text-secondary, #9ca3af);
}

.bh-test-empty-state__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 1.5rem;
  color: #667eea;
}

.bh-test-empty-state h4 {
  margin: 0 0 0.5rem 0;
  color: var(--bh-color-text-primary, #1f2937);
  font-size: 1.25rem;
  font-weight: 600;
}

.bh-test-empty-state p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .bh-modal__header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .bh-test-modal__reset-btn {
    width: auto;
  }

  .bh-test-welcome {
    gap: 0.75rem;
    padding: 1rem;
  }

  .bh-test-welcome__icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .bh-test-welcome__content h4 {
    font-size: 1rem;
  }

  .bh-test-welcome__content p {
    font-size: 0.875rem;
  }

  .bh-test-tip {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .bh-test-message {
    gap: 0.5rem;
  }

  .bh-test-message__avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .bh-test-message__wrapper {
    max-width: 80%;
  }

  .bh-test-message__content {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .bh-test-message__timestamp {
    font-size: 0.6875rem;
    padding: 0 0.375rem;
  }
}

.bh-integration-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bh-integration-pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bh-integration-pagination__btn,
.bh-integration-pagination__page-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  border-radius: 0.5rem;
  height: 34px;
  min-width: 34px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bh-integration-pagination__btn:hover:not(:disabled),
.bh-integration-pagination__page-btn:hover:not(:disabled) {
  border-color: rgba(102, 126, 234, 0.45);
  color: #667eea;
  background: #f8f9ff;
}

.bh-integration-pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bh-integration-pagination__page-btn.is-active {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
}

/* ================= INTEGRATIONS EMPTY STATES ================= */
.bh-integration-list {
  gap: 1.5rem;
}

.bh-integration-list #connectedIntegrationsList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bh-integration-empty {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #F8F9FF;
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

.bh-integration-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: #EEF2FF;
  color: var(--bh-primary);
}

.bh-integration-empty__icon--website-chatbot {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.bh-integration-empty__icon--whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
}

.bh-integration-empty__content {
  flex: 1;
  min-width: 0;
}

.bh-integration-empty__content h4 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.bh-integration-empty__content p {
  margin: 0;
  font-size: 0.95rem;
  color: #6B7280;
}

.bh-integration-empty__cta {
  white-space: nowrap;
}

.bh-webchat-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1400;
}

.bh-webchat-modal.is-visible,
.bh-webchat-modal.open {
  display: flex;
}

.bh-webchat-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(4px);
}

.bh-webchat-modal .modal-container {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}

.bh-webchat-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
}

.bh-webchat-modal__title-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
  align-items: center;
}

.bh-webchat-modal__title-wrap h3 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
}

.bh-webchat-modal__title-wrap .modal-subtitle {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.bh-webchat-modal .modal-close {
  position: static;
  margin-left: auto;
  top: auto;
  right: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bh-webchat-modal__icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bh-webchat-modal__body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: none;
  min-height: 0;
  flex: 1;
  background: #f8fafc;
}

.bh-webchat-modal__grid {
  display: block;
}

.bh-webchat-modal__form-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  padding: 1rem;
}

.bh-webchat-step-panel__header {
  margin-bottom: 0.85rem;
}

.bh-webchat-step-panel__header h4 {
  margin: 0;
  font-size: 1.03rem;
  color: #0f172a;
}

.bh-webchat-step-panel__header p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
}

.bh-webchat-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.bh-webchat-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bh-webchat-form__row .bh-webchat-form__group:only-child,
.bh-webchat-form__group {
  min-width: 0;
}

.bh-webchat-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 600;
}

.bh-webchat-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bh-webchat-field-icon {
  color: #4f46e5;
  font-size: 0.95rem;
  line-height: 1;
}

.bh-webchat-required {
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
}

.bh-webchat-form input,
.bh-webchat-form select,
.bh-webchat-form textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #0f172a;
  padding: 0.62rem 0.75rem;
  font-size: 0.92rem;
}

.bh-webchat-form textarea {
  resize: vertical;
  min-height: 84px;
}

.bh-webchat-form__hint {
  margin-top: 0.28rem;
  font-size: 0.78rem;
  color: #64748b;
}

.bh-webchat-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.9rem 1.25rem 0;
  margin-bottom: 0.85rem;
}

.bh-webchat-step {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bh-webchat-step:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}

.bh-webchat-step.is-active {
  border-color: #2563eb;
  background: #eaf2ff;
  color: #1e3a8a;
}

.bh-webchat-step-index,
.bh-webchat-step__index {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
}

.bh-webchat-step-panel {
  display: none;
}

.bh-webchat-step-panel.is-active {
  display: block;
}

.bh-webchat-step-panel--details .bh-webchat-form__row {
  gap: 1.25rem;
}

.bh-webchat-step-panel--details .bh-webchat-form__group {
  margin-bottom: 1rem;
}

.bh-webchat-step-panel--details .bh-webchat-form__group:last-child {
  margin-bottom: 0;
}

.bh-webchat-step-panel__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.bh-webchat-step-panel__actions .bh-button {
  min-width: 9.2rem;
}

.bh-webchat-realtime-switch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.7rem;
  background: #f8fafc;
}

.bh-webchat-realtime-switch .form-check-input {
  margin: 0;
  width: 2.7rem;
  height: 1.45rem;
  min-width: 2.7rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background-color: #e2e8f0;
  cursor: pointer;
  box-shadow: none;
}

.bh-webchat-realtime-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
  border-color: #60a5fa;
}

.bh-webchat-realtime-switch .form-check-input:checked {
  background-color: #2563eb;
  border-color: #1d4ed8;
}

.bh-webchat-realtime-switch .form-check-label {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.bh-webchat-step2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.15rem;
  align-items: stretch;
}

.bh-webchat-step2-layout__left {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: space-between;
  gap: 1.25rem;
}

.bh-webchat-step2-layout__right {
  position: sticky;
  top: 0.2rem;
}

.bh-webchat-form__color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 0.45rem;
}

.bh-webchat-form__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bh-webchat-color-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bh-webchat-color-input input[type="color"] {
  width: 56px;
  min-width: 56px;
  height: 40px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 0.45rem;
  background: #ffffff;
}

.bh-webchat-color-input__preview {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.bh-webchat-file-upload-area {
  position: relative;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  background: #f8fafc;
  min-height: 170px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bh-webchat-file-upload-area:hover,
.bh-webchat-file-upload-area.is-dragover {
  border-color: #2563eb;
  background: #eef4ff;
}

.bh-webchat-upload-content {
  height: 100%;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  color: #334155;
}

.bh-webchat-upload-icon {
  color: #2563eb;
  line-height: 1;
}

.bh-webchat-upload-text p {
  margin: 0;
}

.bh-webchat-upload-text p strong {
  color: #0f172a;
}

.bh-webchat-upload-hint,
.bh-webchat-upload__name {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
}

.bh-webchat-logo-preview {
  display: none;
  width: 100%;
  min-height: 136px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bh-webchat-logo-preview img {
  width: min(170px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid #d1d5db;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.bh-webchat-logo-preview__remove {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}

.bh-webchat-file-upload-area.has-logo .bh-webchat-upload-content {
  display: none;
}

.bh-webchat-file-upload-area.has-logo .bh-webchat-logo-preview,
.bh-webchat-file-upload-area.has-logo .bh-webchat-logo-preview__remove {
  display: flex;
}

.bh-webchat-preview {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bh-webchat-live-preview-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.bh-webchat-preview__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.bh-webchat-preview__body {
  border-radius: 1.05rem;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  padding: 0.85rem;
}

.bh-webchat-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.bh-webchat-preview__stage {
  position: relative;
  min-height: 470px;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #f3f7ff 0%, #eef2ff 100%);
  border: 1px dashed #cbd5e1;
  padding: 0.8rem;
}

.bh-webchat-preview__widget {
  position: absolute;
  right: 0.7rem;
  bottom: 4.35rem;
  width: min(100%, 315px);
  border-radius: 0.8rem;
  overflow: hidden;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bh-webchat-preview__widget-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0.72rem 0.85rem;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.86rem;
}

.bh-webchat-preview__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.bh-webchat-preview__status {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.bh-webchat-preview__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.bh-webchat-preview__messages {
  min-height: 285px;
  max-height: 185px;
  overflow: auto;
  padding: 0.12rem 0;
}

.bh-webchat-preview__message {
  margin: 1rem 0.68rem;
  padding: 0.48rem 0.62rem;
  border-radius: 0.68rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bh-webchat-preview__message--assistant {
  background: #f1f5f9;
}

.bh-webchat-preview__message--user {
  background: #dbeafe;
  margin-left: 2.1rem;
}

.bh-webchat-preview__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.65rem 0.68rem;
  border-top: 1px solid #2563eb;
  background: #3b82f6;
}

.bh-webchat-preview__input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.72rem;
  background: #ffffff;
  color: #64748b;
  font-size: 0.9rem;
}

.bh-webchat-preview__send {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.bh-webchat-preview__launcher {
  position: absolute;
  right: 0.95rem;
  bottom: 0.95rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  z-index: 2;
}

.bh-webchat-preview__launcher-icon {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.bh-webchat-preview__launcher-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: none;
}

.bh-webchat-preview__launcher-logo.is-visible {
  display: block;
}

.bh-webchat-preview__stage.is-closed .bh-webchat-preview__widget {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88) translateY(12px);
}

.bh-webchat-modal__footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.bh-webchat-modal__footer .bh-button {
  min-width: 8.2rem;
}

.bh-webchat-modal__footer .modal-cancel {
  margin-right: auto;
}

.bh-webchat-modal__footer .bh-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bh-webchat-crop-modal {
  z-index: 1500;
}

.bh-webchat-crop-modal__container {
  width: min(860px, 96vw);
  max-height: 92vh;
}

.bh-webchat-crop-modal__header {
  padding: 1rem 1.1rem;
}

.bh-webchat-crop-modal__body {
  padding: 1rem 1.1rem 1.1rem;
  background: #f8fafc;
}

.bh-webchat-crop-container {
  position: relative;
  width: 100%;
  min-height: 360px;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid #dbe3ef;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef2ff 100%);
  padding: 0.7rem;
}

#bhWebchatCropCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.bh-webchat-crop-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bh-webchat-crop-box {
  position: absolute;
  border: 2px solid #2563eb;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.34);
  border-radius: 0.45rem;
  cursor: move;
  pointer-events: auto;
}

.bh-webchat-crop-handle {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.45);
}

.bh-webchat-crop-handle.nw {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}

.bh-webchat-crop-handle.ne {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.bh-webchat-crop-handle.sw {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.bh-webchat-crop-handle.se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.bh-webchat-crop-modal__footer {
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .bh-webchat-modal {
    padding: 0.6rem;
  }

  .bh-webchat-modal .modal-container {
    width: min(100%, 100%);
    max-height: 95vh;
  }

  .bh-webchat-modal__grid {
    grid-template-columns: 1fr;
  }

  .bh-webchat-form__row {
    grid-template-columns: 1fr;
  }

  .bh-webchat-form__color-grid {
    grid-template-columns: 1fr;
  }

  .bh-webchat-step2-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bh-webchat-step2-layout__right {
    position: static;
  }

  .bh-webchat-form__row--three {
    grid-template-columns: 1fr;
  }

  .bh-webchat-modal__title-wrap h3 {
    font-size: 1.55rem;
  }

  .bh-webchat-preview__stage {
    min-height: 280px;
  }

  .bh-webchat-preview__widget {
    width: calc(100% - 1.4rem);
    max-width: none;
  }

  .bh-webchat-crop-modal__container {
    width: min(100%, 100%);
  }

  .bh-webchat-crop-container {
    min-height: 300px;
  }
}

.bh-webchat-install-modal__container {
  width: min(900px, 96vw);
}

.bh-webchat-install-modal__body {
  background: #f8fafc;
}

.bh-webchat-install-modal__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bh-webchat-install-modal__section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe4f3;
  border-radius: 1rem;
  padding: 1.05rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.bh-webchat-install-modal__section--intro {
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  border-color: #c7dbfb;
}

.bh-webchat-install-modal__section--method-1,
.bh-webchat-install-modal__section--method-2 {
  position: relative;
}

.bh-webchat-install-modal__section--method-1::before,
.bh-webchat-install-modal__section--method-2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  border-radius: 999px;
}

.bh-webchat-install-modal__section--method-1::before {
  background: #2563eb;
}

.bh-webchat-install-modal__section--method-2::before {
  background: #0ea5e9;
}

.bh-webchat-install-modal__section p {
  margin: 0.45rem 0 0.75rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bh-webchat-install-modal__helper-note {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 0.6rem;
  color: #1e3a8a;
  font-size: 0.85rem;
}

.bh-webchat-install-modal__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.bh-webchat-install-modal__steps {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  color: #334155;
  font-size: 0.89rem;
  line-height: 1.5;
}

.bh-webchat-install-modal__steps li {
  margin: 0;
}

.bh-webchat-install-modal__label svg {
  color: #2563eb;
}

.bh-webchat-install-modal__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.bh-webchat-install-modal__detail-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.72rem 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bh-webchat-install-modal__detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  font-weight: 700;
}

.bh-webchat-install-modal__detail-value {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.bh-webchat-install-modal__detail-item .bh-integration-connection {
  justify-content: flex-start;
  width: 100%;
}

.bh-webchat-install-modal__code-wrap,
.bh-webchat-install-modal .enhanced-code-container {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  border-radius: 0.72rem;
  padding: 0.55rem;
}

.bh-webchat-install-modal .code-preview {
  flex: 1;
  min-width: 0;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
  overflow-x: auto;
}

.bh-webchat-install-modal .code-preview pre {
  margin: 0;
}

.bh-webchat-install-modal .code-preview code {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.bh-webchat-install-modal .bh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 42px;
  white-space: nowrap;
}

.bh-webchat-install-modal__plugin-link-wrap {
  margin-top: 0.65rem;
}

.bh-webchat-install-modal__plugin-link {
  text-decoration: none;
}

.bh-webchat-download-modal__actions {
  padding: 0;
  margin-top: 0.7rem;
}

#bhWebsiteChatbotDownloadMessagesForm .bh-webchat-form__group {
  max-width: 360px;
}

#bhWebchatDownloadExportFormat {
  width: 100%;
  border-radius: 0.72rem;
  border: 1px solid #cfd8e6;
  background-color: #ffffff;
  color: #0f172a;
  padding: 0.62rem 2.35rem 0.62rem 0.78rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, #475569 50%),
    linear-gradient(135deg, #475569 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#bhWebchatDownloadExportFormat:hover {
  border-color: #93c5fd;
  background-color: #f8fbff;
}

#bhWebchatDownloadExportFormat:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

#bhWebchatDownloadExportFormat option {
  color: #0f172a;
  background: #ffffff;
}

@media (max-width: 768px) {
  .bh-webchat-install-modal__details-grid {
    grid-template-columns: 1fr;
  }

  #bhWebsiteChatbotDownloadMessagesForm .bh-webchat-form__group {
    max-width: 100%;
  }

  .bh-webchat-install-modal .enhanced-code-container,
  .bh-webchat-install-modal .bh-webchat-install-modal__code-wrap {
    flex-direction: column;
  }

  .bh-webchat-install-modal .bh-button {
    width: 100%;
  }
}

/* WhatsApp Add Connection Modal */
.bh-whatsapp-add-modal.bh-modal__dialog {
  max-width: 720px;
  width: 92%;
  max-height: calc(100vh - 3rem);
  background: #ffffff;
  color: #0f172a;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 30px 120px rgba(15, 23, 42, 0.25);
  margin: 1.5rem auto;
  overflow-y: auto;
  overflow-x: visible;
}

.bh-whatsapp-add-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.bh-whatsapp-add-modal__label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bh-whatsapp-add-modal__label-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.bh-whatsapp-add-modal__header .modal-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.bh-whatsapp-add-modal__content {
  padding: 0.25rem 0 0;
  background: transparent;
  overflow: visible;
  max-height: none;
}

.bh-whatsapp-add-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: none;
  overflow: visible;
  overflow-x: visible;
  padding: 0.25rem 0.1rem 0.25rem 0;
}

.bh-whatsapp-add-modal.modal-container .modal-content.bh-whatsapp-add-modal__content {
  overflow: visible;
  max-height: none;
  padding: 0.25rem 0 0;
}

.bh-whatsapp-add-modal .bh-modal__close {
  background: #eef2ff;
  color: #374151;
}

.bh-whatsapp-add-modal .bh-modal__close:hover {
  background: #e0e7ff;
}

.bh-whatsapp-add-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bh-whatsapp-add-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.bh-whatsapp-add-form input,
.bh-whatsapp-add-form select {
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 0.9rem;
  background: #fff;
  min-height: 44px;
  padding: 0.68rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bh-whatsapp-add-form input:focus,
.bh-whatsapp-add-form select:focus {
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
  outline: none;
}

.bh-whatsapp-phone-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.75rem;
}

.bh-whatsapp-prefix-search {
  position: relative;
}

.bh-whatsapp-prefix-search__input {
  width: 100%;
}

.bh-whatsapp-prefix-dropdown {
  background: #ffffff;
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 0.9rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
  max-height: 260px;
  margin-top: 0.4rem;
  z-index: 12;
}

.bh-whatsapp-prefix-dropdown .phone-country-option {
  color: #111827;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
}

.bh-whatsapp-prefix-dropdown .phone-country-option:hover,
.bh-whatsapp-prefix-dropdown .phone-country-option.is-highlighted {
  background: rgba(102, 126, 234, 0.08);
}

.bh-whatsapp-prefix-dropdown .phone-country-option .country-code {
  color: #4b5563;
}

.bh-required {
  color: var(--danger-color, #dc2626);
  margin-left: 0.25rem;
}

.bh-whatsapp-add-errors {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--danger-color, #dc2626);
  background: var(--danger-light, #fef2f2);
  color: var(--danger-color, #dc2626);
  font-size: 0.9rem;
}

.bh-whatsapp-field-error {
  min-height: 1rem;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: var(--danger-color, #dc2626);
}

.bh-whatsapp-invalid {
  border-color: var(--danger-color, #dc2626) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.bh-whatsapp-add-form__helper {
  margin-top: 0.35rem !important;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.bh-whatsapp-add-modal__pin-note {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  color: #6b7280;
}

.bh-whatsapp-add-modal__footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bh-whatsapp-add-modal__footer .bh-button {
  min-width: 130px;
}

@media (max-width: 768px) {
  .bh-whatsapp-phone-row {
    grid-template-columns: 1fr;
  }
}

/* Billing - Payment History invoice/proforma buttons */
.bh-billing-invoice-btn {
  min-width: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bh-billing-invoice-btn .bh-billing-invoice-btn__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.bh-billing-invoice-btn .bh-billing-invoice-btn__text {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.bh-billing-invoice-btn--download {
  border-color: rgba(156, 91, 255, 0.45);
  background: linear-gradient(135deg, rgba(156, 91, 255, 0.14) 0%, rgba(156, 91, 255, 0.05) 100%);
}

.bh-billing-invoice-btn--proforma {
  border-color: rgba(88, 194, 255, 0.45);
  background: linear-gradient(135deg, rgba(88, 194, 255, 0.14) 0%, rgba(88, 194, 255, 0.05) 100%);
}

.bh-billing-invoice-btn:hover:not(:disabled),
.bh-billing-invoice-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.bh-billing-invoice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 576px) {
  .bh-billing-invoice-btn {
    min-width: 96px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .bh-billing-invoice-btn .bh-billing-invoice-btn__text {
    font-size: 0.74rem;
  }
}




.bh-switch-label-inline {
  margin-left: 4rem;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}


.bh-switch-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  width: 50px;
  height: 26px;
}

.bh-switch-toggle {
  opacity: 0;
  width: 0;
  height: 0;
}

.bh-switch-slider {
  position: absolute !important;
  cursor: pointer;
  inset: 0;
  background-color: #7e7e7e;
  border-radius: 34px;
  transition: background-color 0.3s ease;
}

.bh-switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Checked State */
.bh-switch-toggle:checked + .bh-switch-slider {
  background-color: #53ff5e;
}

.bh-switch-toggle:checked + .bh-switch-slider::before {
  transform: translateX(24px);
}


/* Account type badge custom style */
.bh-payment-account-type {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.bh-payment-account-type__badge {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35em 1em;
  border-radius: 1.2em;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .bh-payment-account-type__badge {
    font-size: 0.85rem;
    padding: 0.25em 0.7em;
  }
}