@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #0f0f0f;
  --panel: #1c1c1d;
  --panel-2: #262628;
  --line: #3a3a3a;
  --text: #f0f0f0;
  --muted: #b0b0b0;
  /* Beat Banger logo colors */
  --blue: #1980b4;
  --orange: #ea770c;
  --red: #b02c37;
  --purple: #6e2243;
  --blue-light: #3aa0d6;
  --orange-light: #ff9a3c;
  --red-light: #e0475a;
  --purple-light: #a33a6a;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter", "Segoe UI", system-ui, sans-serif; line-height: 1.5; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue-light); }

h1, h2, h3, .display { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.03em; font-weight: 400; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 0.95; }
h2 { font-size: 30px; }
h3 { font-size: 22px; color: var(--orange); }

header.top {
  display: flex; align-items: center; gap: 14px; padding: 18px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid var(--line); background: #111113;
}
header.top img { height: 46px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.stripes { height: 5px; background: linear-gradient(90deg, #1980b4 0 25%, #6e2243 25% 50%, #ea770c 50% 75%, #b02c37 75% 100%); }
header.top .brand { font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: 0.05em; }
header.top .brand span { color: var(--orange); }
header.top nav { margin-left: auto; display: flex; gap: 14px; font-size: 14px; align-items: center; }
header.top nav a { color: var(--muted); text-decoration: none; line-height: 1; }
header.top nav a:hover { color: var(--blue-light); }
header.top nav .nav-btn { color: var(--text); padding: 8px 14px; font-size: 13px; }
header.top nav .nav-btn:hover { color: var(--text); border-color: var(--orange); }
.ui-lang { height: 34px; }

main { width: min(920px, 100% - 32px); margin: 0 auto; padding: 40px 0 80px; flex: 1; }

.hero { margin-bottom: 32px; }
.hero p { color: var(--muted); max-width: 60ch; margin: 12px 0 0; font-size: 17px; }
.hero .accent { color: var(--orange); }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-family: "Bebas Neue", sans-serif; font-size: 20px; letter-spacing: .05em; }
.steps li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 16px; }
.steps li.active { border-color: var(--orange); color: var(--text); }
.steps li.active span { background: var(--orange); color: #fff; }
.steps li.done { color: var(--text); }
.steps li.done span { background: var(--blue); color: #fff; }
@media (max-width: 520px) { .steps li { font-size: 16px; padding: 8px 10px; } }
.stage { animation: pop .18s ease-out; }
h3 small { font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 10px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 18px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; background: #111113; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font: inherit; font-size: 15px; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,128,180,.25); }
textarea { min-height: 72px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 18px, calc(100% - 14px) 18px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }
.field + .field { margin-top: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; margin-top: 12px; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.item .num { font-family: "Bebas Neue", sans-serif; font-size: 18px; letter-spacing: .06em; color: var(--orange); }
.item .remove { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.item .remove:hover { color: var(--red-light); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.pair textarea { min-height: 64px; font-size: 16px; }
.pair .arrow { color: var(--orange); font-size: 26px; line-height: 1; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } .pair .arrow { transform: rotate(90deg); text-align: center; } }
.more { margin-top: 8px; }
.more summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; color: var(--orange); }
.more[open] summary::before { content: "\2013 "; }
.more summary:hover { color: var(--text); }
.more .grid { margin-top: 10px; }

.btn { text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font: inherit; font-weight: 600;
  padding: 12px 20px; border-radius: 10px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); transition: transform .08s, background .15s;
}
.btn:hover { background: #303033; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--orange); color: #fff; border-color: var(--orange); font-family: "Bebas Neue", sans-serif; font-size: 22px; letter-spacing: .06em; padding: 10px 26px; }
.btn.primary:hover { background: #c96308; }
.btn:disabled { opacity: .55; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.actions .spacer { flex: 1; }

.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice { border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: 15px; }
.notice.error { background: rgba(176, 44, 55, .18); border: 1px solid var(--red-light); }
.notice.ok { background: rgba(25, 128, 180, .15); border: 1px solid var(--blue); }
.notice code { background: #111113; padding: 2px 8px; border-radius: 6px; font-size: 14px; }

.success { text-align: center; padding: 48px 24px; }
.success h2 { font-size: 44px; color: var(--orange); }
.success .id { font-family: monospace; font-size: 18px; background: #111113; display: inline-block; padding: 6px 14px; border-radius: 8px; margin: 12px 0; }

footer { border-top: 1px solid var(--line); padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* status pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pill.new { background: rgba(234, 119, 12, .18); color: var(--orange-light); }
.pill.verified { background: rgba(25, 128, 180, .2); color: var(--blue-light); }
.pill.applied { background: rgba(110, 34, 67, .35); color: #d86fa0; }
.pill.rejected { background: rgba(176, 44, 55, .22); color: var(--red-light); }

/* admin table */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input { width: auto; min-width: 160px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.row { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.row .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.row .text { background: #111113; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.row .text { border: 1px solid var(--line); }
.row .text.suggest { border: 2px solid var(--orange); background: rgba(234, 119, 12, .07); }
.row .note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.row .ops { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.row .ops .btn { padding: 6px 12px; font-size: 13px; }
.row .ops input { flex: 1; min-width: 200px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* site language picker + misc */
.ui-lang { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; border-radius: 8px; background-position: calc(100% - 16px) 13px, calc(100% - 10px) 13px; }
label .opt { text-transform: none; font-weight: 400; }
.steps li em { font-style: normal; }

/* mobile header: logo + TRANSLATE + language picker only, nothing wraps */
@media (max-width: 640px) {
  header.top { padding: 12px 16px; gap: 10px; }
  header.top img { height: 38px; }
  header.top .brand { font-size: 22px; }
  header.top nav { gap: 10px; }
  header.top nav a { display: none; }
  .ui-lang { min-width: 0; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  main { padding-top: 28px; }
}

/* language votes */
.lv-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.lv-top #who { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lv-top #who p { margin: 0; color: var(--muted); }
.lv-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.lv-meta #total { color: var(--text); font-weight: 600; margin-right: 6px; }
.lang-list { margin-top: 6px; }
.lang { display: grid; grid-template-columns: 1.4fr 2fr auto auto; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lang:last-child { border-bottom: none; }
.lang.mine { background: rgba(234, 119, 12, .06); border-radius: 8px; }
.lang-name { display: flex; flex-direction: column; line-height: 1.2; }
.lang-name strong { font-size: 16px; }
.lang-name span { font-size: 12px; color: var(--muted); }
.bar { height: 10px; background: #111113; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light)); border-radius: 999px; transition: width .3s; }
.count { font-family: "Bebas Neue", sans-serif; font-size: 22px; min-width: 42px; text-align: right; }
.count small { font-family: "Inter", sans-serif; font-size: 11px; color: var(--muted); }
.lang-actions { display: flex; gap: 10px; align-items: center; min-width: 120px; justify-content: flex-end; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.small.primary { font-size: 16px; padding: 4px 14px; }
.help { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); cursor: pointer; }
.help input { accent-color: var(--orange); }
@media (max-width: 640px) {
  .lang { grid-template-columns: 1fr auto; grid-template-areas: "name count" "bar bar" "actions actions"; }
  .lang-name { grid-area: name; } .bar { grid-area: bar; } .count { grid-area: count; } .lang-actions { grid-area: actions; justify-content: flex-start; }
  header.top nav a { display: none; }
}

/* Discord sign-in: brand blurple + logo */
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; padding: 8px 14px; font-size: 14px; gap: 8px; }
.btn.discord:hover { background: #4752C4; }
.btn.discord svg { flex: none; }

/* logo links home */
header.top .home { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
header.top .home:hover img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)) brightness(1.08); }
