/* =============================================================================
   SFC POINTS MODAL STYLES
   Superfly Cash Points - Gamification/Loyalty System
   ============================================================================= */

.points-modal-content {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =============================================================================
   HERO SECTION - Points Balance & Tier Badge
   ============================================================================= */

.points-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 20px;
    position: relative;
}

.points-balance-container {
    text-align: center;
    margin-bottom: 16px;
}

.points-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.points-balance {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.points-balance.points-updated {
    animation: pointsBounce 0.5s ease;
}

@keyframes pointsBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.points-number {
    font-size: 52px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, #FFD700 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

.points-suffix {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.8;
}

/* Tier Badge */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tier-badge.tier-silver {
    border-color: rgba(192, 192, 192, 0.3);
}

.tier-badge.tier-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.tier-icon {
    font-size: 20px;
}

.tier-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================================================
   CASHBACK CARD
   ============================================================================= */

.cashback-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.cashback-card.cashback-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.cashback-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.cashback-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cashback-rate {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
}

.cashback-description {
    font-size: 13px;
    color: var(--text-secondary);
}

/* =============================================================================
   TIER PROGRESS SECTION
   ============================================================================= */

.tier-progress-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.tier-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.tier-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #FFD700);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.tier-progress-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.tier-progress-hint strong {
    color: var(--gold);
}

/* Tier Max Reached (Gold tier) */
.tier-max-reached {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.tier-max-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.tier-max-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}

.tier-max-subtext {
    font-size: 13px;
    color: var(--text-secondary);
}

/* =============================================================================
   EARN SECTION
   ============================================================================= */

.earn-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.earn-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.earn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.earn-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(207, 181, 106, 0.1);
    border-radius: 12px;
}

.earn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.earn-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.earn-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* =============================================================================
   POINTS HISTORY
   ============================================================================= */

.history-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.points-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 300px;
    overflow-y: auto;
}

.points-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.history-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(207, 181, 106, 0.1);
    border-radius: 50%;
    color: var(--gold);
    font-size: 14px;
}

.history-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.history-item-reason {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.history-item-amount {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    white-space: nowrap;
}

/* History Loading & Empty States */
.history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.history-empty p {
    margin: 0;
    font-size: 14px;
}

.history-empty-hint {
    font-size: 12px !important;
    margin-top: 8px !important;
    opacity: 0.7;
}

/* =============================================================================
   TIER UPGRADE CELEBRATION
   ============================================================================= */

.tier-upgrade-celebration {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: celebrationFadeIn 0.3s ease;
}

@keyframes celebrationFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.celebration-content {
    text-align: center;
    animation: celebrationBounce 0.5s ease 0.2s both;
}

@keyframes celebrationBounce {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.celebration-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
    animation: celebrationSpin 1s ease-in-out;
}

@keyframes celebrationSpin {
    0% { transform: rotate(0deg) scale(0); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.celebration-content h2 {
    font-size: 28px;
    color: var(--gold);
    margin: 0 0 8px 0;
}

.celebration-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.celebration-reward {
    font-size: 14px !important;
}

.gold-text {
    color: var(--gold);
    font-weight: 700;
    font-size: 18px;
}

/* =============================================================================
   LIGHT MODE OVERRIDES
   ============================================================================= */

body[data-theme="light"] .points-number {
    background: linear-gradient(135deg, #B8973F 0%, #C9A227 50%, #8B7328 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

body[data-theme="light"] .tier-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tier-badge.tier-gold {
    background: linear-gradient(135deg, rgba(184, 151, 63, 0.15), rgba(201, 162, 39, 0.1));
    border-color: rgba(184, 151, 63, 0.4);
}

body[data-theme="light"] .earn-item {
    background: rgba(0, 0, 0, 0.02);
}

body[data-theme="light"] .tier-progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tier-progress-fill {
    background: linear-gradient(90deg, #B8973F, #C9A227);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
