html,
body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.client-gtranslate-widget {
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

:root {
    --client-topbar-height: 56px;
    --client-header-height: 78px;
    --primary: var(--theme-primary-rgb, 54, 42, 141);
    --secondary: var(--theme-secondary-rgb, 54, 42, 141);
    --bs-primary: var(--theme-primary, #362a8d);
    --bs-primary-rgb: var(--theme-primary-rgb, 54, 42, 141);
    --bs-link-color: var(--theme-primary, #362a8d);
    --bs-link-hover-color: var(--theme-primary-hover, #160a6d);
    --font-color: #171717;
    --body-color: #f8f9ff;
}

.app-wrapper,
.app-wrapper.default,
.app-wrapper.gold,
.app-wrapper.warm,
.app-wrapper.happy,
.app-wrapper.nature,
.app-wrapper.cold,
.app-wrapper.hot {
    --primary: var(--theme-primary-rgb, 54, 42, 141) !important;
    --secondary: var(--theme-secondary-rgb, 54, 42, 141) !important;
    --bs-primary: var(--theme-primary, #362a8d);
    --bs-primary-rgb: var(--theme-primary-rgb, 54, 42, 141);
}

.bg-primary,
.text-bg-primary {
    background-color: var(--theme-primary, #362a8d) !important;
}

.text-primary {
    color: var(--theme-primary, #362a8d) !important;
}

.btn-primary,
.btn-light-primary,
.invite-submit-btn {
    border-color: var(--theme-primary, #362a8d) !important;
    color: #fff !important;
    background-color: var(--theme-primary, #362a8d) !important;
}

.btn-primary:hover,
.btn-light-primary:hover,
.invite-submit-btn:hover {
    border-color: var(--theme-primary-hover, #160a6d) !important;
    color: #fff !important;
    background-color: var(--theme-primary-hover, #160a6d) !important;
}

.border-primary {
    border-color: var(--theme-primary, #362a8d) !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.app-wrapper {
    min-height: 100vh;
    max-width: 100%;
    overflow: visible !important;
}

.app-wrapper .app-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 100vh;
    max-width: 100%;
    padding-left: 0 !important;
    padding-top: calc(var(--client-topbar-height) + var(--client-header-height) + 1.5rem) !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
}

.app-wrapper .app-content main {
    flex: 1 0 auto;
    width: auto !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
}

.app-wrapper .app-content .container-fluid {
    width: min(100%, 1240px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(18px, 3vw, 36px);
    padding-right: clamp(18px, 3vw, 36px);
    overflow-x: clip;
}

.app-wrapper .app-content .row {
    max-width: 100%;
}

.client-header-top {
    padding: 13px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    font-size: 13px;
}

.client-header-top .container-fluid,
.client-shop-header .container-fluid {
    width: min(100%, 1240px);
    max-width: 100%;
}

.header-top-welcome p {
    margin: 0;
    font-weight: 600;
}

.header-top-select {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: rgba(var(--white), 1);
}

.header-select select {
    height: 30px;
    max-width: 132px;
    padding: 0 8px;
    border: 1px solid rgba(var(--white), 0.36);
    border-radius: 8px;
    color: rgba(var(--white), 1);
    background: rgba(var(--white), 0.12);
    font: inherit;
    font-weight: 600;
}

.header-select select option {
    color: rgba(var(--dark), 1);
}

.client-shop-header {
    position: fixed !important;
    top: var(--client-topbar-height);
    left: 0;
    right: 0;
    z-index: 1031;
    min-height: auto;
    padding-left: 0 !important;
    background: rgba(var(--white), 1);
    border-bottom: 1px solid rgba(var(--secondary), 0.12);
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

.client-shop-header .container-fluid {
    overflow: visible !important;
}

.header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 78px;
}

.header-media-group {
    display: none;
}

.header-logo,
.header-media-logo {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 10px;
    flex: 0 0 auto;
    color: rgba(var(--dark), 1);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.header-logo img,
.header-media-logo img {
    width: auto;
    max-width: min(220px, 28vw);
    height: 52px;
    object-fit: contain;
}

.client-brand-logo {
    min-width: 0;
    max-width: min(190px, 16vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.client-brand-logo img {
    width: auto;
    max-width: 100%;
    height: 48px;
    padding: 0;
    object-fit: contain;
}

.header-form {
    display: none !important;
    align-items: center;
    flex: 1 1 320px;
    max-width: 430px;
    height: 46px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--secondary), 0.16);
    border-radius: 12px;
    background: rgba(var(--light), 0.58);
}

.header-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: rgba(var(--dark), 1);
    background: transparent;
    font: inherit;
}

.header-form button,
.header-src {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
}

.header-src {
    border-radius: 12px;
}

.client-shop-menu {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: 4px;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    justify-self: start;
    grid-column: 2;
}

.header-logo.client-brand-logo {
    justify-self: start;
    grid-column: 1;
    align-self: center;
}

.header-widget-group {
    grid-column: 3;
}

.client-shop-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 15px;
    color: rgba(var(--dark), 0.76);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.client-shop-menu a.active,
.client-shop-menu a:hover {
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.09);
}

.client-shop-menu.semi-nav {
    gap: 6px;
}

.client-shop-menu.semi-nav a {
    padding: 8px 14px;
    border-radius: 12px;
}

.header-widget-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    justify-self: end;
    grid-column: 3;
}

.guest-login-alert {
    margin: 0 0 16px;
    padding: 0;
    border: 1px solid rgba(var(--primary), 0.18);
    border-radius: 10px;
    color: rgba(var(--dark), 1);
    background: rgba(var(--primary), 0.06);
    box-shadow: 0 10px 24px rgba(20, 20, 20, 0.06);
}

.guest-login-alert-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px 46px 12px 14px;
}

.guest-login-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    background: rgba(var(--primary), 1);
}

.guest-login-alert-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guest-login-alert-text {
    flex: 1 1 auto;
    min-width: 0;
}

.guest-login-alert-text strong {
    display: block;
    color: rgba(var(--dark), 1);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.guest-login-alert-text p {
    margin-top: 2px;
    color: rgba(var(--dark), 0.68);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.guest-login-alert-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.guest-login-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.guest-login-alert-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guest-login-alert-btn-outline {
    border-color: rgba(var(--primary), 0.28) !important;
    color: rgba(var(--primary), 1) !important;
    background: rgba(var(--white), 0.92) !important;
}

.guest-login-alert-btn-outline:hover {
    color: rgba(var(--white), 1) !important;
    background: rgba(var(--primary), 1) !important;
}

.guest-login-alert .btn-close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 8px;
    transform: translateY(-50%);
}

.header-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(var(--primary), 0.12);
    border-radius: 12px;
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.08);
    text-decoration: none;
}

.header-widget:hover {
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
}

.header-profile-widget {
    justify-content: flex-start;
    gap: 9px;
    min-width: auto;
    padding: 5px 12px 5px 5px;
    color: rgba(var(--dark), 1);
    background: rgba(var(--white), 1);
    border-color: rgba(var(--secondary), 0.14);
}

.header-profile-widget:hover {
    color: rgba(var(--primary), 1);
    background: rgba(var(--white), 1);
    border-color: rgba(var(--primary), 0.35);
}

.header-profile-widget img,
.header-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--primary), 0.08);
}

.header-profile-widget span {
    display: grid;
    gap: 1px;
    line-height: 1.15;
}

.header-profile-widget p {
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.header-profile-widget p + p {
    color: rgba(var(--primary), 1);
}

.client-profile-caret {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.header-profile-widget.show .client-profile-caret,
.header-profile-widget[aria-expanded="true"] .client-profile-caret {
    transform: rotate(180deg);
}

.client-guest-profile {
    padding-right: 10px;
}

.client-guest-profile p + p {
    color: rgba(var(--secondary), 1);
}

.client-small-icon,
.client-search-icon,
.client-widget-icon,
.client-dropdown-icon {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-small-icon {
    width: 16px;
    height: 16px;
}

.client-search-icon,
.client-widget-icon,
.client-dropdown-icon {
    width: 18px;
    height: 18px;
}

.client-widget-icon-mobile {
    display: none;
}

.header-widget-group .dropdown-menu {
    z-index: 1032;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(20, 20, 20, 0.14);
}

.header-widget-group .dropdown-item,
.header-widget-group .dropdown-item-text {
    border-radius: 9px;
}

.header-widget-group .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    font-weight: 600;
}

.header-widget-group .dropdown-item-text {
    display: block;
    padding: 9px 10px;
}

.auth-account-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 22px 58px rgba(20, 20, 20, 0.22);
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1055 !important;
}

.swal2-container {
    z-index: 20000 !important;
}

.swal2-popup {
    border-radius: 14px !important;
}

.auth-account-modal .modal-header {
    border-bottom: 0;
}

.auth-account-modal .modal-body {
    padding: 20px;
}

.auth-modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(var(--primary), 0.08);
}

.auth-modal-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    color: rgba(var(--dark), 0.72);
    background: transparent;
    font-weight: 700;
}

.auth-tab-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-modal-tab.active {
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    box-shadow: 0 8px 18px rgba(var(--primary), 0.18);
}

.auth-modal-form .form-label {
    color: rgba(var(--dark), 0.9);
    font-weight: 600;
}

.auth-modal-form .form-control {
    border-color: rgba(var(--secondary), 0.18);
    border-radius: 10px;
}

.auth-modal-form .form-control:focus {
    border-color: rgba(var(--primary), 0.7);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary), 0.12);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-control {
    padding-right: 46px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: rgba(var(--secondary), 0.9);
    background: transparent;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle.is-visible {
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.08);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(var(--primary), 0.35);
    outline-offset: 2px;
}

.auth-eye-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password-toggle .auth-eye-off {
    display: none;
}

.auth-password-toggle.is-visible .auth-eye-open {
    display: none;
}

.auth-password-toggle.is-visible .auth-eye-off {
    display: block;
}

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 13px;
}

.auth-forgot-row button {
    padding: 0;
    border: 0;
    color: rgba(var(--primary), 1);
    background: transparent;
    font-size: 12px;
    font-weight: 900;
}

.auth-otp-field {
    position: relative;
}

.auth-otp-field .form-control {
    padding-right: 108px;
    text-transform: none;
}

.auth-otp-send-btn {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 92px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    font-size: 12px;
    font-weight: 900;
    transform: translateY(-50%);
}

.auth-otp-send-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-otp-note {
    margin: 7px 0 0;
    color: rgba(var(--secondary), 0.88);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.auth-account-modal .modal-dialog {
    max-width: 520px;
}

.auth-account-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: rgba(var(--white), 1);
    box-shadow: 0 28px 76px rgba(20, 20, 20, 0.24);
}

.auth-shell {
    position: relative;
    display: block;
    min-height: auto;
    background: rgba(var(--white), 1);
}

.auth-shell-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(var(--secondary), 0.14);
    border-radius: 50%;
    color: rgba(var(--dark), 0.82);
    background: #f7f8fa;
}

.auth-shell-close svg,
.auth-mobile-back svg,
.auth-submit-btn svg,
.auth-switch-line button svg,
.auth-side-switch svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-mobile-head {
    display: none;
}

.auth-form-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px 36px;
}

.auth-brand-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-brand-mark img {
    max-width: 168px;
    max-height: 62px;
    object-fit: contain;
}

.auth-brand-mark span {
    color: rgba(var(--primary), 1);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-account-modal .auth-modal-tabs {
    width: min(100%, 340px);
    margin: 0 auto 24px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(var(--primary), 0.08);
}

.auth-account-modal .auth-modal-tab {
    min-height: 42px;
    border-radius: 11px;
    font-size: 13px;
}

.auth-account-modal .auth-modal-form {
    width: min(100%, 380px);
    margin: 0 auto;
}

.auth-form-title {
    margin: 0 0 8px;
    color: rgba(var(--dark), 1);
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

.auth-form-subtitle {
    margin: 0 0 20px;
    color: rgba(var(--secondary), 0.9);
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
}

.auth-field {
    margin-bottom: 13px;
}

.auth-account-modal .auth-modal-form .form-label {
    margin-bottom: 7px;
    color: rgba(var(--dark), 0.86);
    font-size: 13px;
    font-weight: 700;
}

.auth-account-modal .auth-modal-form .form-control {
    height: 47px;
    border: 1px solid rgba(var(--secondary), 0.16);
    border-radius: 13px;
    background: #f8f9fb;
    color: rgba(var(--dark), 0.92);
    font-size: 14px;
}

.auth-account-modal .auth-modal-form .form-control:focus {
    border-color: rgba(var(--primary), 0.62);
    background: rgba(var(--white), 1);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary), 0.12);
}

.auth-account-modal .auth-password-field .form-control {
    padding-right: 48px;
}

.auth-submit-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(var(--primary), 0.22);
}

.auth-submit-btn:disabled {
    cursor: wait;
    opacity: 0.76;
}

.auth-oauth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 13px;
    color: rgba(var(--secondary), 0.72);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.auth-oauth-divider::before,
.auth-oauth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(var(--secondary), 0.14);
}

.auth-oauth-divider span {
    flex: 0 0 auto;
    padding: 0 10px;
}

.auth-google-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(var(--secondary), 0.16);
    border-radius: 13px;
    color: #1f2937;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-btn:hover,
.auth-google-btn:focus {
    color: #111827;
    border-color: rgba(var(--primary), 0.28);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.auth-google-mark {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.auth-switch-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 0;
    color: rgba(var(--secondary), 0.94);
    font-size: 13px;
}

.auth-switch-line button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: rgba(var(--primary), 1);
    background: transparent;
    font-weight: 900;
}

.auth-side-pane {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 38px 32px;
    color: rgba(var(--white), 1);
    text-align: center;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, var(--theme-primary-dark, #08005f) 0%, var(--theme-primary, #362a8d) 48%, var(--theme-primary-light, #6054b7) 100%);
}

.auth-side-pane::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(var(--white), 0.16);
    border-radius: 24px;
    pointer-events: none;
}

.auth-side-inner {
    position: relative;
    z-index: 1;
    max-width: 260px;
}

.auth-side-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 20px;
    padding: 7px 14px;
    border: 1px solid rgba(var(--white), 0.24);
    border-radius: 999px;
    background: rgba(var(--white), 0.12);
    font-size: 12px;
    font-weight: 900;
}

.auth-side-title {
    margin: 0 0 12px;
    color: rgba(var(--white), 1);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

.auth-side-text {
    margin: 0 0 24px;
    color: rgba(var(--white), 0.88);
    font-size: 13px;
    line-height: 1.62;
}

.auth-side-switch {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid rgba(var(--white), 0.52);
    border-radius: 999px;
    color: rgba(var(--white), 1);
    background: rgba(var(--white), 0.12);
    font-weight: 900;
}

.auth-shell-close:hover {
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.08);
    border-color: rgba(var(--primary), 0.18);
}

.loader-wrapper {
    animation: webspin-loader-fallback 0.01s linear 1.4s forwards;
}

.go-top {
    right: 22px !important;
    bottom: 28px !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0;
    border: 1px solid rgba(var(--white), 0.36);
    border-radius: 50% !important;
    background: rgba(var(--primary), 1) !important;
    box-shadow: 0 16px 34px rgba(var(--primary), 0.28), 0 6px 14px rgba(20, 20, 20, 0.12) !important;
    place-items: center;
    color: rgba(var(--white), 1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.go-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(var(--primary), 0.34), 0 8px 16px rgba(20, 20, 20, 0.14) !important;
}

.go-top-icon {
    width: 100% !important;
    height: 100% !important;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border-radius: 50% !important;
    color: rgba(var(--white), 1) !important;
    background: transparent !important;
}

.go-top-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.go-top .progress-value .ti {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.go-top .progress-value .ti::before {
    margin: 0 !important;
    line-height: 1 !important;
}

@keyframes webspin-loader-fallback {
    to {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
}

.app-wrapper .app-content footer.site-footer,
div > footer.site-footer,
.app-wrapper .semi-nav ~ .app-content footer.site-footer,
.app-wrapper nav.horizontal-sidebar ~ .app-content footer.site-footer {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    z-index: auto !important;
    flex-shrink: 0;
    padding: 14px 24px !important;
    margin-top: auto !important;
    background-color: rgba(var(--white), 1);
    border-top: 1px solid rgba(var(--secondary), 0.12);
    box-shadow: none !important;
}

.site-footer .footer-text {
    margin: 0;
    padding: 0;
    color: rgba(var(--secondary), 1);
    font-weight: 600;
    text-align: center;
}

.site-footer .footer-text a {
    color: rgba(var(--primary), 1);
    font-weight: 700;
    text-decoration: none;
}

.plugbar {
    display: none;
}

.ticket-stats-row,
.invite-workspace-row {
    align-items: stretch;
}

.ticket-stats-row > [class*="col-"],
.invite-workspace-row > [class*="col-"] {
    display: flex;
}

.ticket-stats-row .card,
.invite-workspace-row .card {
    width: 100%;
}

.ticket-app {
    justify-content: center;
}

.ticket-app > .col-12 {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.ticket-stats-row,
.invite-workspace-row {
    margin-left: 0;
    margin-right: 0;
}

.invite-panel-card {
    height: 100%;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(20, 20, 20, 0.08);
    overflow: hidden;
}

.invite-order-card {
    border-top: 4px solid rgba(var(--primary), 1);
}

.invite-note-card {
    border-top: 4px solid rgba(var(--primary), 1);
    background: rgba(var(--white), 1);
}

.invite-promo-card {
    border-top: 4px solid rgba(var(--primary), 1);
    background:
        linear-gradient(135deg, rgba(var(--primary), 0.06), transparent 38%),
        rgba(var(--white), 1);
}

.invite-agency-program-card {
    height: auto;
}

.invite-promo-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invite-promo-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.invite-promo-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.invite-promo-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(var(--dark), 0.88);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.invite-promo-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--theme-primary, rgba(var(--primary), 1));
    box-shadow: 0 0 0 4px rgba(var(--primary), 0.1);
}

.invite-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    align-self: flex-start;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 800;
}

.invite-promo-btn-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invite-promo-desc {
    margin: -5px 0 0;
    color: rgba(var(--secondary), 0.88);
    font-size: 13px;
    font-weight: 650;
}

.invite-agency-program-card .card-body {
    display: block;
    padding: 16px 18px;
}

.invite-agency-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}

.invite-agency-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px 18px;
    align-items: center;
}

.invite-agency-copy {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.invite-agency-copy h5 {
    margin: 0;
    color: rgba(var(--dark), 1);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.25;
}

.invite-agency-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.invite-agency-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(var(--primary), 0.12);
    border-radius: 999px;
    color: rgba(var(--dark), 0.84);
    background: rgba(var(--primary), 0.06);
    font-size: 13px;
    font-weight: 800;
}

.invite-agency-points i {
    color: var(--theme-primary, rgba(var(--primary), 1));
    font-size: 16px;
}

.invite-agency-illustration {
    width: 132px;
    max-width: 132px;
    justify-self: center;
    filter: drop-shadow(0 14px 22px rgba(20, 20, 20, 0.14));
}

.invite-price-strip {
    grid-column: 1 / -1;
    display: block;
    padding: 8px;
    border: 1px solid rgba(var(--secondary), 0.1);
    border-radius: 10px;
    background: rgba(var(--white), 0.92);
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.invite-price-track {
    display: flex;
    width: max-content;
    animation: invite-price-loop 24s linear infinite;
    will-change: transform;
}

.invite-price-strip:hover .invite-price-track {
    animation-play-state: paused;
}

.invite-price-group {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding-right: 8px;
}

@keyframes invite-price-loop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .invite-price-strip {
        overflow-x: auto;
        mask-image: none;
    }

    .invite-price-track {
        animation: none;
    }
}

.invite-price-server,
.invite-price-pill {
    display: grid;
    align-content: center;
    min-width: 96px;
    min-height: 42px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(var(--primary), 0.06);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.invite-price-server {
    min-width: 150px;
    color: rgba(var(--dark), 0.86);
}

.invite-price-pill {
    text-align: center;
}

.invite-price-pill span {
    color: rgba(var(--secondary), 0.72);
    font-size: 11px;
}

.invite-price-pill strong {
    font-size: 14px;
}

.invite-workspace-row {
    position: relative;
    z-index: 1;
}

.invite-price-table-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.invite-price-table {
    min-width: 760px;
    margin-bottom: 0;
    table-layout: fixed;
}

.invite-price-table thead th {
    padding: 12px 10px;
    color: rgba(var(--dark), 0.88);
    background: rgba(var(--primary), 0.08);
    border-bottom: 1px solid rgba(var(--primary), 0.15);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.invite-price-table thead th:first-child {
    text-align: left;
}

.invite-price-table tbody {
    background-color: #fff;
}

.invite-price-table tbody td {
    padding: 12px 10px;
    color: rgba(var(--dark), 0.86);
    border-color: rgba(var(--secondary), 0.1);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.invite-price-table .invite-price-service-name {
    color: rgba(var(--dark), 0.9);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invite-price-user {
    color: #17a2b8 !important;
}

.invite-price-ctv {
    color: #3399ff !important;
}

.invite-price-agent {
    color: #33cc33 !important;
}

.invite-price-distributor {
    color: #ff66cc !important;
}

.invite-price-vip {
    color: #ff9933 !important;
}

.ranking-page {
    padding: 18px 0 28px;
}

.ranking-head {
    margin-bottom: 18px;
}

.ranking-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 6px;
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.08);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.ranking-head h1 {
    max-width: 860px;
    margin: 10px 0 6px;
    color: rgba(var(--dark), 1);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
}

.ranking-head p {
    max-width: 720px;
    margin: 0;
    color: rgba(var(--dark), 0.68);
    font-size: 15px;
    font-weight: 650;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ranking-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(var(--secondary), 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ranking-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ranking-card-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #fff;
    background: rgba(var(--primary), 1);
}

.ranking-svg,
.ranking-action-svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ranking-action-svg {
    width: 17px;
    height: 17px;
}

.ranking-card-top h2 {
    margin: 0;
    color: rgba(var(--dark), 1);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

.ranking-card-top p {
    margin: 2px 0 0;
    color: rgba(var(--dark), 0.56);
    font-size: 12px;
    font-weight: 800;
}

.ranking-card-money {
    margin-top: 16px;
    color: rgba(var(--dark), 1);
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

.ranking-card-desc {
    flex: 1;
    margin-top: 14px;
    color: rgba(var(--dark), 0.78);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.ranking-card-desc ul {
    margin: 0;
    padding-left: 18px;
}

.ranking-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 16px;
    padding: 0 14px;
    border-radius: 7px;
    color: #fff !important;
    background: rgba(var(--primary), 1);
    font-size: 14px;
    font-weight: 850;
}

.ranking-card-action:hover {
    color: #fff !important;
    background: rgba(var(--primary), 0.9);
}

.ranking-card-info .ranking-card-icon {
    background: #17a2b8;
}

.ranking-card-success .ranking-card-icon {
    background: #22a65a;
}

.ranking-card-warning .ranking-card-icon {
    background: #f59e0b;
}

.ranking-table-section {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(var(--secondary), 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ranking-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ranking-section-head h2 {
    margin: 8px 0 0;
    color: rgba(var(--dark), 1);
    font-size: 20px;
    font-weight: 900;
}

.ranking-section-head p {
    margin: 0;
    color: rgba(var(--dark), 0.62);
    font-size: 13px;
    font-weight: 750;
}

.ranking-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 8px;
}

.ranking-price-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.ranking-price-table th,
.ranking-price-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(var(--secondary), 0.1);
    color: rgba(var(--dark), 0.8);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.ranking-price-table th {
    color: rgba(var(--dark), 0.95);
    background: rgba(var(--secondary), 0.07);
    font-size: 13px;
    font-weight: 900;
}

.ranking-price-table tr:last-child td {
    border-bottom: 0;
}

.ranking-price-table .ranking-table-service {
    max-width: 220px;
    color: rgba(var(--dark), 0.96);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1199.98px) {
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ranking-page {
        padding-top: 12px;
    }

    .ranking-head h1 {
        font-size: 22px;
    }

    .ranking-head p {
        font-size: 14px;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .ranking-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.invite-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.invite-card-title h5 {
    margin: 0;
    color: rgba(var(--dark), 1);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.invite-card-kicker {
    display: block;
    margin-bottom: 3px;
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 600;
}

.invite-card-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    outline: 0;
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    box-shadow: 0 10px 22px rgba(var(--primary), 0.25);
}

.invite-card-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.invite-card-icon-soft {
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.1);
    box-shadow: none;
}

.invite-order-form .form-label {
    color: rgba(var(--dark), 0.9);
    font-weight: 600;
}

.invite-order-form .form-control,
.invite-order-form .form-select {
    border-color: rgba(var(--secondary), 0.18);
    border-radius: 10px;
}

.invite-order-form .form-control:focus,
.invite-order-form .form-select:focus {
    border-color: rgba(var(--primary), 0.7);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary), 0.12);
}

.home-buy-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 8px;
    background: rgba(var(--light), 0.45);
}

.home-buy-tabs .auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(var(--dark), 0.74);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-buy-tabs .auth-tab i {
    margin-right: 7px;
    font-size: 15px;
}

.home-buy-tabs .auth-tab.active {
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    box-shadow: 0 10px 22px rgba(var(--primary), 0.2);
}

.invite-clone-stock {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    margin: -4px 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--primary), 0.16);
    border-radius: 10px;
    background: rgba(var(--primary), 0.06);
}

.invite-clone-stock-icon,
.invite-clone-stock-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.invite-clone-stock-icon {
    border: 1px solid rgba(var(--primary), 0.18);
    color: rgba(var(--primary), 1);
    background: rgba(var(--white), 1);
    box-shadow: 0 8px 18px rgba(var(--primary), 0.12);
}

.invite-clone-stock-icon i,
.invite-clone-stock-refresh i {
    font-size: 18px;
    line-height: 1;
}

.invite-clone-stock-main {
    min-width: 0;
}

.invite-clone-stock-main span {
    display: block;
    color: rgba(var(--secondary), 0.92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.invite-clone-stock-main strong {
    display: block;
    color: rgba(var(--dark), 1);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.invite-clone-stock-refresh {
    padding: 0;
    border: 1px solid rgba(var(--primary), 0.16);
    color: rgba(var(--primary), 1);
    background: rgba(var(--white), 1);
    cursor: pointer;
}

.invite-clone-stock-refresh:hover,
.invite-clone-stock-refresh:focus {
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
}

.invite-clone-stock.is-loading .invite-clone-stock-refresh i {
    animation: inviteCloneSpin 0.8s linear infinite;
}

.invite-clone-stock.is-error {
    border-color: rgba(193, 18, 31, 0.22);
    background: rgba(193, 18, 31, 0.06);
}

.invite-clone-stock.is-error .invite-clone-stock-icon {
    color: rgba(var(--white), 1);
    background: #c1121f;
}

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

.shop-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(var(--secondary), 0.08);
    border-radius: 6px;
    color: rgba(var(--dark), 0.88);
    background: rgba(var(--secondary), 0.12);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.shop-widget-btn i {
    font-size: 15px;
    line-height: 1;
}

.shop-widget-btn:hover,
.shop-widget-btn:focus {
    color: rgba(var(--dark), 0.96);
    background: rgba(var(--secondary), 0.18);
}

.bulk-invite-textarea {
    min-height: 176px;
    resize: vertical;
    line-height: 1.45;
}

.bulk-mode-note {
    display: block;
    color: rgba(var(--secondary), 0.9);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.invite-service-list {
    display: grid;
    gap: 10px;
}

@media (min-width: 992px) {
    .invite-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .invite-service-list .invite-empty-state,
    .invite-service-list .invite-service-desc {
        grid-column: 1 / -1;
    }

    .loailink.profile-card.contact {
        min-height: 100%;
    }

    .invite-service-desc.is-open {
        padding: 18px 20px;
        margin-top: -2px;
        border-color: rgba(var(--primary), 0.16);
        background:
            linear-gradient(180deg, rgba(var(--primary), 0.05), rgba(var(--white), 0.98)),
            rgba(var(--white), 1);
        box-shadow: 0 10px 24px rgba(20, 20, 20, 0.04);
        font-size: 14px;
        line-height: 1.75;
    }

    .invite-service-desc.is-open p {
        margin-bottom: 8px;
    }

    .invite-service-desc.is-open p:last-child {
        margin-bottom: 0;
    }

    .invite-service-desc.is-open strong {
        color: rgba(var(--dark), 0.92);
    }
}

.invite-empty-state {
    padding: 14px 16px;
    border: 1px dashed rgba(var(--secondary), 0.25);
    border-radius: 12px;
    color: rgba(var(--secondary), 1);
    text-align: center;
    background: rgba(var(--white), 1);
}

.loailink.profile-card.contact {
    position: relative;
    padding: 14px 16px 14px 48px;
    border: 1px solid rgba(var(--secondary), 0.16);
    border-radius: 12px;
    background: rgba(var(--white), 1);
    box-shadow: 0 10px 24px rgba(20, 20, 20, 0.05);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.loailink.profile-card.contact.active {
    border-color: rgba(var(--primary), 1);
    box-shadow: 0 12px 26px rgba(var(--primary), 0.14);
}

.invite-service-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.invite-service-text {
    min-width: 0;
}

.loailink.profile-card.contact h6 {
    margin: 0 0 4px;
    color: rgba(var(--dark), 1);
    font-size: 15px;
    font-weight: 700;
}

.loailink.profile-card.contact h6 strong {
    color: #f44336;
}

.loailink.profile-card.contact p {
    margin: 0;
    color: rgba(var(--secondary), 1);
    font-size: 13px;
}

.loailink.profile-card.contact p b {
    color: blue;
}

.invite-service-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.loailink.profile-card.contact > .radiomark {
    position: absolute;
    top: 18px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    border-radius: 50%;
    border: 2px solid rgba(var(--primary), 0.45);
    background: rgba(var(--white), 1);
    box-shadow: 0 0 0 4px rgba(var(--primary), 0.08);
    z-index: 2;
}

.loailink.profile-card.contact > .radiomark::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.loailink.profile-card.contact.active > .radiomark {
    border-color: rgba(var(--primary), 1);
}

.loailink.profile-card.contact.active > .radiomark::before {
    background: rgba(var(--primary), 1);
}

.service-desc-toggle {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--theme-primary, #362a8d);
    line-height: 1;
}

.service-desc-toggle:hover,
.service-desc-toggle:focus,
.service-desc-toggle.active {
    color: #fff;
    background: var(--theme-primary, #362a8d);
}

.service-desc-toggle i {
    font-size: 17px;
    line-height: 1;
}

.service-desc-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invite-service-desc {
    display: none;
    margin-top: -4px;
    padding: 12px 16px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: rgba(var(--white), 0.98);
    color: rgba(var(--dark), 0.84);
    font-size: 13px;
    line-height: 1.65;
}

.invite-service-desc p {
    margin-bottom: 7px;
}

.invite-service-desc p:last-child {
    margin-bottom: 0;
}

.invite-service-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.invite-payment-list {
    margin: 6px 0 12px;
    padding: 0;
    list-style: none;
}

.invite-payment-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: rgba(var(--white), 1);
    box-shadow: 0 10px 22px rgba(20, 20, 20, 0.05);
}

.invite-payment-label,
.invite-payment-price {
    min-width: 0;
}

.invite-payment-box h6 {
    color: rgba(var(--dark), 1);
    font-size: 14px;
    font-weight: 700;
}

.invite-payment-box [data-invite-total] {
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    color: rgba(var(--primary), 1) !important;
}

.invite-touchspin-body {
    overflow: hidden;
    border: 1px solid rgba(var(--secondary), 0.18);
    border-radius: 10px;
    background: rgba(var(--white), 1);
}

.invite-touchspin .btn {
    width: 46px;
    min-width: 46px;
    border: 0;
    border-radius: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.invite-touchspin .increment {
    background: rgba(var(--primary), 1) !important;
}

.invite-touchspin .app-touchspin {
    height: 44px;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.invite-order-total {
    min-height: 24px;
    margin: 4px 0 6px;
    color: rgba(var(--dark), 0.82);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.invite-order-message {
    min-height: 24px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.invite-order-message.is-error {
    color: #c1121f;
}

.invite-order-message.is-success {
    color: #16803c;
}

.invite-confirm-locked {
    overflow: hidden;
    touch-action: none;
}

.invite-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 22000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 160ms ease;
}

.invite-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.invite-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 12, 12, 0.58);
    backdrop-filter: blur(3px);
}

.invite-confirm-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    max-height: min(92vh, 720px);
    max-height: min(92dvh, 720px);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(var(--primary), 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(20, 20, 20, 0.28);
    transform: translateY(14px) scale(0.98);
    transition: transform 160ms ease;
}

.invite-confirm-modal.is-open .invite-confirm-dialog {
    transform: translateY(0) scale(1);
}

.invite-confirm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(var(--secondary), 0.12);
}

.invite-confirm-kicker {
    display: block;
    margin-bottom: 3px;
    color: rgba(var(--primary), 1);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.invite-confirm-head h3 {
    margin: 0;
    color: rgba(var(--dark), 1);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.invite-confirm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: rgba(var(--dark), 0.72);
    background: rgba(var(--secondary), 0.1);
    font-size: 24px;
    line-height: 1;
}

.invite-confirm-close:hover {
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
}

.invite-confirm-body {
    overflow: auto;
    padding: 18px 20px;
}

.invite-confirm-summary {
    display: grid;
    gap: 14px;
}

.invite-confirm-player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(var(--primary), 0.16);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--primary), 0.09), rgba(var(--primary), 0.02));
}

.invite-confirm-avatar-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(var(--white), 1);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.12);
}

.invite-confirm-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    font-size: 24px;
    font-weight: 800;
    object-fit: cover;
}

.invite-confirm-player-main {
    min-width: 0;
}

.invite-confirm-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #16803c;
    background: rgba(22, 128, 60, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.invite-confirm-name {
    margin: 0;
    color: rgba(var(--dark), 1);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.invite-confirm-muted {
    margin: 4px 0 0;
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
}

.invite-confirm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.invite-confirm-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(var(--secondary), 0.14);
    border-radius: 8px;
    background: rgba(var(--light), 0.32);
}

.invite-confirm-label {
    display: block;
    color: rgba(var(--secondary), 1);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.invite-confirm-value {
    display: block;
    margin-top: 5px;
    color: rgba(var(--dark), 1);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.invite-confirm-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(var(--secondary), 0.12);
    background: #fff;
}

.invite-confirm-total {
    display: grid;
    gap: 2px;
}

.invite-confirm-total span {
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 800;
}

.invite-confirm-total strong {
    color: rgba(var(--primary), 1);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.invite-confirm-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.invite-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.invite-confirm-btn-muted {
    color: rgba(var(--dark), 0.78);
    background: rgba(var(--secondary), 0.12);
}

.invite-confirm-btn-primary {
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    box-shadow: 0 10px 20px rgba(var(--primary), 0.22);
}

.invite-confirm-btn-primary:hover {
    background: rgba(var(--primary), 0.9);
}

.invite-confirm-bulk-summary {
    gap: 12px;
}

.invite-confirm-bulk-head .invite-confirm-avatar {
    font-size: 20px;
}

.invite-confirm-bulk-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 230px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 8px;
    background: rgba(var(--light), 0.3);
}

.invite-confirm-bulk-code,
.invite-confirm-bulk-more {
    display: block;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 7px;
    color: rgba(var(--dark), 0.86);
    background: rgba(var(--white), 1);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.invite-confirm-bulk-code b {
    color: rgba(var(--primary), 1);
}

.invite-confirm-bulk-more {
    color: rgba(var(--primary), 1);
}

@media (max-width: 575.98px) {
    .guest-login-alert-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 12px 42px 12px 12px;
    }

    .guest-login-alert-text {
        flex: 1 1 calc(100% - 50px);
    }

    .guest-login-alert-actions {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .guest-login-alert-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }

    .guest-login-alert-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .invite-confirm-modal {
        align-items: center;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .invite-confirm-dialog {
        width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 12px 12px 10px 10px;
    }

    .invite-confirm-head,
    .invite-confirm-body,
    .invite-confirm-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .invite-confirm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invite-confirm-footer {
        grid-template-columns: 1fr;
    }

    .invite-confirm-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-buy-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 4px;
    }

    .home-buy-tabs .auth-tab {
        justify-content: center;
        min-width: 0;
        min-height: 38px;
        padding: 7px 5px;
        font-size: 12px;
        white-space: nowrap;
    }

    .home-buy-tabs .auth-tab i {
        margin-right: 4px;
        font-size: 14px;
        flex: 0 0 auto;
    }

    .invite-confirm-bulk-list {
        grid-template-columns: 1fr;
        max-height: 210px;
    }
}

.invite-submit-btn {
    border-color: rgba(var(--primary), 1);
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 1);
    font-weight: 700;
}

.invite-submit-btn:hover {
    border-color: rgba(var(--primary), 1);
    color: rgba(var(--white), 1);
    background: rgba(var(--primary), 0.9);
}

.invite-history-filter {
    display: grid;
    gap: 12px;
    margin: -4px 0 16px;
    padding: 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 8px;
    background: #fbfcfd;
}

.invite-history-filter-main {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) repeat(2, minmax(150px, 1fr)) minmax(92px, 0.45fr) minmax(150px, 0.8fr);
    gap: 10px;
    align-items: end;
}

.invite-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.invite-filter-field span {
    color: rgba(var(--dark), 0.7);
    font-size: 12px;
    font-weight: 800;
}

.invite-filter-field .form-control,
.invite-filter-field .form-select {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(var(--secondary), 0.18);
    border-radius: 7px;
    color: rgba(var(--dark), 0.92);
    background-color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.invite-filter-field .form-control:focus,
.invite-filter-field .form-select:focus {
    border-color: rgba(var(--primary), 0.68);
    box-shadow: 0 0 0 0.18rem rgba(var(--primary), 0.1);
}

.invite-history-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.invite-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.invite-filter-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invite-filter-btn-primary {
    color: #fff;
    background: rgba(var(--primary), 1);
}

.invite-filter-btn-light {
    border-color: rgba(var(--secondary), 0.16);
    color: rgba(var(--dark), 0.76);
    background: #fff;
}

.invite-filter-btn-info {
    color: #fff;
    background: #03a9f4;
}

.invite-filter-btn:hover {
    filter: brightness(0.96);
}

.invite-history-scroll {
    position: relative;
    z-index: 3;
    overflow-x: visible;
}

.invite-history-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #dfe3e8;
    background: #fff;
}

.invite-history-table thead th {
    padding: 10px 8px !important;
    border: 1px solid #dfe3e8;
    border-bottom-color: #222832;
    background: #f8f9fb;
    color: #1d2430;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.invite-history-table tbody td {
    height: 43px;
    padding: 9px 8px !important;
    border: 1px solid #dfe3e8;
    color: #354052;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.invite-history-table th:nth-child(1),
.invite-history-table td:nth-child(1) {
    width: 12%;
}

.invite-history-table th:nth-child(2),
.invite-history-table td:nth-child(2) {
    width: 23%;
}

.invite-history-table th:nth-child(3),
.invite-history-table td:nth-child(3) {
    width: 13%;
}

.invite-history-table th:nth-child(4),
.invite-history-table td:nth-child(4) {
    width: 11%;
}

.invite-history-table th:nth-child(5),
.invite-history-table td:nth-child(5) {
    width: 10%;
}

.invite-history-table th:nth-child(6),
.invite-history-table td:nth-child(6) {
    width: 10%;
}

.invite-history-table th:nth-child(7),
.invite-history-table td:nth-child(7) {
    width: 9%;
}

.invite-history-table th:nth-child(8),
.invite-history-table td:nth-child(8) {
    width: 12%;
}

.invite-history-table tbody tr.invite-history-row-refund td {
    background: #f7e5ad;
}

.invite-history-table tbody tr.invite-history-row-running td {
    background: #bfe3fb;
}

.invite-history-table tbody tr.invite-history-row-cancel td {
    background: #ffd9de;
}

.invite-history-table .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 5px 8px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.invite-history-table .progress {
    height: 26px;
    min-width: 0;
    border-radius: 3px;
    background: rgba(var(--secondary), 0.12);
    overflow: hidden;
}

.invite-history-table .progress-bar {
    min-width: 56px;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.invite-history-empty {
    height: 82px;
    color: rgba(var(--secondary), 1) !important;
    font-weight: 600 !important;
    text-align: center !important;
}

#link-history {
    scroll-margin-top: calc(var(--client-topbar-height, 56px) + var(--client-header-height, 78px) + 18px);
}

.invite-history-pagination-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-height: 38px;
    visibility: visible;
    opacity: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.invite-history-pagination-wrap .app-pagination {
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.invite-history-pagination-wrap .page-link {
    min-width: 34px;
    text-align: center;
}

.invite-copy-code {
    display: inline-flex;
    max-width: 100%;
    position: relative;
    z-index: 4;
    padding: 0;
    border: 0;
    color: #000;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    user-select: text;
}

.invite-copy-code strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
}

.invite-copy-code:hover {
    color: var(--theme-primary, #362a8d);
    text-decoration: underline;
}

@media screen and (max-width: 767px) {
    .invite-history-filter {
        padding: 12px;
    }

    .invite-history-filter-main {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .invite-filter-field-code,
    .invite-filter-field-date {
        grid-column: 1 / -1;
    }

    .invite-filter-field span {
        font-size: 11px;
    }

    .invite-filter-field .form-control,
    .invite-filter-field .form-select {
        height: 40px;
        font-size: 12px;
    }

    .invite-history-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 7px;
    }

    .invite-filter-btn {
        min-width: 0;
        min-height: 39px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }

    .invite-filter-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .invite-history-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .invite-history-table {
        min-width: 980px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1120px) {
    .invite-history-filter-main {
        grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(92px, 0.55fr) minmax(150px, 0.85fr);
    }

    .invite-filter-field-code {
        grid-column: span 2;
    }
}

.invite-note-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.invite-note-list li {
    position: relative;
    padding-left: 22px;
    color: rgba(var(--dark), 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.invite-note-list li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--primary), 1);
    box-shadow: 0 0 0 4px rgba(var(--primary), 0.12);
}

.invite-note-content {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 6px;
    color: rgba(var(--dark), 0.84);
    font-size: 14px;
    line-height: 1.58;
}

.invite-note-content :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
    margin-bottom: 12px;
    color: rgba(var(--dark), 1);
    font-weight: 700;
    line-height: 1.35;
}

.invite-note-content p {
    margin-bottom: 10px;
}

.invite-note-content hr {
    margin: 14px 0;
    border-color: rgba(var(--secondary), 0.16);
    opacity: 1;
}

.invite-note-content a {
    color: rgba(var(--primary), 1);
    font-weight: 700;
}

.invite-note-content::-webkit-scrollbar {
    width: 6px;
}

.invite-note-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(var(--primary), 0.34);
}

.topup-panel-card .card-body {
    display: flex;
    flex-direction: column;
}

.topup-qr-layout {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

.topup-qr-box,
.topup-bank-panel {
    min-width: 0;
}

.topup-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: #fbfcfd;
}

.topup-qr-image {
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.topup-qr-caption {
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.topup-bank-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topup-bank-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: rgba(var(--white), 1);
    box-shadow: 0 10px 22px rgba(20, 20, 20, 0.05);
}

.topup-bank-heading img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 9px;
    object-fit: cover;
}

.topup-bank-heading span {
    display: block;
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 800;
}

.topup-bank-heading strong {
    display: block;
    color: rgba(var(--dark), 1);
    font-size: 18px;
    font-weight: 850;
}

.topup-info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.topup-info-row {
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
}

.topup-copy-value {
    display: inline-flex;
    justify-content: flex-end;
    max-width: 100%;
    padding: 0;
    border: 0;
    color: rgba(var(--dark), 1);
    background: transparent;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    text-align: right;
    word-break: break-word;
    cursor: pointer;
}

.topup-copy-value:hover {
    color: rgba(var(--primary), 1);
    text-decoration: underline;
}

.topup-transfer-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.topup-account-number,
.topup-transfer-code {
    min-width: 0;
    color: rgba(var(--primary), 1);
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.topup-copy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(var(--primary), 0.2);
    border-radius: 8px;
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.06);
    cursor: pointer;
}

.topup-copy-mini svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topup-copy-mini:hover {
    color: #fff;
    background: rgba(var(--primary), 1);
}

.topup-range-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    padding: 11px 13px;
    border: 1px dashed rgba(var(--primary), 0.24);
    border-radius: 10px;
    color: rgba(var(--secondary), 1);
    background: rgba(var(--primary), 0.05);
    font-size: 13px;
    font-weight: 750;
}

.topup-range-box strong {
    color: rgba(var(--primary), 1);
    font-weight: 850;
}

.topup-copy-main {
    min-height: 44px;
}

.topup-main-column,
.topup-side-column {
    flex-direction: column;
    gap: 16px;
}

.topup-main-column .invite-panel-card,
.topup-side-column .invite-panel-card {
    height: auto;
}

.topup-promotion-card {
    border-top: 4px solid rgba(var(--primary), 1);
}

.topup-promotion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.topup-promotion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: #fbfcfd;
}

.topup-promotion-item span {
    display: block;
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 800;
}

.topup-promotion-item strong {
    display: block;
    color: rgba(var(--dark), 1);
    font-size: 15px;
    font-weight: 850;
}

.topup-promotion-item b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(var(--primary), 1);
    background: rgba(var(--primary), 0.1);
    font-size: 15px;
    font-weight: 900;
}

.topup-promotion-empty {
    min-height: 88px;
}

.topup-history-filter-main {
    grid-template-columns: minmax(170px, 1fr) minmax(190px, 1.15fr) repeat(2, minmax(140px, 0.85fr)) minmax(92px, 0.45fr) minmax(140px, 0.75fr);
}

.topup-history-table th:nth-child(1),
.topup-history-table td:nth-child(1) {
    width: 14%;
}

.topup-history-table th:nth-child(2),
.topup-history-table td:nth-child(2),
.topup-history-table th:nth-child(3),
.topup-history-table td:nth-child(3) {
    width: 12%;
}

.topup-history-table th:nth-child(4),
.topup-history-table td:nth-child(4) {
    width: 11%;
}

.topup-history-table th:nth-child(5),
.topup-history-table td:nth-child(5) {
    width: 17%;
}

.topup-history-table th:nth-child(6),
.topup-history-table td:nth-child(6) {
    width: 24%;
}

.topup-history-table th:nth-child(7),
.topup-history-table td:nth-child(7) {
    width: 10%;
}

.topup-description-copy strong {
    white-space: normal;
}

.client-instruct-page {
    padding-bottom: 22px;
}

.client-instruct-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.client-instruct-heading span {
    display: block;
    margin-bottom: 3px;
    color: rgba(var(--secondary), 0.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-instruct-heading h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.client-instruct-heading-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(var(--primary), 0.16);
    border-radius: 8px;
    color: var(--theme-primary, rgba(var(--primary), 1));
    background: rgba(var(--primary), 0.06);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.client-instruct-heading-link:hover {
    color: #fff;
    background: var(--theme-primary, rgba(var(--primary), 1));
}

.client-instruct-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px 150px auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(var(--secondary), 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.client-instruct-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.client-instruct-field span {
    color: rgba(var(--secondary), 0.74);
    font-size: 12px;
    font-weight: 800;
}

.client-instruct-field .form-control,
.client-instruct-field .form-select,
.client-instruct-widget-search input {
    min-height: 42px;
    border-color: rgba(var(--secondary), 0.12);
    border-radius: 8px;
    color: #111827;
    font-weight: 700;
}

.client-instruct-card,
.client-instruct-widget,
.client-instruct-detail-card,
.client-instruct-empty,
.client-instruct-related {
    border: 1px solid rgba(var(--secondary), 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.client-instruct-card {
    height: 100%;
    overflow: hidden;
}

.client-instruct-list {
    align-items: stretch;
}

.client-instruct-list > [class*="col-"] {
    display: flex;
}

.client-instruct-list .client-instruct-card {
    width: 100%;
}

.client-instruct-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(var(--secondary), 0.08);
}

.client-instruct-card-media img,
.client-instruct-detail-media img,
.client-instruct-feed-media img,
.client-instruct-related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-instruct-card-media img,
.client-instruct-related-card img {
    transition: transform 0.28s ease;
}

.client-instruct-card:hover .client-instruct-card-media img,
.client-instruct-related-card:hover img {
    transform: scale(1.04);
}

.client-instruct-card-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.client-instruct-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: rgba(var(--secondary), 0.78);
    font-size: 12px;
    font-weight: 800;
}

.client-instruct-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.client-instruct-meta i {
    color: var(--theme-primary, rgba(var(--primary), 1));
    font-size: 15px;
}

.client-instruct-card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.28;
}

.client-instruct-card h2 a {
    color: #111827;
}

.client-instruct-card h2 a:hover,
.client-instruct-card-footer a:hover,
.client-instruct-feed a:hover {
    color: var(--theme-primary, rgba(var(--primary), 1));
}

.client-instruct-card p {
    min-height: 44px;
    margin: 0;
    color: rgba(var(--secondary), 0.86);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.client-instruct-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 3px;
}

.client-instruct-card-footer span {
    min-width: 0;
    overflow: hidden;
    color: rgba(var(--secondary), 0.78);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-instruct-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.client-instruct-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.client-instruct-bottom p {
    margin: 0;
    color: rgba(var(--secondary), 0.78);
    font-size: 13px;
    font-weight: 800;
}

.client-instruct-widget {
    padding: 15px;
}

.client-instruct-widget + .client-instruct-widget {
    margin-top: 14px;
}

.client-instruct-widget h3,
.client-instruct-section-title h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.client-instruct-widget-search {
    display: flex;
    gap: 8px;
}

.client-instruct-widget-search input {
    min-width: 0;
    width: 100%;
    padding: 0 12px;
}

.client-instruct-widget-search button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--theme-primary, rgba(var(--primary), 1));
}

.client-instruct-feed,
.client-instruct-category-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.client-instruct-feed li {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.client-instruct-feed-empty {
    display: block !important;
    color: rgba(var(--secondary), 0.8);
    font-weight: 700;
}

.client-instruct-feed-media {
    display: block;
    aspect-ratio: 1 / 0.76;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(var(--secondary), 0.08);
}

.client-instruct-feed div {
    min-width: 0;
}

.client-instruct-feed a:not(.client-instruct-feed-media) {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.client-instruct-feed span {
    display: block;
    margin-top: 4px;
    color: rgba(var(--secondary), 0.72);
    font-size: 12px;
    font-weight: 800;
}

.client-instruct-category-list a,
.client-instruct-category-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 8px;
    color: #111827;
    background: rgba(var(--secondary), 0.055);
    font-size: 13px;
    font-weight: 850;
}

.client-instruct-category-list a:hover,
.client-instruct-category-list a.active {
    color: #fff;
    background: var(--theme-primary, rgba(var(--primary), 1));
}

.client-instruct-category-list a span {
    min-height: auto;
    padding: 0;
    color: inherit;
    background: transparent;
}

.client-instruct-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 28px 18px;
    text-align: center;
}

.client-instruct-empty i {
    color: var(--theme-primary, rgba(var(--primary), 1));
    font-size: 38px;
}

.client-instruct-empty h5 {
    margin: 10px 0 5px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.client-instruct-empty p {
    margin: 0;
    color: rgba(var(--secondary), 0.78);
    font-size: 13px;
    font-weight: 700;
}

.client-instruct-detail-card {
    overflow: hidden;
}

.client-instruct-detail-media {
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: rgba(var(--secondary), 0.08);
}

.client-instruct-detail-body {
    padding: 18px;
}

.client-instruct-detail-body h2 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.24;
}

.client-instruct-detail-content {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.72;
}

.client-instruct-detail-content img,
.client-instruct-detail-content video,
.client-instruct-detail-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.client-instruct-detail-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.client-instruct-detail-content p:last-child {
    margin-bottom: 0;
}

.client-instruct-related {
    margin-top: 14px;
    padding: 15px;
}

.client-instruct-related-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 78px;
    padding: 8px;
    border-radius: 8px;
    color: #111827;
    background: rgba(var(--secondary), 0.05);
}

.client-instruct-related-card img {
    aspect-ratio: 1 / 0.7;
    overflow: hidden;
    border-radius: 8px;
}

.client-instruct-related-card span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.client-profile-page {
    padding-bottom: 24px;
}

.client-profile-layout {
    max-width: 1240px;
    margin: 0 auto;
}

.client-profile-card {
    overflow: hidden;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(20, 20, 20, 0.06);
}

.client-profile-card .card-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(var(--secondary), 0.1);
}

.client-profile-card .card-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
}

.client-profile-hero .image-details .profile-image {
    height: 220px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.client-profile-hero .image-details .profile-pic .avatar-upload .avatar-preview {
    width: 128px;
    height: 128px;
    border: 4px solid #fff;
    background: #fff;
}

.client-profile-hero .image-details .profile-pic .avatar-upload .avatar-edit input + label {
    border: 0;
    color: #fff;
    background: rgba(var(--primary), 1);
    box-shadow: 0 8px 18px rgba(var(--primary), 0.25);
}

.client-profile-hero .person-details h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    margin-bottom: 4px;
    color: rgba(var(--dark), 1);
    font-size: 24px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.client-profile-hero .person-details > p {
    margin-bottom: 0;
    color: rgba(var(--secondary), 1);
    font-weight: 700;
}

.client-profile-hero .details {
    flex-wrap: wrap;
}

.client-profile-hero .details h4 {
    margin-bottom: 2px;
    font-size: 19px;
    font-weight: 900;
}

.client-profile-hero .details p {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.client-profile-settings .setting-tab {
    width: 100%;
}

.client-profile-settings .setting-tab .nav-tabs {
    gap: 8px;
    border: 0;
}

.client-profile-settings .setting-tab .nav-tabs .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 10px;
    background: #fbfcfd;
    color: rgba(var(--secondary), 1) !important;
    font-weight: 800;
    letter-spacing: 0;
}

.client-profile-settings .setting-tab .nav-tabs .nav-link:hover {
    border-color: rgba(var(--primary), 0.28);
    color: rgba(var(--primary), 1) !important;
    background: rgba(var(--primary), 0.07);
}

.client-profile-settings .setting-tab .nav-tabs .nav-link.active,
.client-profile-settings .setting-tab .nav-tabs .nav-link.active:hover {
    border-color: rgba(var(--primary), 1);
    color: #fff !important;
    background: rgba(var(--primary), 1);
}

.client-profile-tab-content {
    min-height: 330px;
    padding: 2px 0;
}

.client-profile-tab-content .tab-pane,
.client-profile-tab-content .tab-pane:focus,
.client-profile-tab-content .tab-pane:focus-visible {
    outline: none;
    box-shadow: none;
}

.client-profile-security-form {
    padding: 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: #fbfcfd;
}

.client-profile-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.client-profile-info-tile {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(var(--secondary), 0.12);
    border-radius: 12px;
    background: #fbfcfd;
}

.client-profile-info-tile span,
.client-profile-api-box span {
    display: block;
    margin-bottom: 4px;
    color: rgba(var(--secondary), 1);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.client-profile-info-tile strong,
.client-profile-api-box strong {
    display: block;
    color: rgba(var(--dark), 1);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.client-profile-api-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px dashed rgba(var(--primary), 0.28);
    border-radius: 12px;
    background: rgba(var(--primary), 0.05);
}

.client-profile-table {
    min-width: 760px;
}

.client-profile-tab-title {
    margin-bottom: 12px;
}

.client-profile-history-filter {
    margin-top: 0;
}

.client-profile-tab-content .invite-history-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.client-profile-history-table {
    table-layout: fixed;
}

.client-profile-history-table .client-profile-table-text {
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.client-profile-activity-table {
    min-width: 940px;
}

.client-profile-activity-table th:nth-child(1),
.client-profile-activity-table td:nth-child(1) {
    width: 16%;
}

.client-profile-activity-table th:nth-child(2),
.client-profile-activity-table td:nth-child(2) {
    width: 36%;
}

.client-profile-activity-table th:nth-child(3),
.client-profile-activity-table td:nth-child(3) {
    width: 16%;
}

.client-profile-activity-table th:nth-child(4),
.client-profile-activity-table td:nth-child(4) {
    width: 32%;
}

.client-profile-balance-table {
    min-width: 1080px;
}

.client-profile-balance-table th:nth-child(1),
.client-profile-balance-table td:nth-child(1) {
    width: 14%;
}

.client-profile-balance-table th:nth-child(2),
.client-profile-balance-table td:nth-child(2) {
    width: 19%;
}

.client-profile-balance-table th:nth-child(3),
.client-profile-balance-table td:nth-child(3),
.client-profile-balance-table th:nth-child(4),
.client-profile-balance-table td:nth-child(4),
.client-profile-balance-table th:nth-child(5),
.client-profile-balance-table td:nth-child(5) {
    width: 13%;
}

.client-profile-balance-table th:nth-child(6),
.client-profile-balance-table td:nth-child(6) {
    width: 28%;
}

.client-profile-table th {
    color: rgba(var(--dark), 0.88);
    font-weight: 850;
}

.client-profile-money-in {
    color: #198754;
}

.client-profile-money-out {
    color: #dc3545;
}

@media screen and (max-width: 991.98px) {
    .topup-qr-layout {
        grid-template-columns: 1fr;
    }

    .client-instruct-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .client-instruct-search {
        grid-column: 1 / -1;
    }

    .client-profile-settings .setting-tab .nav-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .client-profile-settings .setting-tab .nav-tabs .nav-link {
        justify-content: center;
        padding: 10px 8px;
        text-align: center;
    }
}

@media screen and (max-width: 767px) {
    .topup-qr-box {
        padding: 12px;
    }

    .topup-qr-image {
        width: min(100%, 280px);
    }

    .topup-info-row {
        grid-template-columns: 1fr;
        gap: 6px !important;
    }

    .topup-copy-value {
        justify-content: flex-start;
        text-align: left;
    }

    .topup-history-filter-main {
        grid-template-columns: 1fr 1fr;
    }

    .topup-history-filter-main .invite-filter-field:nth-child(1),
    .topup-history-filter-main .invite-filter-field:nth-child(2),
    .topup-history-filter-main .invite-filter-field-date {
        grid-column: 1 / -1;
    }

    .topup-history-table {
        min-width: 1020px;
    }

    .client-instruct-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-instruct-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .client-instruct-page > .row,
    .client-instruct-related .row {
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .client-instruct-page > .row > [class*="col-"],
    .client-instruct-related .row > [class*="col-"] {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .client-instruct-list {
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .client-instruct-list > [class*="col-"] {
        width: 100%;
        max-width: 420px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .client-instruct-card,
    .client-instruct-widget,
    .client-instruct-detail-card,
    .client-instruct-empty,
    .client-instruct-related {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .client-instruct-heading h1,
    .client-instruct-detail-body h2 {
        font-size: 24px;
    }

    .client-instruct-toolbar {
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }

    .client-instruct-toolbar .invite-filter-btn {
        min-width: 0;
    }

    .client-instruct-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-instruct-bottom .invite-history-pagination-wrap {
        justify-content: flex-start;
    }

    .client-instruct-detail-media {
        aspect-ratio: 16 / 10;
    }

    .client-instruct-detail-body {
        padding: 14px;
    }

    .client-profile-page {
        padding: 0 10px 96px;
    }

    .client-profile-card {
        border-radius: 12px;
    }

    .client-profile-hero .image-details .profile-image {
        height: 170px;
    }

    .client-profile-hero .image-details .profile-pic .avatar-upload .avatar-preview {
        width: 104px;
        height: 104px;
    }

    .client-profile-hero .person-details h5 {
        font-size: 20px;
    }

    .client-profile-hero .details {
        gap: 18px;
    }

    .client-profile-hero .details h4 {
        font-size: 16px;
    }

    .client-profile-settings .setting-tab .nav-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-profile-security-grid {
        grid-template-columns: 1fr;
    }

    .client-profile-api-box {
        align-items: flex-start;
    }
}

@media screen and (max-width: 767px) {
    .auth-account-modal {
        padding: 0 !important;
    }

    .auth-account-modal.fade .modal-dialog {
        transform: translateX(100%) !important;
        transition: transform 0.28s ease !important;
    }

    .auth-account-modal.show .modal-dialog {
        transform: translateX(0) !important;
    }

    .auth-account-modal .modal-dialog {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        margin: 0;
    }

    .auth-account-modal .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        background: rgba(var(--white), 1);
        box-shadow: none;
    }

    .auth-shell {
        display: block;
        min-height: 100%;
        background: rgba(var(--white), 1);
    }

    .auth-shell-close,
    .auth-side-pane {
        display: none;
    }

    .auth-mobile-head {
        position: sticky;
        top: 0;
        z-index: 5;
        min-height: 58px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 6px;
        padding: 8px 14px 8px 4px;
        border-bottom: 1px solid rgba(var(--secondary), 0.12);
        background: rgba(var(--white), 1);
    }

    .auth-mobile-back {
        width: 44px;
        height: 44px;
        display: inline-grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: rgba(var(--dark), 0.88);
        background: transparent;
    }

    .auth-mobile-head-copy {
        min-width: 0;
    }

    .auth-mobile-title {
        margin: 0;
        color: rgba(var(--dark), 1);
        font-size: 16px;
        font-weight: 900;
        line-height: 1.25;
    }

    .auth-mobile-subtitle {
        margin: 2px 0 0;
        overflow: hidden;
        color: rgba(var(--secondary), 0.9);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.25;
    }

    .auth-form-pane {
        min-height: calc(100dvh - 58px);
        justify-content: flex-start;
        padding: 42px 16px 34px;
        overflow-y: auto;
        text-align: center;
    }

    .auth-brand-mark {
        margin-bottom: 24px;
    }

    .auth-brand-mark img {
        max-width: 112px;
        max-height: 70px;
    }

    .auth-brand-mark span {
        font-size: 22px;
    }

    .auth-account-modal .auth-modal-tabs {
        display: none;
    }

    .auth-account-modal .auth-modal-form {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .auth-form-title {
        font-size: 21px;
    }

    .auth-form-subtitle {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 22px;
        font-size: 13px;
    }

    .auth-field {
        margin-bottom: 14px;
        text-align: left;
    }

    .auth-account-modal .auth-modal-form .form-label {
        display: none;
    }

    .auth-account-modal .auth-modal-form .form-control {
        height: 48px;
        border-radius: 12px;
        background: #f6f7f9;
        font-size: 14px;
    }

    .auth-account-modal .auth-password-toggle {
        right: 7px;
    }

    .auth-forgot-row {
        justify-content: flex-end;
        margin-top: -3px;
        margin-bottom: 14px;
    }

    .auth-otp-field .form-control {
        padding-right: 104px;
    }

    .auth-submit-btn {
        min-height: 48px;
        margin-top: 4px;
        border-radius: 12px;
    }

    .auth-switch-line {
        display: block;
        margin-top: 22px;
        color: rgba(var(--secondary), 0.92);
        font-size: 12px;
        line-height: 1.5;
    }

    .auth-switch-line button {
        display: inline-flex;
        margin-left: 4px;
        vertical-align: middle;
    }

    :root {
        --client-topbar-height: 50px;
        --client-header-height: 68px;
    }

    .header-media-group,
    .header-form,
    .client-shop-menu {
        display: none !important;
    }

    .header-logo {
        display: inline-flex !important;
    }

    .client-header-top {
        display: block !important;
        height: var(--client-topbar-height);
        min-height: var(--client-topbar-height);
        padding: 0;
        overflow: hidden;
    }

    .client-header-top .container-fluid {
        height: 100%;
    }

    .client-header-top .row {
        height: 100%;
        gap: 0;
        margin: 0;
    }

    .client-header-top [class*="col-"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .client-header-top .col-lg-5,
    .client-header-top .col-md-7 {
        display: none !important;
    }

    .header-top-welcome {
        display: none !important;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-width: 0;
    }

    .header-top-welcome p {
        overflow: hidden;
        margin: 0;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1;
    }

    .header-top-select {
        display: flex !important;
        justify-content: center;
        gap: 7px;
        height: 100%;
    }

    .header-select {
        gap: 5px;
        padding: 3px 7px;
        border: 1px solid rgba(var(--white), 0.18);
        border-radius: 12px;
        background: rgba(var(--white), 0.1);
    }

    .header-select select {
        height: 24px;
        max-width: 92px;
        padding: 0 4px;
        border: 0;
        background: transparent;
        font-size: 11px;
    }

    .app-wrapper .app-content,
    .app-wrapper .header-main,
    .app-wrapper footer.site-footer,
    header.header-main {
        padding-left: 0 !important;
    }

    .client-shop-header {
        top: var(--client-topbar-height);
        padding-left: 0 !important;
        box-shadow: 0 10px 24px rgba(20, 20, 20, 0.1);
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: var(--client-header-height);
        width: 100% !important;
        padding: 8px 0;
    }

    .header-logo.client-brand-logo {
        flex: 0 0 auto;
        max-width: 150px;
        padding: 0;
        justify-self: auto;
    }

    .header-logo.client-brand-logo img {
        width: auto;
        height: 40px;
    }

    .client-widget-icon-desktop {
        display: none;
    }

    .client-widget-icon-mobile {
        display: inline-block;
    }

    .header-widget-group {
        display: grid !important;
        grid-template-columns: 38px 38px 38px;
        align-items: center;
        justify-content: end;
        flex: 0 0 auto;
        gap: 5px;
        margin-left: 0;
        width: auto;
    }

    .header-widget-group .dropdown {
        display: block;
        min-width: 0;
        width: auto;
    }

    .header-widget {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        border-radius: 11px;
    }

    .header-widget-group > .header-order-widget .client-widget-icon,
    .header-widget-group > .header-order-widget svg,
    .header-widget-group > a[href*="history"] .client-widget-icon,
    .header-widget-group > a[href*="history"] svg {
        width: 18px;
        height: 18px;
    }

    .header-profile-widget {
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        height: 38px;
        justify-content: center;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(var(--secondary), 0.14);
        border-radius: 11px;
        box-shadow: none;
        background: #fff;
    }

    .header-widget-group .dropdown {
        justify-self: start;
    }

    .header-profile-widget img {
        width: 30px;
        height: 30px;
    }

    .header-profile-widget span {
        display: none;
    }

    .header-profile-widget p {
        display: none;
    }

    .header-profile-widget .client-profile-caret {
        display: none;
    }

    .client-header-top {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .client-header-top .col-md-5 {
        display: block !important;
    }

    .app-wrapper .app-content main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .app-wrapper .app-content main > .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .ticket-app {
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .ticket-app > .col-lg-6 {
        width: 100%;
        max-width: 460px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .ticket-app > .col-lg-6 > .row {
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ticket-app > .col-lg-6 > .row > [class*="col-"] {
        width: 100%;
        max-width: 420px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .ticket-app > .col-12,
    .ticket-stats-row > [class*="col-"],
    .invite-workspace-row > [class*="col-"] {
        width: 100%;
    }

    .ticket-app .ticket-card {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .invite-panel-card {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .ticket-stats-row > [class*="col-"] .card,
    .invite-workspace-row > [class*="col-"] .card {
        margin-left: auto;
        margin-right: auto;
    }

    .invite-card-title {
        align-items: flex-start;
    }

    .invite-card-title h5 {
        font-size: 16px;
        line-height: 1.25;
    }

    .invite-agency-program-card .card-body {
        padding: 10px 12px;
    }

    .invite-agency-compact {
        grid-template-columns: minmax(0, 1fr) 76px;
        gap: 8px;
    }

    .invite-agency-copy {
        gap: 7px;
    }

    .invite-agency-copy h5 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .invite-agency-points {
        display: none;
    }

    .invite-agency-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    .invite-agency-actions .invite-promo-btn {
        min-height: 36px;
        min-width: 0;
        width: 100%;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 12px;
        justify-content: center;
    }

    .invite-agency-illustration {
        display: block !important;
        width: 76px;
        max-width: 76px;
        align-self: center;
        grid-column: 2;
        grid-row: 1;
    }

    .invite-price-strip {
        grid-column: 1 / -1;
        padding: 6px;
    }

    .invite-price-server,
    .invite-price-pill {
        min-width: 98px;
        min-height: 34px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .invite-price-server {
        min-width: 128px;
    }

    .invite-price-pill span {
        font-size: 10px;
    }

    .invite-price-pill strong {
        font-size: 12px;
    }

    footer.site-footer,
    .app-wrapper footer.site-footer,
    div > footer.site-footer {
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        height: 10rem !important;
        min-height: 10rem !important;
        padding: 18px 18px calc(5.4rem + env(safe-area-inset-bottom)) !important;
        text-align: center;
    }

    .site-footer .footer-text {
        text-align: center !important;
        line-height: 1.5;
    }

    .go-top {
        display: none !important;
    }

    .plugbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: block;
        z-index: 1035;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .plugbar ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        margin: 0;
        padding: 8px 6px;
        list-style: none;
        background: rgba(var(--white), 1);
        border: 1px solid rgba(var(--secondary), 0.12);
        border-radius: 18px;
        box-shadow: 0 14px 35px rgba(20, 20, 20, 0.16);
    }

    .plugbar .menu-item-footer {
        position: relative;
        min-width: 0;
    }

    .plugbar .menu-item-footer.mobile-menu-active {
        background-color: transparent;
        border-top: 0;
    }

    .plugbar .menu-item-footer > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        gap: 4px;
        color: #111827;
        text-decoration: none;
        transition: color 0.18s ease;
    }

    .plugbar .menu-item-footer i {
        font-size: 22px;
        line-height: 1;
    }

    .plugbar .menu-item-footer .plugbar-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .plugbar .menu-item-footer p {
        max-width: 100%;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.1;
    }

    .plugbar .menu-item-footer.active > a,
    .plugbar .menu-item-footer.mobile-menu-active > a,
    .plugbar .menu-item-footer > a:hover {
        color: var(--theme-primary, rgba(var(--primary), 1));
    }

}

/* Daily agency application page */
.daily-page {
    min-height: calc(100vh - 120px);
    padding: 28px 0 38px;
    background: #f4f5f7;
}

.daily-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
}

.daily-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    padding: 24px;
}

.daily-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #111827;
}

.daily-card-header-center {
    justify-content: center;
    text-align: center;
}

.daily-card-header h1,
.daily-card-header h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.25;
}

.daily-icon,
.daily-button-icon,
.daily-note-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.daily-form {
    display: grid;
    gap: 18px;
}

.daily-field {
    display: grid;
    gap: 8px;
}

.daily-field label {
    margin: 0;
    color: #070707;
    font-size: 14px;
    font-weight: 800;
}

.daily-field input,
.daily-field select,
.daily-field textarea {
    width: 100%;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #f8f8f9;
    color: #111827;
    font-size: 14px;
    font-weight: 650;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.daily-field input,
.daily-field select {
    min-height: 42px;
    padding: 0 13px;
}

.daily-field textarea {
    min-height: 120px;
    padding: 13px;
    resize: vertical;
}

.daily-field input::placeholder,
.daily-field textarea::placeholder {
    color: #6b7280;
    opacity: 0.9;
}

.daily-field input:focus,
.daily-field select:focus,
.daily-field textarea:focus {
    border-color: #4f63ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 99, 255, 0.12);
}

.daily-submit-btn,
.daily-auth-btn {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: #050505;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.daily-submit-btn {
    width: 100%;
    margin-top: 2px;
}

.daily-submit-btn:hover,
.daily-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.daily-submit-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.daily-button-icon {
    width: 17px;
    height: 17px;
}

.daily-auth-note {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(79, 99, 255, 0.18);
    border-radius: 8px;
    background: #f2f5ff;
    padding: 12px;
    color: #1f2937;
}

.daily-auth-note strong,
.daily-auth-note span {
    grid-column: 1;
}

.daily-auth-note strong {
    font-size: 14px;
    font-weight: 800;
}

.daily-auth-note span {
    color: #4b5563;
    font-size: 13px;
}

.daily-auth-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.daily-history-list {
    display: grid;
    gap: 12px;
    max-height: 590px;
    overflow: auto;
    padding-right: 4px;
}

.daily-history-list::-webkit-scrollbar {
    width: 6px;
}

.daily-history-list::-webkit-scrollbar-thumb {
    background: #d5dae4;
    border-radius: 999px;
}

.daily-history-item {
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #fbfcfe;
    padding: 16px 14px;
}

.daily-history-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.daily-history-top strong {
    color: #111827;
    font-size: 14px;
    font-weight: 850;
}

.daily-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    max-width: 230px;
    border-radius: 999px;
    padding: 5px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.daily-status-pending {
    background: #fff0ba;
    color: #8a5a00;
}

.daily-status-approved {
    background: #d8f7dd;
    color: #176b2c;
}

.daily-status-rejected {
    background: #ffe1e1;
    color: #a52424;
}

.daily-history-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}

.daily-history-meta div {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.daily-history-meta dt,
.daily-history-meta dd {
    margin: 0;
    color: #374151;
    font-size: 13px;
    line-height: 1.35;
}

.daily-history-meta dt {
    font-weight: 850;
}

.daily-history-meta dd {
    font-weight: 700;
}

.daily-admin-note {
    margin-top: 14px;
    border-left: 3px solid #1d9bf0;
    border-radius: 5px;
    background: linear-gradient(90deg, #e8f1ff 0%, #f3e5ff 100%);
    padding: 12px;
}

.daily-admin-note span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1478d4;
    font-size: 12px;
    font-weight: 850;
}

.daily-note-icon {
    width: 15px;
    height: 15px;
}

.daily-admin-note p {
    margin: 8px 0 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.daily-empty {
    min-height: 150px;
    border: 1px dashed #d3d8e2;
    border-radius: 8px;
    background: #fbfcfe;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
}

.daily-empty p {
    max-width: 320px;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .daily-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .daily-history-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .daily-page {
        padding: 14px 0 26px;
    }

    .daily-card {
        padding: 18px 14px;
    }

    .daily-card-header {
        margin-bottom: 18px;
    }

    .daily-card-header h1,
    .daily-card-header h2 {
        font-size: 19px;
    }

    .daily-auth-note {
        grid-template-columns: 1fr;
    }

    .daily-auth-note strong,
    .daily-auth-note span,
    .daily-auth-btn {
        grid-column: 1;
        grid-row: auto;
    }

    .daily-auth-btn {
        width: 100%;
        margin-top: 6px;
    }

    .daily-history-top {
        display: grid;
    }

    .daily-status {
        justify-self: start;
        max-width: 100%;
    }
}

/* Daily agency page: reuse the current client card/table system */
.daily-panel-icon,
.daily-submit-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invite-card-icon .daily-panel-icon {
    width: 24px;
    height: 24px;
}

.guest-login-alert-btn .daily-panel-icon,
.daily-submit-icon {
    width: 17px;
    height: 17px;
}

.daily-agency-form .col-form-label {
    color: rgba(var(--dark), 0.9);
    font-weight: 700;
}

.daily-agency-form .form-control,
.daily-agency-form .form-select {
    border-color: rgba(var(--secondary), 0.18);
    border-radius: 10px;
    color: rgba(var(--dark), 0.92);
    font-weight: 700;
}

.daily-agency-form .form-control:focus,
.daily-agency-form .form-select:focus {
    border-color: rgba(var(--primary), 0.7);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary), 0.12);
}

.daily-history-table {
    min-width: 980px;
}

.daily-history-table .badge {
    white-space: normal;
    line-height: 1.25;
}

.daily-history-scroll {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.daily-history-scroll::-webkit-scrollbar {
    height: 6px;
}

.daily-history-scroll::-webkit-scrollbar-thumb {
    background: #d5dae4;
    border-radius: 999px;
}

.daily-history-note-row td {
    background: transparent !important;
}

.daily-admin-feedback {
    border-left: 3px solid rgba(var(--primary), 1);
    font-size: 13px;
    font-weight: 700;
}
