/* Load AFTER all existing CSS. GoHost charcoal/cyan contrast corrections. */
:root {
  --gohost-readable: #f2f2f2;
  --gohost-muted: #c2c2c2;
  --gohost-accent: #00bcd4;
}
/* The homepage statistics used literal black text on a black background. */
.funfact-two .funfact-two__item__title {
  color: var(--gohost-readable) !important;
  opacity: 1;
}
.funfact-two .funfact-two__item__count { color: var(--gohost-accent); }
/* Keep plan boundaries visible against the surrounding gray section. */
.pricing-item {
  background: #242424;
  border: 1px solid #626262;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.pricing-item:hover {
  background: #1b1b1b !important;
  border-color: var(--gohost-accent);
}
.pricing-item .pricing-item__title,
.pricing-item .pricing-item__price,
.pricing-item .text-list__item { color: var(--gohost-readable) !important; }
.pricing-item .pricing-item__desc,
.pricing-item .pricing-item__price .text { color: var(--gohost-muted) !important; }
.pricing-item .pricing-item__top::before { background-color: #626262; }
/* Transparent dark buttons were unreadable, even before hovering. */
.btn.btn-outline-light {
  color: var(--gohost-readable) !important;
  border-color: #8a8a8a !important;
  background: #303030 !important;
}
.btn.btn-outline-light:hover,
.btn.btn-outline-light:focus-visible,
.pricing-item:hover .btn.btn-outline-light {
  color: #101010 !important;
  background: var(--gohost-accent) !important;
  border-color: var(--gohost-accent) !important;
}
/* A visible selected tab, including templates using gradient pseudo-elements. */
.pricing-tabs .nav-link { color: #dedede !important; }
.pricing-tabs .nav-link.active,
.pricing-tabs .nav-link[aria-selected="true"] {
  color: #101010 !important;
  background: var(--gohost-accent) !important;
}
.pricing-tabs .nav-link.active::before,
.pricing-tabs .nav-link.active::after,
.pricing-tabs .nav-link[aria-selected="true"]::before,
.pricing-tabs .nav-link[aria-selected="true"]::after {
  background: var(--gohost-accent) !important;
}
.pricing-tabs .pricing-tabs__arrow { color: #f2f2f2; }
/* Charcoal normal buttons with cyan hover, preserving their split-pill layout. */
.aigence-btn .aigence-btn__text,
.aigence-btn .aigence-btn__text2,
.aigence-btn .aigence-btn__icon {
  color: #f2f2f2 !important;
  background: #363636 !important;
  box-shadow: inset 0 0 0 1px #858585;
}
.aigence-btn .aigence-btn__text::after,
.aigence-btn .aigence-btn__text2::after,
.aigence-btn .aigence-btn__icon::after {
  background: var(--gohost-accent) !important;
}
.aigence-btn:hover .aigence-btn__text,
.aigence-btn:hover .aigence-btn__text2,
.aigence-btn:hover .aigence-btn__icon,
.aigence-btn:hover .aigence-btn__icon > * {
  color: #101010 !important;
  background: var(--gohost-accent) !important;
}
.aigence-btn .aigence-btn__icon svg { fill: currentColor; }
.blog-card .blog-card__title a { color: #f2f2f2; }
.blog-card .blog-card__title a:hover { color: var(--gohost-accent); }
.pricing-tabs .nav-link:focus-visible,
.btn.btn-outline-light:focus-visible,
.aigence-btn:focus-visible {
  outline: 2px solid #00bcd4;
  outline-offset: 4px;
}

/* ===== Public-site audit, 2026-10-28: shared components ===== */
/* White on cyan was too faint for the small cart quantity. */
.main-header__search .qty-badge { color: #101010 !important; }
/* Breadcrumbs had white text over a light-gray gradient. */
.aigence-breadcrumb {
  background: #292929 !important;
  color: #e4e4e4 !important;
  box-shadow: inset 0 0 0 1px #626262;
}
.aigence-breadcrumb li,
.aigence-breadcrumb li span,
.aigence-breadcrumb li a { color: #e4e4e4 !important; }
.aigence-breadcrumb li a:hover { color: #00bcd4 !important; }
/* Bootstrap muted text was still using its light-theme foreground. */
.page-wrapper .text-muted {
  --bs-secondary-color: #b8b8b8;
  color: #b8b8b8 !important;
}
/* Light form backgrounds remain reserved for the standalone login design. */
.page-wrapper .form-control,
.page-wrapper .form-select {
  background-color: #242424;
  color: #f2f2f2;
  caret-color: #00bcd4;
}
.page-wrapper .form-control:not(.is-invalid):not(.is-valid),
.page-wrapper .form-select:not(.is-invalid):not(.is-valid) {
  border-color: #767676;
}
.page-wrapper .form-control::placeholder { color: #b8b8b8; opacity: 1; }
.page-wrapper .form-control:focus,
.page-wrapper .form-select:focus {
  background-color: #242424;
  color: #f2f2f2;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, .23);
}
.page-wrapper .form-control:not(.is-invalid):not(.is-valid):focus,
.page-wrapper .form-select:not(.is-invalid):not(.is-valid):focus {
  border-color: #00bcd4;
}
.page-wrapper .input-group-text {
  background: #303030;
  color: #f2f2f2;
  border-color: #767676;
}
.page-wrapper .form-label { color: #e4e4e4; }
/* Keep required/error markers red, with a lighter shade for dark surfaces. */
.page-wrapper .text-danger,
.page-wrapper .invalid-feedback { color: #ff939f !important; }
/* The standalone login/forgot-password form intentionally stays light gray. */
.gh-login-links { color: #595959 !important; }

/* ===== Service listing and all three processor detail pages ===== */
.product-details__description__heading,
.product-details__description__title,
.product-details__description__subtitle { color: #f2f2f2 !important; }
.product-details__description__label { color: #b8b8b8 !important; }
.product-details__description__eyebrow { color: #00bcd4 !important; }
.product-details__description__eyebrow::before,
.product-details__description__subtitle::before { background: #00bcd4 !important; }
.product-details__description__text,
.product-details__description__text :is(p, li, strong, span, td, th),
.pricing-item__desc_box,
.pricing-item__desc_box :is(p, li, strong, span, td, th),
.narrative-box,
.narrative-box :is(p, li, strong, span, td, th) { color: #cfcfcf !important; }
.product-details__description__text a,
.pricing-item__desc_box a,
.narrative-box a { color: #00bcd4 !important; }
/* These detail pages retained a pale #eee section below the plans. */
.testimonials-two2 { background-color: #1b1b1b !important; }
.testimonials-two2 .testimonials-two__bottom__title { color: #f2f2f2 !important; }

/* ===== FAQ: collapsed titles, expanded titles, answer text and +/- icons ===== */
.faq-accordion .accordion-title h4,
.faq-accordion .accordion-content__title h4 { color: #f2f2f2 !important; }
.faq-accordion .accordion-title__icon,
.faq-accordion .accordion-content__title__icon {
  background: #303030 !important;
  box-shadow: inset 0 0 0 1px #767676;
}
.faq-accordion .accordion-title__icon::before,
.faq-accordion .accordion-title__icon::after,
.faq-accordion .accordion-content__title__icon::before,
.faq-accordion .accordion-content__title__icon::after { background-color: #00bcd4 !important; }
.faq-accordion .accordion-content,
.faq-accordion .tiptap-content { color: #cfcfcf !important; }
/* The editor stored literal black inline spans in the first FAQ answer. */
.tiptap-content [style*="color: rgb(0, 0, 0)"],
.tiptap-content [style*="color:rgb(0,0,0)"],
.tiptap-content [style*="color: #000" i],
.tiptap-content [style*="color:#000" i],
.tiptap-content [style*="color: black" i],
.tiptap-content [style*="color:black" i] { color: #cfcfcf !important; }
/* Article inline code: retain its distinction with a readable cyan tint. */
.tiptap-content code {
  color: #7ce5f0;
  background-color: #161616;
}


/* ===== Member-area contrast and layout repair, 2026-10-29 =====
   Scoped through the existing member navigation; no HTML/JS changes needed.
   The :has() scope is supported by current Chrome, Edge, Safari and Firefox.
*/
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.common-card, .statement-item, .profile-info-content, .profile-info, .earning-card) {
  color: #e6edf3;
  background-color: #242424 !important;
  border-color: #49545c !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card :is(.card-header, .card-footer) {
  background-color: #1b1f23 !important;
  border-color: #49545c !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-body {
  color: #e6edf3;
  background-color: #242424 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.common-card, .statement-item, .profile-info-content) :is(h2,h3,h4,h5,h6,.title,.text-heading,.text-body,.text-dark) {
  color: #f1f5f8 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.statement-item__title, .statement-list h6, .statement-list .text-heading) {
  color: #f1f5f8 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.text-muted, .text-secondary) {
  --bs-secondary-color: #bfcbd4;
  color: #bfcbd4 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .earning-card--accent .earning-card__amount {
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #53d9eb !important;
  color: #53d9eb !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__item {
  align-items: flex-start;
  gap: 10px;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__content {
  flex-shrink: 0;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__info {
  min-width: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}
/* Give the email its own line rather than splitting the final letter. */
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__item:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__item:nth-child(2) .profile-info-list__info {
  flex: 1 0 100%;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(input.common-input, textarea.common-input, select.common-input) {
  color: #f1f5f8 !important;
  -webkit-text-fill-color: #f1f5f8;
  background-color: #1b1f23 !important;
  border-color: #71818e !important;
  caret-color: #53d9eb;
  color-scheme: dark;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-input::placeholder {
  color: #b5c2cc !important;
  -webkit-text-fill-color: #b5c2cc;
  opacity: 1;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-input:focus {
  border-color: #53d9eb !important;
  outline: 2px solid rgba(83,217,235,.35);
  outline-offset: 1px;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-input:disabled,
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-input[readonly] {
  background-color: #30383f !important;
  color: #d0dbe3 !important;
  -webkit-text-fill-color: #d0dbe3;
  opacity: 1;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-input:-webkit-autofill {
  -webkit-text-fill-color: #f1f5f8 !important;
  -webkit-box-shadow: 0 0 0 1000px #1b1f23 inset;
}
/* Bootstrap table variables also cover summary and expanded referral rows. */
body:has(.breadcrumb-three a[href$="/member/profile"]) .table {
  --bs-table-color: #e6edf3;
  --bs-table-bg: #242424;
  --bs-table-border-color: #49545c;
  --bs-table-striped-color: #e6edf3;
  --bs-table-striped-bg: #2b333a;
  --bs-table-hover-color: #ffffff;
  --bs-table-hover-bg: #303d46;
  color: #e6edf3 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .table > :not(caption) > * > * {
  color: var(--bs-table-color) !important;
  background-color: var(--bs-table-bg) !important;
  border-color: #49545c !important;
  word-break: normal;
  overflow-wrap: normal;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .table > thead > tr > th {
  color: #f1f5f8 !important;
  background-color: #1b1f23 !important;
  white-space: nowrap;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .table td {
  white-space: nowrap;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .table a:not(.btn):not(.badge) {
  color: #53d9eb !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.card, .statement-item, .profile-info-content, .row > *) {
  min-width: 0;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.text-danger, .invalid-feedback) {
  color: #ff9da8 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .text-primary {
  color: #66b3ff !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .text-success {
  color: #78dba6 !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .btn-outline-dark,
body:has(.breadcrumb-three a[href$="/member/profile"]) .btn-outline-secondary {
  color: #dce6ee !important;
  border-color: #8495a3 !important;
  background-color: transparent;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .btn-outline-dark:hover,
body:has(.breadcrumb-three a[href$="/member/profile"]) .btn-outline-secondary:hover {
  color: #101820 !important;
  background-color: #53d9eb;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content button[type="submit"]:not(.btn-primary):not(.btn-danger) {
  color: #101820 !important;
  background: #53d9eb !important;
  border: 1px solid #53d9eb;
  border-radius: 6px;
  padding: 10px 18px;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-header {
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 767px) {
  body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list {
    flex-wrap: wrap;
    gap: 20px;
  }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list > * {
    flex: 1 1 110px;
    min-width: 0;
  }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .nav[role="tablist"] {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-body {
    padding: 18px;
  }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-body.p-0 {
    padding: 0 !important;
  }
}

/* ===== Member header and overview spacing, 2026-10-29 ===== */
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three { padding-top: 32px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three-content {
  padding: 26px 28px 0;
  border: 1px solid #49545c !important;
  border-radius: 16px;
  background: #242424;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three-content::before { content: none; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three-content__left > .flx-between {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  gap: 26px !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile {
  align-items: center !important;
  gap: 22px !important;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile__thumb {
  width: 96px;
  height: 96px;
  margin-top: 0;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .avatar-upload,
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .avatar-preview { width: 96px; height: 96px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile__info { min-width: 0; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile__name { margin-bottom: 8px !important; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile__membership { overflow-wrap: anywhere; line-height: 1.6; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three-content__right {
  width: 100%;
  min-width: 0;
  flex-shrink: 1 !important;
  border-top: 1px solid #49545c;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .nav[role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  width: 100%;
  margin: 0;
  padding: 6px 0 0;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .nav-link {
  padding: 16px 18px;
  line-height: 1.5;
  white-space: nowrap;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .nav-link.active { color: #53d9eb !important; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info { padding: 24px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list { margin: 0; padding: 0; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__item { margin-bottom: 14px; padding-bottom: 14px; line-height: 1.65; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__item:last-child { margin-bottom: 0; padding-bottom: 0; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-list__item:nth-child(2) { gap: 6px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-item { padding: 28px; border-radius: 14px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-item__header { margin-bottom: 24px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-item__title { margin: 0; font-size: 18px; line-height: 1.5; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list > * {
  min-width: 0;
  padding: 14px 18px;
  text-align: center;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list > * + * { border-left: 1px solid #49545c; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list a { display: block; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list h6 { margin-top: 12px; margin-bottom: 0; font-size: 28px; line-height: 1.3; }
@media (max-width: 767px) {
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three { padding-top: 20px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three-content { padding: 20px 16px 0; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile { gap: 16px !important; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .author-profile__thumb,
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .avatar-upload,
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .avatar-preview { width: 76px; height: 76px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .nav[role="tablist"] { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .breadcrumb-three .nav-link { padding: 13px 4px; text-align: center; font-size: 14px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info { padding: 22px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-item { padding: 22px 14px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list { gap: 0; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list > * { padding: 12px 6px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .statement-list h6 { font-size: 24px; }
}

/* ===== Checkout confirmation layout, 2026-10-30 ===== */
.checkout-page:has(#checkout-form) {
  padding-top: 56px;
  padding-bottom: 64px;
}
.checkout-page:has(#checkout-form) .checkout-page__your-order { margin-top: 0; }
.checkout-page:has(#checkout-form) .checkout-page__your-order > .row { row-gap: 28px; align-items: flex-start; }
.checkout-page:has(#checkout-form) .checkout-page__title { margin-bottom: 12px; line-height: 1.4; }
.checkout-page:has(#checkout-form) .checkout-page__section-title { font-size: 20px; line-height: 1.5; margin: 0 0 20px; color: #f1f5f8; }
.checkout-page:has(#checkout-form) .checkout-page__billing-address { margin: 0; }
.checkout-page:has(#checkout-form) .checkout-page__billing-address > .mt-30 {
  margin-top: 0 !important;
  padding: 18px 22px;
  background: #292d31;
  border: 1px solid #49545c;
  border-radius: 12px;
}
.checkout-page:has(#checkout-form) .checkout-page__billing-address > .mt-30 > .d-flex { gap: 20px; line-height: 1.7; }
.checkout-page:has(#checkout-form) .checkout-page__billing-address > .mt-30 > .d-flex > span:last-child { white-space: nowrap; color: #f1f5f8; font-weight: 600; }
.checkout-page:has(#checkout-form) .cart-page__coupone { width: 100%; margin-top: 20px !important; margin-bottom: 24px !important; }
.checkout-page:has(#checkout-form) :is(#payment-method-section, #invoice-info-section) {
  padding: 24px;
  border: 1px solid #49545c;
  border-radius: 14px;
  background: #292d31;
  margin-top: 24px !important;
}
.checkout-page:has(#checkout-form) .checkout-page__payment--method { padding: 0; margin: 0; background: none; border: 0; }
.checkout-page:has(#checkout-form) .checkout-page__payment__row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.checkout-page:has(#checkout-form) .checkout-page__payment--method .checkout-page__payment__item {
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  border: 1px solid #697985;
  border-radius: 10px;
  background: #1d2227;
  cursor: pointer;
  min-width: 0;
}
.checkout-page:has(#checkout-form) .checkout-page__payment--method .checkout-page__payment__title {
  display: flex;
  align-items: center;
  min-height: 62px;
  margin: 0;
  padding: 16px 12px 16px 42px;
  font-size: 16px;
  line-height: 1.5;
  color: #e6edf3;
  position: relative;
}
.checkout-page:has(#checkout-form) .checkout-page__payment--method .checkout-page__payment__title::before {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 11px;
}
.checkout-page:has(#checkout-form) .checkout-page__payment--method .checkout-page__payment__item--active {
  background: #163a40;
  border-color: #53d9eb;
  box-shadow: inset 0 0 0 1px #53d9eb;
}
.checkout-page:has(#checkout-form) .checkout-page__payment--method .checkout-page__payment__item:hover { border-color: #53d9eb; }
.checkout-page:has(#checkout-form) .checkout-page__payment__desc { margin-top: 12px; }
.checkout-page:has(#checkout-form) .checkout-page__payment__desc:has(p:empty) { display: none; }
.checkout-page:has(#checkout-form) #invoice-info-section > .d-flex {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px !important;
  margin-bottom: 20px !important;
}
.checkout-page:has(#checkout-form) #invoice-info-section > .d-flex > .form-check {
  margin: 0;
  min-width: 0;
  padding: 0;
  position: relative;
  border: 1px solid #697985;
  border-radius: 10px;
  background: #1d2227;
}
.checkout-page:has(#checkout-form) #invoice-info-section > .d-flex > .form-check:has(input:checked) { background: #163a40; border-color: #53d9eb; }
.checkout-page:has(#checkout-form) #invoice-info-section > .d-flex .form-check-input {
  position: absolute;
  left: 14px;
  top: 19px;
  margin: 0;
  float: none;
  width: 17px;
  height: 17px;
}
.checkout-page:has(#checkout-form) #invoice-info-section > .d-flex .form-check-label {
  display: block;
  padding: 16px 10px 16px 40px;
  font-size: 15px;
  line-height: 1.6;
  color: #e6edf3;
  cursor: pointer;
}
.checkout-page:has(#checkout-form) :is(#inv-personal-detail, #inv-company-detail, #inv-donation-detail) {
  padding: 18px !important;
  background: #20252a;
  border: 1px solid #49545c;
  border-radius: 10px;
  margin-top: 16px;
}
.checkout-page:has(#checkout-form) #invoice-info-section :is(.form-control,.form-select) {
  width: 100%;
  max-width: 100% !important;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #f1f5f8;
  background-color: #191e23;
  border-color: #71818e;
  border-radius: 7px;
  color-scheme: dark;
}
.checkout-page:has(#checkout-form) #invoice-info-section :is(.form-control,.form-select):focus {
  border-color: #53d9eb;
  box-shadow: 0 0 0 3px rgba(83,217,235,.18);
}
.checkout-page:has(#checkout-form) #checkout-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid #49545c; }
.checkout-page:has(#checkout-form) #checkout-form > .form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0 !important;
  padding-left: 0;
}
.checkout-page:has(#checkout-form) #checkout-form > .form-check .form-check-input { flex: 0 0 18px; float: none; margin: 5px 0 0; width: 18px; height: 18px; }
.checkout-page:has(#checkout-form) #checkout-form .form-check-label { font-size: 15px; line-height: 1.8; }
.checkout-page:has(#checkout-form) #checkout-form .form-check-label a { color: #53d9eb; text-decoration: underline; }
.checkout-page:has(#checkout-form) #checkout-form > .d-flex { margin-top: 24px !important; }
.checkout-page:has(#checkout-form) .notice-box { padding: 18px 20px; background: #20252a; border-radius: 10px; color: #bfcbd4; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.checkout-page:has(#checkout-form) .sub-box { min-width: 0; }
.checkout-page:has(#checkout-form) #sidebarFixed {
  position: static !important;
  width: auto !important;
  padding: 24px;
  border: 1px solid #49545c;
  border-top: 3px solid #53d9eb;
  border-radius: 14px;
  background: #292d31;
}
.checkout-page:has(#checkout-form) .checkout-page__order-table { width: 100%; margin: 0; }
.checkout-page:has(#checkout-form) .checkout-page__order-table :is(th,td) { padding: 18px 0; font-size: 16px; line-height: 1.6; color: #e6edf3; border-color: #49545c; }
.checkout-page:has(#checkout-form) .checkout-page__order-table :is(th,td):last-child { text-align: right; white-space: nowrap; padding-left: 14px; }
.checkout-page:has(#checkout-form) #s-total { color: #53d9eb; font-size: 23px; font-weight: 700; }
@media (min-width: 992px) {
  .checkout-page:has(#checkout-form) .checkout-page__confirm-col { width: 66.666667%; }
  .checkout-page:has(#checkout-form) .sub-box { width: 33.333333%; }
}
@media (max-width: 767px) {
  .checkout-page:has(#checkout-form) { padding-top: 32px; padding-bottom: 40px; }
  .checkout-page:has(#checkout-form) :is(#payment-method-section, #invoice-info-section) { padding: 18px 16px; }
  .checkout-page:has(#checkout-form) .checkout-page__payment__row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checkout-page:has(#checkout-form) #invoice-info-section > .d-flex { grid-template-columns: 1fr; }
  .checkout-page:has(#checkout-form) #checkout-form > .d-flex { justify-content: center !important; }
  .checkout-page:has(#checkout-form) #sidebarFixed { padding: 20px; }
}

/* ===== Cart details and form audit, 2026-10-30 ===== */
.checkout-page:has(.main-box) { padding-top: 48px; padding-bottom: 64px; }
.checkout-page:has(.main-box) .checkout-page__your-order { margin-top: 0; }
.checkout-page:has(.main-box) .checkout-page__your-order > .row { align-items: flex-start; row-gap: 28px; }
.checkout-page:has(.main-box) .checkout-page__title { margin-bottom: 28px; line-height: 1.4; }
.checkout-page:has(.main-box) .main-box > .notice-box {
  padding: 28px;
  margin-bottom: 24px;
  background: #292d31;
  border: 1px solid #49545c;
  border-radius: 14px;
  color: #e6edf3;
}
.checkout-page:has(.main-box) .pricing-item__top { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #49545c; }
.checkout-page:has(.main-box) .pricing-item__top::before { content: none; }
.checkout-page:has(.main-box) .pricing-item__top h5 { font-size: 15px; line-height: 1.8; margin-bottom: 8px !important; }
.checkout-page:has(.main-box) .pricing-item__title { font-size: 26px; line-height: 1.4; color: #f1f5f8; }
.checkout-page:has(.main-box) .text-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 22px; margin: 0; padding: 0; }
.checkout-page:has(.main-box) .text-list__item { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.7; color: #dce6ed !important; }
.checkout-page:has(.main-box) .text-list__item .icon { color: #53d9eb; flex-shrink: 0; }
.checkout-page:has(.main-box) .checkout-page__payment--cycle { background: transparent; padding: 0; margin: 26px 0 0; border: 0; }
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__item {
  min-width: 0; width: auto; padding: 0; margin: 0 !important; border: 1px solid #71818e; border-radius: 10px; background: #1d2227; cursor: pointer;
}
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__item--active { background: #163a40; border-color: #53d9eb; box-shadow: inset 0 0 0 1px #53d9eb; }
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__item:hover { border-color: #53d9eb; }
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__title {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 112px; padding: 20px 14px 20px 42px; margin: 0; font-size: 17px; line-height: 1.5; color: #f1f5f8;
}
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__title::before { position: absolute; top: 23px; left: 14px; margin: 0; width: 19px; height: 19px; font-size: 10px; }
.checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__title span { display: block; margin: 0; font-size: 15px; line-height: 1.6; white-space: normal; color: #dce6ed; }
.checkout-page:has(.main-box) .checkout-page__payment__estimate { margin-top: 14px; padding: 14px 16px; background: #20252a; border-radius: 8px; }
.checkout-page:has(.main-box) .checkout-page__payment__estimate p { margin: 0; color: #bfcbd4; font-size: 14px; line-height: 1.8; }
.checkout-page:has(.main-box) #sidebarFixed { position: static !important; width: auto !important; background: #292d31; padding: 24px; border: 1px solid #49545c; border-top: 3px solid #53d9eb; border-radius: 14px; }
.checkout-page:has(.main-box) .checkout-page__order-table { width: 100%; margin: 0; }
.checkout-page:has(.main-box) .checkout-page__order-table :is(th,td) { padding: 18px 0; font-size: 16px; line-height: 1.6; color: #e6edf3; border-color: #49545c; }
.checkout-page:has(.main-box) .checkout-page__order-table :is(th,td):last-child { text-align: right; white-space: nowrap; padding-left: 14px; }
.checkout-page:has(.main-box) #s-total { color: #53d9eb; font-size: 23px; }
.checkout-page:has(.main-box) .checkout-page__payment__btn-box { margin-top: 24px; justify-content: center; }
@media (min-width: 992px) {
  .checkout-page:has(.main-box) .main-box { width: 66.666667%; }
  .checkout-page:has(.main-box) .sub-box { width: 33.333333%; }
}
/* Shared controls: preserve checkbox/radio, hidden, file and compact filter behavior. */
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.profile-info-content,.common-card,.modal) :is(input.common-input:not([type="file"]),textarea.common-input,input.form-control,textarea.form-control,select.form-select),
.page-wrapper :is(.contact-one,.register) :is(input.form-control,textarea.form-control,select.form-select) {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  border-radius: 8px;
}
body:has(.breadcrumb-three a[href$="/member/profile"]) :is(.common-card,.profile-info-content,.modal) textarea,
.page-wrapper .contact-one textarea.form-control { min-height: 144px; resize: vertical; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content .tab-content { padding-top: 24px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content .nav { flex-wrap: wrap; gap: 6px 14px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content :is(label,.form-label) { line-height: 1.7; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content form > .row { --bs-gutter-y: 24px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content form[action$="/invoice-pref"] .form-check { margin-bottom: 20px; padding-top: 8px; padding-bottom: 8px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content form[action$="/invoice-pref"] :is(.common-input,.form-select) { max-width: 100% !important; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content input[type="file"].common-input { padding: 10px; color: #e6edf3; background-color: #1b1f23 !important; border: 1px solid #71818e; line-height: 1.6; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .profile-info-content input[type="file"]::file-selector-button { padding: 8px 12px; margin-right: 12px; border: 0; border-radius: 5px; background: #53d9eb; color: #101820; cursor: pointer; }
/* Filter headers wrap as complete groups instead of squeezing the title. */
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-header { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-header form { flex-wrap: wrap; gap: 10px !important; max-width: 100%; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-header :is(.form-control,.form-select) { min-height: 40px; font-size: 14px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .input-group .input-group-text { display: flex; align-items: center; }
/* Keep modal contents readable as well as the underlying pages. */
body:has(.breadcrumb-three a[href$="/member/profile"]) .modal-content,
body:has(.checkout-page) .modal-content { background-color: #242a30; color: #e6edf3; border: 1px solid #697985; border-radius: 14px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .modal :is(.modal-header,.modal-footer),
body:has(.checkout-page) .modal :is(.modal-header,.modal-footer) { border-color: #49545c; padding: 18px 22px; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .modal .modal-body,
body:has(.checkout-page) .modal .modal-body { padding: 22px; line-height: 1.8; }
body:has(.breadcrumb-three a[href$="/member/profile"]) .modal .btn-close,
body:has(.checkout-page) .modal .btn-close { filter: invert(1); }
.page-wrapper :is(.contact-one,.register) form { padding: 28px; background: #242a30; border: 1px solid #49545c; border-radius: 14px; }
.page-wrapper .contact-one form .row { --bs-gutter-y: 20px; }
.page-wrapper .register__form-group { margin-bottom: 22px !important; }
.page-wrapper .register .form-label { margin-bottom: 8px; }
.page-wrapper .register .input-group-text { padding-inline: 14px; }
.page-wrapper .register .register__content > .text-center { margin-top: 20px; }
.page-wrapper :is(.contact-one,.register) .form-control::placeholder { color: #bfcbd4; opacity: 1; }
.page-wrapper :is(.contact-one,.register) .form-control:disabled { color: #d0dbe3; background-color: #30383f; }
.page-wrapper :is(.contact-one,.register) .form-control:focus { outline: 2px solid rgba(83,217,235,.35); outline-offset: 1px; }
@media (max-width: 767px) {
  .checkout-page:has(.main-box) { padding-top: 32px; padding-bottom: 40px; }
  .checkout-page:has(.main-box) .main-box > .notice-box { padding: 20px 16px; }
  .checkout-page:has(.main-box) .text-list { grid-template-columns: 1fr; gap: 12px; }
  .checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__row { grid-template-columns: 1fr; }
  .checkout-page:has(.main-box) .checkout-page__payment--cycle .checkout-page__payment__title { min-height: 86px; }
  .checkout-page:has(.main-box) #sidebarFixed { padding: 20px; }
  .page-wrapper :is(.contact-one,.register) form { padding: 22px 16px; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-header form { width: 100%; }
  body:has(.breadcrumb-three a[href$="/member/profile"]) .common-card .card-header :is(.form-control,.form-select) { flex: 1 1 140px; width: auto !important; max-width: 100%; }
}
