* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; padding: 20px; }
.container { max-width: 1000px; margin: 0 auto; }
.card { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); padding: 24px; margin-bottom: 20px; }
h1, h2, h3 { color: #2c3e50; margin-bottom: 16px; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
form .form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3498db; }
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; text-decoration: none; text-align: center; }
.btn-primary { background: #3498db; color: white; }
.btn-success { background: #27ae60; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-secondary { background: #95a5a6; color: white; }
.btn:hover { opacity: 0.9; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; }
.nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.nav a { padding: 10px 16px; background: white; border-radius: 8px; text-decoration: none; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.nav a:hover, .nav a.active { background: #3498db; color: white; }
.alert { padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.balance { font-size: 32px; font-weight: bold; color: #27ae60; text-align: center; padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.grid-item { padding: 20px; background: #f8f9fa; border-radius: 8px; text-align: center; }
.grid-item a { text-decoration: none; color: #333; font-size: 18px; font-weight: 500; }
@media (max-width: 768px) {
    body { padding: 12px; }
    .card { padding: 16px; }
    h1 { font-size: 20px; }
    table { font-size: 14px; }
    th, td { padding: 8px; }
}
