/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a00e0;
    --secondary-color: #8e2de2;
    --accent-color: #00c6ff;
    --success-color: #00b894;
    --danger-color: #ff7675;
    --warning-color: #fdcb6e;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --gray-color: #636e72;
    --white-color: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(74, 0, 224, 0.1);
}

.btn-login, .btn-register {
    padding: 10px 24px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
}

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white-color);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #0072ff);
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 114, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.stat p {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 50px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-list i {
    color: var(--success-color);
    margin-right: 10px;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Plans Section */
.plans {
    padding: 100px 0;
    background-color: var(--light-color);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border: 2px solid var(--primary-color);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.plan-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
}

.plan-body {
    padding: 30px;
}

.plan-body ul {
    list-style: none;
    margin-bottom: 30px;
}

.plan-body li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-body i {
    color: var(--success-color);
    margin-right: 10px;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-plan:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--white-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--light-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white-color);
    font-size: 24px;
    font-weight: 700;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--white-color);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 20px 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-content {
    max-width: 800px;
    margin: 50px auto 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 32px;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #b2b2b2;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #b2b2b2;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.auth-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.auth-header h2 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.auth-header p {
    color: var(--gray-color);
}

.auth-form {
    padding: 0 30px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 0, 224, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember {
    display: flex;
    align-items: center;
    gap: 5px;
}

.forgot {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.admin-login {
    text-align: center;
    margin-top: 20px;
}

.admin-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    background: var(--light-color);
}

.auth-footer p {
    margin-bottom: 10px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 30px;
    text-align: center;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Dashboard Styles */
.dashboard-page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header i {
    font-size: 36px;
    margin-bottom: 10px;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
}

.sidebar-nav i {
    margin-right: 10px;
    width: 20px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.user-details h4 {
    margin-bottom: 5px;
}

.user-details p {
    font-size: 12px;
    opacity: 0.8;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background: var(--light-color);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-notification {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: var(--white-color);
}

.stat-info h3 {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.stat-info h2 {
    font-size: 24px;
    color: var(--dark-color);
}

.mining-status {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.active {
    background: #e8f5e9;
    color: var(--success-color);
}

.status-badge.inactive {
    background: #ffebee;
    color: var(--danger-color);
}

.mining-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.mining-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--gray-color);
}

.no-mining {
    text-align: center;
    padding: 40px 0;
}

.no-mining i {
    font-size: 48px;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.recent-transactions {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.recent-transactions h2 {
    margin-bottom: 20px;
}

.recent-transactions table {
    width: 100%;
    border-collapse: collapse;
}

.recent-transactions th,
.recent-transactions td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.recent-transactions th {
    font-weight: 600;
    color: var(--gray-color);
}

.transaction-type {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.transaction-type.earning {
    background: #e8f5e9;
    color: var(--success-color);
}

.transaction-type.withdrawal {
    background: #ffebee;
    color: var(--danger-color);
}

.status-success {
    color: var(--success-color);
    font-weight: 600;
}

/* Deposit Page */
.deposit-container {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.plan-selection {
    margin-bottom: 40px;
}

.plans-grid-deposit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plan-card-deposit {
    background: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.plan-card-deposit:hover,
.plan-card-deposit.selected {
    border-color: var(--primary-color);
    background: rgba(74, 0, 224, 0.05);
}

.btn-select-plan {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-select-plan:hover {
    background: var(--secondary-color);
}

.selected-plan-info {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.payment-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.payment-instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.payment-address {
    background: var(--white-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

/* Withdraw Page */
.withdraw-container {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.balance-card {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info h1 {
    font-size: 48px;
    margin: 10px 0;
}

.balance-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.fee-calculation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.fee-details {
    margin-top: 15px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fee-item.total {
    border-bottom: none;
    font-weight: 600;
    color: var(--success-color);
}

.recent-withdrawals table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.recent-withdrawals th,
.recent-withdrawals td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.status-pending {
    color: var(--warning-color);
}

.status-completed {
    color: var(--success-color);
}

.status-rejected {
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .steps::before {
        display: none;
    }
    
    .dashboard-page {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}