/* Global Styles */
:root {
    --bg-color: #0d1117; /* Dark background */
    --text-color: #e6edf3; /* Light text */
    --primary-color: #00ffff; /* Primary accent color */
    --secondary-bg: rgba(25, 29, 36, 0.7); /* Card background */
    --border-color: rgba(255, 255, 255, 0.1); /* Separator line color */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Shadow color */
}

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

/* Particle Background Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

.wrapper {
    max-width: 1400px; /* Slightly larger for bigger screens */
    margin: 0 auto;
    padding: 0 15px; /* Adjusted for smaller screens */
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    background-color: rgba(13, 17, 23, 0.8);
    z-index: 100;
}

.logo img {
    height: 40px; /* Slightly smaller for better fit */
}

.logo h1 {
    font-size: clamp(20px, 2.5vw, 26px); /* Responsive font size */
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 16px); /* Responsive font */
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav a:hover::after {
    width: 100%;
}

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

.user-actions span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: clamp(14px, 1.5vw, 16px);
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    border: none;
    font-size: clamp(14px, 1.5vw, 16px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: #00dddd;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: clamp(12px, 1.2vw, 14px);
}

.btn-outline:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: clamp(16px, 2vw, 20px);
}

/* Main Content Area */
.main-content {
    padding-top: 15px;
}

section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

section h2 {
    font-size: clamp(2em, 5vw, 3.2em);
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.section-subtitle {
    font-size: clamp(1em, 2vw, 1.2em);
    color: #a2aab8;
    margin-bottom: 40px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    min-height: 70vh;
    padding-top: 40px;
    flex-wrap: wrap-reverse;
}

.hero-text {
    max-width: 600px;
    animation: fadeInText 1.5s ease-out;
}

.hero-text h2 {
    font-size: clamp(2.5em, 6vw, 4.5em);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.hero-text p {
    font-size: clamp(1em, 2vw, 1.3em);
    color: #a2aab8;
    margin-bottom: 30px;
}

.hero-image {
    animation: fadeInImage 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-image img {
    max-width: 100%;
    width: 450px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.4));
}

/* Dashboard Overview */
.dashboard-overview {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(13, 17, 23, 0.8));
    padding: 50px 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
}

.dashboard-header h2 {
    font-size: clamp(2em, 4vw, 2.8em);
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.stat-card .icon {
    font-size: clamp(2em, 5vw, 3em);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: clamp(1.2em, 2vw, 1.6em);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: clamp(1.5em, 3vw, 2em);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.action-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    flex: 1;
    min-width: 300px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
    font-size: clamp(1.4em, 2vw, 1.8em);
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card h3 .icon {
    margin-right: 10px;
    font-size: 1em;
}

.card p {
    margin-bottom: 10px;
    color: #a2aab8;
    font-size: clamp(0.9em, 1.5vw, 1em);
}

.withdraw-form .input-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}

.withdraw-form input[type="number"] {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #1e222a;
    color: var(--text-color);
    font-size: clamp(14px, 1.5vw, 16px);
    outline: none;
}

.withdraw-form small {
    font-size: clamp(12px, 1.2vw, 14px);
}

/* Features Section */
.features-section {
    background: linear-gradient(145deg, rgba(13, 17, 23, 0.8), rgba(17, 24, 39, 0.8));
    padding: 80px 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-top: 60px;
    border: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card .feature-icon {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: clamp(1.4em, 2vw, 1.8em);
    margin-bottom: 10px;
}

.feature-card p {
    color: #a2aab8;
    font-size: clamp(0.9em, 1.5vw, 1.05em);
}

/* Call to Action */
.call-to-action {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    padding: 60px 15px;
    border-radius: 15px;
    margin-top: 80px;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.call-to-action h2 {
    font-size: clamp(2.2em, 5vw, 3.5em);
}

.call-to-action p {
    font-size: clamp(1em, 2vw, 1.3em);
    max-width: 90%;
}

/* Footer */
.footer {
    background-color: #12161d;
    padding: 40px 0;
    text-align: center;
    color: #a2aab8;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #a2aab8;
    text-decoration: none;
    font-size: clamp(12px, 1.5vw, 14px);
}

.footer p {
    margin-top: 20px;
    font-size: clamp(10px, 1.2vw, 12px);
}

.social-media {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-media a {
    font-size: clamp(20px, 3vw, 28px);
}

/* Promotions Section */
.promotions-section {
    background: linear-gradient(145deg, rgba(30, 35, 45, 0.8), rgba(25, 29, 36, 0.8));
    padding: 60px 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-top: 60px;
    border: 1px solid var(--border-color);
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.promo-card {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-card .feature-icon {
    font-size: clamp(2em, 4vw, 3em);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.promo-card h3 {
    font-size: clamp(1.2em, 2vw, 1.6em);
    margin-bottom: 10px;
}

.promo-card p {
    font-size: clamp(0.85em, 1.5vw, 0.95em);
}

.promo-cta {
    margin-top: 40px;
}

.promo-cta p {
    font-size: clamp(1em, 2vw, 1.2em);
}

.promo-cta .small-text {
    font-size: clamp(0.8em, 1.5vw, 0.9em);
}

/* Auth Box Styles */
.auth-box {
    max-width: 90%;
    margin: 80px auto;
    padding: 30px;
    background: var(--secondary-bg);
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow-color);
    backdrop-filter: blur(12px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-box h2 {
    font-size: clamp(1.5em, 3vw, 2em);
    color: var(--primary-color);
    margin-bottom: 25px;
}

.auth-box input {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: clamp(14px, 1.5vw, 16px);
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wrapper {
        padding: 0 10px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-image img {
        width: 350px;
    }

    .action-sections {
        flex-direction: column;
        gap: 20px;
    }

    .card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .user-actions {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 40px 0;
    }

    .dashboard-overview, .features-section, .promotions-section, .call-to-action {
        padding: 40px 10px;
    }

    .stats-grid, .features-grid, .promotion-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card, .feature-card, .promo-card {
        padding: 20px;
    }

    .auth-box {
        margin: 50px 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .nav a {
        font-size: 12px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 14px;
    }

    .hero-image img {
        width: 250px;
    }

    .stat-card p {
        font-size: 1.2em;
    }

    .card, .feature-card, .promo-card {
        padding: 15px;
    }

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