* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 5px;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
}

.connect-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.connect-btn.connected {
    background: #4CAF50;
    color: white;
}

.hero {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.presale-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.presale-card, .info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.presale-card h3, .info-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.wallet-info {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.wallet-info p {
    margin: 5px 0;
}

#walletAddress {
    font-family: monospace;
    color: #667eea;
}

.not-connected {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ffeaa7;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.hint {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.conversion-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.conversion-display p {
    color: #666;
    margin-bottom: 10px;
}

.conversion-display h2 {
    color: #667eea;
    font-size: 2.5em;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tx-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
}

.tx-status.pending {
    background: #fff3cd;
    color: #856404;
}

.tx-status.success {
    background: #d4edda;
    color: #155724;
}

.tx-status.error {
    background: #f8d7da;
    color: #721c24;
}

.presale-closed {
    background: #f8d7da;
    color: #721c24;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.info-list {
    margin-bottom: 30px;
}

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

.info-item .label {
    color: #666;
}

.info-item .value {
    font-weight: bold;
    color: #333;
}

.timeline {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.timeline h4 {
    margin-bottom: 15px;
    color: #667eea;
}

.timeline-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

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

.timeline-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.timeline-item p {
    color: #666;
    font-size: 0.9em;
}

.features {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
}

.features h3 {
    text-align: center;
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 40px;
}

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

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
}

footer {
    text-align: center;
    color: white;
    padding: 30px 0;
}

footer .links {
    margin-top: 10px;
}

footer .links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.9;
}

footer .links a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .presale-section {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2em;
    }
    
    .logo h1 {
        font-size: 1.8em;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
    }
}
