:root {
  --bg: #0b0b0e;
  --bg-soft: #111116;
  --panel: #15151b;
  --panel-2: #1a1a22;
  --text: #f6f4f7;
  --muted: #aaa6b1;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #ff6b35;
  --accent-2: #ff8a5f;
  --accent-dark: #d94916;
  --success: #6ee7a8;
  --radius: 20px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 107, 53, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 35%, rgba(255, 107, 53, 0.07), transparent 24rem), var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wallet-address {
  display: block;
  margin-top: 4px;
  color: #d9d4de;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 14, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.12rem;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.4rem;
  transform: translateY(-1px);
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.84rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: 0.2s ease;
}

.hero {
  padding: 104px 0 86px;
  min-height: 760px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 76px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(110, 231, 168, 0.09);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 26px;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 26px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.83rem;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button:focus-visible,
.text-button:focus-visible,
.icon-button:focus-visible,
.admin-ticket-card:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button.points-needed:disabled {
  color: #fff;
  opacity: 1;
}

.button-primary {
  background: var(--accent);
  color: #160904;
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.19);
}

.button-primary:hover {
  background: var(--accent-2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.button-light {
  background: #fff;
  color: #151515;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #817d88;
  font-size: 0.72rem;
}

.hero-notes span::before {
  content: '•';
  color: var(--accent);
  margin-right: 7px;
}

.terminal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(17, 17, 22, 0.94);
  transform: rotate(1deg);
}

.terminal-top {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: #77727e;
  font-size: 0.72rem;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #302f36;
}

.terminal-body {
  min-height: 405px;
  padding: 34px;
  color: #d9d4de;
  font-size: 0.89rem;
}

.terminal-body p {
  margin-bottom: 13px;
}

.terminal-muted {
  color: #716d78;
}

.terminal-label {
  color: var(--accent-2);
  display: inline-block;
  min-width: 100px;
}

.terminal-good {
  color: var(--success);
}

.terminal-comment {
  color: #786b68;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.trust-grid {
  min-height: 122px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.trust-grid div:first-child {
  border-left: 1px solid var(--line);
}

.trust-grid strong {
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.7rem;
}

.section {
  padding: 112px 0;
}

.section-dark {
  background: #0e0e12;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.community-card h2 {
  margin: 16px 0 18px;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.section-heading p,
.community-card p {
  color: var(--muted);
  max-width: 690px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.download-card,
.checklist-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-radius: var(--radius);
}

.feature-card {
  min-height: 240px;
  padding: 28px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.18);
  font-size: 0.75rem;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 11px;
  letter-spacing: -0.03em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.78rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card {
  position: relative;
  padding: 28px;
}

.download-card.featured {
  border-color: rgba(255, 107, 53, 0.38);
  box-shadow: 0 18px 55px rgba(255, 107, 53, 0.08);
}

.download-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(255, 107, 53, 0.25);
  font-size: 0.6rem;
  font-weight: 700;
}

.platform-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.platform-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #202028;
  font-size: 1.2rem;
}

.platform-row h3 {
  margin-bottom: 3px;
}

.platform-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.file-name {
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.installer-name {
  margin: 11px 0 24px;
  color: #7f7a85;
  font-size: 0.65rem;
}

.download-card .button {
  width: 100%;
}

.release-note {
  margin-top: 24px;
  padding: 22px 24px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.release-note div {
  display: flex;
  flex-direction: column;
}

.release-note strong {
  font-size: 0.78rem;
}

.release-note span {
  color: var(--muted);
  font-size: 0.68rem;
}

.release-note a,
.text-link {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.checklist-card {
  padding: 12px 28px;
}

.check-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row > span {
  color: var(--success);
  font-weight: 800;
}

.check-row strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.83rem;
}

.check-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.community-section {
  padding: 0 0 112px;
}

.community-card {
  padding: 58px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, #e95019, #ff7542);
  color: #140906;
}

.community-card .section-kicker {
  color: #4d1807;
}

.community-card p {
  color: rgba(20, 9, 6, 0.7);
  margin-bottom: 0;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  max-width: 720px;
}

.site-footer {
  padding: 70px 0 32px;
  border-top: 1px solid var(--line);
  background: #09090c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 40px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-grid p {
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #68646f;
  font-size: 0.62rem;
}

@media (max-width: 940px) {
  .hero-grid,
  .transparency-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero {
    padding-top: 78px;
  }

  .terminal-card {
    transform: none;
  }

  .feature-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 26px, 1160px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .menu-toggle {
    position: relative;
    z-index: 1102;
    display: block;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    min-height: 100dvh;
    padding: 96px 26px 40px;
    background: #09090c;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  body.menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    color: var(--text);
    font-size: 1rem;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 16px;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .hero {
    min-height: auto;
    padding: 64px 0 70px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-actions,
  .release-note,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-notes {
    gap: 10px 14px;
  }

  .terminal-body {
    min-height: 330px;
    padding: 24px 20px;
    font-size: 0.74rem;
    overflow-x: auto;
  }

  .trust-grid,
  .feature-grid,
  .download-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:first-child {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 82px 0;
  }

  .community-section {
    padding-bottom: 82px;
  }

  .community-card {
    padding: 34px 26px;
  }

  .community-card .button {
    width: 100%;
  }

  .footer-bottom {
    text-align: left;
  }
}

.downloadButton {
  width: 100%;
  font-family: inherit;
}

.downloadButton:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.legalPage {
  min-height: calc(100vh - 76px);
  padding: 90px 0;
}

.legalContent {
  max-width: 820px;
}

.legalContent h1 {
  margin: 16px 0 28px;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.legalContent p {
  color: var(--muted);
  max-width: 760px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .container {
    width: min(100% - 36px, 1160px);
  }

  .nav-links {
    gap: 18px;
    font-size: 0.78rem;
  }

  .hero-grid {
    gap: 46px;
  }

  .feature-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .container {
    width: min(1240px, calc(100% - 64px));
  }

  .hero-grid {
    gap: 96px;
  }
}

.hero-notes span::before {
  content: '\2022';
}
details[open] summary::after {
  content: '\2212';
}

.page-shell {
  min-height: calc(100vh - 76px);
  padding: 92px 0 116px;
}
.page-heading {
  max-width: 880px;
  margin-bottom: 58px;
}
.page-heading h1,
.auth-panel h1,
.dashboard-heading h1 {
  margin: 18px 0 22px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}
.page-heading p,
.auth-panel p,
.dashboard-heading p {
  max-width: 760px;
  color: var(--muted);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.mode-card {
  position: relative;
  min-height: 420px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.community-mode {
  border-color: rgba(255, 107, 53, 0.35);
}
.mode-number {
  position: absolute;
  right: 24px;
  top: 9px;
  color: rgba(255, 255, 255, 0.045);
  font-size: 6rem;
  font-weight: 800;
}
.mode-tag,
.reward-type {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--accent-2);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid rgba(255, 107, 53, 0.2);
  background: rgba(255, 107, 53, 0.08);
  border-radius: 999px;
}
.mode-card h3 {
  max-width: 560px;
  margin: 34px 0 18px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.mode-card p {
  color: var(--muted);
  font-size: 0.82rem;
}
.plain-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: #c4c0c9;
  font-size: 0.75rem;
}
.plain-list li::before {
  content: '\2713';
  margin-right: 10px;
  color: var(--success);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.process-grid article,
.reward-preview-grid article,
.metrics-grid article,
.reward-catalog-card,
.status-board > div {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 16px;
}
.process-grid article > span,
.reward-preview-grid article > span {
  color: var(--accent-2);
  font-size: 0.73rem;
  font-weight: 800;
}
.process-grid h3,
.reward-preview-grid h3 {
  margin: 34px 0 10px;
}
.process-grid p,
.reward-preview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.reward-preview-grid,
.reward-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.security-callout,
.formula-card,
.notice {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(255, 107, 53, 0.25);
  background: rgba(255, 107, 53, 0.055);
  border-radius: 14px;
}
.security-callout p,
.notice {
  color: var(--muted);
  font-size: 0.72rem;
}
.security-callout p {
  margin: 8px 0 0;
}
.formula-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.formula-card span {
  color: var(--muted);
}
.formula-card b {
  color: var(--accent);
  font-size: 1.4rem;
}
.formula-card strong {
  color: var(--success);
}
.catalog-heading {
  margin-top: 90px;
}
.reward-catalog-card {
  min-height: 245px;
}
.reward-catalog-card > strong {
  display: block;
  margin: 26px 0 8px;
  color: var(--accent-2);
}
.reward-catalog-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}
.reward-catalog-card p {
  color: var(--muted);
  font-size: 0.73rem;
}
.reward-catalog-card small {
  color: #706c76;
}
.reward-catalog-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.reward-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 53, 0.28);
  background: rgba(255, 255, 255, 0.038);
}
.reward-catalog-card.coming-soon {
  opacity: 0.72;
}
.reward-catalog-card .button {
  width: 100%;
  margin-top: 18px;
}
.reward-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.availability-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.availability-badge.ready {
  color: var(--success);
  background: rgba(110, 231, 168, 0.08);
  border: 1px solid rgba(110, 231, 168, 0.18);
}
.availability-badge.soon {
  color: #c0bbc5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.auth-panel {
  max-width: 800px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 107, 53, 0.08), rgba(255, 255, 255, 0.015));
}
.auth-panel h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}
.auth-panel .notice {
  margin-bottom: 0;
}
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}
.dashboard-heading h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metrics-grid article {
  min-height: 130px;
}
.metrics-grid article span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
}
.metrics-grid article strong {
  display: block;
  margin-top: 22px;
  color: var(--accent-2);
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}
.metrics-grid article .small-value {
  font-size: 0.78rem;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  margin-top: 18px;
}
.dashboard-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-rewards,
.progress-panel {
  margin-top: 18px;
}
.progress-track {
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d0d11;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2));
  transition: width 0.4s ease;
}
.compact-notice {
  margin: 16px 0 0;
  padding: 14px 16px;
}
.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.panel-title h2 {
  margin: 0;
  font-size: 1.2rem;
}
.panel-title span {
  color: var(--muted);
  font-size: 0.62rem;
}
.worker-row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}
.worker-row:last-child {
  border: 0;
}
.worker-row div {
  display: flex;
  flex-direction: column;
}
.worker-row small {
  color: var(--muted);
}
.worker-state {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #68646f;
}
.worker-state.online {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(110, 231, 168, 0.08);
}
.worker-state.offline {
  background: #67636e;
}
.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
}
.ledger-list .positive {
  color: var(--success);
}
.ledger-list .negative {
  color: #ff8678;
}
.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.text-button {
  padding: 4px 0;
  color: var(--accent-2);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.ticket-list {
  display: grid;
  gap: 10px;
}
.ticket-row {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.67rem;
}
.ticket-row div {
  display: flex;
  flex-direction: column;
}
.ticket-row small,
.ticket-row > span {
  color: var(--muted);
}
.ticket-row p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #d5d0d8;
}
.ticket-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-approved,
.status-completed {
  color: var(--success);
  border-color: rgba(110, 231, 168, 0.25);
  background: rgba(110, 231, 168, 0.06);
}
.status-rejected {
  color: #ff8678;
  border-color: rgba(255, 134, 120, 0.25);
  background: rgba(255, 134, 120, 0.06);
}
.status-assigned {
  color: var(--accent-2);
  border-color: rgba(255, 107, 53, 0.25);
}

.redeem-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  color: var(--text);
  border: 1px solid #3a3841;
  border-radius: 20px;
  background: #121218;
  box-shadow: var(--shadow);
}
.redeem-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}
.redeem-dialog form {
  padding: 30px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.dialog-heading h2 {
  margin: 10px 0 20px;
}
.icon-button {
  width: 38px;
  height: 38px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.4rem;
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.form-grid[hidden] {
  display: none;
}
.form-grid label,
.full-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.67rem;
}
.full-field {
  margin-top: 18px;
}
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid #34323b;
  border-radius: 9px;
  background: #0d0d12;
  font: inherit;
}
textarea {
  resize: vertical;
}
.delivery-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.form-error {
  min-height: 1.3em;
  color: #ff8678;
  font-size: 0.68rem;
}
.dialog-actions,
.ticket-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
}
.admin-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.65rem;
}
.admin-ticket-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
}
.admin-ticket-list {
  display: grid;
  gap: 9px;
  max-height: 760px;
  overflow-y: auto;
}
.admin-ticket-card {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 15px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}
.admin-ticket-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.045);
  transform: translateX(2px);
}
.admin-ticket-card.selected {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}
.admin-ticket-card small {
  color: var(--muted);
  font-size: 0.6rem;
}
.ticket-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.ticket-detail-heading h2 {
  margin: 10px 0 20px;
}
.ticket-facts {
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) 1fr;
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.66rem;
}
.ticket-facts dt,
.ticket-facts dd {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.ticket-facts dt {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  text-transform: capitalize;
}
.ticket-facts dt:last-of-type,
.ticket-facts dd:last-of-type {
  border-bottom: 0;
}
.private-data {
  border-color: rgba(255, 107, 53, 0.2);
}
.ticket-copy {
  padding: 13px;
  color: #d5d0d8;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.68rem;
}
.full-field small {
  color: #706c76;
}
.success-message {
  color: var(--success);
  font-size: 0.67rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 70px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 7px;
}
.docs-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  border-radius: 8px;
}
.docs-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.docs-content section {
  padding: 0 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.docs-content h2,
.legalContent h2 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
.docs-content p,
.docs-content li,
.legalContent li {
  color: var(--muted);
  font-size: 0.79rem;
}
.docs-content li,
.legalContent li {
  margin-bottom: 10px;
}
.status-board {
  display: grid;
  gap: 12px;
}
.status-board > div {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 14px;
}
.status-board small {
  color: var(--muted);
}
.draft-badge {
  display: block;
  margin-bottom: 24px;
  padding: 12px 14px;
  color: #ffd0bf;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 9px;
  background: rgba(255, 107, 53, 0.08);
}
.legal-updated {
  font-size: 0.68rem;
}
.legalContent h2 {
  margin-top: 42px;
}
.legalContent ul {
  padding-left: 22px;
}
.compact-footer {
  padding-top: 20px;
}

@media (max-width: 940px) {
  .process-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-columns,
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .admin-ticket-layout {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 68px 0 82px;
  }
  .mode-grid,
  .process-grid,
  .reward-preview-grid,
  .reward-catalog,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .mode-card {
    min-height: 0;
    padding: 28px 24px;
  }
  .dashboard-heading {
    flex-direction: column;
  }
  .worker-row {
    grid-template-columns: 12px 1fr;
  }
  .worker-row > span:not(.worker-state) {
    grid-column: 2;
  }
  .formula-card {
    flex-direction: column;
    gap: 12px;
  }
  .status-board > div {
    grid-template-columns: 16px 1fr;
  }
  .status-board small {
    grid-column: 2;
  }
  .docs-nav {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    padding: 28px 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .ticket-row {
    grid-template-columns: 1fr;
  }
  .ticket-row p {
    grid-column: 1;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ticket-facts {
    grid-template-columns: 1fr;
  }
  .ticket-facts dt,
  .ticket-facts dd {
    border-bottom: 1px solid var(--line);
  }
}
