.cgp-wrapper {
    width: 100%;
    font-family: "Poppins", sans-serif;
    color: #3a3a3a;
}

.cgp-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.cgp-loading,
.cgp-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: #555;
    font-size: 16px;
}

.cgp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece6ef;
    border-radius: 20px;
    padding: 40px 32px 32px;
    box-shadow: 0 6px 24px rgba(116, 46, 132, 0.06);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.cgp-card:hover {
    box-shadow: 0 14px 38px rgba(116, 46, 132, 0.14);
    border-color: #e0d0e5;
    transform: translateY(-3px);
}

.cgp-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #742E84;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 8px 22px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(116, 46, 132, 0.25);
}

.cgp-card-title {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #2a1933;
    line-height: 1.35;
    letter-spacing: .2px;
    min-height: 46px;
}

.cgp-card-price {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 24px;
    color: #742E84;
    line-height: 1;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cgp-card-price .cgp-currency {
    font-size: 24px;
    font-weight: 600;
    color: #742E84;
    opacity: .85;
}

.cgp-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ece6ef, transparent);
    margin: 0 0 22px;
}

.cgp-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
}

.cgp-card-list li {
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 14.5px;
    color: #4a4a4a;
    line-height: 1.55;
}

.cgp-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 18px;
    height: 18px;
    background: rgba(116, 46, 132, 0.1);
    border-radius: 50%;
}

.cgp-card-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 15px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #742E84;
    border-bottom: 2px solid #742E84;
    transform: rotate(-45deg);
}

.cgp-buy {
    display: inline-block;
    background: #742E84;
    color: #fff;
    border: none;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .6px;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(116, 46, 132, 0.25);
}

.cgp-buy:hover {
    background: #5e2369;
    box-shadow: 0 8px 22px rgba(116, 46, 132, 0.35);
    transform: translateY(-2px);
}

.cgp-buy:active {
    transform: translateY(0);
}

/* Modal */
.cgp-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: "Poppins", sans-serif;
}

.cgp-modal.is-open {
    display: flex;
}

.cgp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(58, 30, 70, 0.55);
}

.cgp-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    padding: 48px 56px 44px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .cgp-modal-dialog {
        padding: 32px 22px 28px;
        border-radius: 16px;
    }
}

.cgp-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 30px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: color .15s ease;
}

.cgp-modal-close:hover,
.cgp-modal-close:focus,
.cgp-modal-close:active {
    background: transparent !important;
    color: #742E84 !important;
    outline: none;
}

.cgp-modal-title {
    margin: 0 0 8px;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #742E84;
}

.cgp-modal-summary {
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
}

.cgp-field {
    display: block;
    margin-bottom: 16px;
}

.cgp-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3a;
}

.cgp-field input,
.cgp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8c5dd;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    color: #3a3a3a;
    background: #fff;
}

.cgp-field textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 220px;
}

.cgp-field input:focus,
.cgp-field textarea:focus {
    outline: none;
    border-color: #742E84;
    box-shadow: 0 0 0 3px rgba(116,46,132,0.12);
}

.cgp-form-error {
    background: #fde2e2;
    color: #a02929;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.cgp-submit {
    width: 100%;
    background: #742E84;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .15s ease;
}

.cgp-submit:hover {
    background: #5e2369;
}

.cgp-submit:disabled {
    opacity: .6;
    cursor: wait;
}

@media (max-width: 600px) {
    .cgp-card-price { font-size: 40px; }
    .cgp-modal-dialog { padding: 28px 20px 24px; }
}
