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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    padding: 80px 24px;
    position: relative;
    color: #fff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.language-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 4px;
}

.lang-btn {
    background: none;
    border: none;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn-active {
    opacity: 1;
    background: rgba(255,255,255,0.25);
}

.section {
    padding: 48px 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.button-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-card {
    border: 3px solid #2196F3;
    border-radius: 16px;
    padding: 32px;
    background: rgba(33, 150, 243, 0.05);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 48px;
    font-size: 1.25rem;
    font-weight: 600;
    background: #1976D2;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: #1565C0;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: #fff;
}

.card-text {
    font-size: 1rem;
    text-align: center;
    color: #b0b0b0;
}

.stats-section {
    background: #1a1a1a;
}

.stats-card {
    max-width: 400px;
    margin: 0 auto;
    background: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stats-label {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.stats-value {
    font-size: 3rem;
    font-weight: 700;
    color: #64B5F6;
}

.stats-unit {
    font-size: 0.875rem;
    color: #888;
}

.about-section {
    background: #222;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.data-table th {
    font-weight: 600;
    color: #b0b0b0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.btn-link {
    color: #64B5F6;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-share {
    background: none;
    border: none;
    color: #1DA1F2;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-share:hover {
    background: rgba(29, 161, 242, 0.1);
}

.btn-icon-svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.settings-section {
    background: #1a1a1a;
}

.settings-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.btn-outline-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: #ef5350;
    background: transparent;
    border: 1px solid #ef5350;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-danger:hover {
    background: rgba(239, 83, 80, 0.1);
}

.btn-text {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-text:hover {
    background: rgba(255,255,255,0.05);
}

.btn-text-danger {
    background: none;
    border: none;
    color: #ef5350;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-text-danger:hover {
    background: rgba(239, 83, 80, 0.1);
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dialog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.dialog-text {
    font-size: 0.9375rem;
    color: #b0b0b0;
    margin-bottom: 24px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.footer {
    background: #222;
    text-align: center;
    padding: 16px;
    font-size: 0.875rem;
    color: #fff;
}

.footer a {
    color: #64B5F6;
    text-decoration: none;
    font-weight: 500;
}

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

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 32px;
    color: #666;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .stats-value {
        font-size: 2.5rem;
    }
    .button-card {
        padding: 24px;
    }
}

.text-center { text-align: center; }