:root {
    --primary: #2a4b8d;
    --secondary: #4a76a8;
    --accent: #f39c12;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --success: #27ae60;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo h1 {
    font-size: 1.8rem;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(42, 75, 141, 0.8), rgba(42, 75, 141, 0.9)), url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.countdown {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.countdown h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.timer-box {
    background: var(--primary);
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 70px;
}

.timer-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.timer-box small {
    font-size: 0.8rem;
}

/* Mining Section */
.mining-section {
    padding: 3rem 0;
    background: white;
    margin-top: -50px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.mining-card {
    background: var(--light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.mining-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mining-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.mining-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark);
}

.mining-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--secondary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #219653;
}

.btn-warning {
    background: var(--accent);
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.boost-mining {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.boost-mining h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.tasks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.task {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.task:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.task i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.network-info {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.network-info h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: monospace;
    word-break: break-all;
}

#copy-address {
    cursor: pointer;
    transition: color 0.3s;
}

#copy-address:hover {
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalopen 0.4s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 1.5rem;
}

.ogads-frame-container {
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

#ogads-frame {
    width: 100%;
    height: 100%;
}

/* Withdrawal Form Styles */
.withdrawal-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(42, 75, 141, 0.1);
}

.form-group small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.withdrawal-info {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent);
}

.withdrawal-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdrawal-info ul {
    list-style: none;
    padding-left: 0;
}

.withdrawal-info li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.withdrawal-info li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

/* Form Input States */
.form-input:invalid {
    border-color: var(--danger);
}

.form-input:valid {
    border-color: var(--success);
}

.form-input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .timer {
        flex-wrap: wrap;
    }
    
    .mining-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .tasks {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .ogads-frame-container {
        height: 300px;
    }
    
    .withdrawal-form {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .mining-card {
        padding: 1.5rem;
    }
    
    .mining-stats {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .timer-box {
        min-width: 60px;
        padding: 8px 12px;
    }
    
    .timer-box span {
        font-size: 1.5rem;
    }
    
    .ogads-frame-container {
        height: 250px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success States */
.success-message {
    background: var(--success);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.error-message {
    background: var(--danger);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}
