:root {
  --bg: #0b0d14;
  --surface: #171a24;
  --surface-2: #20232f;
  --border: #2a2e3c;
  --text: #f2f1ed;
  --muted: #8b8fa0;
  --accent: #ff3b5c;
  --gold: #f5b942;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.brand { text-align: center; margin-bottom: 24px; }
.brand .name { font-weight: 900; font-size: 20px; }
.brand .name span { color: var(--accent); }
.brand .tag { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); font-weight: 700; }

label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 14px 0 6px;
}

input[type="text"], input[type="password"], input[type="url"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}
input:focus { outline: 2px solid var(--accent); }

button.primary {
  width: 100%;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 13px;
  cursor: pointer;
}
button.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
  color: var(--accent);
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

.toast {
  color: #7ee787;
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

/* dashboard */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
.topbar .brand { margin: 0; text-align: left; }
.logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.logout-btn:hover { color: var(--text); border-color: var(--muted); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.panel h2 { margin: 0 0 4px; font-size: 16px; }
.panel .desc { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 14px;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 100px;
  transition: 0.15s;
  cursor: pointer;
}
.switch .slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.logo-preview-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.logo-preview-row img { max-height: 80px; max-width: 90%; object-fit: contain; display: none; }
.logo-empty { color: var(--muted); font-size: 13px; display: flex; }

input[type="file"] {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
