/* Auto-extracted from page-reward.php (P1-5) */
/* ============================================================
   Reward Page — Reward Center
   ============================================================ */
.reward-page {
    --reward-gold: #f59e0b;
    --reward-gold-light: #fef3c7;
    --reward-green: #22c55e;
    --reward-green-light: #dcfce7;
    --reward-blue: #3b82f6;
    --reward-blue-light: #dbeafe;
    --reward-purple: #8b5cf6;
    --reward-purple-light: #ede9fe;
    --reward-orange: #f97316;
    --reward-orange-light: #ffedd5;
}

.reward-header {
    margin-bottom: 24px;
}
.reward-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.reward-title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.reward-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}
.reward-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Stats */
.reward-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .reward-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .reward-stats { grid-template-columns: 1fr; }
}
.reward-stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reward-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.reward-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.reward-stat-icon.coins { background: #fef3c7; }
.reward-stat-icon.gems   { background: #ede9fe; }
.reward-stat-icon.xp     { background: #fef9c3; }
.reward-stat-icon.streak { background: #ffedd5; }
.reward-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
}
.reward-stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
}

/* Tabs */
.reward-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.reward-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.reward-tab:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #1f2937;
}
.reward-tab.active {
    background: var(--reward-green);
    color: #fff;
    border-color: var(--reward-green);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* Daily reward */
.reward-daily {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    border: 1px solid #bbf7d0;
    flex-wrap: wrap;
}
.reward-daily-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 280px;
}
.reward-daily-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.reward-daily-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--reward-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.reward-daily-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 4px 0;
}
.reward-daily-desc {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 0;
}
.reward-daily-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: var(--reward-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reward-daily-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}
.reward-daily-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message banner */
.reward-message {
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.reward-message.success {
    background: #dcfce7;
    color: #166534;
}
.reward-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Shop grid */
.reward-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1000px) {
    .reward-shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .reward-shop-grid { grid-template-columns: 1fr; }
}
.reward-shop-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 2px solid transparent;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
}
.reward-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.reward-popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--reward-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
}
.reward-shop-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 14px;
    background: #f3f4f6;
}
.reward-shop-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 14px 0;
}
.reward-shop-contents {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}
.reward-shop-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}
.reward-shop-content-icon {
    font-size: 1rem;
}
.reward-shop-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.reward-buy-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: var(--reward-green);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.reward-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}
.reward-buy-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* History */
.reward-history-empty {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
}
.reward-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reward-history-item {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    flex-wrap: wrap;
}
.reward-history-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 240px;
}
.reward-history-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: #f3f4f6;
    flex-shrink: 0;
}
.reward-history-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px 0;
}
.reward-history-meta {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}
.reward-history-right {
    text-align: right;
}
.reward-history-date {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
}
.reward-history-tags {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 4px;
}
.reward-history-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}
.reward-guest {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.reward-guest-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.reward-guest-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px 0;
}
.reward-guest-text {
    color: #6b7280;
    margin: 0 0 18px 0;
}
.reward-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--reward-green);
    color: #fff;
}
.reward-login-btn:hover {
    text-decoration: none;
    color: #fff;
}
