/* Buy4B client-area theme
 * Visual source of truth: /DESIGN.md
 * This stylesheet adapts the installed WHMCS Twenty-One and Standard Cart
 * components without replacing their route, form, validation, or module owners.
 */

:root {
    --buy4b-primary: #c2410c;
    --buy4b-primary-hover: #a93606;
    --buy4b-primary-active: #7c2d12;
    --buy4b-ink: #161310;
    --buy4b-text: #3a312d;
    --buy4b-muted: #74665e;
    --buy4b-bg: #ffffff;
    --buy4b-surface: #fff7f1;
    --buy4b-surface-strong: #fde9dc;
    --buy4b-canvas-dark: #17100c;
    --buy4b-canvas-raised: #251710;
    --buy4b-canvas-soft: #332018;
    --buy4b-border: #e2bfa9;
    --buy4b-border-subtle: #f0d8c9;
    --buy4b-signal: #ff6b1a;
    --buy4b-shine: #ff9a54;
    --buy4b-success: #15803d;
    --buy4b-warning: #b45309;
    --buy4b-danger: #b42318;
    --buy4b-radius-sm: 0.375rem;
    --buy4b-radius: 0.75rem;
    --buy4b-radius-lg: 1.125rem;
    --buy4b-shadow-menu: 0 1rem 2.4rem rgba(82, 43, 24, 0.14);
    --buy4b-font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --buy4b-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html {
    min-width: 20rem;
    color-scheme: light;
    font-size: 15px;
    scrollbar-color: #c9855f var(--buy4b-surface);
    scrollbar-width: thin;
}

body {
    min-width: 20rem;
    background: var(--buy4b-bg);
    color: var(--buy4b-text);
    font-family: var(--buy4b-font);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body * {
    scrollbar-color: #c9855f var(--buy4b-surface);
    scrollbar-width: thin;
}

body *::-webkit-scrollbar { width: 11px; height: 11px; }
body *::-webkit-scrollbar-track { background: var(--buy4b-surface); }
body *::-webkit-scrollbar-thumb { border: 3px solid var(--buy4b-surface); border-radius: 999px; background: #c9855f; }
body *::-webkit-scrollbar-thumb:hover { background: #a95d35; }

a { color: var(--buy4b-primary); }
a:hover { color: var(--buy4b-primary-active); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--buy4b-primary);
    outline-offset: 3px;
    box-shadow: none;
}

code,
.font-monospace {
    color: var(--buy4b-ink);
    font-family: var(--buy4b-mono);
}

.container { max-width: 1200px; }

/* Header and navigation */

.header { border-bottom: 1px solid var(--buy4b-border-subtle); background: #fff; }
.header .topbar { border: 0; background: var(--buy4b-ink); color: #fff; }
.header .topbar .btn,
.header .topbar a { min-height: 2.6rem; color: #fff; }
.header .topbar .btn:hover,
.header .topbar a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.header .topbar .input-group-text { border: 0; background: transparent; color: #cbd5e1; }
.header .topbar .btn-active-client { border: 0; font-weight: 700; }

.header .navbar-light { min-height: 4.8rem; border: 0; background: #fff; }
.header .navbar-brand {
    position: relative;
    color: var(--buy4b-ink);
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -0.05em;
    line-height: 1;
}
.header .navbar-brand img { max-height: 2.25rem; }

.header .toolbar .nav-link,
.header .cart-btn {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius);
    background: #fff;
    color: var(--buy4b-ink);
}
.header .cart-btn:hover,
.header .toolbar .nav-link:hover { border-color: var(--buy4b-primary); background: var(--buy4b-surface); color: var(--buy4b-primary); }
.header .cart-btn .badge { background: var(--buy4b-primary); color: #fff; }

.header .main-navbar-wrapper { min-height: 3.4rem; border: 0; border-top: 1px solid var(--buy4b-border-subtle); background: #fff; }
.header .main-navbar-wrapper .navbar-nav > li > a,
.header .main-navbar-wrapper .navbar-nav > li > button {
    display: flex;
    min-height: 3.35rem;
    align-items: center;
    padding: 0.65rem 1rem;
    color: var(--buy4b-ink);
    font-weight: 700;
}
.header .main-navbar-wrapper .navbar-nav > li > a:hover,
.header .main-navbar-wrapper .navbar-nav > li.active > a,
.header .main-navbar-wrapper .navbar-nav > li.open > a {
    background: var(--buy4b-surface);
    color: var(--buy4b-primary);
}
.header .dropdown-menu { overflow: hidden; border: 1px solid var(--buy4b-border); border-radius: var(--buy4b-radius); box-shadow: var(--buy4b-shadow-menu); }
.header .dropdown-item { min-height: 2.75rem; padding: 0.7rem 1rem; color: var(--buy4b-text); }
.header .dropdown-item:hover,
.header .dropdown-item:focus { background: var(--buy4b-surface); color: var(--buy4b-primary); }

.master-breadcrumb { border: 0; border-bottom: 1px solid var(--buy4b-border-subtle); background: linear-gradient(90deg, var(--buy4b-surface-strong), var(--buy4b-surface)); }
.master-breadcrumb .breadcrumb { min-height: 3rem; margin: 0; padding-block: 0.8rem; background: transparent; }
.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item a { color: var(--buy4b-muted); font-size: 0.86rem; }
.master-breadcrumb .breadcrumb-item.active { color: var(--buy4b-ink); font-weight: 700; }

/* Main structure */

#main-body { min-height: 58vh; padding: clamp(2rem, 4vw, 4rem) 0; background: #fff; }
#main-body .primary-content > h1,
#main-body .primary-content > .card > .card-body > h1 { color: var(--buy4b-ink); font-weight: 850; letter-spacing: -0.035em; }

.sidebar .panel,
.sidebar .card { overflow: hidden; border: 1px solid var(--buy4b-border); border-radius: var(--buy4b-radius); box-shadow: none; }
.sidebar .panel-heading,
.sidebar .card-header { border-bottom: 1px solid var(--buy4b-border-subtle); background: var(--buy4b-surface); color: var(--buy4b-ink); font-weight: 800; }
.sidebar .list-group-item { border-color: var(--buy4b-border-subtle); color: var(--buy4b-text); }
.sidebar .list-group-item:hover,
.sidebar .list-group-item.active { border-color: var(--buy4b-border-subtle); background: var(--buy4b-surface-strong); color: var(--buy4b-primary-active); }

/* Shared components */

.card,
.panel,
.domain-pricing .tld-pricing-header,
.domain-pricing .tld-row {
    border-color: var(--buy4b-border);
    border-radius: var(--buy4b-radius-lg);
    box-shadow: none;
}

.card-header,
.panel-heading {
    border-color: var(--buy4b-border-subtle);
    background: var(--buy4b-surface);
    color: var(--buy4b-ink);
}

.card-title,
.panel-title { color: var(--buy4b-ink); font-weight: 800; }

.btn {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--buy4b-radius);
    font-weight: 750;
    line-height: 1.2;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.btn-sm,
.btn-xs { min-height: 2.25rem; }
.btn-primary,
.btn-success {
    border-color: var(--buy4b-primary);
    background: linear-gradient(135deg, var(--buy4b-primary), var(--buy4b-primary-active));
    color: #fff;
    box-shadow: 0 0.55rem 1.2rem rgba(198, 63, 0, 0.16);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    border-color: var(--buy4b-primary-hover);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--buy4b-primary), var(--buy4b-primary-hover));
    color: #fff;
    box-shadow: 0 0.8rem 1.6rem rgba(198, 63, 0, 0.22);
}
.btn-primary:active,
.btn-success:active { border-color: var(--buy4b-primary-active); background: var(--buy4b-primary-active); }
.btn-outline-primary,
.btn-default,
.btn-secondary {
    border-color: #5c4a40;
    background: #fff;
    color: var(--buy4b-ink);
}
.btn-outline-primary:hover,
.btn-default:hover,
.btn-secondary:hover {
    border-color: var(--buy4b-primary);
    transform: translateY(-2px);
    background: var(--buy4b-surface);
    color: var(--buy4b-primary-active);
}
.btn-danger { border-color: var(--buy4b-danger); background: var(--buy4b-danger); color: #fff; }
.btn-warning { border-color: var(--buy4b-warning); background: var(--buy4b-warning); color: #fff; }
.btn:disabled,
.btn.disabled { transform: none; cursor: not-allowed; box-shadow: none; opacity: 0.55; }

.form-control,
.custom-select,
select.form-control {
    min-height: 2.75rem;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius);
    background-color: #fff;
    color: var(--buy4b-ink);
}
.form-control:hover,
.custom-select:hover { border-color: #c9855f; }
.form-control:focus,
.custom-select:focus,
select.form-control:focus {
    border-color: var(--buy4b-primary);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}
.form-control:disabled,
.form-control[readonly] { background: var(--buy4b-surface); color: var(--buy4b-muted); }
.input-group-text { border-color: var(--buy4b-border); background: var(--buy4b-surface); color: var(--buy4b-muted); }
label { color: var(--buy4b-ink); font-weight: 700; }
.form-text,
.text-muted { color: var(--buy4b-muted) !important; /* Overrides the compiled WHMCS utility token. */ }
.invalid-feedback,
.field-error-msg { color: var(--buy4b-danger); }

.alert { border: 1px solid; border-radius: var(--buy4b-radius); box-shadow: none; }
.alert-success { border-color: #86c89b; background: #f0fdf4; color: #14532d; }
.alert-info { border-color: #f0a27d; background: var(--buy4b-surface); color: #8b310b; }
.alert-warning { border-color: #f2c486; background: #fff8eb; color: #78350f; }
.alert-danger { border-color: #eaa7a2; background: #fff1f0; color: #7a271a; }

.badge { border-radius: 999px; font-weight: 750; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info,
.badge-primary { background: var(--buy4b-surface-strong); color: var(--buy4b-primary-active); }

.modal-content { overflow: hidden; border: 1px solid var(--buy4b-border); border-radius: var(--buy4b-radius-lg); box-shadow: var(--buy4b-shadow-menu); }
.modal-header,
.modal-footer { border-color: var(--buy4b-border-subtle); background: var(--buy4b-surface); }
.modal-title { color: var(--buy4b-ink); font-weight: 800; }

/* DataTables, invoices, and service lists */

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { border-color: var(--buy4b-border); border-radius: var(--buy4b-radius); }
.dataTables_wrapper .dataTables_filter input { min-height: 2.75rem; padding: 0.55rem 0.8rem; }
.dataTables_info { color: var(--buy4b-muted); }
.table-list { overflow: hidden; border: 1px solid var(--buy4b-border); border-radius: var(--buy4b-radius-lg); }
.table-list thead th,
.table thead th { border-color: var(--buy4b-border); background: var(--buy4b-surface); color: var(--buy4b-ink); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.025em; }
.table-list tbody td,
.table tbody td { border-color: var(--buy4b-border-subtle); color: var(--buy4b-text); vertical-align: middle; }
.table-list tbody tr:hover,
.table-hover tbody tr:hover { background: #fffaf7; }
.pagination .page-link { min-width: 2.75rem; min-height: 2.75rem; border-color: var(--buy4b-border); color: var(--buy4b-ink); }
.pagination .page-item.active .page-link { border-color: var(--buy4b-primary); background: var(--buy4b-primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: var(--buy4b-surface); color: #8796aa; }

/* Portal home */

.home-domain-search { border-bottom: 1px solid var(--buy4b-border-subtle); background: var(--buy4b-surface); }
.home-domain-search h2 { color: var(--buy4b-ink); font-weight: 850; letter-spacing: -0.035em; }
.card-columns.home { column-gap: 1rem; }
.card-columns.home .card { border: 1px solid var(--buy4b-border); }
.card-columns.home .card-body { text-align: left; }
.card-columns.home .pricing-card-title { font-size: 1.35rem; }
.action-icon-btns a { border: 1px solid var(--buy4b-border); border-radius: var(--buy4b-radius); background: #fff; color: var(--buy4b-ink); box-shadow: none; }
.action-icon-btns a:hover { transform: none; border-color: var(--buy4b-primary); background: var(--buy4b-surface); color: var(--buy4b-primary); }
.action-icon-btns .ico-container { color: var(--buy4b-primary-active); }

/* Buy4B dashboard read model */

.buy4b-dashboard,
.buy4b-services-page,
.buy4b-product-details-page { position: relative; }
.buy4b-dashboard::before,
.buy4b-services-page::before,
.buy4b-product-details-page::before {
    content: "";
    position: absolute;
    top: 8.4rem;
    bottom: 1rem;
    left: -2.15rem;
    width: 1px;
    background: linear-gradient(var(--buy4b-primary), var(--buy4b-border-subtle));
}
.buy4b-dashboard::after,
.buy4b-services-page::after,
.buy4b-product-details-page::after {
    content: "";
    position: absolute;
    top: 8.25rem;
    left: -2.42rem;
    width: 0.6rem;
    height: 0.6rem;
    border: 2px solid #fff;
    border-radius: 0.16rem;
    background: var(--buy4b-primary);
    box-shadow: 0 0 0 1px var(--buy4b-primary), 0 0.35rem 1rem rgba(198, 63, 0, 0.2);
    animation: buy4b-packet-rail 5.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.buy4b-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    margin-bottom: 2.3rem;
    padding-bottom: 1.8rem;
    animation: buy4b-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.buy4b-page-heading::after { content: ""; position: absolute; right: 0; bottom: 0; left: 42%; height: 1px; background: linear-gradient(90deg, transparent, var(--buy4b-primary), var(--buy4b-border-subtle)); }
.buy4b-page-heading::before { content: ""; position: absolute; z-index: 1; right: 28%; bottom: -0.28rem; width: 0.58rem; height: 0.58rem; border: 2px solid #fff; border-radius: 0.14rem; background: var(--buy4b-primary); box-shadow: 0 0 0 1px var(--buy4b-primary); animation: buy4b-heading-packet 4.2s ease-in-out infinite; }
.buy4b-page-heading h1 { margin: 0; color: var(--buy4b-ink); font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 880; letter-spacing: -0.055em; line-height: 1; }
.buy4b-page-heading p { margin: 0.7rem 0 0; color: var(--buy4b-muted); font-size: 1.05rem; }
.buy4b-page-heading .btn { min-width: 9.5rem; }

.buy4b-dashboard-section { overflow: hidden; margin-bottom: 1.5rem; border: 1px solid #f0a27d; border-radius: var(--buy4b-radius-lg); background: #fff; box-shadow: 0 0.65rem 1.8rem rgba(119, 56, 24, 0.07); animation: buy4b-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.buy4b-dashboard-section:hover { transform: translateY(-2px); border-color: var(--buy4b-primary); box-shadow: 0 0.9rem 2.2rem rgba(119, 56, 24, 0.11); }
.buy4b-dashboard > .buy4b-dashboard-section { animation-delay: 80ms; }
.buy4b-dashboard-grid .buy4b-dashboard-section:first-child { animation-delay: 150ms; }
.buy4b-dashboard-grid .buy4b-dashboard-section:last-child { animation-delay: 220ms; }
.buy4b-section-heading { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.3rem; border-bottom: 1px solid var(--buy4b-border-subtle); background: linear-gradient(90deg, var(--buy4b-surface-strong), var(--buy4b-surface)); }
.buy4b-section-heading h2 { margin: 0; color: var(--buy4b-ink); font-size: 1.35rem; font-weight: 850; letter-spacing: -0.025em; }
.buy4b-section-heading a { font-size: 0.86rem; font-weight: 750; }
.buy4b-service-list-head,
.buy4b-service-row { display: grid; grid-template-columns: minmax(14rem, 2fr) 0.8fr 1.15fr 1fr 0.95fr 1.1fr; align-items: center; }
.buy4b-service-list-head { min-height: 2.9rem; padding: 0 1.3rem; border-bottom: 1px solid var(--buy4b-border-subtle); background: #f9fbfd; color: var(--buy4b-muted); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.buy4b-service-row { min-height: 7.25rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--buy4b-border-subtle); }
.buy4b-service-row:last-child { border-bottom: 0; }
.buy4b-service-row > div { min-width: 0; padding-right: 0.8rem; }
.buy4b-service-identity strong { display: block; overflow-wrap: anywhere; color: var(--buy4b-ink); font-size: 1.02rem; }
.buy4b-service-identity code { display: inline-block; max-width: 100%; margin-top: 0.35rem; padding: 0.18rem 0.4rem; border-radius: var(--buy4b-radius-sm); background: var(--buy4b-surface); overflow-wrap: anywhere; font-size: 0.78rem; }
.buy4b-service-row [data-label="IP address"] code { padding: 0.18rem 0.4rem; border-radius: var(--buy4b-radius-sm); background: var(--buy4b-surface); font-size: 0.8rem; }
.buy4b-service-row [data-label="Price"] strong,
.buy4b-service-row [data-label="Price"] small { display: block; }
.buy4b-service-row [data-label="Price"] strong { color: var(--buy4b-ink); }
.buy4b-service-row [data-label="Price"] small { color: var(--buy4b-muted); }
.buy4b-service-action .btn { width: 100%; white-space: nowrap; }

.buy4b-status { display: inline-flex; align-items: center; gap: 0.42rem; color: var(--buy4b-text); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.buy4b-status i { width: 0.58rem; height: 0.58rem; border-radius: 50%; background: #718096; }
.buy4b-status-active,
.buy4b-status-paid { color: var(--buy4b-success); }
.buy4b-status-active i,
.buy4b-status-paid i { background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.3); animation: buy4b-status-pulse 2.4s ease-out infinite; }
.buy4b-status-pending,
.buy4b-status-unpaid { color: var(--buy4b-warning); }
.buy4b-status-pending i,
.buy4b-status-unpaid i { background: #d97706; }
.buy4b-status-suspended,
.buy4b-status-cancelled,
.buy4b-status-terminated,
.buy4b-status-fraud,
.buy4b-status-expired,
.buy4b-status-overdue { color: var(--buy4b-danger); }
.buy4b-status-suspended i,
.buy4b-status-cancelled i,
.buy4b-status-terminated i,
.buy4b-status-fraud i,
.buy4b-status-expired i,
.buy4b-status-overdue i { background: var(--buy4b-danger); }

.buy4b-empty-state { display: flex; min-height: 9rem; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem; }
.buy4b-empty-state h3 { margin: 0; color: var(--buy4b-ink); font-size: 1.15rem; }
.buy4b-empty-state p { margin: 0.35rem 0 0; color: var(--buy4b-muted); }

.buy4b-dashboard-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
.buy4b-summary { display: flex; min-height: 19rem; flex-direction: column; }
.buy4b-summary-number { margin: 1.15rem 1.3rem 0; color: var(--buy4b-primary); font-size: 3rem; font-weight: 880; letter-spacing: -0.06em; line-height: 1; }
.buy4b-summary h3 { margin: 1.35rem 1.3rem 0.55rem; color: var(--buy4b-ink); font-size: 0.88rem; font-weight: 800; }
.buy4b-invoice-row { display: grid; min-height: 3.4rem; margin: 0 1.3rem; padding: 0.65rem 0; grid-template-columns: 0.55fr 1fr 0.8fr 0.7fr; align-items: center; gap: 0.75rem; border-block: 1px solid var(--buy4b-border-subtle); color: var(--buy4b-text); text-decoration: none; }
.buy4b-invoice-row:hover { color: var(--buy4b-primary); }
.buy4b-invoice-row code { justify-self: start; padding: 0.12rem 0.35rem; border-radius: var(--buy4b-radius-sm); background: var(--buy4b-surface); }
.buy4b-text-link { margin: 0.9rem 1.3rem 1.15rem; font-weight: 750; }
.buy4b-support-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: auto 1.3rem 1.35rem; }
.buy4b-support-actions .btn { flex: 1 1 9.5rem; }
.buy4b-addon-output { margin-top: 1.5rem; }

/* Services and service details reuse the dashboard's routing-ledger language.
 * WHMCS/DataTables and the provisioning module keep data and action ownership. */

.buy4b-page-kicker,
.buy4b-section-kicker {
    display: block;
    color: var(--buy4b-primary);
    font-family: var(--buy4b-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.buy4b-page-kicker { margin-bottom: 0.55rem; }
.buy4b-section-kicker { margin-bottom: 0.25rem; }

.buy4b-count-badge {
    display: inline-flex;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    align-items: center;
    border: 1px solid var(--buy4b-border);
    border-radius: 999px;
    background: #fff;
    color: var(--buy4b-ink);
    font-family: var(--buy4b-mono);
    font-size: 0.75rem;
    font-weight: 750;
}

.buy4b-services-ledger { position: relative; }
.buy4b-services-ledger .buy4b-section-heading > div { min-width: 0; }
.buy4b-services-table-shell { position: relative; min-height: 9rem; }
.buy4b-services-table-shell .dataTables_wrapper { padding: 0; }
.buy4b-services-table-shell .dataTables_wrapper > .row:first-child {
    margin: 0;
    padding: 0.9rem 1.25rem;
    align-items: center;
    border-bottom: 1px solid var(--buy4b-border-subtle);
    background: #fffaf7;
}
.buy4b-services-table-shell .dataTables_wrapper > .row:last-child {
    margin: 0;
    padding: 0.85rem 1.25rem 1.1rem;
    align-items: center;
}
.buy4b-services-table-shell .dataTables_length,
.buy4b-services-table-shell .dataTables_filter { margin: 0; }
.buy4b-services-table-shell .dataTables_filter label { margin: 0; }
.buy4b-services-table-shell .dataTables_filter input { min-width: min(17rem, 52vw); background: #fff; }

.buy4b-services-table {
    width: 100% !important; /* Overrides DataTables' inline table width. */
    margin: 0 !important; /* Overrides DataTables' generated table margin. */
    border: 0;
    border-radius: 0;
}
.buy4b-services-table thead th {
    height: 3.15rem;
    padding: 0.75rem 1rem;
    border-top: 0;
    background: #fff;
    color: var(--buy4b-muted);
    font-size: 0.72rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
.buy4b-services-table thead th:first-child { width: 3.5rem; }
.buy4b-services-table thead th:last-child { width: 10.5rem; }
.buy4b-services-table tbody td { min-width: 0; padding: 1rem; }
.buy4b-service-table-row { min-height: 6.75rem; transition: background-color 180ms ease; }
.buy4b-service-table-row:hover { background: var(--buy4b-surface); }
.buy4b-service-marker { position: relative; text-align: center; }
.buy4b-service-marker::after {
    position: absolute;
    top: 50%;
    right: -0.1rem;
    left: 50%;
    z-index: 0;
    height: 1px;
    background: var(--buy4b-border-subtle);
    content: "";
}
.buy4b-service-marker img,
.buy4b-service-marker .buy4b-route-node { position: relative; z-index: 1; }

.buy4b-route-node {
    display: inline-block;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid #fff;
    border-radius: 0.12rem;
    background: var(--buy4b-signal);
    box-shadow: 0 0 0 1px var(--buy4b-primary);
}

.buy4b-service-cell-identity a {
    display: inline-block;
    color: var(--buy4b-ink);
    font-size: 1rem;
    text-decoration: none;
}
.buy4b-service-cell-identity a:hover { color: var(--buy4b-primary); }
.buy4b-service-cell-identity code {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.35rem;
    padding: 0.18rem 0.42rem;
    border-radius: var(--buy4b-radius-sm);
    background: var(--buy4b-surface);
    overflow-wrap: anywhere;
    font-size: 0.78rem;
}
.buy4b-service-cell-price strong,
.buy4b-service-cell-price small { display: block; }
.buy4b-service-cell-price strong { color: var(--buy4b-ink); }
.buy4b-service-cell-price small { margin-top: 0.2rem; color: var(--buy4b-muted); }
.buy4b-service-cell-action { text-align: right; }
.buy4b-service-cell-action .btn { width: 100%; white-space: nowrap; }
.buy4b-table-loading {
    display: flex;
    min-height: 9rem;
    align-items: center;
    justify-content: center;
    color: var(--buy4b-muted);
}
.buy4b-table-loading p { margin: 0; }

.buy4b-product-command-deck {
    display: grid;
    overflow: hidden;
    margin-bottom: 1.5rem;
    grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
    border: 1px solid #f0a27d;
    border-radius: var(--buy4b-radius-lg);
    background: #fff;
    box-shadow: 0 0.65rem 1.8rem rgba(119, 56, 24, 0.07);
    animation: buy4b-rise 560ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.buy4b-product-identity {
    position: relative;
    min-width: 0;
    padding: clamp(1.4rem, 3vw, 2.25rem);
}
.buy4b-product-state-line {
    display: flex;
    min-height: 2rem;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 0.85rem;
}
.buy4b-product-state-line::after {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--buy4b-primary), var(--buy4b-border-subtle));
    content: "";
}
.buy4b-product-title-row {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.buy4b-product-icon {
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius);
    background: var(--buy4b-surface-strong);
    color: var(--buy4b-primary);
    font-size: 1.3rem;
}
.buy4b-product-title-row h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--buy4b-ink);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 860;
    letter-spacing: -0.04em;
    line-height: 1.08;
}
.buy4b-product-title-row p { margin: 0.35rem 0 0; color: var(--buy4b-muted); }
.buy4b-product-title-row code {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--buy4b-radius-sm);
    background: var(--buy4b-surface);
    overflow-wrap: anywhere;
}
.buy4b-product-actions {
    display: flex;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    flex-wrap: wrap;
    gap: 0.7rem;
    border-top: 1px solid var(--buy4b-border-subtle);
}
.buy4b-product-actions .btn { min-width: 9.5rem; }
.buy4b-product-actions .buy4b-terminate-action {
    margin: 0;
    padding: 0;
    border: 0;
}
.buy4b-product-actions .buy4b-terminate-action small { margin-top: 0.25rem; }

.buy4b-product-facts {
    min-width: 0;
    border-left: 1px solid var(--buy4b-border-subtle);
    background: linear-gradient(145deg, var(--buy4b-surface), #fff);
}
.buy4b-product-facts-heading {
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--buy4b-border-subtle);
}
.buy4b-product-facts-heading h2 {
    margin: 0;
    color: var(--buy4b-ink);
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}
.buy4b-product-facts dl { margin: 0; }
.buy4b-product-facts dl > div {
    display: grid;
    min-height: 3.8rem;
    padding: 0.8rem 1.35rem;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--buy4b-border-subtle);
}
.buy4b-product-facts dl > div:last-child { border-bottom: 0; }
.buy4b-product-facts dt {
    color: var(--buy4b-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.buy4b-product-facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--buy4b-ink);
    font-weight: 750;
    text-align: right;
}
.buy4b-product-fact-warning { border-left: 3px solid var(--buy4b-warning); background: #fff8eb; }

.buy4b-product-details-page .responsive-tabs-sm {
    margin-top: 1.5rem;
    border-bottom-color: var(--buy4b-border);
}
.buy4b-product-details-page .responsive-tabs-sm .nav-link {
    min-height: 2.9rem;
    border-radius: var(--buy4b-radius) var(--buy4b-radius) 0 0;
    color: var(--buy4b-muted);
    font-weight: 750;
}
.buy4b-product-details-page .responsive-tabs-sm .nav-link:hover,
.buy4b-product-details-page .responsive-tabs-sm .nav-link:focus { color: var(--buy4b-primary); }
.buy4b-product-details-page .responsive-tabs-sm .nav-link.active {
    border-color: var(--buy4b-border) var(--buy4b-border) #fff;
    background: #fff;
    color: var(--buy4b-ink);
}
.buy4b-product-details-page .product-details-tab-container {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--buy4b-border);
    border-top: 0;
    border-radius: 0 0 var(--buy4b-radius-lg) var(--buy4b-radius-lg);
}

@media (max-width: 1199.98px) {
    .buy4b-services-page::before,
    .buy4b-services-page::after,
    .buy4b-product-details-page::before,
    .buy4b-product-details-page::after { display: none; }
}

@media (max-width: 991.98px) {
    .buy4b-product-command-deck { grid-template-columns: 1fr; }
    .buy4b-product-facts { border-top: 1px solid var(--buy4b-border-subtle); border-left: 0; }
}

@media (max-width: 767.98px) {
    .buy4b-services-table-shell .dataTables_wrapper > .row:first-child,
    .buy4b-services-table-shell .dataTables_wrapper > .row:last-child {
        padding: 0.85rem 1rem;
    }
    .buy4b-services-table-shell .dataTables_wrapper > .row:first-child > div {
        width: 100%;
        max-width: none;
        flex: 0 0 100%;
    }
    .buy4b-services-table-shell .dataTables_filter { margin-top: 0.7rem; text-align: left; }
    .buy4b-services-table-shell .dataTables_filter label,
    .buy4b-services-table-shell .dataTables_filter input { width: 100%; min-width: 0; }
    .buy4b-services-table,
    .buy4b-services-table tbody { display: block; }
    .buy4b-services-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .buy4b-services-table tbody tr {
        position: relative;
        display: block;
        margin: 0.9rem;
        padding: 0.4rem 1rem 1rem;
        border: 1px solid var(--buy4b-border-subtle);
        border-radius: var(--buy4b-radius);
        background: #fff;
    }
    .buy4b-services-table tbody td {
        display: grid;
        width: 100% !important; /* Overrides DataTables' inline cell width. */
        min-height: 2.8rem;
        padding: 0.65rem 0;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        align-items: center;
        border-top: 1px solid var(--buy4b-border-subtle);
        border-bottom: 0;
        text-align: left;
    }
    .buy4b-services-table tbody td::before {
        color: var(--buy4b-muted);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        content: attr(data-label);
    }
    .buy4b-services-table tbody .buy4b-service-marker {
        position: absolute;
        top: 1.1rem;
        right: 1rem;
        display: block;
        width: auto !important; /* Overrides DataTables' inline marker-cell width. */
        min-height: 0;
        padding: 0;
        border: 0;
    }
    .buy4b-service-marker::after { display: none; }
    .buy4b-services-table tbody .buy4b-service-cell-identity {
        display: block;
        padding-top: 0.65rem;
        padding-right: 2.5rem;
        border-top: 0;
    }
    .buy4b-service-cell-identity::before { display: none; }
    .buy4b-service-cell-action { display: block !important; /* Overrides DataTables' desktop cell display. */ }
    .buy4b-service-cell-action::before { display: none; }
    .buy4b-service-cell-action .btn { margin-top: 0.25rem; }
    .buy4b-product-identity { padding: 1.2rem; }
    .buy4b-product-title-row { grid-template-columns: 2.9rem minmax(0, 1fr); }
    .buy4b-product-icon { width: 2.9rem; height: 2.9rem; }
    .buy4b-product-actions { align-items: stretch; flex-direction: column; }
    .buy4b-product-actions .btn,
    .buy4b-product-actions .buy4b-terminate-action { width: 100%; }
    .buy4b-product-facts dl > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    .buy4b-product-facts dd { text-align: left; }
}

@media (forced-colors: active) {
    .buy4b-services-ledger,
    .buy4b-product-command-deck,
    .buy4b-services-table tbody tr,
    .buy4b-product-icon { border: 1px solid ButtonText; }
}

/* Standard Cart / store */

#order-standard_cart { color: var(--buy4b-text); }
#order-standard_cart h1,
#order-standard_cart h2,
#order-standard_cart h3,
#order-standard_cart h4 { color: var(--buy4b-ink); font-weight: 850; letter-spacing: -0.025em; }
#order-standard_cart .products .product,
#order-standard_cart .product,
#order-standard_cart .view-cart-items .item {
    overflow: hidden;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius-lg);
    background: #fff;
    box-shadow: 0 0.55rem 1.5rem rgba(119, 56, 24, 0.05);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
#order-standard_cart .products .product:hover,
#order-standard_cart .product:hover { transform: translateY(-2px); border-color: var(--buy4b-primary); box-shadow: 0 0.9rem 2rem rgba(119, 56, 24, 0.1); }
#order-standard_cart .products .product header,
#order-standard_cart .product header { border-bottom: 1px solid var(--buy4b-border-subtle); background: var(--buy4b-surface); color: var(--buy4b-ink); }
#order-standard_cart .products .product .product-desc,
#order-standard_cart .products .product .product-pricing { color: var(--buy4b-text); }
#order-standard_cart .products .product .product-pricing .price { color: var(--buy4b-ink); font-weight: 850; }
#order-standard_cart .categories-collapsed,
#order-standard_cart .categories-sidebar .panel,
#order-standard_cart .order-summary { border-color: var(--buy4b-border); border-radius: var(--buy4b-radius-lg); box-shadow: none; }
#order-standard_cart .order-summary { border: 1px solid var(--buy4b-border); background: #fff; }
#order-standard_cart .order-summary h2 { background: var(--buy4b-ink); color: #fff; }
#order-standard_cart .field-container { padding: 1rem; border: 1px solid var(--buy4b-border-subtle); border-radius: var(--buy4b-radius); background: var(--buy4b-surface); }

/* Domain search: all active extensions, one Buy4B registry sweep. */

#order-standard_cart .domain-checker-container.domain-checker-advanced {
    margin: 1.4rem 0 2rem;
}

#order-standard_cart .domain-checker-container.domain-checker-advanced .domain-checker-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 30rem;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.1rem, 5vw, 4.5rem) 2.1rem;
    border: 1px solid var(--buy4b-primary-active);
    border-radius: var(--buy4b-radius-lg);
    background:
        linear-gradient(rgba(255, 107, 26, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 26, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 82% 18%, rgba(255, 107, 26, 0.2), transparent 26rem),
        linear-gradient(135deg, var(--buy4b-canvas-dark), var(--buy4b-canvas-raised) 58%, var(--buy4b-canvas-soft));
    background-size: 3.25rem 3.25rem, 3.25rem 3.25rem, auto, auto;
    box-shadow: inset 0 1px 0 rgba(255, 154, 84, 0.2), 0 1.2rem 2.8rem rgba(82, 43, 24, 0.16);
}

#order-standard_cart .domain-checker-container.domain-checker-advanced .domain-checker-bg::before,
#order-standard_cart .domain-checker-container.domain-checker-advanced .domain-checker-bg::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 107, 26, 0.32);
    border-radius: 50%;
    pointer-events: none;
}

#order-standard_cart .domain-checker-container.domain-checker-advanced .domain-checker-bg::before {
    top: -6rem;
    right: -7rem;
    width: 25rem;
    height: 25rem;
}

#order-standard_cart .domain-checker-container.domain-checker-advanced .domain-checker-bg::after {
    top: 3rem;
    right: 2rem;
    width: 16rem;
    height: 16rem;
    opacity: 0.7;
}

#order-standard_cart .buy4b-domain-intro {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    margin: 0 auto 1.8rem;
    text-align: center;
}

#order-standard_cart .buy4b-domain-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--buy4b-shine);
    font-family: var(--buy4b-mono);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#order-standard_cart .buy4b-domain-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 880;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

#order-standard_cart .buy4b-domain-detail {
    max-width: 34rem;
    margin: 0.85rem auto 0;
    color: var(--buy4b-surface-strong);
    font-size: 1rem;
}

#order-standard_cart .buy4b-domain-signal {
    position: absolute;
    top: -0.15rem;
    left: -1.2rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid var(--buy4b-canvas-dark);
    border-radius: 0.12rem;
    background: var(--buy4b-signal);
    box-shadow: 0 0 0 1px var(--buy4b-signal), 0 0 1rem rgba(255, 107, 26, 0.65);
    animation: buy4b-domain-packet 4.8s ease-in-out infinite;
}

#order-standard_cart #frmDomainChecker {
    position: relative;
    z-index: 2;
}

#order-standard_cart #frmDomainChecker > .row {
    margin-right: 0;
    margin-left: 0;
}

#order-standard_cart #frmDomainChecker > .row > [class*="col-"] {
    width: 100%;
    max-width: 50rem;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    flex: 0 0 100%;
}

#order-standard_cart #frmDomainChecker .input-group-box {
    display: grid;
    padding: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    border: 1px solid rgba(255, 154, 84, 0.38);
    border-radius: var(--buy4b-radius-lg);
    background: #fff;
    box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.25), inset 0 1px 0 #fff;
}

#order-standard_cart .buy4b-domain-query {
    position: relative;
    min-width: 0;
}

#order-standard_cart .buy4b-domain-label {
    display: block;
    margin: 0 0 0.36rem;
    color: var(--buy4b-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#order-standard_cart #frmDomainChecker #message,
#order-standard_cart #frmDomainChecker #inputDomain {
    display: block;
    width: 100%;
    min-height: 3.6rem;
    max-height: 8rem;
    margin: 0;
    padding: 0.9rem 4rem 0.9rem 1rem;
    resize: vertical;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius);
    background: var(--buy4b-bg);
    color: var(--buy4b-ink);
    font-family: var(--buy4b-font);
    font-size: 1rem;
    line-height: 1.45;
}

#order-standard_cart #frmDomainChecker #message::placeholder,
#order-standard_cart #frmDomainChecker #inputDomain::placeholder {
    color: var(--buy4b-muted);
    opacity: 1;
}

#order-standard_cart #frmDomainChecker #message:focus,
#order-standard_cart #frmDomainChecker #inputDomain:focus {
    border-color: var(--buy4b-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.17);
}

#order-standard_cart .buy4b-domain-clear {
    position: absolute;
    right: 0.65rem;
    bottom: 0.68rem;
    min-width: 2.45rem;
    min-height: 2.2rem;
    padding: 0 0.45rem;
    border: 0;
    border-radius: var(--buy4b-radius-sm);
    background: var(--buy4b-surface);
    color: var(--buy4b-muted);
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

#order-standard_cart .buy4b-domain-clear:hover {
    background: var(--buy4b-surface-strong);
    color: var(--buy4b-primary-active);
}

#order-standard_cart #frmDomainChecker #btnCheckAvailability {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    min-width: 13.5rem;
    min-height: 3.6rem;
    padding: 0.8rem 1.2rem;
    white-space: nowrap;
}

#order-standard_cart #frmDomainChecker .buy4b-domain-native-filter,
#order-standard_cart #frmDomainChecker .buy4b-domain-filter-control {
    display: none;
}

#order-standard_cart #frmDomainChecker .input-group-box > label {
    display: inline-flex;
    min-height: 2rem;
    margin: 0;
    align-items: center;
    gap: 0.48rem;
    color: var(--buy4b-text);
    font-size: 0.82rem;
    font-weight: 700;
}

#order-standard_cart #frmDomainChecker .input-group-box > label input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--buy4b-primary);
}

#order-standard_cart .buy4b-domain-scope {
    margin: 0;
    justify-self: end;
    color: var(--buy4b-muted);
    font-family: var(--buy4b-mono);
    font-size: 0.75rem;
}

#order-standard_cart #frmDomainChecker .captcha-container {
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 154, 84, 0.35);
    border-radius: var(--buy4b-radius);
    background: rgba(255, 247, 241, 0.98);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.16);
}

#order-standard_cart #frmDomainChecker .default-captcha {
    margin: 0;
}

#order-standard_cart #frmDomainChecker .default-captcha p {
    margin: 0 0 0.55rem;
    color: var(--buy4b-text);
    font-weight: 700;
}

#order-standard_cart #frmDomainChecker .default-captcha > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

#order-standard_cart #frmDomainChecker #inputCaptcha {
    width: 8.5rem;
    min-height: 2.75rem;
}

#order-standard_cart #DomainSearchResults {
    overflow: hidden;
    margin: 0 0 2rem;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius-lg);
    background: #fff;
    box-shadow: 0 0.8rem 2.2rem rgba(119, 56, 24, 0.08);
}

#order-standard_cart #DomainSearchResults .primary-domain-header,
#order-standard_cart #DomainSearchResults .suggested-domains > .panel-heading {
    padding: 0.9rem 1.2rem;
    border: 0;
    border-bottom: 1px solid var(--buy4b-border-subtle);
    background: linear-gradient(90deg, var(--buy4b-surface-strong), var(--buy4b-surface));
    color: var(--buy4b-ink);
    font-weight: 850;
    letter-spacing: -0.01em;
}

#order-standard_cart #DomainSearchResults .domain-checker-result-headline {
    margin: 0;
    padding: 1.2rem;
    border: 0;
    background: #fff;
}

#order-standard_cart #DomainSearchResults .domain-suggestion {
    min-height: 4.5rem;
    padding: 0.9rem 1.2rem;
    border-color: var(--buy4b-border-subtle);
    color: var(--buy4b-text);
}

#order-standard_cart #DomainSearchResults .domain-suggestion .domain,
#order-standard_cart #DomainSearchResults .domain-suggestion .extension {
    color: var(--buy4b-ink);
    font-family: var(--buy4b-mono);
    font-weight: 750;
}

#order-standard_cart .domain-pricing {
    margin-top: 2.5rem;
}

#order-standard_cart .domain-pricing > h4 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

#order-standard_cart .domain-pricing .tld-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#order-standard_cart .domain-pricing .tld-filters .badge {
    min-height: 2.35rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius-sm);
    background: #fff;
    color: var(--buy4b-text);
}

#order-standard_cart .domain-pricing .tld-filters .badge:hover,
#order-standard_cart .domain-pricing .tld-filters .badge.active {
    border-color: var(--buy4b-primary);
    background: var(--buy4b-surface-strong);
    color: var(--buy4b-primary-active);
}

#order-standard_cart .domain-pricing .bg-white {
    overflow: hidden;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius-lg);
}

#order-standard_cart .domain-pricing .tld-pricing-header,
#order-standard_cart .domain-pricing .tld-row {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--buy4b-border-subtle);
    border-radius: 0;
}

#order-standard_cart .domain-pricing .tld-pricing-header {
    background: var(--buy4b-ink);
    color: #fff;
}

#order-standard_cart .domain-pricing .tld-row:last-child {
    border-bottom: 0;
}

@keyframes buy4b-domain-packet {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3.5rem); }
}

@media (max-width: 767.98px) {
    #order-standard_cart .domain-checker-container.domain-checker-advanced .domain-checker-bg {
        min-height: 0;
        padding: 2.2rem 1rem 1rem;
    }

    #order-standard_cart .buy4b-domain-intro {
        text-align: left;
    }

    #order-standard_cart .buy4b-domain-detail {
        margin-left: 0;
    }

    #order-standard_cart .buy4b-domain-signal {
        display: none;
    }

    #order-standard_cart #frmDomainChecker .input-group-box {
        grid-template-columns: 1fr;
    }

    #order-standard_cart #frmDomainChecker #btnCheckAvailability {
        width: 100%;
        min-width: 0;
    }

    #order-standard_cart .buy4b-domain-scope {
        justify-self: start;
    }

    #order-standard_cart #frmDomainChecker .default-captcha > div {
        align-items: stretch;
        flex-direction: column;
    }

    #order-standard_cart #frmDomainChecker #inputCaptcha {
        width: 100%;
    }
}

/* Legal pages: override the legacy inline direction with the shared contract. */

body .buy4b-legal-page { color: var(--buy4b-text); }
body .buy4b-legal-heading { border: 1px solid var(--buy4b-border); border-radius: var(--buy4b-radius-lg); background: var(--buy4b-ink); box-shadow: none; }
body .buy4b-legal-eyebrow { color: #ffb088; }
body .buy4b-legal-summary { color: #f8e1d3; }
body .buy4b-legal-meta { border-radius: var(--buy4b-radius); }
body .buy4b-legal-nav,
body .buy4b-legal-content { border-color: var(--buy4b-border); border-radius: var(--buy4b-radius-lg); box-shadow: none; }
body .buy4b-legal-nav a { border-color: var(--buy4b-border-subtle); color: var(--buy4b-text); }
body .buy4b-legal-nav a:hover,
body .buy4b-legal-nav a.active { border-color: var(--buy4b-primary); background: var(--buy4b-surface-strong); color: var(--buy4b-primary-active); }
body .buy4b-legal-content h2 { color: var(--buy4b-ink); }
body .buy4b-legal-content p,
body .buy4b-legal-content li { color: var(--buy4b-text); }
body .buy4b-legal-help { border-color: #f0a27d; border-radius: var(--buy4b-radius-lg); background: var(--buy4b-surface); }

/* Footer */

body #footer.footer { margin-top: 0; padding: 2.3rem 0; border-top: 1px solid var(--buy4b-border-subtle); background: var(--buy4b-surface); color: var(--buy4b-text); }
body #footer.footer .nav-link { color: var(--buy4b-text); }
body #footer.footer .nav-link:hover { color: var(--buy4b-primary); }
body #footer.footer .copyright { color: var(--buy4b-muted); }
body #footer.footer .btn { border-color: var(--buy4b-border); background: #fff; color: var(--buy4b-ink); }

/* Motion is bound to route/state changes and disabled below for reduced motion. */

@keyframes buy4b-rise {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buy4b-packet-rail {
    0%, 12% { opacity: 0; transform: translateY(0); }
    18% { opacity: 1; }
    82% { opacity: 1; }
    88%, 100% { opacity: 0; transform: translateY(28rem); }
}

@keyframes buy4b-heading-packet {
    0%, 100% { transform: translateX(-1.2rem); opacity: 0.55; }
    50% { transform: translateX(1.2rem); opacity: 1; }
}

@keyframes buy4b-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.3); }
    70%, 100% { box-shadow: 0 0 0 0.55rem rgba(22, 163, 74, 0); }
}

@media (max-width: 1199.98px) {
    .header .main-navbar-wrapper { min-height: 0; }
    .header .main-navbar-wrapper .navbar-collapse.show,
    .header .main-navbar-wrapper .navbar-collapse.collapsing { padding: 0.75rem 0 1rem; }
    .header .main-navbar-wrapper .navbar-nav > li > a,
    .header .main-navbar-wrapper .navbar-nav > li > button { border-bottom: 1px solid var(--buy4b-border-subtle); }
    .buy4b-dashboard::before,
    .buy4b-dashboard::after { display: none; }
    .buy4b-service-list-head { display: none; }
    .buy4b-service-row { grid-template-columns: minmax(14rem, 1.6fr) repeat(4, 1fr); }
    .buy4b-service-action { grid-column: 1 / -1; margin-top: 0.8rem; }
    .buy4b-service-action .btn { width: auto; }
}

@media (max-width: 991.98px) {
    #main-body { padding-top: 2rem; }
    .buy4b-service-row { grid-template-columns: 1.4fr 0.8fr 1fr; gap: 0.9rem; }
    .buy4b-service-row [data-label="Next due"],
    .buy4b-service-row [data-label="Price"] { padding-top: 0.75rem; border-top: 1px solid var(--buy4b-border-subtle); }
    .buy4b-service-action { grid-column: auto; align-self: end; margin: 0; }
    .buy4b-dashboard-grid { grid-template-columns: 1fr; }
    .buy4b-summary { min-height: 16rem; }
}

@media (max-width: 767.98px) {
    html { font-size: 14px; }
    .header .navbar-light { min-height: 4.2rem; }
    .header .navbar-brand { font-size: 1.45rem; }
    .header .topbar .container { padding-inline: 0.75rem; }
    .header .topbar .btn { padding-inline: 0.55rem; }
    #main-body { padding-block: 1.6rem; }
    .buy4b-page-heading { align-items: stretch; flex-direction: column; margin-bottom: 1.5rem; }
    .buy4b-page-heading .btn { align-self: flex-start; }
    .buy4b-page-heading h1 { font-size: 2.65rem; }
    .buy4b-section-heading { align-items: flex-start; flex-direction: column; padding-block: 0.9rem; }
    .buy4b-service-row { display: block; padding: 1.1rem; }
    .buy4b-service-row > div {
        display: grid;
        min-height: 2.75rem;
        padding: 0.55rem 0;
        grid-template-columns: 7rem 1fr;
        align-items: center;
        border-top: 1px solid var(--buy4b-border-subtle);
    }
    .buy4b-service-row > div::before { content: attr(data-label); color: var(--buy4b-muted); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
    .buy4b-service-row .buy4b-service-identity { display: block; padding-top: 0; border-top: 0; }
    .buy4b-service-row .buy4b-service-identity::before { display: none; }
    .buy4b-service-identity { margin-bottom: 0.75rem; }
    .buy4b-service-row [data-label="Next due"],
    .buy4b-service-row [data-label="Price"] { border-top: 1px solid var(--buy4b-border-subtle); }
    .buy4b-service-action { margin-top: 0.55rem; }
    .buy4b-service-action .btn { width: 100%; }
    .buy4b-empty-state { align-items: stretch; flex-direction: column; }
    .buy4b-invoice-row { grid-template-columns: 0.6fr 1.2fr 0.9fr; }
    .buy4b-invoice-row .buy4b-status { grid-column: 1 / -1; }
    .buy4b-support-actions { align-items: stretch; flex-direction: column; }
    .buy4b-support-actions .btn { flex-basis: auto; }
    .table-responsive,
    .dataTables_wrapper { overflow-x: auto; scrollbar-gutter: stable; }
    .modal-dialog { max-height: calc(100dvh - 2rem); margin: 1rem; }
    .modal-content { max-height: calc(100dvh - 2rem); }
    .modal-body { overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important; /* Required accessibility override. */
        transition-duration: 0.01ms !important; /* Required accessibility override. */
        animation-duration: 0.01ms !important; /* Required accessibility override. */
        animation-iteration-count: 1 !important; /* Required accessibility override. */
    }
}

@media (forced-colors: active) {
    .btn,
    .card,
    .panel,
    .buy4b-dashboard-section,
    .table-list { border: 1px solid ButtonText; }
    .buy4b-status i { forced-color-adjust: none; }
}

/* Support request route: WHMCS keeps form, validation, CAPTCHA, attachment,
 * autosave, and submission ownership. This layer only composes the route. */

.buy4b-ticket-form { margin: 0; }
.buy4b-ticket-layout {
    display: grid;
    grid-template-columns: minmax(14.5rem, 17rem) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.6vw, 2rem);
    align-items: start;
}
.buy4b-ticket-layout--embedded { display: block; }
.buy4b-ticket-main { min-width: 0; }
.buy4b-ticket-rail { display: grid; gap: 1rem; }
.buy4b-ticket-rail-card,
.buy4b-ticket-context,
.buy4b-ticket-card {
    overflow: hidden;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius-lg);
    background: var(--buy4b-bg);
}
.buy4b-ticket-rail-card h2 {
    display: flex;
    min-height: 3.4rem;
    margin: 0;
    padding: 0.9rem 1rem;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--buy4b-border-subtle);
    background: var(--buy4b-surface);
    color: var(--buy4b-ink);
    font-size: 1rem;
    font-weight: 800;
}
.buy4b-ticket-rail-card h2 i { color: var(--buy4b-primary); }
.buy4b-ticket-nav { display: grid; }
.buy4b-ticket-nav a {
    display: flex;
    min-height: 3.15rem;
    padding: 0.7rem 0.9rem;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid var(--buy4b-border-subtle);
    color: var(--buy4b-text);
    font-weight: 650;
    text-decoration: none;
}
.buy4b-ticket-nav a:last-child { border-bottom: 0; }
.buy4b-ticket-nav a i { width: 1.2rem; color: var(--buy4b-muted); text-align: center; }
.buy4b-ticket-nav a:hover,
.buy4b-ticket-nav a:focus,
.buy4b-ticket-nav a.is-active {
    background: var(--buy4b-surface-strong);
    color: var(--buy4b-primary-active);
}
.buy4b-ticket-nav a.is-active { box-shadow: inset 3px 0 0 var(--buy4b-primary); }
.buy4b-ticket-nav a.is-active i { color: var(--buy4b-primary); }
.buy4b-ticket-context { padding: 1.15rem; background: var(--buy4b-surface); }
.buy4b-ticket-context h2 { margin: 0.35rem 0 0.8rem; color: var(--buy4b-ink); font-size: 1.1rem; font-weight: 800; }
.buy4b-ticket-context ul { margin: 0; padding-left: 1.2rem; color: var(--buy4b-text); }
.buy4b-ticket-context li + li { margin-top: 0.35rem; }
.buy4b-ticket-context p { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--buy4b-border-subtle); color: var(--buy4b-muted); font-size: 0.82rem; line-height: 1.55; }

.buy4b-ticket-card { position: relative; }
.buy4b-ticket-header {
    position: relative;
    padding: clamp(1.45rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--buy4b-border-subtle);
    background: linear-gradient(125deg, #fff 0%, var(--buy4b-surface) 100%);
}
.buy4b-ticket-header::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--buy4b-primary) 0 18%, var(--buy4b-border-subtle) 18% 100%);
    content: "";
}
.buy4b-ticket-header::after {
    position: absolute;
    top: -0.25rem;
    left: 18%;
    width: 0.7rem;
    height: 0.7rem;
    border: 2px solid #fff;
    background: var(--buy4b-signal);
    content: "";
}
.buy4b-ticket-kicker {
    color: var(--buy4b-primary);
    font-family: var(--buy4b-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.buy4b-ticket-header h1 {
    margin: 0.45rem 0 0.55rem;
    color: var(--buy4b-ink);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.buy4b-ticket-header p { max-width: 46rem; margin: 0; color: var(--buy4b-muted); font-size: 1rem; }
.buy4b-ticket-form-body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.buy4b-ticket-form-body .form-group { margin-bottom: 1.25rem; }
.buy4b-ticket-form-body label { margin-bottom: 0.45rem; color: var(--buy4b-ink); font-weight: 750; }
.buy4b-ticket-form-body textarea { min-height: 15rem; resize: none; }
.buy4b-ticket-form-body .md-editor,
.buy4b-ticket-form-body .markdown-editor { border-color: var(--buy4b-border); border-radius: var(--buy4b-radius); }
.buy4b-ticket-form-body .md-header { border-color: var(--buy4b-border-subtle); background: var(--buy4b-surface); }
.buy4b-ticket-form-body .alert { margin-bottom: 1.4rem; }
.buy4b-ticket-attachments {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--buy4b-border-subtle);
    border-radius: var(--buy4b-radius);
    background: var(--buy4b-surface);
}
.buy4b-ticket-upload-help { margin: 0.6rem 0 0; color: var(--buy4b-muted); font-size: 0.8rem; }
.buy4b-ticket-upload-help i { margin-right: 0.35rem; color: var(--buy4b-primary); }
.buy4b-ticket-captcha {
    display: flex;
    min-height: 6rem;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--buy4b-border-subtle);
}
.buy4b-ticket-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; padding-top: 0.5rem; }
.buy4b-ticket-actions .btn { min-width: 8.5rem; }

.buy4b-ticket-departments { display: grid; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.buy4b-ticket-department {
    display: grid;
    min-height: 5.5rem;
    padding: 1rem;
    grid-template-columns: 2.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--buy4b-border-subtle);
    border-radius: var(--buy4b-radius);
    background: #fff;
    color: var(--buy4b-text);
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.buy4b-ticket-department:hover,
.buy4b-ticket-department:focus {
    transform: translateY(-2px);
    border-color: var(--buy4b-primary);
    background: var(--buy4b-surface);
    color: var(--buy4b-primary-active);
    text-decoration: none;
}
.buy4b-ticket-department-icon {
    display: inline-flex;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--buy4b-border);
    border-radius: var(--buy4b-radius-sm);
    background: var(--buy4b-surface-strong);
    color: var(--buy4b-primary);
}
.buy4b-ticket-department-copy { display: grid; gap: 0.2rem; min-width: 0; }
.buy4b-ticket-department-copy strong { color: var(--buy4b-ink); font-size: 1.05rem; }
.buy4b-ticket-department-copy span { color: var(--buy4b-muted); line-height: 1.5; }

@media (max-width: 991.98px) {
    .buy4b-ticket-layout { grid-template-columns: 1fr; }
    .buy4b-ticket-rail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .buy4b-ticket-rail { grid-template-columns: 1fr; }
    .buy4b-ticket-header,
    .buy4b-ticket-form-body,
    .buy4b-ticket-departments { padding: 1.15rem; }
    .buy4b-ticket-header h1 { font-size: 1.8rem; }
    .buy4b-ticket-actions { align-items: stretch; flex-direction: column; }
    .buy4b-ticket-actions .btn { width: 100%; }
    .buy4b-ticket-attachments .input-group { display: block; }
    .buy4b-ticket-attachments .input-group-append { margin-top: 0.65rem; }
    .buy4b-ticket-attachments .input-group-append .btn { width: 100%; }
    .buy4b-ticket-department { grid-template-columns: 2.7rem minmax(0, 1fr); }
    .buy4b-ticket-department > .fa-arrow-right { display: none; }
}

@media (forced-colors: active) {
    .buy4b-ticket-rail-card,
    .buy4b-ticket-context,
    .buy4b-ticket-card,
    .buy4b-ticket-department { border: 1px solid ButtonText; }
}

/* Client-owned server termination. The control stays visually separated from
 * routine power actions, while Bootstrap remains the canonical modal owner. */

.buy4b-terminate-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1c5c1;
    text-align: center;
}

.buy4b-terminate-action .btn {
    min-height: 2.75rem;
    border-color: var(--buy4b-danger);
    color: var(--buy4b-danger);
    font-weight: 750;
}

.buy4b-terminate-action .btn:hover,
.buy4b-terminate-action .btn:focus {
    border-color: #7f1d1d;
    background: #fff1f0;
    color: #7f1d1d;
}

.buy4b-terminate-action small {
    display: block;
    margin-top: 0.4rem;
    color: var(--buy4b-muted);
    font-size: 0.76rem;
}

.buy4b-termination-modal .modal-dialog { max-width: 37rem; }

.buy4b-termination-modal .modal-content {
    overflow: hidden;
    border: 1px solid #e7a5a0;
    border-radius: var(--buy4b-radius-lg);
    box-shadow: 0 1.5rem 4rem rgba(93, 24, 18, 0.2);
}

.buy4b-termination-modal .modal-header {
    align-items: flex-start;
    border-bottom-color: #f1c5c1;
    background: linear-gradient(105deg, #fff 0%, #fff5f4 100%);
}

.buy4b-termination-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--buy4b-danger);
    font-family: var(--buy4b-mono);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.buy4b-termination-modal .modal-title {
    color: var(--buy4b-ink);
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.buy4b-termination-modal .modal-body { padding: 1.35rem; }

.buy4b-termination-warning {
    margin: 0 0 1rem;
    color: #7f1d1d;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5;
}

.buy4b-termination-summary {
    display: grid;
    margin: 0 0 1rem;
    border: 1px solid var(--buy4b-border-subtle);
    border-radius: var(--buy4b-radius);
    background: var(--buy4b-surface);
}

.buy4b-termination-summary > div {
    display: grid;
    padding: 0.75rem 0.9rem;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
}

.buy4b-termination-summary > div + div { border-top: 1px solid var(--buy4b-border-subtle); }
.buy4b-termination-summary dt { color: var(--buy4b-muted); font-weight: 650; }
.buy4b-termination-summary dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--buy4b-ink);
    font-family: var(--buy4b-mono);
    font-weight: 700;
}

.buy4b-termination-consequences {
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--buy4b-danger);
    background: #fff7f6;
    color: var(--buy4b-text);
}

.buy4b-termination-consequences p { margin: 0 0 0.45rem; color: #7f1d1d; font-weight: 800; }
.buy4b-termination-consequences ul { margin: 0; padding-left: 1.2rem; }
.buy4b-termination-consequences li + li { margin-top: 0.25rem; }

.buy4b-hostname-confirmation { font-family: var(--buy4b-mono); }
.buy4b-confirmation-error { margin: 0.4rem 0 0; color: var(--buy4b-danger); font-size: 0.83rem; font-weight: 700; }

.buy4b-termination-modal .modal-footer {
    gap: 0.65rem;
    border-top-color: #f1c5c1;
    background: #fffaf9;
}

.buy4b-termination-confirm {
    position: relative;
    min-width: 10.5rem;
    min-height: 2.75rem;
}

.buy4b-termination-confirm__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: buy4b-termination-spin 700ms linear infinite;
}

.buy4b-termination-confirm.is-busy .buy4b-termination-confirm__label { visibility: hidden; }
.buy4b-termination-confirm.is-busy .buy4b-termination-confirm__spinner { display: block; }

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

@media (max-width: 575.98px) {
    .buy4b-termination-modal .modal-dialog { margin: 0.75rem; }
    .buy4b-termination-summary > div { grid-template-columns: 1fr; gap: 0.2rem; }
    .buy4b-termination-modal .modal-footer { align-items: stretch; flex-direction: column-reverse; }
    .buy4b-termination-modal .modal-footer .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .buy4b-termination-confirm__spinner { animation: none; border-color: #fff; opacity: 0.8; }
}

@media (forced-colors: active) {
    .buy4b-terminate-action .btn,
    .buy4b-termination-modal .modal-content,
    .buy4b-termination-summary,
    .buy4b-termination-consequences { border-color: ButtonText; }
}

/* Signal Glass email verification
 *
 * This named variant is deliberately limited to the short account-verification
 * transition. WHMCS keeps ownership of resend, dismiss, link validation, and
 * result routing; these rules provide only the approved Buy4B presentation.
 */

.buy4b-verification-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc39c;
    font-family: var(--buy4b-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.buy4b-verification-kicker::before {
    width: 1.65rem;
    height: 1px;
    background: currentColor;
    content: "";
}

.buy4b-verification-banner {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 0.8rem 0;
    border: 0;
    background:
        radial-gradient(circle at 12% -80%, rgba(255, 154, 84, 0.42), transparent 38%),
        linear-gradient(112deg, #120d0a 0%, var(--buy4b-canvas-raised) 52%, #120d0a 100%);
    color: #fff;
}

.buy4b-verification-banner::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    transform: perspective(300px) rotateX(58deg) scale(1.35);
    transform-origin: center bottom;
}

.buy4b-verification-banner__shell {
    position: relative;
    display: grid;
    min-height: 6rem;
    padding: 1rem 3.6rem 1rem 1rem;
    grid-template-columns: 3.2rem minmax(0, 1fr) minmax(10rem, auto);
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 195, 156, 0.34);
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1.25rem 3rem rgba(0, 0, 0, 0.22);
    clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem));
    backdrop-filter: blur(14px) saturate(120%);
}

.buy4b-verification-banner__shell::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(var(--buy4b-shine), var(--buy4b-signal));
    content: "";
}

.buy4b-verification-banner__signal {
    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 195, 156, 0.44);
    border-radius: var(--buy4b-radius);
    background: rgba(255, 107, 26, 0.14);
    box-shadow: inset 0 0 1.25rem rgba(255, 107, 26, 0.12);
    color: #ffc39c;
    font-size: 1.2rem;
}

.buy4b-verification-banner__copy { min-width: 0; }

.buy4b-verification-banner__copy h2 {
    margin: 0.28rem 0 0.1rem;
    color: #fff;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 820;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.buy4b-verification-banner__copy p {
    margin: 0;
    color: #d9c9c1;
    font-size: 0.86rem;
    line-height: 1.45;
}

.buy4b-verification-banner__action .btn {
    display: inline-flex;
    min-width: 10rem;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-color: rgba(255, 195, 156, 0.72);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 780;
}

.buy4b-verification-banner__action .btn:hover,
.buy4b-verification-banner__action .btn:focus {
    border-color: #ffc39c;
    background: rgba(255, 107, 26, 0.2);
    color: #fff;
}

.buy4b-verification-banner__action .btn:focus-visible,
.buy4b-verification-banner__close:focus-visible {
    outline-color: #ffc39c;
}

.buy4b-verification-banner__close {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: -22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e6d7cf;
    font-size: 1.75rem;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
}

.buy4b-verification-banner__close:hover,
.buy4b-verification-banner__close:focus { background: rgba(255, 255, 255, 0.08); color: #fff; opacity: 1; }

.buy4b-verification-page {
    position: relative;
    display: grid;
    min-height: min(42rem, calc(100vh - 15rem));
    padding: clamp(1rem, 4vw, 3rem) 0;
    place-items: center;
}

.buy4b-verification-card {
    --buy4b-verification-accent: var(--buy4b-signal);
    position: relative;
    width: min(100%, 46rem);
    overflow: hidden;
    border: 1px solid rgba(255, 195, 156, 0.34);
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 154, 84, 0.25), transparent 34%),
        linear-gradient(135deg, #0e0b09 0%, var(--buy4b-canvas-raised) 58%, #130d0a 100%);
    box-shadow: 0 2rem 5rem rgba(69, 34, 16, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 2rem 100%, 0 calc(100% - 2rem));
    color: #fff;
    isolation: isolate;
}

.buy4b-verification-card::before,
.buy4b-verification-card::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.buy4b-verification-card::before {
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, transparent, #000 35%);
}

.buy4b-verification-card::after {
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--buy4b-verification-accent), transparent);
}

.buy4b-verification-card--success { --buy4b-verification-accent: #36d26a; }
.buy4b-verification-card--expired { --buy4b-verification-accent: var(--buy4b-shine); }
.buy4b-verification-card--error { --buy4b-verification-accent: #ff6b60; }

.buy4b-verification-card__glow {
    position: absolute;
    top: -9rem;
    left: 50%;
    z-index: -1;
    width: 32rem;
    height: 22rem;
    margin-left: -16rem;
    border-radius: 50%;
    background: var(--buy4b-verification-accent);
    filter: blur(90px);
    opacity: 0.16;
}

.buy4b-verification-card__content {
    display: flex;
    min-height: 30rem;
    padding: clamp(2rem, 6vw, 4.75rem);
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.buy4b-verification-card__icon {
    display: inline-flex;
    width: 5.25rem;
    height: 5.25rem;
    margin: 1.6rem 0 1.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--buy4b-verification-accent) 58%, transparent);
    border-radius: 1.4rem;
    background: color-mix(in srgb, var(--buy4b-verification-accent) 14%, transparent);
    box-shadow: inset 0 0 2rem color-mix(in srgb, var(--buy4b-verification-accent) 14%, transparent), 0 0 2.5rem color-mix(in srgb, var(--buy4b-verification-accent) 12%, transparent);
    color: var(--buy4b-verification-accent);
    font-size: 2rem;
    transform: rotate(45deg);
}

.buy4b-verification-card__icon i { transform: rotate(-45deg); }

.buy4b-verification-card h1 {
    max-width: 36rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 5vw, 3.25rem);
    font-weight: 860;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.buy4b-verification-card__message {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: #d9c9c1;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.65;
}

.buy4b-verification-card__message--secondary { margin-top: 0.45rem; color: #bca9a0; font-size: 0.92rem; }

.buy4b-verification-card .buy4b-verification-card__resend,
.buy4b-verification-card .buy4b-verification-card__continue {
    display: inline-flex;
    min-height: 44px;
    margin-top: 1.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding-inline: 1.25rem;
    font-weight: 800;
}

.buy4b-verification-card__resend {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.buy4b-verification-card__resend:hover,
.buy4b-verification-card__resend:focus {
    border-color: var(--buy4b-verification-accent);
    background: color-mix(in srgb, var(--buy4b-verification-accent) 17%, transparent);
    color: #fff;
}

.buy4b-verification-card__continue { background: var(--buy4b-primary); color: #fff; }
.buy4b-verification-card__continue:hover,
.buy4b-verification-card__continue:focus { background: var(--buy4b-primary-hover); color: #fff; }

.buy4b-verification-card .btn .loader { margin-right: 0.2rem; }

@media (max-width: 767.98px) {
    .buy4b-verification-banner__shell {
        padding: 1rem 3.3rem 1rem 1rem;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 0.8rem;
    }

    .buy4b-verification-banner__signal { width: 2.75rem; height: 2.75rem; }
    .buy4b-verification-banner__action { grid-column: 1 / -1; }
    .buy4b-verification-banner__action .btn { width: 100%; }
    .buy4b-verification-card { clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem)); }
    .buy4b-verification-card__content { min-height: 27rem; padding: 2.25rem 1.35rem; }
    .buy4b-verification-card__icon { width: 4.5rem; height: 4.5rem; margin-top: 1.25rem; }
    .buy4b-verification-card__resend,
    .buy4b-verification-card__continue { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .buy4b-verification-banner::after { transform: none; }
    .buy4b-verification-banner .fa-spin,
    .buy4b-verification-card .fa-spin { animation: none; }
}

@media (forced-colors: active) {
    .buy4b-verification-banner,
    .buy4b-verification-banner__shell,
    .buy4b-verification-card {
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
        clip-path: none;
        forced-color-adjust: auto;
    }

    .buy4b-verification-banner::after,
    .buy4b-verification-card::before,
    .buy4b-verification-card::after,
    .buy4b-verification-card__glow { display: none; }

    .buy4b-verification-banner__copy h2,
    .buy4b-verification-banner__copy p,
    .buy4b-verification-card h1,
    .buy4b-verification-card__message,
    .buy4b-verification-kicker { color: CanvasText; }
}

/* One-time-code email verification */

.buy4b-otp-page {
    --buy4b-otp-gold: #e4b92f;
    --buy4b-otp-gold-bright: #f4d85a;
    --buy4b-otp-success: #2edb83;
    position: relative;
    display: grid;
    min-height: min(48rem, calc(100vh - 12rem));
    margin: 0 calc(50% - 50vw);
    padding: clamp(2.5rem, 7vw, 5rem) max(1rem, calc(50vw - 36rem));
    overflow: clip;
    place-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 42%, rgba(228, 185, 47, 0.08), transparent 30rem),
        radial-gradient(circle at 25% 78%, rgba(241, 132, 44, 0.08), transparent 24rem),
        linear-gradient(155deg, #050506 0%, #0a0909 52%, #040405 100%);
    color: #f7f5ed;
}

.buy4b-otp-page::before {
    position: absolute;
    inset: 0;
    z-index: -5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    content: "";
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
    transform: perspective(45rem) rotateX(55deg) scale(1.7) translateY(22%);
    transform-origin: 50% 100%;
}

.buy4b-otp-ribbon {
    position: absolute;
    z-index: -4;
    width: min(82rem, 120vw);
    height: 7.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 16%, rgba(0, 0, 0, 0.82) 52%, rgba(255, 255, 255, 0.08) 82%, rgba(0, 0, 0, 0.7)),
        linear-gradient(90deg, #080808, #47311c 21%, #0e0e10 47%, #6b4523 68%, #09090a);
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    opacity: 0.7;
    pointer-events: none;
}

.buy4b-otp-ribbon--one { top: 8%; left: -20%; transform: rotate(-24deg); }
.buy4b-otp-ribbon--two { right: -22%; bottom: 10%; transform: rotate(-31deg); opacity: 0.48; }

.buy4b-otp-orb {
    position: absolute;
    z-index: -3;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 185, 47, 0.11), transparent 64%);
    animation: buy4b-otp-ambient 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.buy4b-otp-shell {
    position: relative;
    width: min(100%, 38rem);
    padding: 1px;
    overflow: clip;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 27%, rgba(228, 185, 47, 0.34) 55%, rgba(255, 255, 255, 0.24));
    clip-path: polygon(0 2.2rem, 2.2rem 0, calc(100% - 2.2rem) 0, 100% 2.2rem, 100% calc(100% - 2.2rem), calc(100% - 2.2rem) 100%, 2.2rem 100%, 0 calc(100% - 2.2rem));
    filter: drop-shadow(0 2.4rem 4rem rgba(0, 0, 0, 0.62));
    animation: buy4b-otp-enter 650ms cubic-bezier(0.22, 0.85, 0.24, 1) both;
}

.buy4b-otp-shell::before {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, 0.1) 49%, transparent 57%);
    background-position: 120% 0;
    background-size: 250% 100%;
    content: "";
    pointer-events: none;
    animation: buy4b-otp-sweep 5.5s ease-in-out 1.2s infinite;
}

.buy4b-otp-card {
    position: relative;
    min-height: 39rem;
    padding: clamp(2.6rem, 7vw, 3.8rem) clamp(1.25rem, 7vw, 4.2rem) 3.2rem;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 30%),
        radial-gradient(circle at 50% 29%, rgba(228, 185, 47, 0.06), transparent 17rem),
        rgba(12, 12, 14, 0.84);
    clip-path: inherit;
    backdrop-filter: blur(1.35rem) saturate(1.18);
}

.buy4b-otp-card::after {
    position: absolute;
    top: 10%;
    left: 50%;
    z-index: -1;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 219, 131, 0.24), rgba(46, 219, 131, 0.07) 35%, transparent 69%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.72);
    transition: opacity 420ms ease, transform 680ms cubic-bezier(0.18, 0.82, 0.18, 1);
}

.buy4b-otp-card.is-success::after { opacity: 1; transform: translateX(-50%) scale(1); }

.buy4b-otp-corner {
    position: absolute;
    z-index: 2;
    width: 3.8rem;
    height: 3.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    pointer-events: none;
}

.buy4b-otp-corner--tl { top: 0.95rem; left: 0.95rem; clip-path: polygon(0 0, 100% 0, 0 100%); }
.buy4b-otp-corner--br { right: 0.95rem; bottom: 0.95rem; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.buy4b-otp-content { position: relative; z-index: 2; text-align: center; }

.buy4b-otp-security-icon,
.buy4b-otp-success-icon {
    position: relative;
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    place-items: center;
    border: 1px solid rgba(228, 185, 47, 0.38);
    border-radius: 0.85rem;
    background: rgba(228, 185, 47, 0.06);
    box-shadow: 0 0 1.5rem rgba(228, 185, 47, 0.13), inset 0 0 1.2rem rgba(228, 185, 47, 0.04);
    color: var(--buy4b-otp-gold-bright);
    font-size: 1.25rem;
}

.buy4b-otp-security-icon::before,
.buy4b-otp-success-icon::before {
    position: absolute;
    inset: -0.52rem;
    border: 1px solid rgba(228, 185, 47, 0.13);
    border-radius: 1.12rem;
    content: "";
}

.buy4b-otp-kicker {
    margin: 0 0 0.64rem;
    color: var(--buy4b-otp-gold-bright);
    font-family: var(--buy4b-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.buy4b-otp-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 820;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.buy4b-otp-copy {
    max-width: 27rem;
    margin: 0.86rem auto 0;
    color: #aaa79f;
    font-size: 0.92rem;
    line-height: 1.6;
}

.buy4b-otp-copy strong { color: #eeeae1; font-weight: 700; overflow-wrap: anywhere; }

.buy4b-otp-feedback {
    max-width: 28rem;
    margin: 1.2rem auto 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(228, 185, 47, 0.3);
    border-radius: 0.65rem;
    background: rgba(228, 185, 47, 0.07);
    color: #efe0ad;
    font-size: 0.78rem;
    line-height: 1.5;
}

.buy4b-otp-feedback--error { border-color: rgba(255, 107, 125, 0.45); background: rgba(255, 107, 125, 0.08); color: #ffb4bd; }
.buy4b-otp-feedback--success { border-color: rgba(46, 219, 131, 0.42); background: rgba(46, 219, 131, 0.08); color: #b9ffd7; }

.buy4b-otp-form { margin-top: 1.8rem; }
.buy4b-otp-fieldset { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.buy4b-otp-label { display: block; margin-bottom: 0.78rem; color: #d7d3ca; font-size: 0.78rem; font-weight: 700; text-align: left; }

.buy4b-otp-code-input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.75rem;
    background: rgba(7, 7, 8, 0.58);
    color: #fff7cb;
    font-family: var(--buy4b-mono);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.65em;
    text-align: center;
}

.buy4b-otp-page.is-enhanced .buy4b-otp-code-input {
    position: absolute;
    top: 1.75rem;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 5.5rem;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    caret-color: transparent;
    color: transparent;
    cursor: text;
    letter-spacing: normal;
    opacity: 0.01;
}

.buy4b-otp-boxes {
    display: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.38rem, 1.5vw, 0.72rem);
    cursor: text;
}

.buy4b-otp-page.is-enhanced .buy4b-otp-boxes { display: grid; }

.buy4b-otp-box {
    position: relative;
    display: grid;
    aspect-ratio: 0.84;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 0.82rem;
    background: rgba(7, 7, 8, 0.46);
    color: #fff;
    font-family: var(--buy4b-mono);
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.buy4b-otp-box::after {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 1px;
    background: var(--buy4b-otp-gold);
    box-shadow: 0 0 0.7rem rgba(228, 185, 47, 0.7);
    content: "";
    opacity: 0;
}

.buy4b-otp-box.is-filled { border-color: rgba(228, 185, 47, 0.52); color: #fff7cb; }
.buy4b-otp-box.is-active { transform: translateY(-0.12rem); border-color: var(--buy4b-otp-gold); background: rgba(228, 185, 47, 0.075); box-shadow: 0 0 0 2px rgba(228, 185, 47, 0.08), 0 0 1.4rem rgba(228, 185, 47, 0.16); }
.buy4b-otp-box.is-active::after { opacity: 1; animation: buy4b-otp-caret 1s steps(1) infinite; }
.buy4b-otp-boxes.is-invalid .buy4b-otp-box { border-color: rgba(255, 107, 125, 0.72); box-shadow: 0 0 1rem rgba(255, 107, 125, 0.09); }
.buy4b-otp-boxes.is-shaking { animation: buy4b-otp-shake 320ms ease; }

.buy4b-otp-help,
.buy4b-otp-client-error { min-height: 1.25rem; margin: 0.65rem 0 0; font-size: 0.74rem; line-height: 1.5; text-align: left; }
.buy4b-otp-help { color: #aaa79f; }
.buy4b-otp-client-error { margin-top: 0.25rem; color: #ff9ca8; }

.buy4b-otp-submit {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    overflow: hidden;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 230, 128, 0.32);
    border-radius: 0.72rem;
    background: linear-gradient(105deg, #c79a18 0%, #e4bb36 47%, #c89c1a 100%);
    color: #15130b;
    font-weight: 800;
    box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.27);
    transition: transform 170ms ease, filter 170ms ease, box-shadow 220ms ease;
}

.buy4b-otp-submit:hover,
.buy4b-otp-submit:focus { color: #15130b; transform: translateY(-0.12rem); filter: brightness(1.06); }
.buy4b-otp-submit:disabled { cursor: not-allowed; opacity: 0.74; }

.buy4b-otp-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(21, 19, 11, 0.25);
    border-top-color: #15130b;
    border-radius: 50%;
    animation: buy4b-otp-spin 650ms linear infinite;
}

.buy4b-otp-submit.is-busy .buy4b-otp-spinner { display: block; }

.buy4b-otp-resend-form {
    display: flex;
    min-height: 2.6rem;
    margin: 1.2rem 0 0;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #aaa79f;
    font-size: 0.78rem;
}

.buy4b-otp-resend {
    min-height: 2.55rem;
    padding: 0.35rem 0.2rem;
    border: 0;
    background: transparent;
    color: var(--buy4b-otp-gold-bright);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.buy4b-otp-resend:hover:not(:disabled) { color: #fff0a4; }
.buy4b-otp-resend:disabled { color: #b29c52; cursor: not-allowed; opacity: 0.82; text-decoration: none; }

.buy4b-otp-back {
    display: inline-flex;
    min-height: 2.75rem;
    margin-top: 0.45rem;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    color: #a9a59d;
    font-size: 0.78rem;
}

.buy4b-otp-back:hover,
.buy4b-otp-back:focus { color: #fff; }

.buy4b-otp-footnote {
    position: absolute;
    right: 0;
    bottom: 1.05rem;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #7f7b75;
    font-family: var(--buy4b-mono);
    font-size: 0.64rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.buy4b-otp-footnote i { color: var(--buy4b-otp-gold); }

.buy4b-otp-success { display: grid; min-height: 30rem; align-content: center; animation: buy4b-otp-success-enter 520ms ease both; }
.buy4b-otp-success .buy4b-otp-kicker { color: #8ceab9; }
.buy4b-otp-success h1 span { color: var(--buy4b-otp-success); }
.buy4b-otp-success-icon { width: 4.2rem; height: 4.2rem; border-color: rgba(46, 219, 131, 0.55); background: rgba(46, 219, 131, 0.08); color: var(--buy4b-otp-success); box-shadow: 0 0 2rem rgba(46, 219, 131, 0.2); }
.buy4b-otp-success-icon::before { border-color: rgba(46, 219, 131, 0.18); }
.buy4b-otp-submit--success { width: auto; margin: 2rem auto 0; padding-inline: 1.5rem; border-color: rgba(165, 255, 204, 0.34); background: linear-gradient(105deg, #18b76a, #38e494 48%, #18b76a); color: #06150d; text-decoration: none; }
.buy4b-otp-submit--success:hover,
.buy4b-otp-submit--success:focus { color: #06150d; }

.buy4b-otp-page :is(button, a, input):focus-visible { outline: 2px solid var(--buy4b-otp-gold-bright); outline-offset: 4px; }

@keyframes buy4b-otp-enter { from { opacity: 0; transform: translateY(1.5rem) scale(0.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes buy4b-otp-sweep { 0%, 56% { background-position: 120% 0; opacity: 0; } 64% { opacity: 0.65; } 82%, 100% { background-position: -120% 0; opacity: 0; } }
@keyframes buy4b-otp-ambient { from { transform: translate(-7%, -4%) scale(0.94); } to { transform: translate(8%, 5%) scale(1.08); } }
@keyframes buy4b-otp-caret { 0%, 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes buy4b-otp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-0.45rem); } 55% { transform: translateX(0.38rem); } 78% { transform: translateX(-0.2rem); } }
@keyframes buy4b-otp-spin { to { transform: rotate(360deg); } }
@keyframes buy4b-otp-success-enter { from { opacity: 0; transform: translateY(0.7rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 42rem) {
    .buy4b-otp-page { min-height: calc(100vh - 8rem); padding: 2.25rem 0.65rem; }
    .buy4b-otp-shell { clip-path: polygon(0 1.5rem, 1.5rem 0, calc(100% - 1.5rem) 0, 100% 1.5rem, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 1.5rem 100%, 0 calc(100% - 1.5rem)); }
    .buy4b-otp-card { min-height: 37rem; padding: 2.8rem clamp(1rem, 5vw, 1.8rem) 3.2rem; }
    .buy4b-otp-boxes { gap: 0.32rem; }
    .buy4b-otp-box { border-radius: 0.62rem; }
    .buy4b-otp-ribbon { width: 140vw; height: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .buy4b-otp-page *,
    .buy4b-otp-page *::before,
    .buy4b-otp-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .buy4b-otp-page,
    .buy4b-otp-card { background: Canvas; color: CanvasText; }
    .buy4b-otp-shell,
    .buy4b-otp-box,
    .buy4b-otp-submit,
    .buy4b-otp-feedback { border: 1px solid CanvasText; clip-path: none; }
    .buy4b-otp-ribbon,
    .buy4b-otp-orb,
    .buy4b-otp-page::before,
    .buy4b-otp-shell::before { display: none; }
}

