/* --- Loyalty Modal --- */
.loyalty-container {
    padding: 24px;
    padding-bottom: 100px;
}

/* --- Header Card (Points) --- */
.loyalty-header-card {
    background: linear-gradient(135deg, #10B981, #34D399);
    border-radius: 16px;
    padding: 32px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.loyalty-points-big {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.loyalty-label {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loyalty-level-badge {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    backdrop-filter: blur(5px);
}

/* Level Colors (Optional enhancements) */
.loyalty-level-badge.level-oro { background: linear-gradient(45deg, #FFD700, #FFA500); color: #000; }
.loyalty-level-badge.level-argento { background: linear-gradient(45deg, #C0C0C0, #E0E0E0); color: #000; }
.loyalty-level-badge.level-bronzo { background: linear-gradient(45deg, #CD7F32, #8B4513); }

/* --- Sections --- */
.loyalty-section {
    margin-bottom: 32px;
}

.loyalty-section h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-black);
    margin-bottom: 16px;
}

/* --- Coupons / Vouchers --- */
.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coupon-card {
    background: var(--white);
    border: 2px dashed var(--primary-green);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.coupon-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
}

.coupon-code {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.coupon-expiry {
    font-size: 12px;
    color: var(--text-dark);
}

/* --- Rewards List --- */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-item {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.reward-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.reward-item.disabled {
    opacity: 0.6;
    background: var(--bg-light);
    pointer-events: none;
    box-shadow: none;
}

.reward-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-black);
}

.reward-cost {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Redeem Button --- */
.btn-redeem {
    padding: 8px 20px;
    background: var(--primary-green);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-redeem:hover {
    background: var(--primary-green-hover);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-redeem:disabled {
    background: var(--bg-grey);
    color: var(--text-dark);
    cursor: not-allowed;
    box-shadow: none;
}

/* --- History List --- */
.history-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 8px 16px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-grey);
}

.history-item:last-child {
    border-bottom: none;
}

.history-desc {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
}

.history-points {
    font-size: 14px;
    font-weight: 700;
}

.history-points.plus {
    color: #22c55e;
}

.history-points.minus {
    color: #ef4444;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-style: italic;
    width: 100%;
}
