@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #05050A;
    --bg-secondary: #0D0B1A;
    --glass-bg: rgba(20, 18, 38, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(255, 255, 255, 0.25);
    
    --primary-gradient: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    --secondary-gradient: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
    --gold-gradient: linear-gradient(135deg, #F9D423 0%, #FF4E50 100%);
    --success-gradient: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    --danger-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-accent: #e100ff;
    
    --shadow-neon: 0 8px 32px rgba(225, 0, 255, 0.35);
    --shadow-neon-cyan: 0 8px 32px rgba(0, 242, 254, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(127, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 242, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(225, 0, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

/* Enhanced Floating Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: floatOrbs 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
    width: 400px;
    height: 400px;
    background: rgba(127, 0, 255, 0.2);
    top: -100px;
    left: -100px;
}

body::after {
    width: 350px;
    height: 350px;
    background: rgba(0, 242, 254, 0.15);
    bottom: -50px;
    right: -50px;
    animation-delay: -12.5s;
}

@keyframes floatOrbs {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(15vw, 15vh) scale(1.3) rotate(120deg); }
    66% { transform: translate(-10vw, 25vh) scale(0.8) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1.1) rotate(360deg); }
}

/* Premium Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-left: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.02), 
        0 15px 35px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
    z-index: -1;
}

.glass-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 242, 254, 0.15);
    transform: translateY(-5px);
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card img.rounded-3 {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover img.rounded-3 {
    transform: scale(1.15) rotate(-4deg);
}

/* Ultra Buttons */
.btn-neon {
    background: var(--primary-gradient);
    background-size: 200% auto;
    border: none;
    color: #fff;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        inset 0 2px 0 rgba(255,255,255,0.3),
        var(--shadow-neon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.btn-neon:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        inset 0 2px 0 rgba(255,255,255,0.5),
        0 12px 30px rgba(225, 0, 255, 0.6);
    letter-spacing: 0.5px;
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon:hover::after {
    left: 150%;
}

.btn-neon:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: var(--shadow-neon);
}

.btn-cyan {
    background: var(--secondary-gradient);
    background-size: 200% auto;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), var(--shadow-neon-cyan);
}

.btn-cyan:hover {
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 12px 30px rgba(0, 242, 254, 0.6);
}

/* Tab Bar Navigation (Bottom fixed) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 11, 26, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 15px;
    z-index: 1000;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 6px 16px;
    position: relative;
    border-radius: 16px;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-item.active i {
    transform: translateY(-4px) scale(1.15);
    color: #00f2fe;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe, 0 0 20px #00f2fe;
    animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.5); opacity: 1; }
}

/* User Wallet Dashboard Styling */
.wallet-box {
    text-align: center;
    padding: 35px 25px;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.15), transparent 60%), 
                radial-gradient(circle at bottom left, rgba(225, 0, 255, 0.1), transparent 60%), 
                var(--glass-bg);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.balance-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.balance-value {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff 20%, #e100ff 40%, #00f2fe 60%, #ffffff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    animation: shimmer 4s linear infinite;
    text-shadow: 0 10px 30px rgba(225, 0, 255, 0.2);
}

/* Ad Hub buttons grid */
.ads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.ads-grid .glass-card {
    margin-bottom: 0;
}

/* Spin Wheel Canvas styles */
.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 35px auto;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(127, 0, 255, 0.4), inset 0 0 20px rgba(0,0,0,0.5);
    border: 6px solid rgba(255,255,255,0.1);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: calc(50% - 18px);
    width: 36px;
    height: 40px;
    background: linear-gradient(to bottom, #ff007f, #e100ff);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

/* Leaders Board Styling */
.leader-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leader-row:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.leader-row.top-1 {
    border-color: rgba(249, 212, 35, 0.4);
    background: linear-gradient(90deg, rgba(249, 212, 35, 0.1), transparent);
    box-shadow: 0 4px 15px rgba(249, 212, 35, 0.1);
}
.leader-row.top-2 {
    border-color: rgba(160, 174, 192, 0.4);
    background: linear-gradient(90deg, rgba(160, 174, 192, 0.08), transparent);
}
.leader-row.top-3 {
    border-color: rgba(199, 121, 44, 0.4);
    background: linear-gradient(90deg, rgba(199, 121, 44, 0.08), transparent);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.rank-1 { background: var(--gold-gradient); color: #000; box-shadow: 0 0 15px rgba(249, 212, 35, 0.5); }
.rank-2 { background: linear-gradient(135deg, #e2e8f0 0%, #a0aec0 100%); color: #000; }
.rank-3 { background: linear-gradient(135deg, #fbd38d 0%, #ed8936 100%); color: #000; }
.rank-other { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* Custom Forms & Inputs */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-input:focus {
    outline: none;
    border-color: #00f2fe;
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.15), inset 0 0 10px rgba(0, 242, 254, 0.1);
    background: rgba(0,0,0,0.5);
}

/* Support Status Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-open { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.4); box-shadow: 0 0 10px rgba(0,242,254,0.2); }
.status-replied { background: rgba(56, 239, 125, 0.15); color: #38ef7d; border: 1px solid rgba(56, 239, 125, 0.4); box-shadow: 0 0 10px rgba(56,239,125,0.2); }
.status-closed { background: rgba(160, 174, 192, 0.15); color: #a0aec0; border: 1px solid rgba(160, 174, 192, 0.4); }

/* Daily checkin card & streak indicator */
.streak-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.streak-day {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 4px;
    margin: 0 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.streak-day.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(225, 0, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

.streak-day.claimed {
    background: var(--success-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px rgba(56, 239, 125, 0.3);
}

.streak-day.claimed::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.3); text-shadow: 0 0 20px currentColor; }
    100% { transform: scale(1); filter: brightness(1); }
}

.pulse-earn {
    animation: pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive elements */
a {
    transition: color 0.3s ease;
}
a:hover {
    color: #00f2fe !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Advanced Responsive Viewport Adaptations --- */
@media (min-width: 768px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
    
    .wallet-box {
        padding: 50px !important;
    }
    
    .balance-value {
        font-size: 4rem !important;
    }
}

@media (min-width: 600px) {
    .bottom-nav {
        max-width: 500px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 20px !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15) !important;
    }
}

/* Ensure nice scrolling inside responsive tables on touch devices */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}
