/* ========== PROFESSIONAL COINS PAGE REDESIGN ========== */
/* Inspired by Flipkart/Amazon SuperCoins with Golden Theme */

/* Reset and base improvements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1410 0%, #2d2620 50%, #1a1410 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Top Bar Professional Enhancement */
.topbar {
    background: rgba(29, 24, 20, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.nav-link:hover svg {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
    color: #FFD700;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.15);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .topbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(29, 24, 20, 0.98);
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid rgba(255, 215, 0, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    
    .topbar-nav.mobile-active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }
}

/* Hero Section - Professional Layout */
.wallet-hero {
    padding: 32px 0;
    margin-bottom: 40px;
}

.wallet-card {
    background: linear-gradient(135deg, 
        rgba(61, 53, 48, 0.95) 0%, 
        rgba(45, 38, 32, 0.98) 50%,
        rgba(61, 53, 48, 0.95) 100%);
    border-radius: 24px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

/* Wallet Header Grid - Professional 2-Column Layout */
.wallet-card .wallet-header {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 48px !important;
    align-items: center !important;
    padding: 40px !important;
}

@media (max-width: 1024px) {
    .wallet-card .wallet-header {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 32px !important;
    }
}

@media (max-width: 768px) {
    .wallet-card .wallet-header {
        padding: 24px 20px !important;
        gap: 24px !important;
    }
}

/* Balance Showcase - Amazon/Flipkart Style */
.wallet-card .balance-showcase {
    position: relative !important;
    padding: 48px 40px !important;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(74, 66, 56, 0.9) 0%, 
            rgba(61, 53, 48, 0.95) 100%) !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    min-height: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.wallet-card .balance-showcase:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Balance Display - Flipkart SuperCoins Style */
.balance-label-top {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 215, 0, 0.7);
    margin-bottom: 16px;
}

.balance-display-main {
    margin-bottom: 24px;
    position: relative;
}

.balance-amount-large {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFC700 30%,
        #FFB800 50%,
        #FFA500 70%,
        #FF9500 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    animation: balanceGlow 4s ease-in-out infinite, gradientShift 6s ease infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.4));
    letter-spacing: -2px;
}

.balance-unit-large {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* INR Value Card - Professional Display */
.balance-value-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.25) 100%);
    border-radius: 12px;
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.balance-inr-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-inr-amount {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
}

/* Badges - Flipkart Style */
.balance-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-verified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-redeemable {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Wallet Actions - Modern Button Layout */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 24px 40px 32px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .wallet-actions {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Stats Grid - Professional Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(61, 53, 48, 0.8) 0%, 
        rgba(74, 66, 56, 0.6) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Sections - Professional Spacing */
.achievements-section,
.referral-banner,
.timeline-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px; /* For smooth scroll with fixed header */
}

@media (max-width: 768px) {
    .achievements-section,
    .referral-banner,
    .timeline-section {
        margin-bottom: 32px;
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 32px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
}

/* Container Responsive */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Mobile Responsive Enhancements */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .balance-showcase {
        padding: 32px 20px;
    }
    
    .balance-amount-large {
        font-size: 48px;
    }
    
    .balance-unit-large {
        font-size: 18px;
    }
    
    .balance-value-card {
        padding: 10px 18px;
    }
    
    .balance-inr-amount {
        font-size: 18px;
    }
}

/* Floating Decorations - Subtle Animation */
.balance-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
}

.floating-coin {
    position: absolute;
    font-size: 48px;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
}

.coin-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.coin-2 {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    font-size: 36px;
}

.coin-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
    font-size: 28px;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.08;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.15;
    }
}

/* Shine Effect */
.balance-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transform: skewX(-25deg);
    animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { 
        left: -100%; 
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    30% { 
        left: 150%; 
        opacity: 0;
    }
}

/* Animations */
@keyframes balanceGlow {
    0%, 100% { 
        filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.4));
    }
    50% { 
        filter: drop-shadow(0 6px 28px rgba(255, 215, 0, 0.6));
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Print Styles */
@media print {
    .topbar-nav,
    .wallet-actions,
    .floating-coin {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
