/* ==========================================================================
   SD Credits Shop — Package Selection UI
   ========================================================================== */

.sd-credits-shop {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* ── Header ── */

.sd-credits-shop__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.sd-credits-shop__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sd-gray-800, #424242);
    margin: 0;
}

.sd-credits-shop__balance {
    font-size: 15px;
    color: var(--sd-gray-500, #9e9e9e);
}

.sd-credits-shop__balance strong {
    color: var(--sd-primary, #ff4081);
    font-weight: 700;
}

/* ── Package Cards Grid ── */

.sd-credits-shop__packages {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sd-credits-shop__card {
    background: #fff;
    border: 1px solid var(--sd-gray-200, #eee);
    border-radius: var(--sd-radius-lg, 16px);
    padding: 32px 24px;
    text-align: center;
    min-width: 250px;
    flex: 1;
    max-width: 300px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sd-credits-shop__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sd-credits-shop__card--popular {
    border: 2px solid var(--sd-primary, #ff4081);
    transform: scale(1.05);
}

.sd-credits-shop__card--popular:hover {
    transform: scale(1.07);
}

.sd-credits-shop__card--best_value {
    border: 2px solid #4CAF50;
}

/* ── Badge ── */

.sd-credits-shop__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sd-primary, #ff4081);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sd-credits-shop__badge--best {
    background: #4CAF50;
}

/* ── Card Content ── */

.sd-credits-shop__card-credits {
    font-size: 48px;
    font-weight: 700;
    color: var(--sd-gray-800, #424242);
    line-height: 1.1;
}

.sd-credits-shop__card-label {
    font-size: 14px;
    color: var(--sd-gray-500, #9e9e9e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.sd-credits-shop__card-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--sd-gray-800, #424242);
    margin-top: 12px;
}

.sd-credits-shop__card-per {
    font-size: 12px;
    color: var(--sd-gray-500, #9e9e9e);
    margin-top: 4px;
}

/* ── Buy Button ── */

.sd-credits-shop__buy-btn {
    width: 100%;
    padding: 12px;
    background: var(--sd-primary, #ff4081);
    color: #fff;
    border: none;
    border-radius: var(--sd-radius-sm, 8px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s ease;
}

.sd-credits-shop__buy-btn:hover {
    background: var(--sd-primary-dark, #c51162);
}

.sd-credits-shop__buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Info Footer ── */

.sd-credits-shop__info {
    text-align: center;
    margin-top: 24px;
    color: var(--sd-gray-500, #9e9e9e);
    font-size: 13px;
    line-height: 1.5;
}

/* ── Loading State ── */

.sd-credits-shop__loading {
    text-align: center;
    padding: 48px 16px;
    color: var(--sd-gray-500, #9e9e9e);
    font-size: 15px;
}

/* ── Error State ── */

.sd-credits-shop__error {
    text-align: center;
    padding: 32px 16px;
    color: #d32f2f;
    font-size: 14px;
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .sd-credits-shop {
        padding: 20px 12px;
    }

    .sd-credits-shop__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }

    .sd-credits-shop__packages {
        flex-direction: column;
        align-items: center;
    }

    .sd-credits-shop__card {
        min-width: unset;
        width: 100%;
        max-width: 350px;
    }

    .sd-credits-shop__card--popular {
        transform: scale(1);
    }

    .sd-credits-shop__card--popular:hover {
        transform: scale(1);
    }
}
