* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.header h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}
.header nav a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.header nav a:hover {
    color: #f6e05e;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-2px);
}
.card h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #2d3748;
    border-left: 5px solid #f6e05e;
    padding-left: 15px;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.price-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.price-item.highlight {
    background: #fffbeb;
    border-color: #f6e05e;
    box-shadow: 0 0 15px rgba(246,224,94,0.2);
}
.price-item .currency {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
}
.price-item .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}
.price-item .change {
    font-size: 0.9rem;
    color: #48bb78;
}
.update-time {
    text-align: right;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 15px;
}
.chart-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}
.btn {
    background: #edf2f7;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    color: #2d3748;
}
.btn.active, .btn:hover {
    background: #f6e05e;
    color: #1a1a2e;
    font-weight: 600;
}
.convert-form, .recycle-form, .alert-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.input-group label {
    font-size: 0.85rem;
    color: #4a5568;
}
.input-group input, .input-group select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}
.input-group input:focus, .input-group select:focus {
    border-color: #f6e05e;
}
.result {
    margin-top: 15px;
    padding: 15px;
    background: #f0fff4;
    border-radius: 8px;
    color: #2f855a;
    font-weight: 500;
}
.brand-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.brand-table th, .brand-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.brand-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
}
.brand-table .up { color: #48bb78; }
.brand-table .down { color: #f56565; }
.analysis-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.analysis-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.analysis-item h3 {
    margin-bottom: 10px;
    color: #2d3748;
}
.signal {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}
.signal.buy { background: #c6f6d5; color: #22543d; }
.signal.hold { background: #fefcbf; color: #744210; }
.signal.sell { background: #fed7d7; color: #822727; }
#alert-items {
    list-style: none;
    margin-top: 10px;
}
#alert-items li {
    background: #f7fafc;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
}
.footer {
    text-align: center;
    padding: 30px;
    color: #718096;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}
/* Admin styles */
.admin-body {
    background: #1a202c;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.admin-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}
.login-box, .admin-panel {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.admin-panel {
    max-width: 700px;
    width: 100%;
}
.admin-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.logout {
    background: #f56565;
    color: #fff;
}
.logout:hover {
    background: #c53030;
}
.error {
    color: #f56565;
    background: #fff5f5;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.success {
    color: #48bb78;
    background: #f0fff4;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.admin-panel section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.admin-panel section:last-child {
    border-bottom: none;
}
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .header nav a {
        margin: 5px;
    }
    .price-grid {
        grid-template-columns: 1fr 1fr;
    }
    .convert-form, .recycle-form, .alert-form {
        flex-direction: column;
    }
}