:root {
  --bg-primary: #0c0c0d;
  --bg-secondary: rgba(15, 17, 18, 0.75);
  --bg-tertiary: #0f1112;
  --bg-hover: #1a1d20;
  --accent-primary: #ef4444;
  --accent-secondary: #be123c;
  --accent-glow: rgba(239, 68, 68, 0.35);
  --accent-subtle: rgba(239, 68, 68, 0.12);
  --text-primary: #e6e6e6;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  --success: #34d399;
  --error: #ef4444;
  --warning: #f59e0b;
  --border-primary: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(239, 68, 68, 0.35);
  --lobby2: #be123c;
  --warzone: #ef4444;
  --custom: #34d399;
}

* {
  box-sizing: border-box;
  user-select: none !important;
  -webkit-user-select: none !important;
}

html, body {
  color: var(--text-primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--bg-primary), #070707 60%);
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

.topbar-discord {
  margin-left: auto;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.16);
  color: #dbe3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.topbar-discord:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: rgba(88, 101, 242, 0.8);
  color: #ffffff;
}

.topbar-discord-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 12px;
}

.topbar-discord-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.topbar-buy {
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(244, 63, 94, 0.6);
  background: rgba(244, 63, 94, 0.16);
  color: #ffd7de;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.topbar-buy:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.86);
  color: #ffffff;
}

.topbar-buy-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 12px;
}

.topbar-buy-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.brand-sub {
  margin-left: 6px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar {
  flex-wrap: nowrap;
}

.topbar-links {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: nowrap;
    padding: 4px 6px;
  }

  .topbar-links {
    width: auto;
    display: inline-flex;
    grid-template-columns: none;
    margin-left: auto;
    flex-wrap: nowrap;
  }

  .topbar-discord {
    margin-left: 0;
    width: auto;
  }

  .topbar-buy {
    width: auto;
  }

  .brand-sub {
    display: none;
  }
}

/* Unified footer (matches order-now page) */
.bottom-logo {
  margin: 18px auto 30px;
  width: min(1140px, calc(100% - 24px));
  border-top: 1px solid var(--border-primary);
  padding-top: 18px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.bottom-logo-link {
  display: inline-flex;
  text-decoration: none;
}

.bottom-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.3;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.footer-legal a:hover {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.45);
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  line-height: 1;
}

.footer-contact {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.footer-contact a:hover {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.45);
}

.bottom-copyright {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
