@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #0a0c0f;
  --panel: #111417;
  --panel-alt: #0d0f12;
  --panel-hover: #161a1f;
  --line: #1e252d;
  --line-subtle: #161b21;
  --text: #e6edf4;
  --text-dim: #8a9aaa;
  --text-muted: #56677a;
  --accent: #00d0df;
  --accent-dim: #00a8b4;
  --accent-glow: rgba(0, 208, 223, 0.15);
  --accent-glow-strong: rgba(0, 208, 223, 0.25);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --discord: #5865f2;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: min(1200px, 92%);
  --header-h: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  /* Ambient top glow */
  background-image:
    radial-gradient(ellipse 1000px 400px at 70% -5%, rgba(0,208,223,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 600px 300px at 20% 30%, rgba(0,208,223,0.04) 0%, transparent 60%);
}

img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: var(--container);
  margin: 0 auto;
}

.site-main { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-subtle);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  min-width: 140px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.1s,
    box-shadow 0.2s,
    border-color 0.2s,
    background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn span { font-weight: 700; }

.btn-accent {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-color: rgba(0,208,223,0.4);
  color: #001e22;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-accent span { color: #001e22; }
.btn-accent:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px var(--accent-glow-strong);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost span { color: var(--text); }
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: #2a3540;
}

.btn-discord {
  background: var(--discord);
  border-color: rgba(88,101,242,0.5);
  color: #fff;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-discord span { color: #fff; }
.btn-discord:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(88,101,242,0.35);
}

:where(a, button).btn:focus-visible,
.nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,208,223,0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}
.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 44ch;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--panel-alt);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.hero__pill-icon {
  font-size: 0.7rem;
  opacity: 0.5;
}
.hero__pill--clickable {
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hero__pill--clickable:hover {
  border-color: #2a3540;
  background: var(--panel);
  color: var(--text);
}
.hero__pill--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Carousel container */
.hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 64px rgba(0,0,0,0.5);
}

/* Side fade overlays */
.hero__art::before,
.hero__art::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  pointer-events: none;
  z-index: 2;
}
.hero__art::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.hero__art::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.hero__art .glide {
  position: absolute;
  inset: 0;
}
.hero__art .glide__track {
  overflow: hidden;
  height: 100%;
}
.hero__art .glide__slides {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__art .glide__slide {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  backface-visibility: hidden;
}
.hero__art .glide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 6s ease;
}
.hero__art .glide__slide--active img {
  transform: scale(1);
}

/* Arrows */
.hero__art .glide__arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero__art .glide__arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,12,15,0.65);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  backdrop-filter: blur(6px);
}
.hero__art .glide__arrow--left { left: 14px; }
.hero__art .glide__arrow--right { right: 14px; }
.hero__art .glide__arrow:hover {
  background: rgba(10,12,15,0.85);
  border-color: rgba(255,255,255,0.25);
}
.hero__art .glide__arrow:active { transform: translateY(calc(-50% + 1px)); }
.hero__art .glide__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Bullets */
.hero__art .glide__bullets {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.hero__art .glide__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s;
}
.hero__art .glide__bullet--active {
  width: 20px;
  border-radius: 3px;
  background: var(--accent);
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features {
  padding: 0 0 40px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: rgba(0,208,223,0.2);
  background: var(--panel-hover);
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,208,223,0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}
.feature-card__title {
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}
.feature-card__desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   STATUS BAR
   ============================================================ */
.status {
  padding: 0 0 40px;
}
.status__bar {
  background: #161b22;
  border: 1px solid #2a3441;
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.status__server-name {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.status__divider {
  width: 1px;
  height: 18px;
  background: var(--line);
  flex-shrink: 0;
}
.status__tile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.status__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s;
}
.status__indicator.online {
  background: var(--success);
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
  animation: pulse-online 2.5s ease-in-out infinite;
}
.status__indicator.offline { background: var(--danger); }

@keyframes pulse-online {
  0%, 100% { box-shadow: 0 0 6px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 12px rgba(34,197,94,0.7); }
}

.status__connect {
  margin-left: auto;
}

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section {
  padding: 64px 0;
}
.section--alt {
  background: linear-gradient(180deg, rgba(0,208,223,0.03) 0%, transparent 50%);
}
.section__header {
  text-align: center;
  margin-bottom: 32px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section__desc {
  margin: 0 auto;
  color: var(--text-dim);
  max-width: 52ch;
  font-size: 0.95rem;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 20px 20px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color 0.2s;
}
.step:hover { border-color: rgba(0,208,223,0.15); }

/* Connector line between steps */
.steps > .step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(20px + 20px - 1px); /* padding-left + half icon width */
  bottom: -10px;
  width: 1px;
  height: 10px;
  background: var(--line);
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #001a1e;
  font-weight: 900;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.step__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}

.step__content { flex: 1; min-width: 0; }

.step__title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
}
.step__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.step__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.steps__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ============================================================
   DISCORD CONNECT
   ============================================================ */
.discord-connection {
  display: flex;
  align-items: center;
}

.discord-connected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: var(--radius-sm);
}

.discord-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(88,101,242,0.35);
  flex-shrink: 0;
}

.discord-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.discord-username {
  font-weight: 700;
  font-size: 0.8rem;
  color: #818cf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.btn-disconnect {
  background: none;
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--danger);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.btn-disconnect:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--danger);
}

/* ============================================================
   APPLICATION STATUS BADGES
   ============================================================ */
.application-section {
  display: flex;
  align-items: center;
}

#showApplicationForm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.8rem;
  min-width: 0;
}

.application-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-alt);
}
.status-icon { font-size: 1rem; line-height: 1; }
.status-text { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

.application-status.pending {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
}
.application-status.pending .status-text { color: var(--warning); }

.application-status.accepted {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}
.application-status.accepted .status-text { color: var(--success); }

.application-status.denied {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
}
.application-status.denied .status-text { color: var(--danger); }

.application-status.whitelisted {
  background: var(--accent-glow);
  border-color: rgba(0,208,223,0.25);
}
.application-status.whitelisted .status-text { color: var(--accent); }

.application-status.permanently-denied {
  background: rgba(127,29,29,0.15);
  border-color: rgba(239,68,68,0.35);
}
.application-status.permanently-denied .status-text { color: #dc2626; }

/* ============================================================
   APPLICATION FORM
   ============================================================ */
.application-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 28px;
  margin-top: 10px;
  width: 100%;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 7px;
  color: var(--text);
}

.scenario-text {
  background: var(--panel-alt);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  margin: 8px 0 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: #1a1e24;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(34,197,94,0.4);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(239,68,68,0.4);
}

.form-group select:valid:not(:focus) { border-color: rgba(34,197,94,0.4); }
.form-group select:invalid:not(:focus) { border-color: var(--line); }

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group input[type="date"] { color: var(--text); }
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}
.form-group input[type="url"] {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
}

/* Checkboxes */
.checkbox-group { margin-bottom: 16px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dim);
  transition: color 0.15s;
}
.checkbox-label:hover { color: var(--text); }

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 2px solid var(--text-dim);
  border-radius: 6px;
  background: var(--panel-alt);
  position: relative;
  transition: all 0.15s;
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: 2px solid #001a1e;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line-subtle);
  background: rgba(8,10,12,0.8);
}
.footer__inner {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer__socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text-dim);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social-btn:hover {
  color: var(--text);
  border-color: rgba(0,208,223,0.3);
  background: var(--panel-hover);
}
.social-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(0,208,223,0.2);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s ease;
  white-space: nowrap;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-up:nth-child(1) { transition-delay: 0ms; }
  .fade-up:nth-child(2) { transition-delay: 60ms; }
  .fade-up:nth-child(3) { transition-delay: 120ms; }
  .fade-up:nth-child(4) { transition-delay: 180ms; }
}

/* ============================================================
   RESPONSIVE - 980px
   ============================================================ */
@media (max-width: 980px) {
  .hero { padding: 48px 0 40px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__art { order: -1; }
  .hero__subtitle { max-width: 100%; }

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

/* ============================================================
   RESPONSIVE - 720px
   ============================================================ */
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .hero { padding: 32px 0 28px; }
  .hero__title { font-size: 32px; }
  .hero__art {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
  }
  .hero__art::before,
  .hero__art::after { width: 36px; }
  .hero__art .glide__arrow { display: none; }

  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .feature-card { padding: 14px; gap: 10px; }
  .feature-card__icon { width: 34px; height: 34px; border-radius: 8px; font-size: 15px; }

  .status__bar { gap: 12px; }
  .status__divider { display: none; }
  .status__connect { margin-left: 0; width: 100%; }
  .status__connect .btn { width: 100%; }

  .btn { min-width: 0; padding: 0 16px; height: 42px; font-size: 0.85rem; }
  .steps__actions { flex-direction: column; }
  .steps__actions .btn { width: 100%; justify-content: center; }

  .step { padding: 16px; gap: 12px; grid-template-columns: 36px 1fr; }
  .step__num { width: 36px; height: 36px; border-radius: 10px; }
  .step__header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .step__action { width: 100%; }
  .discord-connected,
  .application-status { width: 100%; }

  .application-form { padding: 18px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .nav__link { padding: 5px 8px; font-size: 0.82rem; }
}

/* ============================================================
   RESPONSIVE - 480px
   ============================================================ */
@media (max-width: 480px) {
  .features__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn,
  .hero__ctas .hero__pill { width: 100%; justify-content: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .hero__art { display: none; }
  body { background: white; color: black; }
}

/* =============================================================================
 * HEADER AUTH WIDGET (sign-in / avatar + Support button)
 * ============================================================================= */
.header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.header__auth[hidden] { display: none; }

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #e6edf4);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.header-auth-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.header-auth-signin {
  background: var(--discord, #5865f2);
  border-color: var(--discord, #5865f2);
  color: #fff;
}
.header-auth-signin:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}
.header-auth-support {
  background: rgba(0, 208, 223, 0.1);
  border-color: rgba(0, 208, 223, 0.35);
  color: var(--accent, #00d0df);
}
.header-auth-support:hover {
  background: rgba(0, 208, 223, 0.18);
  border-color: var(--accent, #00d0df);
}

.header-auth-user { position: relative; display: inline-flex; }
.header-auth-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0, 208, 223, 0.5);
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.header-auth-avatar:hover { border-color: var(--accent, #00d0df); }
.header-auth-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.header-auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--panel, #111417);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-auth-menu[hidden] { display: none; }
.header-auth-menu-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-auth-menu-head strong { color: var(--text, #e6edf4); font-size: 0.9rem; }
.header-auth-menu-head small { color: var(--text-dim, #8a9aaa); font-size: 0.75rem; }
.header-auth-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: var(--text, #e6edf4);
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}
.header-auth-menu-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--accent, #00d0df); }

@media (max-width: 720px) {
  .header-auth-btn span { display: none; }
  .header-auth-btn { padding: 8px 10px; }
}

/* =============================================================================
 * SUPPORT CENTER OVERLAY
 * ============================================================================= */
.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.support-overlay[hidden] { display: none; }
.support-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(6px);
}
.support-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  margin: 4vh auto;
  max-height: 92vh;
  background: var(--panel, #111417);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
body.support-open { overflow: hidden; }

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
}
.support-header-left { display: flex; align-items: center; gap: 12px; }
.support-header h2 { margin: 0; font-size: 1.25rem; color: var(--text, #e6edf4); }
.support-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text, #e6edf4);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.support-back-btn:hover { background: rgba(255, 255, 255, 0.08); }
.support-back-btn[hidden] { display: none; }

.support-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim, #8a9aaa);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.support-close-btn:hover { color: var(--text, #e6edf4); }

.support-body {
  flex: 1;
  min-height: 0;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
/* Dashboard + new-ticket views scroll the whole body. Detail view does NOT
   scroll the body - the chat scrolls internally so the composer stays
   pinned at the visible bottom of the panel. */
.support-body[data-view="dashboard"],
.support-body[data-view="new"] {
  overflow-y: auto;
}

/* Dashboard */
.support-greeting h3 {
  margin: 0 0 4px 0;
  font-size: 1.5rem;
  color: var(--text, #e6edf4);
  letter-spacing: -0.01em;
}
.support-greeting p { margin: 0; color: var(--text-dim, #8a9aaa); }

.support-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.support-stat {
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.support-stat-label {
  color: var(--text-dim, #8a9aaa);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.support-stat-value {
  color: var(--text, #e6edf4);
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Player dashboard stat-card accents. New simplified model has just
   awaiting-admin (amber, "waiting on staff") and awaiting-player (cyan,
   "you need to reply") plus closed. Legacy classes kept as aliases. */
.support-stat-awaiting-admin,
.support-stat-progress { border-left: 3px solid #f59e0b; }
.support-stat-awaiting-player,
.support-stat-open,
.support-stat-awaiting { border-left: 3px solid var(--accent, #00d0df); }
.support-stat-closed { border-left: 3px solid #10b981; }

.support-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.support-section-head h3 { margin: 0; color: var(--text, #e6edf4); font-size: 1.1rem; }
.support-new-btn { display: inline-flex; align-items: center; gap: 6px; }

.support-tickets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.support-ticket {
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  color: var(--text, #e6edf4);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.support-ticket:hover {
  border-color: var(--accent, #00d0df);
  transform: translateY(-1px);
}
.support-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.support-ticket-id {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-dim, #8a9aaa);
  letter-spacing: 0.04em;
}
/* "Added" badge — appears next to the ticket id when the viewer is a
   participant rather than the original ticket owner. */
.support-ticket-badge-added {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin-left: 6px;
  background: rgba(0, 208, 223, 0.1);
  border: 1px solid rgba(0, 208, 223, 0.45);
  color: #b8f7ff;
  font-family: inherit;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: middle;
}
.support-ticket-subject {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text, #e6edf4);
}
.support-ticket-snippet {
  color: var(--text-dim, #8a9aaa);
  font-size: 0.83rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.support-ticket-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim, #8a9aaa);
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  padding-top: 8px;
  margin-top: 2px;
}

/* Pills */
.support-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* Status pills — simplified 2026-04-26 model. Old class names
   (.support-pill-open / -in_progress / -awaiting_response) kept as
   legacy aliases so any unmigrated DB rows still render correctly. */
.support-pill-awaiting_admin,
.support-pill-open {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}
.support-pill-awaiting_player,
.support-pill-awaiting_response,
.support-pill-in_progress {
  background: rgba(0, 208, 223, 0.12);
  color: var(--accent, #00d0df);
  border-color: rgba(0, 208, 223, 0.35);
}
/* Green "NEW" pill — same purpose as on the admin side: shouts at the
   viewer that this ticket was just opened and hasn't been touched yet. */
.support-pill-new {
  background: #10b981;
  color: #06231a;
  border-color: rgba(16, 185, 129, 0.6);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.support-pill-closed { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.35); }
.support-pill-cat { background: rgba(255, 255, 255, 0.04); color: var(--text-dim, #8a9aaa); border-color: var(--line, rgba(255, 255, 255, 0.08)); }
.support-pill-staff { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.35); }

.support-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim, #8a9aaa);
}
.support-empty h3 { margin: 0 0 6px 0; color: var(--text, #e6edf4); }

/* Ticket detail */
.support-ticket-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.support-ticket-head h2 { margin: 4px 0 6px; font-size: 1.4rem; line-height: 1.25; color: var(--text, #e6edf4); }
.support-ticket-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.support-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
}
.support-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.support-chat-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 4px 8px;
  font-size: 0.7rem;
  color: var(--text-dim, #8a9aaa);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.support-chat-divider::before,
.support-chat-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, rgba(255, 255, 255, 0.08));
}

.support-msg-group {
  position: relative;
  padding: 6px 8px 6px 60px;
  border-radius: 4px;
  transition: background 0.1s ease;
}
.support-msg-group:hover { background: rgba(255, 255, 255, 0.02); }

/* Hover-reveal reply icon — same shape as the admin panel. */
.support-msg-actions {
  position: absolute;
  top: 4px;
  right: 8px;
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--panel, #111417);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 5;
}
.support-msg-group:hover .support-msg-actions,
.support-msg-followup:hover .support-msg-actions,
.support-msg-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.support-msg-action {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--text-dim, #8a9aaa);
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-msg-action:hover {
  background: rgba(0, 208, 223, 0.12);
  color: var(--accent, #00d0df);
}
.support-msg-action-delete:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

/* Edit/delete state styling — mirrors the admin chat. */
.support-msg-edited-badge {
  margin-left: 6px;
  font-size: 0.7rem;
  color: var(--text-dim, #8a9aaa);
  font-style: italic;
  vertical-align: baseline;
  user-select: none;
}
.support-msg-deleted {
  color: var(--text-dim, #8a9aaa);
  font-style: italic;
  opacity: 0.75;
}
.support-msg-group.is-deleted .support-msg-author,
.support-msg-group.is-deleted .support-msg-time { opacity: 0.55; }

.support-msg-edit-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}
.support-msg-edit-textarea {
  width: 100%;
  min-height: 56px;
  max-height: 200px;
  resize: none;
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--accent, #00d0df);
  border-radius: 8px;
  color: var(--text, #e6edf4);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 8px 10px;
  outline: none;
}
.support-msg-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-msg-edit-hint {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text-dim, #8a9aaa);
  font-style: italic;
}
.support-msg-edit-cancel,
.support-msg-edit-save {
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  font-family: inherit;
}
.support-msg-edit-cancel {
  background: transparent;
  color: var(--text-dim, #8a9aaa);
}
.support-msg-edit-cancel:hover { color: var(--text, #e6edf4); }
.support-msg-edit-save {
  background: var(--accent, #00d0df);
  color: #002428;
  border-color: transparent;
  font-weight: 600;
}
.support-msg-edit-save:hover { filter: brightness(1.1); }
.support-msg-edit-save:disabled { opacity: 0.6; cursor: wait; }

/* ============================================================================
   Threaded reply preview — Discord-style. Avatar at left:10px width:38px,
   so center is at left:29px. Body content starts at left:60px. The elbow
   connector goes from avatar-center UP, then curves right to the preview
   row above.
   ============================================================================ */
.support-msg-group.has-reply { padding-top: 26px; }
.support-msg-group.has-reply .support-msg-avatar { top: 22px; }

.support-msg-group.has-reply::before {
  content: "";
  position: absolute;
  left: 29px;                  /* avatar-center horizontal */
  top: 14px;                   /* meets preview's vertical mid */
  width: 22px;                 /* extends right to preview text */
  height: 12px;                /* down to avatar top */
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid rgba(255, 255, 255, 0.16);
  border-top-left-radius: 8px;
  pointer-events: none;
}

.support-msg-replyto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 4px;
  left: 53px;                  /* just past the elbow's right edge */
  right: 8px;
  max-width: calc(100% - 61px);
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  height: 18px;
}
.support-msg-replyto:hover { color: var(--text, #e6edf4); }

.support-msg-replyto-avatar {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent, #00d0df);
  color: #002428;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  overflow: hidden;
}
.support-msg-replyto-avatar-staff  { background: var(--accent, #00d0df); color: #002428; }
.support-msg-replyto-avatar-player { background: #6366f1; color: #fff; }
.support-msg-replyto-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.support-msg-replyto-author { color: var(--accent, #00d0df); font-weight: 600; flex-shrink: 0; }
.support-msg-replyto-divider {
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.support-msg-replyto-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.support-msg-replyto-snippet-empty,
.support-msg-replyto-att { font-style: italic; opacity: 0.85; }

/* Composer reply banner */
.support-reply-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 208, 223, 0.08);
  border: 1px solid rgba(0, 208, 223, 0.4);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.8rem;
}
.support-reply-banner[hidden] { display: none; }
.support-reply-banner-arrow { flex-shrink: 0; color: var(--accent, #00d0df); }
.support-reply-banner-text { flex: 1; min-width: 0; }
.support-reply-banner-text strong { color: var(--text, #e6edf4); font-weight: 600; }
.support-reply-banner-cancel {
  background: transparent;
  border: 0;
  color: var(--text-dim, #8a9aaa);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 6px;
  border-radius: 4px;
}
.support-reply-banner-cancel:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

.support-msg-highlight {
  background: rgba(0, 208, 223, 0.12) !important;
  animation: support-msg-highlight-fade 1.5s ease-out forwards;
}
@keyframes support-msg-highlight-fade {
  0%   { background: rgba(0, 208, 223, 0.18); }
  100% { background: rgba(0, 208, 223, 0);    }
}
.support-msg-avatar {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  overflow: hidden;
}
.support-msg-avatar-staff { background: linear-gradient(135deg, #00d0df, #00a8b4); color: #002428; }
.support-msg-avatar-player { background: linear-gradient(135deg, #6366f1, #4338ca); }
.support-msg-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.support-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.support-msg-author { font-weight: 600; font-size: 0.95rem; color: var(--text, #e6edf4); }
.support-msg-author-staff { color: var(--accent, #00d0df); }
.support-msg-author-player { color: #a5b4fc; }
.support-msg-time { font-size: 0.7rem; color: var(--text-dim, #8a9aaa); }
.support-msg-body { color: var(--text, #e6edf4); font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

.support-msg-followup {
  position: relative;
  padding: 2px 8px 2px 60px;
  border-radius: 4px;
}
.support-msg-followup:hover { background: rgba(255, 255, 255, 0.02); }
.support-msg-followup:hover .support-msg-followup-time { opacity: 1; }
.support-msg-followup-time {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 44px;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-dim, #8a9aaa);
  opacity: 0;
  transition: opacity 0.1s ease;
  font-variant-numeric: tabular-nums;
}

.support-msg-system {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 8px;
  padding: 8px 12px;
  background: rgba(0, 208, 223, 0.05);
  border: 1px solid rgba(0, 208, 223, 0.2);
  border-left: 3px solid var(--accent, #00d0df);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-dim, #8a9aaa);
}
.support-msg-system.kind-vehicle {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
  border-left-color: #818cf8;
}
.support-msg-system.kind-tokens {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.25);
  border-left-color: #f59e0b;
}
/* participant_add inherits the default cyan theme; participant_remove gets
   a muted red so adds and removes are visually distinguishable at a glance. */
.support-msg-system.kind-participant_remove {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.22);
  border-left-color: #f87171;
}
.support-msg-system-label { font-weight: 600; color: var(--text, #e6edf4); }
.support-msg-system-detail { color: var(--text-dim, #8a9aaa); }

/* Inline TKT-N reference inside a player-visible message. Static pill —
   players don't navigate between tickets, but the styling makes it clear
   this token is a ticket reference. */
.support-msg-ticketlink {
  display: inline-block;
  padding: 0 6px;
  margin: 0 1px;
  background: rgba(0, 208, 223, 0.1);
  border: 1px solid rgba(0, 208, 223, 0.35);
  color: var(--accent, #00d0df);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: baseline;
  line-height: 1.4;
}

/* Composer */
/* "X is typing..." strip above the composer. Same Discord-ish three-dot
   blink as the admin panel; mounted between the chat scroll and the
   composer so it doesn't push either one when it appears/disappears. */
.support-typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px 6px;
  font-size: 0.78rem;
  color: var(--text-dim, #8a9aaa);
  font-style: italic;
  min-height: 22px;
}
.support-typing-indicator[hidden] { display: none; }
.support-typing-text { white-space: nowrap; }
.support-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}
.support-typing-dots > span {
  width: 4px;
  height: 4px;
  background: var(--accent, #00d0df);
  border-radius: 50%;
  opacity: 0.35;
  animation: support-typing-blink 1.2s infinite ease-in-out;
}
.support-typing-dots > span:nth-child(2) { animation-delay: 0.18s; }
.support-typing-dots > span:nth-child(3) { animation-delay: 0.36s; }
@keyframes support-typing-blink {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-2px); }
}

.support-chat-composer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: var(--panel, #111417);
}
.support-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.support-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  flex-shrink: 0;
}
.support-composer-tool {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-dim, #8a9aaa);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-composer-tool:hover {
  background: rgba(0, 208, 223, 0.08);
  color: var(--accent, #00d0df);
}
.support-composer-tool-gif {
  width: auto;
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.support-composer-tool-gif:hover { border-color: var(--accent, #00d0df); }

/* Pending-attachment chips */
.support-composer-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.support-composer-attachments[hidden] { display: none; }
.support-composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  max-width: 220px;
}
.support-composer-chip-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.support-composer-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.support-composer-chip-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 0.78rem;
}
.support-composer-chip-name {
  color: var(--text, #e6edf4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-composer-chip-state { font-size: 0.68rem; color: var(--text-dim, #8a9aaa); font-style: italic; }
.support-composer-chip-state.support-composer-chip-error { color: #f87171; }
.support-composer-chip-remove {
  background: transparent;
  border: none;
  color: var(--text-dim, #8a9aaa);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.support-composer-chip-remove:hover { color: #f87171; }

/* Pop-ups */
.support-composer-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 12px;
  z-index: 40;
  background: var(--panel, #111417);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 8px;
}
.support-composer-popup[hidden] { display: none; }
.support-gif-popup {
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: 420px;
  display: flex;
  flex-direction: column;
}
.support-gif-popup-bar { margin-bottom: 8px; }
.support-gif-popup-bar input {
  width: 100%;
  padding: 6px 10px;
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  color: var(--text, #e6edf4);
  font-size: 0.85rem;
}
.support-gif-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}
.support-gif-thumb {
  /* Same fix as the admin picker — fixed height beats `aspect-ratio` for
     uniform-looking grid tiles when the children are GIFs of varying
     natural dimensions. */
  display: block;
  width: 100%;
  height: 110px;
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.support-gif-thumb:hover { border-color: var(--accent, #00d0df); }
.support-gif-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.support-gif-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.85rem;
}

/* Inline media in messages */
.support-msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.support-msg-attachment {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  max-width: 100%;
}
.support-msg-attachment-image { text-decoration: none; }
.support-msg-attachment-image img {
  display: block;
  max-width: 320px;
  max-height: 280px;
  cursor: zoom-in;
}
.support-msg-attachment-video video {
  display: block;
  max-width: 420px;
  max-height: 320px;
  border-radius: 10px;
  background: #000;
}

/* Image attachment is now a <button> that opens a lightbox; reset the
   default button chrome so it looks the same as the previous <a> link. */
.support-msg-attachment-image {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

/* Lightbox overlay — single instance mounted on document.body. */
.support-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  animation: support-lightbox-fade 0.12s ease-out;
}
.support-image-lightbox[hidden] { display: none; }
@keyframes support-lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.support-image-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  /* Cursor is JS-controlled (zoom-in / grab / grabbing). transform-origin
     keeps zoom centered on the image. No transition so pan tracks the
     pointer instantly. */
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.support-image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.support-image-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================================================
   URL link styling + link unfurl embeds (YouTube iframe, OG card).
   Mirrors the admin-side rules so the chat looks consistent across panels.
   ============================================================================ */
.support-msg-link {
  color: var(--accent, #00d0df);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.support-msg-link:hover { filter: brightness(1.15); }

.support-msg-embeds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.support-msg-embed {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  max-width: 480px;
}
.support-msg-embed-loading {
  height: 80px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: support-embed-shimmer 1.4s linear infinite;
}
@keyframes support-embed-shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position:  200% 0; }
}

.support-msg-embed-video { border-color: rgba(0, 208, 223, 0.3); }
.support-msg-embed-frame {
  position: relative;
  width: 100%;
  height: 0;
  background: #000;
}
.support-msg-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.support-msg-embed-video .support-msg-embed-title {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #e6edf4);
  text-decoration: none;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.support-msg-embed-video .support-msg-embed-title:hover { color: var(--accent, #00d0df); }

.support-msg-embed-card {
  display: flex;
  align-items: stretch;
  border-left: 3px solid var(--accent, #00d0df);
}
.support-msg-embed-meta {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.support-msg-embed-site {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #8a9aaa);
}
.support-msg-embed-card .support-msg-embed-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #e6edf4);
  text-decoration: none;
  line-height: 1.3;
  word-break: break-word;
}
.support-msg-embed-card .support-msg-embed-title:hover { color: var(--accent, #00d0df); }
.support-msg-embed-desc {
  font-size: 0.8rem;
  color: var(--text-dim, #8a9aaa);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.support-msg-embed-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: block;
  background: #0a0d12;
}
.support-msg-embed-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.support-chat-composer textarea {
  flex: 1;
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  color: var(--text, #e6edf4);
  padding: 10px 12px;
  resize: none;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  outline: none;
  max-height: 160px;
}
.support-chat-composer textarea:focus { border-color: var(--accent, #00d0df); }
.support-chat-send {
  width: 38px;
  height: 38px;
  background: var(--accent, #00d0df);
  color: #002428;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.support-chat-send:hover { filter: brightness(1.1); }

.support-chat-closed {
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim, #8a9aaa);
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: var(--panel, #111417);
}

/* New ticket form - two-column layout: form + tips */
.support-new-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.support-new-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.support-new-intro h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text, #e6edf4);
}
.support-new-intro p {
  margin: 0;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.92rem;
}

.support-new-card {
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Logged-in user chip at top of the form */
.support-new-userchip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel, #111417);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
}
.support-new-userchip-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.support-new-userchip-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.support-new-userchip-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.support-new-userchip-info strong {
  color: var(--text, #e6edf4);
  font-size: 0.95rem;
}
.support-new-userchip-info small {
  color: var(--text-dim, #8a9aaa);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.support-form-row label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #8a9aaa);
  font-weight: 700;
}
.support-form-row input,
.support-form-row select,
.support-form-row textarea {
  background: var(--panel, #111417);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  color: var(--text, #e6edf4);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.support-form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%238a9aaa' stroke-width='2.5'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.support-form-row input:focus,
.support-form-row select:focus,
.support-form-row textarea:focus { border-color: var(--accent, #00d0df); }
.support-form-row textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.support-form-hint {
  color: var(--text-dim, #8a9aaa);
  font-size: 0.78rem;
  font-style: italic;
}

.support-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.support-btn-text {
  background: transparent;
  border: none;
  color: var(--text-dim, #8a9aaa);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.support-btn-text:hover {
  color: var(--text, #e6edf4);
  background: rgba(255, 255, 255, 0.04);
}
.support-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent, #00d0df);
  color: #002428;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.support-btn-primary:hover { filter: brightness(1.08); }

/* Tips column */
.support-new-tips {
  position: sticky;
  top: 0;
  background: var(--panel-alt, #0d0f12);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 18px 18px 14px;
}
.support-new-tips h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text, #e6edf4);
}
.support-new-tips ul {
  margin: 0 0 14px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.85rem;
  line-height: 1.5;
}
.support-new-tips li::marker { color: var(--accent, #00d0df); }
.support-new-tips strong { color: var(--text, #e6edf4); font-weight: 600; }
.support-new-tips-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  font-size: 0.8rem;
  color: var(--text-dim, #8a9aaa);
  line-height: 1.5;
}
.support-new-tips-foot code {
  background: rgba(0, 208, 223, 0.1);
  color: var(--accent, #00d0df);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .support-new-wrap { grid-template-columns: 1fr; }
  .support-new-tips { position: static; }
}

/* Auth gate + error views (deep-link without auth, or inaccessible ticket) */
.support-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 60px 24px;
  max-width: 460px;
  margin: 0 auto;
}
.support-gate-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.15);
  color: var(--discord, #5865f2);
}
.support-gate-icon--warn {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.support-gate h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text, #e6edf4);
}
.support-gate-line {
  margin: 0;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 380px;
}
.support-gate-hint {
  margin: 0;
  color: var(--text-dim, #8a9aaa);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 380px;
  font-style: italic;
}
.support-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 22px;
  background: var(--discord, #5865f2);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}
.support-gate-btn:hover { filter: brightness(1.08); }
.support-gate-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #e6edf4);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.support-gate-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  filter: none;
}
.support-gate-cancel {
  background: transparent;
  border: none;
  color: var(--text-dim, #8a9aaa);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}
.support-gate-cancel:hover { color: var(--text, #e6edf4); }

@media (max-width: 720px) {
  .support-overlay-panel { margin: 0; max-height: 100vh; border-radius: 0; width: 100vw; }
  .support-body { padding: 16px 14px 20px; }
  .support-tickets { grid-template-columns: 1fr; }
}
