.mch-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.mch-plans-title {
    margin: 0 0 16px;
}

.mch-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-radius: var(--theme-border-radius, 10px);
    background: var(--theme-palette-color-8, #fff);
    box-sizing: border-box;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.15s ease;
}

.mch-plan-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mch-plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    color: #fff;
    background: var(--theme-button-background, #2271b1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.mch-plan-card-head {
    padding: 0 4px;
}

.mch-plan-title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 6px;
}

.mch-plan-desc {
    color: var(--theme-text-color, #666);
    font-size: 0.92em;
}

.mch-plan-desc p {
    margin: 0 0 8px;
}

.mch-plan-features {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    text-align: center;
}

.mch-plan-features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    width: 100%;
    justify-content: center;
}

.mch-plan-features li::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--theme-palette-color-8, #fff);
    background: var(--theme-palette-color-2, #46b450);
    font-size: 0.7em;
    font-weight: 700;
}

.mch-buy-widget {
    margin-top: auto;
}

.mch-buy-period {
    margin-bottom: 12px;
}

.mch-label {
    display: block;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-text-color, #777);
    margin-bottom: 6px;
}

.mch-buy-period select {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.95em;
    border: 1px solid var(--theme-form-field-border-initial-color, var(--theme-border-color, #ccd0d4));
    border-radius: var(--theme-form-field-border-radius, var(--theme-border-radius, 6px));
    background: var(--theme-form-field-background-initial-color, var(--theme-palette-color-8, #fff));
    color: inherit;
}

.mch-buy-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 16px;
}

.mch-buy-amount {
    font-size: 2.1em;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--theme-text-color, #111);
}

.mch-buy-note {
    font-size: 0.82em;
    color: var(--theme-text-color, #888);
    margin-top: 2px;
}

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

.mch-domain-choose {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 0.9em;
    border: 1px solid var(--theme-form-field-border-initial-color, var(--theme-border-color, #ccd0d4));
    border-radius: var(--theme-form-field-border-radius, var(--theme-border-radius, 6px));
    background: var(--theme-form-field-background-initial-color, var(--theme-palette-color-8, #fff));
    color: inherit;
}

.mch-domain-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--theme-form-field-border-initial-color, var(--theme-border-color, #ccd0d4));
    border-radius: var(--theme-form-field-border-radius, var(--theme-border-radius, 6px));
    background: var(--theme-form-field-background-initial-color, var(--theme-palette-color-8, #fff));
    color: inherit;
    font-size: inherit;
    line-height: 1.5;
}

.mch-domain-hint {
    font-size: 0.78em;
    color: var(--theme-text-color, #888);
    margin: 5px 0 0;
}

.mch-buy-now {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1.02em;
    font-weight: 700;
    min-height: 46px;
}

.mch-login-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-weight: 700;
}

.mch-plan-note {
    color: var(--theme-text-color, #888);
    font-size: 0.9em;
    margin: 12px 0 0;
}

.mch-message {
    min-height: 1.3em;
    font-size: 0.88em;
    margin: 8px 0 0;
    text-align: center;
}

.mch-message.mch-ok {
    color: var(--theme-palette-color-2, #46b450);
}

.mch-message.mch-error {
    color: #b32d2e;
}

.mch-price {
    font-weight: 700;
}

.mch-cred-result {
    margin: 14px 0;
    padding: 16px 18px;
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-left: 4px solid var(--theme-palette-color-2, #46b450);
    border-radius: var(--theme-border-radius, 6px);
    background: var(--theme-palette-color-8, #fff);
}

.mch-cred-result code {
    word-break: break-all;
}

.mch-cred-result dl {
    margin: 0;
}

.mch-cred-result dt {
    font-weight: 600;
    margin-top: 8px;
}

.mch-cred-result dd {
    margin: 2px 0 0;
}

.mch-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mch-renew-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mch-renew-months {
    padding: 6px 8px;
    border: 1px solid var(--theme-border-color, #d9d9d9);
    border-radius: var(--theme-border-radius, 6px);
    background: var(--theme-palette-color-8, #fff);
}

.mch-account-actions .button,
.mch-renew-widget .button {
    margin: 0;
}

#mch-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 99999;
    max-width: 90vw;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.92em;
    color: #fff;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: normal;
    text-align: center;
}

.mch-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mch-modal[hidden] {
    display: none;
}

.mch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mch-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow: auto;
    background: var(--theme-palette-color-8, #fff);
    color: var(--theme-text-color, #222);
    border-radius: var(--theme-border-radius, 8px);
    padding: 20px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.mch-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.mch-modal-close:hover {
    opacity: 1;
}

.mch-modal-title {
    margin: 0 0 14px;
    padding-right: 24px;
    font-size: 1.1em;
}

.mch-buy-modal-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2px 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--theme-border-color, #eee);
}

.mch-buy-modal-title {
    font-size: 1.1em;
    font-weight: 700;
}

.mch-buy-modal-meta {
    font-size: 0.85em;
    color: var(--theme-text-color, #888);
    margin-top: 2px;
}

.mch-buy-modal-amount {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--theme-text-color, #111);
    margin-top: 6px;
}

.mch-buy-modal-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1em;
    font-weight: 700;
    min-height: 46px;
}

.mch-modal-loading {
    color: var(--theme-text-color, #888);
}

.mch-modal-error {
    color: #b32d2e;
}

.mch-cred-list {
    margin: 0;
}

.mch-cred-list dt {
    font-weight: 600;
    margin-top: 10px;
}

.mch-cred-list dd {
    margin: 2px 0 0;
}

.mch-cred-list code {
    word-break: break-all;
}

body.mch-modal-open {
    overflow: hidden;
}


