* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}
.coin-logo {
    position: relative;
}
.coin-image {
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.header-text h1 {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tagline {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}
.btn-connect {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.4);
}
.btn-connect:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #5b6ee1;
    border: 2px solid #e0e0ff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: #f5f6ff; transform: translateY(-1px); }
.btn-secondary.small { padding: 8px 12px; font-size: 13px; }

.btn-uniswap {
    background: linear-gradient(135deg, #6f42c1 0%, #8a63d2 100%);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 5px 12px rgba(111, 66, 193, 0.25);
}
.btn-uniswap:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(111,66,193,0.35); }
.btn-uniswap.outline { background: #fff; color: #6f42c1; border: 2px solid #e7dbff; box-shadow: none; }
.btn-uniswap.outline:hover { background: #f7f2ff; }

.network-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #7a5d00;
    border: 1px solid #ffecb5;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.presale-section {
    margin-bottom: 30px;
}

.presale-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.presale-card h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.presale-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.presale-price, .presale-launch {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.presale-price strong, .presale-launch strong {
    color: #FFD700;
    font-size: 22px;
}

.presale-progress {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}

.progress-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.presale-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value-small {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    margin-top: 5px;
}

.presale-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.presale-actions input {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
}

.presale-actions input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.presale-actions input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.15);
}

.btn-presale {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-presale:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(255, 215, 0, 0.6);
}

.presale-note {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid #FFA500;
}

@media (max-width: 768px) {
    .presale-stats {
        flex-direction: column;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-icon {
    font-size: 40px;
}
.stat-info h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.stat-label {
    font-size: 12px;
    color: #999;
}
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.info-card h2 {
    margin-bottom: 20px;
    color: #333;
}
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.info-label {
    color: #666;
    font-weight: 600;
}
.info-value {
    color: #333;
    font-weight: 500;
}
.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}
.features-list {
    list-style: none;
    padding: 0;
}
.features-list li {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}
.features-list li:hover {
    background: #e9ecef;
}
.actions-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.action-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.action-card h2 {
    margin-bottom: 20px;
    color: #333;
}
.action-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.action-card input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}
.action-card input:focus {
    outline: none;
    border-color: #667eea;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}
.wallet-section {
    margin-bottom: 30px;
}
.wallet-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #667eea;
    margin-top: 10px;
    word-break: break-all;
}
footer {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
footer p {
    color: #666;
    margin: 5px 0;
}
.footer-note {
    font-size: 14px;
    color: #999;
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .logo-section {
        flex-direction: column;
    }
    .header-actions { width: 100%; justify-content: center; }
    .stats-grid,
    .info-section,
    .actions-section {
        grid-template-columns: 1fr;
    }
}

/* Universal Connect Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal {
    background: #111827; /* slate-900 */
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}
.modal h3 { margin: 0 0 8px 0; }
.modal p { margin: 0 0 16px 0; color: #d1d5db; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-close.small { font-size: 12px; padding: 6px 10px; }
