/* Footer, nav mini-actions, purchase modal, legal modals */

/* ── Auth nav (no flicker until session resolved) ─────────── */
body.auth-pending #loginBtn,
body.auth-pending #navUserMenu {
  pointer-events: none;
}

body.auth-pending #navUserMenu {
  display: none !important;
}

html.nick-known body.auth-pending #loginBtn {
  display: none !important;
}

html.nick-known body.auth-pending #navUserMenu {
  display: flex !important;
  visibility: visible;
}

body.auth-guest #loginBtn {
  display: inline-flex;
}

body.auth-guest #navUserMenu {
  display: none !important;
}

body.auth-logged-in #loginBtn {
  display: none !important;
}

body.auth-logged-in #navUserMenu {
  display: flex !important;
}


/* ── Site locations ───────────────────────────────────────── */
.site-locations {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
  gap: 0;
  margin-right: auto;
  padding: 0;
  background: none;
  border: 0;
}

.site-loc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  padding: 0 1.05rem;
  border-radius: 0;
  color: var(--c-text-3);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  background: transparent;
}

.site-loc:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
}

.site-loc.is-here {
  color: #f3d7a1;
  background: transparent;
}

html[data-season="winter"] .site-loc.is-here {
  color: #d7e6ff;
}

.site-loc.is-here::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.site-loc .nav-ticket-badge {
  position: static;
  min-width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .site-loc { padding: 0 0.6rem; font-size: 0.75rem; }
  .site-loc.is-here::after { left: 0.4rem; right: 0.4rem; }
  .nav-profile-name, .nav-profile-balance { display: none; }
  .nav-profile-avatar { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
  .nav-profile-avatar-icon { width: 36px; height: 36px; background: transparent; }
}

/* ── Nav mini buttons ─────────────────────────────────────── */
.nav-mini-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.35rem;
}

.nav-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  white-space: nowrap;
}

.nav-mini-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-mini-btn:hover {
  color: var(--c-text);
  border-color: rgba(91, 140, 255, 0.35);
  background: rgba(91, 140, 255, 0.1);
}

.nav-mini-btn--ticket:hover {
  border-color: rgba(0, 224, 255, 0.35);
  background: rgba(0, 224, 255, 0.08);
  color: #a5f3fc;
}

.nav-mini-btn--ticket {
  position: relative;
}

.nav-ticket-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  box-shadow: 0 0 0 2px rgba(23, 26, 34, 0.9);
}

/* ── Site footer ──────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(24, 26, 34, 0.92);
  backdrop-filter: blur(20px);
}

.site-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--c-text);
}

.site-footer-logo .logo-icon { width: 22px; height: 22px; }

.site-footer-tagline {
  font-size: 0.75rem;
  color: var(--c-text-4);
  max-width: 220px;
  line-height: 1.4;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.site-footer-links a,
.site-footer-links button.footer-link-btn,
.site-footer-links a.footer-link-btn {
  font-size: 0.8125rem;
  color: var(--c-text-3);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}

.site-footer-links a:hover,
.site-footer-links button.footer-link-btn:hover,
.site-footer-links a.footer-link-btn:hover {
  color: var(--c-brand-2, #5b8cff);
}

.site-footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--c-text-4);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.has-site-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}

body.has-site-footer .site-footer {
  margin-top: auto;
}

body.has-site-footer main,
body.has-site-footer .main-content {
  padding-bottom: 1rem;
}

/* ── Purchase modal ─────────────────────────────────────────── */
.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.purchase-modal.is-open {
  display: flex;
}

.purchase-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.purchase-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, rgba(14, 16, 28, 0.98) 0%, rgba(8, 8, 14, 0.99) 100%);
  border: 1px solid rgba(91, 140, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(91, 140, 255, 0.08);
  padding: 1.35rem 1.35rem 1.25rem;
  animation: purchaseModalIn 0.28s var(--ease-smooth);
}

@keyframes purchaseModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.purchase-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text-3);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}

.purchase-modal-close:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
}

.purchase-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.purchase-modal-badge--nfa {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.purchase-modal-badge--mfa {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.purchase-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 2rem 0.25rem 0;
  line-height: 1.25;
}

.purchase-modal-sub {
  font-size: 0.8125rem;
  color: var(--c-text-4);
  margin: 0 0 1.1rem;
}

.purchase-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.purchase-stat {
  padding: 0.65rem 0.75rem;
  background: rgba(8, 12, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.purchase-stat-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-4);
  margin-bottom: 0.2rem;
}

.purchase-stat-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.purchase-stat-value--price {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.purchase-qty-block {
  margin-bottom: 1rem;
}

.purchase-qty-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.purchase-qty-label-row label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-2);
}

.purchase-qty-max {
  font-size: 0.75rem;
  color: var(--c-text-4);
}

.purchase-qty-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.purchase-qty-btn {
  width: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.08);
  color: var(--c-text);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.purchase-qty-btn:hover:not(:disabled) {
  background: rgba(91, 140, 255, 0.18);
  border-color: rgba(91, 140, 255, 0.45);
}

.purchase-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.purchase-qty-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  background: rgba(5, 8, 18, 0.9);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 10px;
  padding: 0.55rem 0.5rem;
  outline: none;
  -moz-appearance: textfield;
}

.purchase-qty-input::-webkit-outer-spin-button,
.purchase-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.purchase-qty-input:focus {
  border-color: rgba(0, 224, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

.purchase-qty-input.is-invalid {
  border-color: rgba(239, 68, 68, 0.55);
}

.purchase-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  margin-bottom: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.purchase-total-label {
  font-size: 0.875rem;
  color: var(--c-text-3);
}

.purchase-total-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.purchase-modal .purchase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
}

/* Register legal checkboxes */
.register-legal {
  margin: 0.25rem 0 0.85rem;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--c-text-3);
  line-height: 1.45;
}

.legal-check input {
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: #5b8cff;
  flex-shrink: 0;
  cursor: pointer;
}

.legal-check a,
.legal-check button.inline-legal-link {
  color: #7eb6ff;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.register-submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.modal-form[hidden] {
  display: none !important;
}

.field-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--c-text-3);
}

.reg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text-3);
  font-size: 0.8125rem;
  cursor: pointer;
}

.reg-back span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-back:hover { color: var(--c-text); border-color: rgba(91, 140, 255, 0.45); }

.pw-field { position: relative; }
.pw-field input { padding-right: 2.6rem; }

.pw-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  padding: 0.2rem;
  border: none;
  background: none;
  color: var(--c-text-3);
  cursor: pointer;
}

.pw-toggle:hover { color: var(--c-text); }

.pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.pw-rules li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--c-text-3);
  transition: color 0.18s;
}

.pw-rules li.is-met { color: #22c55e; }

.pw-mark {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.pw-rules li.is-met .pw-mark {
  background: #22c55e;
  border-color: #22c55e;
}

.pw-rules li.is-met .pw-mark::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid #04140c;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.forgot-link {
  align-self: flex-end;
  margin-top: -0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.modal.is-dissolving .modal-backdrop {
  animation: authVeilOut 0.95s ease forwards;
}

.modal.is-dissolving .modal-content {
  overflow: visible;
  animation: authInkOut 0.95s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
  pointer-events: none;
}

.modal.is-dissolving .modal-content::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  z-index: 6;
  pointer-events: none;
  border-radius: 46% 54% 42% 58% / 52% 38% 62% 48%;
  background:
    radial-gradient(closest-side, rgba(91, 140, 255, 0.55), transparent 72%),
    radial-gradient(circle at 28% 72%, rgba(0, 224, 255, 0.38), transparent 62%),
    radial-gradient(circle at 74% 24%, rgba(91, 140, 255, 0.28), transparent 58%);
  transform: translate(-50%, -50%) scale(0.12);
  animation: authBlot 0.95s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

@keyframes authInkOut {
  0% { opacity: 1; transform: scale(1); filter: blur(0); border-radius: var(--r-xl); }
  38% { opacity: 0.92; transform: scale(1.04); filter: blur(0.4px); border-radius: 42% 58% 48% 52% / 46% 40% 60% 54%; }
  100% { opacity: 0; transform: scale(1.2); filter: blur(16px); border-radius: 50%; }
}

@keyframes authBlot {
  0% { opacity: 0.15; transform: translate(-50%, -50%) scale(0.12); }
  28% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.55); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.15); }
}

@keyframes authVeilOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Info / ticket modals */
.chrome-modal .modal-content {
  max-width: 440px;
}

.info-modal .info-modal-content {
  max-width: 400px;
  padding-bottom: 1.1rem;
}

.info-modal-head {
  margin-bottom: 0.25rem;
}

.info-modal-head h2 {
  margin-bottom: 0.15rem;
}

.info-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chrome-modal-body {
  font-size: 0.875rem;
  color: var(--c-text-3);
  line-height: 1.55;
}

.info-about-card {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.1) 0%, rgba(0, 224, 255, 0.05) 100%);
  border: 1px solid rgba(91, 140, 255, 0.18);
}

.info-about-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 0.35rem;
}

.info-about-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-text-3);
}

.info-section-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-4);
}

.info-help-card .info-section-label {
  margin-bottom: 0.3rem;
}

.info-social-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.info-social-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text-2);
  transition: all 0.2s var(--ease-smooth);
}

.info-social-chip.is-pending {
  opacity: 0.72;
  cursor: default;
}

.info-social-chip:not(.is-pending):hover {
  transform: translateY(-1px);
}

.info-social-chip--discord:not(.is-pending):hover {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.12);
  color: #c4b5fd;
}

.info-social-chip--telegram:not(.is-pending):hover {
  border-color: rgba(34, 158, 217, 0.45);
  background: rgba(34, 158, 217, 0.1);
  color: #7dd3fc;
}

.info-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-social-chip--discord .info-social-icon {
  color: #5865f2;
}

.info-social-chip--telegram .info-social-icon {
  color: #229ed9;
}

.info-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.info-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 18, 0.55);
  transition: border-color 0.15s, background 0.15s;
}

.info-link-card:hover {
  border-color: rgba(91, 140, 255, 0.3);
  background: rgba(91, 140, 255, 0.08);
}

.info-link-card--legal:hover {
  border-color: rgba(0, 224, 255, 0.25);
}

.info-link-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text);
}

.info-link-desc {
  font-size: 0.6875rem;
  color: var(--c-text-4);
}

.info-help-card {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 12, 0.6);
}

.info-help-text {
  margin: 0;
  font-size: 0.75rem;
  color: var(--c-text-3);
  line-height: 1.45;
}

.info-tg-links {
  margin-top: 0.55rem;
}

.info-tg-links .info-tg-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.legal-tg-pending {
  pointer-events: none;
  opacity: 0.55;
  cursor: default;
}

/* ── User tickets modal ───────────────────────────────────── */
.ticket-modal .ticket-modal-content {
  max-width: min(92vw, 620px);
  width: 100%;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
}

.ticket-modal-body {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(92vh - 7.5rem);
  min-height: 360px;
  padding-right: 0.15rem;
  max-width: 100%;
}

.ticket-modal-body.is-loading {
  opacity: 0.72;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.ticket-list-item {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 20, 0.55);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: inherit;
  font: inherit;
}

.ticket-list-item:hover {
  border-color: rgba(91, 140, 255, 0.3);
  background: rgba(91, 140, 255, 0.08);
}

.ticket-list-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.ticket-list-subject {
  font-weight: 600;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-list-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--c-text-4);
}

.ticket-pill {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.ticket-pill--open {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
}

.ticket-pill--resolved {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
}

.ticket-pill--closed {
  color: var(--c-text-4);
  background: rgba(255, 255, 255, 0.06);
}

.ticket-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b8cff;
  flex-shrink: 0;
}

.ticket-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.ticket-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-3);
}

.ticket-field select,
.ticket-field input,
.ticket-field textarea,
.ticket-reply-form textarea,
#adminTicketReplyText {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 18, 0.9);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.875rem;
}

.ticket-field textarea,
.ticket-reply-form textarea,
#ticketMessage,
#ticketReplyText {
  resize: none;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.65rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  min-height: 0;
}

.ticket-modal .ticket-thread {
  flex: none;
  height: min(48vh, 420px);
  max-height: min(48vh, 420px);
  min-height: min(48vh, 420px);
}

.ticket-msg {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-msg--user {
  background: rgba(91, 140, 255, 0.08);
  margin-right: 1.5rem;
}

.ticket-msg--staff {
  background: rgba(0, 224, 255, 0.06);
  border-color: rgba(0, 224, 255, 0.15);
  margin-left: 1.5rem;
}

.ticket-msg-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--c-text-4);
  margin-bottom: 0.35rem;
}

.ticket-msg-body {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.ticket-back-link {
  background: none;
  border: none;
  color: #7eb6ff;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.5rem;
}

.ticket-empty,
.ticket-loading,
.ticket-closed-note {
  font-size: 0.8125rem;
  color: var(--c-text-4);
  text-align: center;
  padding: 0.75rem;
}

.ticket-panel-placeholder {
  min-height: 200px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-panel-placeholder--tall {
  min-height: 280px;
}

.ticket-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .nav-mini-actions .nav-mini-btn span {
    display: none;
  }
  .nav-mini-btn {
    padding: 0.45rem;
  }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
