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

:root {
  --bg: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-input: #222222;
  --text: #e0e0e0;
  --text-muted: #929695;
  --primary: #0b8d83;
  --primary-hover: #0a7a72;
  --accent: #929695;
  --border: #333333;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

html { font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

h1, h2, h3 { font-weight: 600; }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #111; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--bg-input); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}

/* Cards */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  box-shadow: var(--shadow); transition: border-color 0.2s;
}
.card:hover { border-color: var(--primary); }

/* Navbar */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.navbar .logo { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.navbar nav { display: flex; gap: 1rem; align-items: center; }

/* Footer */
.footer {
  text-align: center; padding: 1.5rem; color: var(--text-muted);
  font-size: 0.85rem; border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.lang-switch { display: inline-flex; gap: 0.5rem; margin-top: 0.5rem; }
.lang-switch button {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  padding: 0.2rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem;
}
.lang-switch button.active { color: var(--primary); border-color: var(--primary); }

/* Messages */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: rgba(146,150,149,0.15); color: var(--accent); border: 1px solid rgba(146,150,149,0.3); }
.alert-success { background: rgba(11,141,131,0.15); color: var(--primary); border: 1px solid rgba(11,141,131,0.3); }

/* Loader */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 14px; }
  .container { padding: 1rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }
