* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* ХЕДЕР */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.1em;
}

/* КАРТОЧКИ */
.main-card, .stats-card, .donate-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* СЕКЦИИ ИНСТРУМЕНТОВ */
.tool-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px dashed #f0f0f0;
}

.tool-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.tool-section h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.tool-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* ФОРМЫ */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comparison-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.comparison-inputs input {
    flex: 1;
}

.vs {
    background: #ff6b6b;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 15px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5a6fd8;
}

.compare-btn {
    background: #ff6b6b;
    width: 100%;
}

.compare-btn:hover {
    background: #ff5252;
}

/* РЕЗУЛЬТАТЫ */
#result {
    margin: 25px 0 0 0;
    padding: 25px;
    border-radius: 12px;
    background: #f8f9fa;
    min-height: 60px;
    border-left: 4px solid #667eea;
}

/* СТАТИСТИКА */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

/* ДОНАТ СЕКЦИЯ */
.donate-header {
    text-align: center;
    margin-bottom: 20px;
}

.donate-header h3 {
    color: #2c5530;
    margin-bottom: 5px;
}

.progress-section {
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    width: 2%;
    transition: width 1s ease-in-out;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.donate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.wallet-section {
    text-align: center;
}

.wallet-address {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    margin: 10px 0;
    font-size: 0.9em;
    border: 1px dashed #ccc;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: #6c757d;
}

.copy-btn:hover {
    background: #5a6268;
}

.donation-tiers {
    text-align: center;
}

.tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.tier-btn {
    width: 100%;
    padding: 12px;
    background: #ffc107;
    color: #000;
}

.tier-btn:hover {
    background: #e0a800;
}

.donate-footer {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

/* ФУТЕР */
footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 30px;
    padding: 20px;
}

/* АДАПТИВ */
@media (max-width: 600px) {
    .input-group, .comparison-inputs {
        flex-direction: column;
    }
    
    .vs {
        align-self: center;
        margin: 10px 0;
    }
    
    .donate-actions {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .main-card, .stats-card, .donate-card {
        padding: 20px;
    }
}