:root {
  --bg: #10131a;
  --panel: #171c27;
  --panel2: #1d2432;
  --text: #eef3ff;
  --muted: #9aa7bd;
  --line: #2c3548;
  --accent: #4ea1ff;
  --accent2: #2fd18c;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2740 0, var(--bg) 46%);
  color: var(--text);
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(16,19,26,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}
.container {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 80px;
}
.hero, .card, .modal-card, .result, .notice {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.hero h1 {
  font-size: clamp(34px, 8vw, 72px);
  line-height: .95;
  margin: 0 0 12px;
}
.hero p, .card p, .modal-card p {
  color: var(--muted);
  font-size: 18px;
}
.search {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1119;
  color: var(--text);
  padding: 14px 15px;
  font-size: 17px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.search input { flex: 1; }
button, .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--accent), #7bc0ff);
  color: #06101f;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
button:disabled, .disabled {
  opacity: .55;
  pointer-events: none;
}
.btn.secondary {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-max {
  background: linear-gradient(135deg, var(--accent2), #88f0c3);
  color: #07150f;
}
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.actions, .footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.announcements, .results {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.card, .modal-card { margin-top: 18px; }
.modal-card { max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.stat b { display: block; font-size: 34px; }
.stat span { color: var(--muted); }
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}
th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
th { color: var(--text); background: var(--panel2); }
.empty {
  margin-top: 18px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 16px;
}
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(16,19,26,.9);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .search { flex-direction: column; }
  .grid { grid-template-columns: 1fr 1fr; }
  table { font-size: 13px; }
  th, td { padding: 8px; }
}

/* STEP004 Excel import and address pages */
.success, .error {
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
  font-weight: 700;
}
.success {
  background: rgba(47, 209, 140, .12);
  border: 1px solid rgba(47, 209, 140, .45);
}
.error {
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .45);
}
.link-card {
  display: block;
  text-decoration: none;
}
.codes {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.code-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel2);
}
.code-card b {
  font-size: 26px;
  letter-spacing: 1px;
}
.code-card span, .code-card em {
  color: var(--muted);
}

/* STEP005 moderation announcements votes */
.moderation-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.moderation-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.moderation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.moderation-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.vote-stats, .vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.vote-form {
  display: inline-flex;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-size: 13px;
}
.pill.ok {
  border-color: rgba(47, 209, 140, .45);
}
.pill.bad {
  border-color: rgba(255, 107, 107, .45);
}
.btn.danger, button.danger {
  background: rgba(255, 107, 107, .2);
  color: var(--text);
  border: 1px solid rgba(255, 107, 107, .55);
}
.checkline {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}
.checkline input {
  width: auto;
}

/* STEP006 users internal api */
.table-scroll {
  overflow-x: auto;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0d1119;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
}
code {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
}

/* STEP007 bind session */
.access-ok {
  background: rgba(47, 209, 140, .12);
  border: 1px solid rgba(47, 209, 140, .45);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
}
.access-warn {
  background: rgba(255, 193, 7, .11);
  border: 1px solid rgba(255, 193, 7, .4);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
}

/* === STEP015_SERSERIK_SITE_UX_POLISH_START === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--accent2);
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-polished {
  position: relative;
  overflow: hidden;
}
.hero-polished::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(78,161,255,.18), transparent 62%);
  pointer-events: none;
}
.quick-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.results-block h2,
.hint-card h2,
.empty-state h2,
.launch-state h2 {
  margin-top: 0;
}
.result-house,
.entrance-card {
  display: grid;
  gap: 10px;
}
.result-house span,
.entrance-card span,
.meta-line,
.small-muted {
  color: var(--muted);
}
.meta-line {
  margin: 10px 0 18px;
}
.crumbs {
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.entrances-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.code-value {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(47, 209, 140, .12);
  border: 1px solid rgba(47, 209, 140, .35);
  font-size: clamp(26px, 8vw, 42px);
  font-weight: 900;
  letter-spacing: .04em;
}
.access-modal .lock-icon {
  font-size: 44px;
  margin-bottom: 8px;
}
.center-actions {
  justify-content: center;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .wide {
  grid-column: 1 / -1;
}
.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.launch-state {
  border-color: rgba(255, 193, 7, .35);
}
.empty-state {
  border-color: rgba(255,255,255,.08);
}
.notice .pill {
  vertical-align: middle;
}
@media (max-width: 720px) {
  .hero-polished h1 {
    font-size: clamp(38px, 14vw, 64px);
  }
  .actions .btn,
  .actions button {
    width: 100%;
  }
  .footer {
    position: static;
  }
  .container {
    padding-bottom: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .code-value {
    width: 100%;
    justify-content: center;
  }
}
/* === STEP015_SERSERIK_SITE_UX_POLISH_END === */
