.account-extension-original-hidden {
    display: none !important;
}

.account-extension-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    max-width: 100%;
    min-height: 100vh;
    padding-top: 3.25rem;
    background: #f0f3f8;
}

.account-extension-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem;
}

.account-extension-toolbar,
.account-section-heading,
.account-product-card-head,
.account-product-meta,
.account-product-actions,
.account-card-row,
.account-status-banner {
    display: flex;
    align-items: center;
}

.account-extension-toolbar {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.account-extension-toolbar h2 {
    margin: 0 0 .35rem;
    color: #172033;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
}

.account-extension-toolbar p,
.account-section-heading h3,
.account-section-heading p {
    margin: 0;
}

.account-extension-toolbar p,
.account-muted {
    color: #778196;
    font-size: .85rem;
}

.account-section,
.account-order-panel {
    margin-bottom: 1.25rem;
    border: 1px solid #e4e8ef;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 42, 65, .04);
}

.account-section-heading {
    min-height: 3.25rem;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #edf0f4;
}

.account-section-heading h3 {
    color: #283044;
    font-size: 1rem;
    font-weight: 600;
}

.account-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.account-product-card {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e2e7ee;
    border-top: 3px solid #2877d4;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.account-product-card:hover {
    border-color: #a8c9ed;
    box-shadow: 0 8px 22px rgba(42, 93, 154, .1);
    transform: translateY(-2px);
}

.account-product-card-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.account-product-card h4 {
    min-width: 0;
    margin: 0;
    color: #20283a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.account-product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: .9rem;
    border: 1px solid #edf0f4;
    border-radius: 4px;
    background: #f7f9fc;
    object-fit: cover;
}

.account-price {
    flex: none;
    color: #d04a3a;
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
}

.account-product-description {
    display: -webkit-box;
    min-height: 3.9em;
    margin: .8rem 0;
    overflow: hidden;
    color: #687288;
    font-size: .86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.account-product-meta {
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .75rem;
    color: #687288;
    font-size: .8rem;
}

.account-product-actions {
    justify-content: space-between;
    gap: .75rem;
    margin-top: .85rem;
}

.account-product-actions label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: #687288;
    font-size: .82rem;
}

.account-product-actions input {
    width: 4.3rem;
    height: 2.15rem;
    padding: .25rem .45rem;
    border: 1px solid #ccd4df;
    border-radius: 4px;
    color: #283044;
    background: #fff;
}

.account-btn {
    min-height: 2.15rem;
    padding: .42rem .85rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.account-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.account-btn-primary {
    color: #fff;
    border-color: #1265c4;
    background: #1265c4;
}

.account-btn-primary:hover:not(:disabled) {
    border-color: #0d57a9;
    background: #0d57a9;
}

.account-btn-light {
    color: #38445a;
    border-color: #d2d9e3;
    background: #fff;
}

.account-btn-light:hover:not(:disabled) {
    border-color: #9eb0c6;
    background: #f7f9fc;
}

.account-btn-danger {
    color: #b4342a;
    border-color: #efc5c1;
    background: #fff5f4;
}

.account-btn-danger:hover:not(:disabled) {
    border-color: #d99690;
    background: #ffebe9;
}

.account-btn-small {
    min-height: 1.8rem;
    padding: .28rem .6rem;
    font-size: .78rem;
}

.account-link-button {
    padding: .2rem;
    border: 0;
    color: #1265c4;
    background: transparent;
    font-size: .82rem;
    cursor: pointer;
}

.account-link-button:hover {
    color: #0b4f98;
}

.account-notice {
    margin: 0 0 1rem;
    padding: .7rem .85rem;
    border: 1px solid #ffd4cf;
    border-radius: 4px;
    color: #a72d23;
    background: #fff4f2;
    font-size: .85rem;
}

.account-notice.success {
    border-color: #bde7cf;
    color: #176b3b;
    background: #effbf4;
}

.account-loading,
.account-empty {
    grid-column: 1 / -1;
    padding: 2.2rem 1rem;
    color: #8490a3;
    text-align: center;
}

.account-order-list {
    width: 100%;
}

.account-order-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(60px, .45fr) minmax(95px, .7fr) minmax(80px, .6fr) 52px;
    align-items: center;
    gap: .85rem;
    min-height: 4.2rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #edf0f4;
    color: #475268;
    font-size: .84rem;
}

.account-order-row:last-child {
    border-bottom: 0;
}

.account-order-row strong {
    display: block;
    color: #253047;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account-order-amount strong,
.account-order-amount span {
    display: block;
}

.account-order-amount span {
    margin-top: .18rem;
    white-space: nowrap;
}

.account-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 1.6rem;
    padding: .18rem .52rem;
    border-radius: 3px;
    color: #8a5a05;
    background: #fff3cd;
    font-size: .76rem;
    white-space: nowrap;
}

.account-status.is-success,
.account-status-banner.is-success {
    color: #176b3b;
    background: #eaf8f0;
}

.account-status.is-info,
.account-status-banner.is-info {
    color: #145d82;
    background: #e9f5fb;
}

.account-status.is-muted,
.account-status-banner.is-muted {
    color: #667085;
    background: #eef1f5;
}

.account-status.is-danger,
.account-status-banner.is-danger {
    color: #a12d2d;
    background: #fff0f0;
}

.account-status-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border-radius: 5px;
    color: #8a5a05;
    background: #fff6da;
}

.account-status-banner strong {
    font-size: .95rem;
}

.account-status-banner span {
    font-size: .82rem;
    opacity: .85;
}

.account-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #edf0f4;
}

.account-order-detail-grid > div {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    background: #fff;
}

.account-order-detail-grid span {
    color: #7b8598;
    font-size: .82rem;
}

.account-order-detail-grid strong {
    min-width: 0;
    color: #283044;
    font-size: .84rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

.account-payment-list {
    padding: .35rem 1rem;
}

.account-payment-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 3.2rem;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
    color: #334057;
    cursor: pointer;
}

.account-payment-option:last-child {
    border-bottom: 0;
}

.account-payment-option span {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: .15rem;
}

.account-payment-option span strong {
    color: #334057;
    font-weight: 600;
}

.account-payment-option span small {
    color: #7a8599;
    font-size: .75rem;
}

.account-payment-option.is-disabled {
    cursor: not-allowed;
    opacity: .5;
}

.account-payment-option img {
    width: auto;
    max-width: 100px;
    height: 26px;
    object-fit: contain;
}

.account-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
    padding: 0 1rem 1rem;
}

.account-card-list {
    padding: .75rem 1rem;
}

.account-order-failure {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-left: 3px solid #d84a43;
    color: #7d2d29;
    background: #fff5f4;
    font-size: .84rem;
}

.account-order-failure strong {
    flex: none;
}

.account-card-row {
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 1px solid #e1e6ed;
    border-radius: 4px;
    background: #f8fafc;
}

.account-card-row + .account-card-row {
    margin-top: .55rem;
}

.account-card-row code {
    min-width: 0;
    color: #263248;
    font-family: Consolas, Menlo, monospace;
    font-size: .82rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.account-pay-modal {
    position: fixed;
    z-index: 1060;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 28, 42, .55);
}

.account-pay-dialog {
    width: min(92vw, 420px);
    max-height: 88vh;
    overflow: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 28, 42, .25);
}

.account-pay-dialog > .account-muted {
    display: block;
    padding: 0 1rem 1rem;
    text-align: center;
}

.account-pay-image {
    display: block;
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    margin: 1.25rem auto;
    object-fit: contain;
}

.account-pay-qr-wrap {
    width: min(72vw, 280px);
    margin: 1.25rem auto;
}

.account-pay-qr {
    display: block;
    width: 100%;
    height: auto;
}

.account-pay-data {
    margin: 1rem;
    padding: .85rem;
    overflow: auto;
    border-radius: 4px;
    color: #283044;
    background: #f4f6f9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.account-pay-open {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    text-align: center;
}

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

    .account-order-row {
        grid-template-columns: minmax(150px, 1.5fr) 55px minmax(90px, .7fr) 80px 48px;
    }
}

@media (max-width: 640px) {
    .account-extension-wrap {
        padding: 1rem .85rem;
    }

    .account-extension-toolbar {
        align-items: flex-start;
    }

    .account-extension-toolbar h2 {
        font-size: 1.28rem;
    }

    .account-product-grid,
    .account-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .account-product-card {
        min-height: 0;
    }

    .account-order-row {
        grid-template-columns: 1fr auto;
        gap: .45rem .75rem;
        padding: .85rem;
    }

    .account-order-row > :nth-child(2),
    .account-order-row > :nth-child(3) {
        color: #687288;
        font-size: .78rem;
    }

    .account-order-row > :nth-child(4) {
        grid-column: 1;
    }

    .account-order-row > :nth-child(5) {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .account-order-detail-grid > div {
        padding: .8rem .85rem;
    }

    .account-card-row {
        align-items: stretch;
        flex-direction: column;
    }

    .account-card-row .account-btn {
        align-self: flex-end;
    }
}

.registration-extension {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.registration-extension-card {
    width: min(100%, 450px);
    padding: 2rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, .08);
}

.registration-extension-brand {
    margin-bottom: 1.5rem;
    text-align: center;
}

.registration-extension-brand img {
    max-width: 180px;
    max-height: 72px;
}

.registration-extension-brand strong {
    color: #343a40;
    font-size: 1.5rem;
}

.registration-extension-brand p {
    margin: .65rem 0 0;
    color: #687288;
    font-size: .875rem;
}

.registration-extension-notice {
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border-radius: 4px;
    background: #fff0f0;
    color: #b42318;
    font-size: .875rem;
}

.registration-extension-notice.info {
    background: #eef6ff;
    color: #145da0;
}

.registration-extension-notice.success {
    background: #edf9f0;
    color: #18794e;
}

.registration-invite-group {
    margin-bottom: .85rem;
}

.registration-invite-status {
    min-height: 1.25rem;
    padding: .35rem .15rem 0;
    font-size: .8rem;
    line-height: 1.4;
}

.registration-invite-status.checking {
    color: #52677d;
}

.registration-invite-status.valid {
    color: #18794e;
}

.registration-invite-status.invalid,
.registration-invite-status.error {
    color: #b42318;
}

.registration-rules {
    margin: 0 0 1rem;
    padding: .8rem 0;
    border-top: 1px solid #e4e8ee;
    border-bottom: 1px solid #e4e8ee;
    color: #536273;
    font-size: .78rem;
    line-height: 1.55;
}

.registration-rules > strong {
    display: block;
    margin-bottom: .5rem;
    color: #343a40;
    font-size: .875rem;
}

.registration-rules > div {
    display: grid;
    gap: .15rem;
    padding: .4rem 0;
}

.registration-rules b {
    color: #343a40;
    font-weight: 600;
}

.registration-rules span {
    overflow-wrap: anywhere;
}

.registration-rule-note {
    margin: 0 0 .4rem;
    color: #145da0;
}

.registration-plan-details {
    margin: -.25rem 0 1rem;
    padding: .75rem 0 .15rem;
    border-top: 1px solid #e4e8ee;
    color: #536273;
    font-size: .78rem;
    line-height: 1.5;
}

.registration-plan-details > strong {
    display: block;
    margin-bottom: .45rem;
    color: #343a40;
    font-size: .9rem;
}

.registration-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    margin-bottom: .5rem;
    color: #145da0;
}

.registration-plan-details ul {
    display: grid;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-plan-details li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: .25rem;
}

.registration-plan-details li > span {
    color: #18794e;
    font-weight: 700;
}

.registration-plan-details li.unsupported > span {
    color: #b42318;
}

.registration-plan-details p {
    margin: 0;
}

.registration-email-code {
    display: flex;
    gap: .5rem;
}

.registration-email-code input {
    min-width: 0;
    flex: 1;
}

.registration-recaptcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
    margin-bottom: 1rem;
}

.registration-tos {
    margin-bottom: 1rem;
    color: #687288;
    font-size: .8rem;
}

.registration-tos label {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
}

.registration-tos a {
    color: #0665d0;
}

.registration-extension-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: .875rem;
}
