:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --panel-2: #161619;
  --text: #f2f2f3;
  --muted: #a3a3aa;
  --border: #27272c;
  --accent: #8b5cf6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: #0c0c0f;
  position: sticky;
  top: 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
}

nav a {
  color: var(--muted);
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { color: var(--text); }

.page {
  max-width: 980px;
  margin: 26px auto;
  padding: 0 14px;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.hero { padding: 28px; }
.hero h1 { margin-top: 0; font-weight: 600; }
.hero p { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 9px 13px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  margin-right: 8px;
  border: 1px solid var(--accent);
  color: #e9e0ff;
  background: transparent;
}

.btn.secondary {
  border-color: var(--border);
  color: var(--text);
}

.panel {
  padding: 14px;
  margin-bottom: 12px;
}

.form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select,
button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}

button {
  background: #121216;
  border: 1px solid var(--accent);
  color: #efe7ff;
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

img,
iframe {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 320px;
  object-fit: cover;
  background: #0f0f12;
}

.site-footer {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.account-menu { position: relative; }

.avatar-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: #131118;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 0;
}

.dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  min-width: 190px;
  z-index: 10;
}

.dropdown a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}

.dropdown a:hover { color: #d9c9ff; }

.hidden { display: none; }
.error { color: #f2b2b2; }
code { color: #d9c9ff; }
