.account-page-main {
    min-height: 570px;
    padding: 48px 0 64px;
    font-size: 16px;
}

.account-container {
    max-width: 1180px;
}

.account-breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 15px;
}

.account-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
    align-items: start;
    gap: 24px;
}

.account-dashboard-sidebar,
.account-dashboard-content {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.account-panel {
    padding: 24px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(26, 39, 68, .06);
}

.account-profile-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #f3f6ff, #fff 72%);
    text-align: center;
}

:is(.dark, .uc-dark) .account-profile-panel,
:is(.dark, .uc-dark) .sign-in-card {
    background: linear-gradient(145deg, #17213e, #111827 72%);
}

.account-profile-image {
    width: 96px;
    height: 96px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(26, 39, 68, .16);
}

.account-profile-title {
    margin: 0;
    color: var(--color-primary, #2757fd);
    font-size: 22px;
    font-weight: 700;
}

.account-verification-status {
    margin: -6px 0 0;
    color: #2757fd;
    font-size: 14px;
    font-weight: 600;
}

.account-profile-form,
.account-verification-form,
.account-otp-form {
    display: grid;
    width: 100%;
    gap: 12px;
    text-align: left;
}

.account-profile-form .form-label,
.account-verification-form .form-label,
.account-otp-form .form-label,
.sign-in-form .form-label {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.account-profile-form .form-control,
.account-verification-form .form-control {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 16px;
}

.account-status,
.account-otp-status {
    min-height: 18px;
    margin: 0;
    color: #c83c3c;
    font-size: 14px;
}

.account-otp-status.is-success {
    color: #168447;
}

.account-update-button,
.account-verify-trigger {
    min-height: 40px;
    padding: 8px 18px;
}

.account-summary-card {
    padding: 0 !important;
    overflow: hidden;
}

.account-summary-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 46px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(128, 139, 160, .2);
    color: var(--color-primary, #2757fd);
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

.account-summary-row i {
    flex: 0 0 18px;
    color: #229ed9;
    font-size: 17px;
    text-align: center;
}

.account-summary-row strong {
    overflow-wrap: anywhere;
}

.account-gen-buy {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #229ed9;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.account-summary-actions {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.account-summary-actions .btn {
    min-height: 40px;
}

.account-ranking-card {
    padding: 20px !important;
}

.account-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary, #2757fd);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
}

.account-section-title i {
    color: var(--color-primary, #2757fd);
}

.account-ranking-table {
    margin-bottom: 4px;
    font-size: 15px;
}

.account-ranking-table th,
.account-ranking-table td {
    padding: 9px 12px;
    vertical-align: middle;
}

.account-ranking-note {
    margin: 0;
    color: #7b8495;
    font-size: 14px;
    text-align: center;
}

.account-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-field-error {
    margin: -4px 0 10px;
    color: #c83c3c;
    font-size: 14px;
    line-height: 1.5;
}

.account-transaction-section {
    margin-top: 20px;
    padding: 20px !important;
}

.account-history-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
}

.account-history-filter label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.account-history-filter input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #c9ced8;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 15px;
}

.account-history-filter-submit {
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: #d61f26;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.account-history-table {
    margin-bottom: 4px;
    font-size: 15px;
}

.account-history-table th,
.account-history-table td {
    padding: 9px 12px;
    white-space: nowrap;
    vertical-align: middle;
}

.account-history-pagination {
    padding-top: 12px;
}

#account-transaction-wrap.is-loading,
#account-ranking-wrap.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.account-type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.account-type-recharge {
    background: #e3efff;
    color: #1f5fa8;
}

.account-type-subscribe {
    background: #dcf5e6;
    color: #1d7a45;
}

.account-type-renew {
    background: #efe6ff;
    color: #6a3fb5;
}

.account-type-purchase {
    background: #ffe1e1;
    color: #c83c3c;
}

.account-history-item {
    display: flex;
    /* aspect-ratio: 1.05; */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(128, 139, 160, .2);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(26, 39, 68, .06);
}

.account-history-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-verification-form .form-control {
    min-height: 46px;
}

.account-otp-form .form-control {
    min-height: 48px;
    letter-spacing: .35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.account-otp-form .btn,
.account-verification-form .btn {
    min-height: 42px;
}

.account-verification-modal-content,
.account-otp-modal-content {
    position: relative;
    gap: 14px;
    padding: 28px;
    border: 0;
    border-radius: 16px;
    background: #f4f7fc;
    box-shadow: 0 18px 50px rgba(26, 39, 68, .16);
}

.account-verification-modal-content .account-modal-close,
.account-otp-modal-content .account-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.account-modal-heading {
    padding: 0 18px;
    text-align: center;
}

.account-modal-heading h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: clamp(20px, 3vw, 23px);
    font-weight: 800;
}

.account-modal-heading h2 .bi {
    font-size: 16px;
}

.account-modal-heading p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.account-modal-heading > strong,
.account-modal-heading p > strong {
    font-size: 15px;
}

.account-verification-panel,
.account-otp-panel {
    padding: 22px;
    border: 1px solid rgba(128, 139, 160, .15);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 39, 68, .06);
}

.account-verification-form {
    gap: 12px;
}

.account-verification-field {
    display: grid;
    grid-template-columns: 30px 76px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.account-verification-field label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.account-verification-field label span {
    color: #c83c3c;
}

.account-verification-field .form-control {
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
}

.account-modal-field-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(39, 87, 253, .09);
    font-size: 16px;
}

.account-modal-submit {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: min(100%, 190px);
    margin: 3px auto 0;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
}

.account-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(128, 139, 160, .2);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.account-modal-note > .bi {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 21px;
}

.account-modal-note p {
    margin: 0;
}

.account-otp-modal-content {
    gap: 16px;
}

.account-otp-modal-content .account-modal-heading {
    padding: 0 12px;
}

.account-otp-modal-content .account-modal-heading h2 {
    margin-bottom: 7px;
}

.account-otp-modal-content .account-modal-heading p {
    font-size: 15px;
}

.account-otp-panel {
    padding: 26px 20px 20px;
}

.account-otp-form {
    justify-items: center;
    gap: 12px;
}

.account-otp-digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    width: min(100%, 286px);
}

.account-otp-digits .account-otp-digit {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 4px;
    border-radius: 8px;
    font-size: 21px;
    font-weight: 600;
    text-align: center;
}

.account-otp-resend {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.account-otp-resend strong {
    color: #c83c3c;
    font-variant-numeric: tabular-nums;
}

.account-otp-resend button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-decoration: underline;
}

.account-otp-resend button:disabled {
    cursor: not-allowed;
    opacity: .55;
    text-decoration: none;
}

.account-otp-status {
    width: 100%;
    min-height: 0;
    text-align: center;
}

.account-otp-form .account-modal-submit {
    width: max-content;
    min-width: 190px;
    padding: 0 22px;
    white-space: nowrap;
}

.account-otp-modal-content .account-modal-note {
    font-size: 13px;
}

.sign-in-page.account-page-main {
    padding: 0;
    background: #07080b;
}

.sign-in-page .sign-in-stage,
.sign-in-stage {
    display: flex;
    min-height: 70vh;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 64px;
    /* background:
        radial-gradient(circle at 50% 0%, rgba(225, 54, 54, .28), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(245, 196, 81, .12), transparent 50%),
        #07080b; */
    background-image: url("../images/web/common/bg_sign-in_2.png");
    background-size: cover;
}

.sign-in-page .sign-in-card,
.sign-in-card {
    position: relative;
    width: min(100%, 460px);
    padding: clamp(28px, 5vw, 40px);
    border: 1px solid rgba(245, 196, 81, .45) !important;
    background: linear-gradient(160deg, #1d1f27 0%, #0e1015 70%);
    box-shadow: 0 0 0 4px rgba(225, 54, 54, .18), 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #f3f4f6;
    font-size: 16px;
    overflow: hidden;
}

.sign-in-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e13636, #f5c451, #e13636);
}

.sign-in-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.sign-in-logo img {
    width: 128px;
    max-height: 54px;
    filter: brightness(1.35) contrast(1.1) drop-shadow(0 0 6px rgba(255, 255, 255, .25));
}

.sign-in-form .form-control {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
}

.sign-in-form .form-check-label {
    font-size: 15px;
}

.sign-in-actions .btn {
    font-size: 16px;
}

.sign-in-service-info {
    padding: 14px;
    border: 1px dashed rgba(245, 196, 81, .35);
    border-radius: 10px;
    background: rgba(0, 0, 0, .35);
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

.sign-in-kicker {
    margin: 0 0 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #f5c451;
}

.sign-in-page .sign-in-title {
    color: #fff3c4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 0 0 18px rgba(245, 196, 81, .35);
}

.sign-in-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #e13636, transparent);
}

.sign-in-page .sign-in-form .form-label {
    color: #f5c451;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sign-in-page .sign-in-form .form-control {
    background: #07080b;
    border: 1px solid #3a3f4b;
    border-radius: 10px;
    color: #fff;
}

.sign-in-page .password-field {
    position: relative;
}

.sign-in-page .password-field .form-control {
    padding-right: 44px;
}

.sign-in-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.sign-in-page .password-toggle svg {
    width: 18px;
    height: 18px;
}

.sign-in-page .password-toggle svg * {
    fill: none;
}

.sign-in-page .password-toggle:hover,
.sign-in-page .password-toggle:focus-visible,
.sign-in-page .password-toggle[aria-pressed="true"] {
    color: #f5c451;
    background: rgba(245, 196, 81, .1);
    border-color: rgba(245, 196, 81, .35);
    outline: none;
}

.sign-in-page .password-toggle .password-toggle-hide,
.sign-in-page .password-toggle[aria-pressed="true"] .password-toggle-show {
    display: none;
}

.sign-in-page .password-toggle[aria-pressed="true"] .password-toggle-hide {
    display: block;
}

.sign-in-page .sign-in-form .form-control::placeholder {
    color: #6b7280;
}

.sign-in-page .sign-in-form .form-control:focus {
    background: #0b0c10;
    border-color: #f5c451;
    box-shadow: 0 0 0 3px rgba(245, 196, 81, .2);
    color: #fff;
}

.sign-in-page .sign-in-form .form-check-label {
    color: #d1d5db;
}

.sign-in-page .sign-in-form .form-check-input {
    background-color: #07080b;
    border-color: #3a3f4b;
}

.sign-in-page .sign-in-form .form-check-input:checked {
    background-color: #e13636;
    border-color: #e13636;
}

.sign-in-actions .btn {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 10px;
}

.sign-in-actions .btn-primary {
    border: none;
    background: linear-gradient(180deg, #ff4d4d, #e13636);
    color: #fff;
    box-shadow: 0 8px 22px rgba(225, 54, 54, .45);
}

.sign-in-actions .btn-primary:hover {
    background: linear-gradient(180deg, #ff6464, #f04444);
    color: #fff;
}

.sign-in-actions .btn-outline-primary {
    border: 1px solid #f5c451;
    background: transparent;
    color: #f5c451;
}

.sign-in-actions .btn-outline-primary:hover {
    background: rgba(245, 196, 81, .12);
    color: #ffe7a3;
}

.dark .sign-in-service-info {
    background: rgba(255, 255, 255, .04);
}

.sign-in-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sign-in-actions .btn {
    flex: 1 1 150px;
    min-height: 44px;
}

@media (max-width: 767px) {
    .sign-in-page .sign-in-stage,
    .sign-in-stage {
        min-height: 0;
        padding: 24px 12px 32px;
    }

    .sign-in-page .sign-in-card,
    .sign-in-card {
        padding: 22px 18px 24px;
        width: min(80%, 460px);
    }

    .sign-in-card::before {
        height: 4px;
    }

    .sign-in-logo {
        margin-bottom: 16px;
    }

    .sign-in-logo img {
        width: 104px;
    }

    .sign-in-page .sign-in-title {
        font-size: 1.25rem;
        margin-bottom: 14px !important;
    }

    .sign-in-page .sign-in-form {
        gap: 14px !important;
    }

    .sign-in-page .sign-in-form .form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .sign-in-page .sign-in-form .form-control {
        min-height: 42px;
        font-size: 15px;
    }

    .sign-in-page .sign-in-form .form-check-label {
        font-size: 14px;
    }

    .sign-in-service-info {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.6;
    }

    .sign-in-actions {
        gap: 8px;
    }

    .sign-in-actions .btn {
        min-height: 42px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .account-page-main {
        padding: 32px 0 40px;
    }

    .account-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .account-panel {
        padding: 20px !important;
    }

    .account-summary-card {
        padding: 0 !important;
    }

    .account-history-grid {
        gap: 10px;
    }

    .account-verification-modal-content,
    .account-otp-modal-content {
        gap: 12px;
        padding: 22px 16px 16px;
    }

    .account-verification-panel,
    .account-otp-panel {
        padding: 16px 12px;
    }

    .account-verification-field {
        grid-template-columns: 28px 68px minmax(0, 1fr);
        gap: 6px;
    }

    .account-verification-field label {
        font-size: 13px;
    }

    .account-verification-field .form-control {
        padding: 8px;
        font-size: 15px;
    }

    .account-modal-heading {
        padding: 0 8px;
    }

    .account-otp-digits {
        gap: 5px;
    }

    .account-modal-heading p,
    .account-modal-heading > strong,
    .account-modal-heading p > strong {
        font-size: 14px;
    }

    .account-otp-digits .account-otp-digit {
        height: 44px;
        font-size: 19px;
    }

    .account-modal-note {
        font-size: 13px;
    }
}
