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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

nav button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 10px;
}

.hero-simple {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-simple h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-simple p {
    color: #666;
    font-size: 1.1rem;
}

.controls {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.controls label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.controls input,
.controls select {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.controls button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

.portfolio-display {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.loading {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 1.1rem;
}

.wallet-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wallet-header h3 {
    color: #333;
    font-size: 1.1rem;
}

.wallet-header .remove {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.stat-label {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.stat-value {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-value.positive {
    color: #51cf66;
}

.stat-value.negative {
    color: #ff6b6b;
}

.pro-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pro-panel h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.pro-panel ul {
    list-style: none;
    columns: 2;
}

.pro-panel li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .wallet-stats {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-simple h1 {
        font-size: 1.8rem;
    }
}

@media print {
    .pro-panel {
        display: none;
    }
    #watermark {
        display: none;
    }
    nav {
        display: none;
    }
}
