/* style.css */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8A2BE2;
    --primary-dark: #6A0DAD;
    --primary-light: #9B4DFF;
    --secondary-color: #FFD700;
    --dark-bg: #0A0A1A;
    --darker-bg: #050510;
    --card-bg: #121230;
    --text-color: #FFFFFF;
    --text-muted: #B0B0D0;
    --success-color: #00C853;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.loading-logo {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.loading-text span {
    display: inline-block;
    animation: bounce 1.5s infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.loading-subtext {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    animation: loading 5s ease-in-out forwards;
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    width: 90%;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    z-index: 9998;
    transform: translateX(120%);
    animation: slideIn 0.8s ease forwards 5.2s;
    border-left: 5px solid var(--primary-color);
}

.popup-content {
    padding: 25px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-header h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-3px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-light);
    font-weight: 400;
    font-size: 1rem;
}

.hamburger-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

.quick-actions {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
    z-index: 101;
}

.quick-actions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.quick-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.quick-link:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    min-width: 200px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.scroll-down {
    margin-top: 30px;
}

.scroll-link {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Table Container */
.table-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(138, 43, 226, 0.2);
}

.data-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-light);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(138, 43, 226, 0.1);
}

.data-table td {
    padding: 20px 15px;
}

.table-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.table-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

/* Leaderboard */
.leaderboard-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaderboard-header {
    padding: 30px;
    background: rgba(138, 43, 226, 0.1);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.leaderboard-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.leaderboard-title h3 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reward-note {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.leaderboard-content {
    padding: 30px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateX(10px);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 60px;
    text-align: center;
}

.rank-1 {
    color: var(--secondary-color);
}

.rank-2 {
    color: #C0C0C0;
}

.rank-3 {
    color: #CD7F32;
}

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.user-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.user-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.leaderboard-stats {
    text-align: right;
}

.leaderboard-stats .used-count {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.leaderboard-stats p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Top Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item-list {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item-list:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-rank {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 60px;
}

.feature-details h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.feature-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.pricing-card.popular {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.best-seller, .discount {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.best-seller {
    background: var(--primary-color);
    color: white;
}

.discount {
    background: var(--secondary-color);
    color: #000;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pricing-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.pricing-features {
    margin-bottom: 30px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feature-item i {
    width: 20px;
}

.feature-item i.fa-check {
    color: var(--success-color);
}

.feature-item i.fa-times {
    color: var(--danger-color);
}

.pricing-btn {
    display: block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    width: 100%;
    cursor: pointer;
}

.pricing-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.pricing-btn.popular-btn {
    background: var(--secondary-color);
    color: #000;
}

.pricing-btn.popular-btn:hover {
    background: #e6c200;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--darker-bg);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.5rem;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideIn {
    0% { transform: translateX(120%); }
    100% { transform: translateX(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    
    .leaderboard-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .loading-text {
        font-size: 2.5rem;
    }
    
    .loading-logo {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .leaderboard-user {
        flex-direction: column;
        text-align: center;
    }
    
    .leaderboard-stats {
        text-align: center;
    }
    
    .welcome-popup {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}