:root {
  --bg: #020913;
  --bg-soft: #081624;
  --surface: rgba(7, 20, 34, 0.72);
  --surface-strong: rgba(8, 23, 39, 0.92);
  --surface-soft: rgba(16, 39, 62, 0.68);
  --line: rgba(124, 215, 255, 0.12);
  --line-strong: rgba(124, 215, 255, 0.28);
  --text: #eef9ff;
  --muted: #98b4c9;
  --muted-strong: #cce1ef;
  --accent: #19e3ff;
  --accent-2: #4f8cff;
  --accent-3: #86f6ff;
  --success: #2ce6a7;
  --success-soft: rgba(44, 230, 167, 0.14);
  --warn: #ffbf52;
  --warn-soft: rgba(255, 191, 82, 0.14);
  --danger: #ff6f91;
  --danger-soft: rgba(255, 111, 145, 0.14);
  --shadow-xl: 0 18px 48px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #071624 0%, #020913 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  overflow-x: hidden;
}

body.is-ready {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: auto;
  pointer-events: none;
}

.bg-grid {
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 28, 45, 0), rgba(2, 9, 19, 0.8));
}

.site-shell {
  position: relative;
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(137, 228, 255, 0.22);
  box-shadow: 0 18px 40px rgba(15, 83, 147, 0.28);
  backdrop-filter: blur(18px);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.brand-copy strong,
.section-heading h2,
.hero-copy h1,
.modal-head h3,
.submission-title,
.server-chip-copy strong {
  font-family: "Sora", sans-serif;
}

.brand-kicker,
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
  color: #b0f4ff;
}

.brand-copy strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 13px;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(44, 230, 167, 0.45);
  animation: pulse 2.2s infinite;
}

.ghost-btn,
.primary-btn,
.icon-btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.ghost-btn::after,
.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 48%, transparent 100%);
  transition: transform 0.55s ease;
}

.ghost-btn:hover::after,
.primary-btn:hover::after {
  transform: translateX(120%);
}

.ghost-btn:hover,
.primary-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 235, 255, 0.34);
  box-shadow: 0 16px 32px rgba(6, 15, 26, 0.28);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  text-decoration: none;
}

.subtle-btn {
  background: rgba(255, 255, 255, 0.035);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-color: rgba(122, 231, 255, 0.28);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111a;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(25, 227, 255, 0.24);
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 18px;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
}

.hero-column,
.side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  align-items: start;
}

.panel-sheen,
.panel-block,
.hero-card,
.modal {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
}

.panel-sheen::after,
.hero-card::after,
.panel-block::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  pointer-events: none;
}

.hero-card,
.auth-card,
.panel-block {
  padding: 20px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 20px;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker-row,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.slug-chip,
.status-pill,
.modal-banner-pill,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slug-chip {
  background: rgba(25, 227, 255, 0.12);
  color: #aaf5ff;
  border: 1px solid rgba(122, 235, 255, 0.2);
}

.hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.05;
}

.hero-intro,
.server-chip-copy span,
.section-note,
.answer-row span,
.message-meta,
.lock-note,
.empty-state,
.footer-note,
.modal-description,
.toggle-row {
  color: var(--muted);
}

.hero-intro {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-stat-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-stat-label,
.hero-stat-note,
.field-note,
.field-hint {
  display: block;
  font-size: 12px;
}

.hero-stat-label {
  color: #b0d8ef;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.hero-stat-card strong {
  display: block;
  margin: 8px 0 6px;
  font-family: "Sora", sans-serif;
  font-size: 26px;
}

.hero-stat-note {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 230px;
  display: grid;
  gap: 12px;
  place-items: center;
}

.hero-logo-glow {
  position: absolute;
  inset: 14% 15%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(25, 227, 255, 0.28), transparent 70%);
  filter: blur(18px);
  animation: pulse-slow 5s ease-in-out infinite;
}

.hero-logo-frame {
  width: min(100%, 210px);
  aspect-ratio: 1 / 1;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(135, 233, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 62px rgba(4, 10, 20, 0.36);
  position: relative;
  z-index: 1;
}

.hero-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(25, 227, 255, 0.18));
}

.server-chip {
  position: static;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(5, 15, 26, 0.72);
  border: 1px solid rgba(124, 215, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.server-chip .server-avatar {
  display: none;
}

.server-avatar,
.viewer-avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #0b3350, #1c8cff);
  box-shadow: 0 16px 34px rgba(13, 80, 145, 0.22);
}

.server-avatar img,
.viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-chip-copy strong {
  display: block;
  font-size: 19px;
  margin-bottom: 5px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 25px;
}

.auth-card {
  min-height: 0;
}

.viewer-panel-grid,
.viewer-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.viewer-panel-grid {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.viewer-panel-copy h2 {
  margin: 8px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 26px;
}

.viewer-panel-copy p,
.viewer-status-note,
.submission-meta,
.message-body {
  margin: 0;
  line-height: 1.65;
}

.viewer-status-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.viewer-stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 215, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.viewer-stat strong {
  display: block;
  font-family: "Sora", sans-serif;
  margin-bottom: 4px;
}

.status-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.status-card--neutral {
  background: rgba(255, 255, 255, 0.025);
}

.status-card--good {
  background: var(--success-soft);
  border-color: rgba(44, 230, 167, 0.2);
}

.status-card--warn {
  background: var(--warn-soft);
  border-color: rgba(255, 191, 82, 0.24);
}

.status-card--bad {
  background: var(--danger-soft);
  border-color: rgba(255, 111, 145, 0.22);
}

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-banner__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.status-banner__copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.status-card__list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.punishment-row,
.form-card,
.submission-card,
.message-chip,
.answer-row,
.process-step {
  border: 1px solid rgba(124, 215, 255, 0.1);
  background: var(--surface-strong);
}

.punishment-row,
.answer-row,
.process-step {
  border-radius: 18px;
  padding: 15px 16px;
}

.punishment-row__top,
.submission-card__top,
.message-chip__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.punishment-row__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pill--bad {
  background: rgba(255, 111, 145, 0.14);
  color: #ffc0cf;
}

.pill--warn {
  background: rgba(255, 191, 82, 0.14);
  color: #ffe3af;
}

.pill--good {
  background: rgba(44, 230, 167, 0.14);
  color: #b6ffe0;
}

.forms-list,
.submissions-list,
.answer-list,
.message-list,
.process-list {
  display: grid;
  gap: 14px;
}

.form-card,
.submission-card,
.message-chip {
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.form-card:hover,
.submission-card:hover {
  transform: translateY(-3px);
  border-color: rgba(145, 235, 255, 0.22);
}

.form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.form-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(25, 227, 255, 0.12), rgba(79, 140, 255, 0.08));
  border: 1px solid rgba(124, 215, 255, 0.14);
  flex-shrink: 0;
}

.form-card h3,
.submission-title {
  margin: 0 0 6px;
  font-size: 21px;
}

.form-copy p {
  margin: 0;
  line-height: 1.65;
}

.form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 215, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c7e6f7;
  font-size: 12px;
  font-weight: 700;
}

.tag--eligible {
  border-color: rgba(44, 230, 167, 0.2);
  background: rgba(44, 230, 167, 0.11);
  color: #baffdf;
}

.form-card--eligible {
  border-color: rgba(44, 230, 167, 0.24);
  background:
    linear-gradient(180deg, rgba(44, 230, 167, 0.055), rgba(8, 23, 39, 0.92));
}

.form-card--locked {
  background: rgba(8, 23, 39, 0.78);
}

.lock-note {
  margin-top: 10px;
  font-size: 14px;
}

.form-submit-btn {
  min-width: 160px;
}

.status-pill {
  border: 1px solid rgba(124, 215, 255, 0.1);
}

.status-pill--pending {
  background: rgba(255, 191, 82, 0.14);
  color: #ffe3af;
}

.status-pill--accepted {
  background: rgba(44, 230, 167, 0.14);
  color: #baffdf;
}

.status-pill--rejected {
  background: rgba(255, 111, 145, 0.14);
  color: #ffc7d4;
}

.submission-card summary {
  cursor: pointer;
  color: #b1f4ff;
  font-weight: 700;
}

.submission-details {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.message-chip {
  background: rgba(255, 255, 255, 0.028);
}

.message-chip--system {
  border-color: rgba(124, 215, 255, 0.12);
}

.message-chip--moderator {
  border-color: rgba(79, 140, 255, 0.2);
}

.message-chip--user {
  border-color: rgba(44, 230, 167, 0.18);
}

.message-body {
  margin-top: 10px;
  color: var(--muted-strong);
}

.reply-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field,
.appeal-form {
  display: grid;
  gap: 12px;
}

.field label {
  font-weight: 700;
}

.field-note {
  color: var(--muted);
}

.field input,
.field textarea,
.field select,
.reply-form textarea {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(124, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.reply-form textarea:focus {
  outline: none;
  border-color: rgba(122, 235, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(25, 227, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.toggle-row--card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(124, 215, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.side-panel-tall {
  min-height: 330px;
}

.process-panel p {
  margin: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.process-index {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  color: var(--accent);
  background: rgba(25, 227, 255, 0.08);
  border: 1px solid rgba(124, 215, 255, 0.12);
}

.process-step strong {
  display: block;
  margin-bottom: 6px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(1, 8, 16, 0.66);
  backdrop-filter: blur(14px);
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: min(820px, calc(100vw - 24px));
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.modal-head h3 {
  margin: 6px 0 0;
  font-size: 30px;
}

.modal-description {
  margin: 12px 0 0;
  line-height: 1.7;
}

.modal-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.modal-banner-pill {
  border: 1px solid rgba(124, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #cfeffc;
}

.appeal-form {
  gap: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 215, 255, 0.14);
  background: rgba(7, 20, 34, 0.95);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

.hidden {
  display: none !important;
}

.hero-card,
.auth-card,
.panel-block,
.form-card,
.submission-card,
.process-step {
  animation: rise-in 0.55s ease both;
}

.hero-card { animation-delay: 0.03s; }
.auth-card { animation-delay: 0.08s; }
.panel-block { animation-delay: 0.12s; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -14px, 0) scale(1.04); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 230, 167, 0.42); }
  70% { box-shadow: 0 0 0 11px rgba(44, 230, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 230, 167, 0); }
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(0.94); opacity: 0.45; }
  50% { transform: scale(1.02); opacity: 0.72; }
}

@media (max-width: 1180px) {
  .public-layout,
  .hero-card,
  .hero-secondary-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .bg-orb {
    display: none;
  }

  .site-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 18px;
    overflow: hidden;
  }

  .site-topbar,
  .topbar-actions,
  .form-card,
  .status-banner,
  .punishment-row__top,
  .submission-card__top,
  .modal-actions {
    align-items: stretch;
  }

  .status-banner,
  .punishment-row__top,
  .submission-card__top,
  .modal-actions {
    flex-direction: column;
  }

  .site-topbar {
    flex-direction: column;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .topbar-signal {
    justify-content: center;
  }

  .site-topbar,
  .topbar-actions,
  .brand-lockup,
  .hero-card,
  .auth-card,
  .panel-block,
  .form-card,
  .submission-card,
  .message-chip,
  .process-step {
    min-width: 0;
    max-width: 100%;
  }

  .site-topbar,
  .topbar-actions {
    width: 100%;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong,
  .hero-copy h1,
  .section-heading h2,
  .form-card h3,
  .submission-title {
    overflow-wrap: anywhere;
  }

  .form-card {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .viewer-status-bar {
    grid-template-columns: 1fr;
  }

  .form-submit-btn,
  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .form-submit-btn {
    min-width: 0;
    min-height: 46px;
    padding: 12px 14px;
  }

  .server-chip {
    position: static;
    margin-top: 18px;
  }

  .modal {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
