.ait-rdc-card,
.ait-rdc-card * {
    box-sizing: border-box;
}

.ait-rdc-card {
    position: relative;
    width: min(100%, 430px);
    margin: 24px auto;
    padding: 24px 20px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .02);
    border-radius: 8px;
    background: #22262e;
    color: #969da7;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 16px 42px rgba(7, 10, 15, .22);
}

/* Keep automatic sidebar cards aligned with common widget areas. */
.widget .ait-rdc-card,
.sidebar .ait-rdc-card,
.aside .ait-rdc-card {
    margin: 0 0 24px;
}

.ait-rdc-card__corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: #292e37;
    color: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    font-size: 11px;
    transform: translate(1px, -1px);
}

.ait-rdc-card__corner span {
    position: absolute;
    top: 11px;
    right: 0;
    display: block;
    width: 42px;
    color: #e5e7eb;
    line-height: 1;
    text-align: center;
    transform: rotate(45deg);
}

.ait-rdc-card__top {
    display: flex;
    justify-content: center;
    margin: 0 0 17px;
}

.ait-rdc-card__notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #18d191;
    font-size: 16px;
    line-height: 1.3;
}

.ait-rdc-card__notice svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.ait-rdc-card__price {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #1b1f27;
    color: #f0f2f5;
    font-size: 16px;
}

.ait-rdc-card__price strong {
    margin: 0 3px 0 7px;
    color: #f3f5f7;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.ait-rdc-card__coin {
    display: inline-flex;
    align-items: center;
}

.ait-rdc-card__coin svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ait-rdc-card__tiers {
    margin-bottom: 16px;
    padding: 7px 10px 10px;
    border: 1px dashed #9b6c22;
    border-radius: 6px;
}

.ait-rdc-card__tiers-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 4px;
    color: #f05d65;
    font-size: 14px;
}

.ait-rdc-card__tiers-title svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.ait-rdc-card__tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 29px;
    color: #858d98;
    font-size: 13px;
}

.ait-rdc-card__tier-row > span:first-child {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ait-rdc-card__tier-row > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ait-rdc-card__tier-row i {
    width: 11px;
    height: 11px;
    margin-right: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.ait-rdc-card__tier-row--normal i {
    color: #e4e7eb;
}

.ait-rdc-card__tier-row--vip {
    color: #16d092;
}

.ait-rdc-card__tier-row--perm {
    color: #ffb01e;
}

.ait-rdc-card__tier-row--normal > span:last-child {
    color: #727a86;
}

.ait-rdc-card__tier-row--vip > span:last-child {
    color: #16d092;
}

.ait-rdc-card__tier-row--perm > span:last-child {
    color: #ffb01e;
}

.ait-rdc-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 41px;
    margin: 0 0 13px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--ait-rdc-button-color, #367ff1);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 8px 16px rgba(43, 119, 232, .27);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ait-rdc-card__button:hover,
.ait-rdc-card__button:focus {
    background: var(--ait-rdc-button-hover-color, #4a8cf5);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(43, 119, 232, .36);
}

.ait-rdc-card__button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.ait-rdc-card__unlock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    color: #949da8;
    font-size: 14px;
}

.ait-rdc-card__unlock svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.ait-rdc-card__unlock b {
    color: #19b8f5;
    font-weight: 500;
}

.ait-rdc-card__details {
    margin-top: 2px;
}

.ait-rdc-card__detail {
    min-height: 32px;
    padding: 7px 0;
    border-bottom: 1px solid #353a42;
    color: #969da7;
    font-size: 13px;
}

.ait-rdc-card__detail b {
    color: #16d092;
    font-weight: 700;
}

.ait-rdc-card__notes {
    padding-top: 14px;
}

.ait-rdc-card__notes p {
    margin: 0 0 18px;
    color: #9aa1aa;
    font-size: 13px;
    line-height: 1.7;
}

.ait-rdc-card__notes p:last-child {
    margin-bottom: 0;
}

.ait-rdc-card__notes a {
    color: var(--ait-rdc-note-link-color, #19b8f5);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ait-rdc-card__notes a:hover,
.ait-rdc-card__notes a:focus {
    color: var(--ait-rdc-note-link-color, #19b8f5);
    text-decoration-thickness: 2px;
}

@media (max-width: 480px) {
    .ait-rdc-card {
        margin: 18px 0;
        padding: 23px 18px 18px;
        border-radius: 7px;
    }

    .ait-rdc-card__notice {
        font-size: 15px;
    }

    .ait-rdc-card__price strong {
        font-size: 25px;
    }
}
