:root {
  --bg: #10141b;
  --surface: #171d27;
  --border: #232b38;
  --text: #edeff2;
  --text-secondary: #c4cad3;
  --text-muted: #8891a0;
}
[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #171b21;
  --text-secondary: #454c58;
  --text-muted: #6b7280;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition: background-color 0.15s ease, color 0.15s ease;
  overflow-x: hidden;
}

input, select, textarea {
  font-family: "Inter", sans-serif;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  width: 100%;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #ff9142; }
input[type="checkbox"], input[type="radio"] { width: auto; flex-shrink: 0; }

button, a.btn, a.btn-ghost { font-family: "Inter", sans-serif; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

.btn {
  background: #ff9142; color: #10141b; border: none; border-radius: 8px;
  padding: 9px 14px; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn:hover { background: #ffa361; }

.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 14px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn-ghost:hover { border-color: #ff9142; color: #ff9142; }

.btn-green {
  background: #34d8a3; color: #0f1b17; border: none; border-radius: 8px;
  padding: 9px 14px; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}

.btn-red {
  background: transparent; border: 1px solid #3a2429; color: #ff6b6b;
  border-radius: 8px; padding: 9px 14px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 5px; display: block;
}

.nav-link {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 9px; margin-bottom: 4px; text-decoration: none;
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
}
.nav-link.active { background: rgba(255,145,66,0.12); color: #ff9142; font-weight: 600; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }
