/* Premium Transparency & Glassmorphism Effects */

/* ========== TEXT VISIBILITY FIXES ========== */
.wallet-greeting,
.wallet-subtitle,
.wallet-birthday,
.balance-label,
.balance-value,
.section-title,
.section-subtitle,
.stat-label,
.timeline-title,
.timeline-content,
.achievement-card h4,
.achievement-card p,
.referral-info h2,
.referral-info p,
.qlink-content h3,
.qlink-content p,
.transaction-item,
.code-label,
.form-group label {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

#userName,
#memberSince,
#birthdayDisplay,
#sikkaBalance,
#sikkaValue,
#totalOrders,
#totalSpent,
#totalEarned {
    color: var(--text-primary) !important;
}

/* ========== GLOBAL GLASS EFFECTS ========== */
:root {
    --glass-bg: rgba(31, 31, 31, 0.7);
    --glass-border: rgba(255, 215, 0, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
}

/* ========== GLASSMORPHISM BASE ========== */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* ========== WALLET CARD PREMIUM GLASS ========== */
.wallet-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.85) 0%, 
        rgba(31, 31, 31, 0.75) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, 
        rgba(255, 215, 0, 0.08) 0%, 
        transparent 50%);
    pointer-events: none;
}

.wallet-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 215, 0, 0.03) 50%, 
        transparent 70%);
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
}

/* ========== STAT CARDS GLASS ========== */
.stat-card {
    background: rgba(31, 31, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-label,
.stat-card .stat-value {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ========== TRANSACTION ITEMS GLASS ========== */
.transaction-item {
    background: rgba(31, 31, 31, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.transaction-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        rgba(255, 215, 0, 0.5), 
        rgba(255, 165, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transaction-item:hover::after {
    opacity: 1;
}

.transaction-item * {
    color: #ffffff !important;
}

.transaction-date {
    color: #a1a1a1 !important;
}

/* ========== MILESTONE GLASS EFFECTS ========== */
.milestone {
    background: rgba(31, 31, 31, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.milestone.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.milestone-label,
.milestone-amount {
    color: #ffffff !important;
}

/* ========== ACHIEVEMENT CARDS GLASS ========== */
.achievement-card {
    background: rgba(31, 31, 31, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-card.unlocked {
    background: rgba(255, 215, 0, 0.08);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

/* ========== REFERRAL BANNER GLASS ========== */
.referral-banner {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.8) 0%, 
        rgba(31, 31, 31, 0.7) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.referral-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, 
        rgba(255, 215, 0, 0.15) 0%, 
        transparent 60%);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.referral-code-box,
.referral-link-box {
    background: rgba(37, 37, 37, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== QUICK LINKS GLASS ========== */
.quick-link-card {
    background: rgba(31, 31, 31, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-card h3,
.quick-link-card p {
    color: #ffffff !important;
}

.quick-link-card p {
    color: #a1a1a1 !important;
}

/* ========== MODAL GLASS EFFECTS ========== */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-content-info {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== NAVIGATION GLASS ========== */
.topbar {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========== TIMELINE GLASS ========== */
.timeline-item {
    background: rgba(31, 31, 31, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(31, 31, 31, 0.8);
    border-left-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.timeline-empty {
    background: rgba(31, 31, 31, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.timeline-empty p,
.timeline-empty small {
    color: #ffffff !important;
}

.timeline-title,
.timeline-date {
    color: #ffffff !important;
}

.timeline-date {
    opacity: 0.7 !important;
}

/* ========== BUTTONS WITH GLASS ========== */
.wallet-btn.primary {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.9) 0%, 
        rgba(255, 165, 0, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.wallet-btn.primary:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 1) 0%, 
        rgba(255, 165, 0, 1) 100%);
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.5);
}

.wallet-btn.secondary {
    background: rgba(37, 37, 37, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-btn.secondary:hover {
    background: rgba(37, 37, 37, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ========== FOOTER GLASS ========== */
.footer {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== FLOATING PARTICLES EFFECT ========== */
.app::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 40%);
    animation: particles-float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particles-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

.main-content {
    position: relative;
    z-index: 1;
}

/* ========== GLOSSY OVERLAY EFFECT ========== */
.wallet-card .wallet-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.02) 0%, 
        transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* ========== SECTION HEADERS GLASS ========== */
.section-header {
    position: relative;
    padding-bottom: 16px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 215, 0, 0.3) 50%, 
        transparent 100%);
}

/* ========== TIER BADGE GLASS ========== */
.user-tier-badge {
    background: rgba(255, 215, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ========== ENHANCED GLOW EFFECTS ========== */
.coin {
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.coin-face.front {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%, 
        rgba(255, 165, 0, 0.95) 100%);
    backdrop-filter: blur(2px);
}

/* ========== PROGRESS LINE GLASS ========== */
.rewards-tracker {
    background: rgba(31, 31, 31, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== RESPONSIVE GLASS ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .glass-card,
    .wallet-card,
    .stat-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* ========== PREMIUM SHINE ANIMATION ========== */
@keyframes premium-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

.wallet-card .wallet-bg::after,
.referral-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    animation: premium-shine 10s infinite;
    pointer-events: none;
}

/* ========== DEPTH LAYERS ========== */
.wallet-hero,
.achievements-section,
.timeline-section {
    position: relative;
}

.wallet-hero::before,
.achievements-section::before,
.timeline-section::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 0%, 
        rgba(255, 215, 0, 0.05) 0%, 
        transparent 70%);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
}
