

.auth-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.amb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0;
  animation: orbFloat 18s ease-in-out infinite;
}

.amb-orb--1 {
  width: 560px; height: 560px;
  left: -12%;  top: 5%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  opacity: 0.45;
  animation-delay: 0s;
}
.amb-orb--2 {
  width: 420px; height: 420px;
  right: -8%;  bottom: 15%;
  background: radial-gradient(circle, var(--accent-dim), transparent 65%);
  opacity: 0.38;
  animation-delay: -6s;
  animation-duration: 22s;
}
.amb-orb--3 {
  width: 300px; height: 300px;
  left: 42%;  top: 60%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  opacity: 0.22;
  animation-delay: -11s;
  animation-duration: 15s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.06); }
  66%       { transform: translate(-20px, 25px) scale(0.95); }
}

.amb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
}

.amb-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 40%,
    rgba(0,0,0,0.55) 100%
  );
}

body.page-auth {
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  --auth-footer-estimate: 56px;
}

.auth-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(16px, 2.5vw, 40px) 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - var(--nav-h) - var(--auth-footer-estimate));
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 580px);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.auth-lore {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
}

.auth-lore-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lore-emblem {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 8px;
  animation: emblemSpin 30s linear infinite;
}

@keyframes emblemSpin {
  0%   { --r: 0deg; }
  100% { --r: 360deg; }
}

.lore-emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
}
.lore-emblem-ring--outer {
  inset: 0;
  animation: ringRotate 20s linear infinite;
  box-shadow: 0 0 18px var(--accent-glow), inset 0 0 10px var(--accent-dim);
}
.lore-emblem-ring--inner {
  inset: 14px;
  animation: ringRotate 14s linear infinite reverse;
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.lore-emblem-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-dim), var(--bg-card) 70%);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  box-shadow: 0 0 32px -8px var(--accent-glow);
}

.lore-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 0 20px -6px var(--accent-glow);
}

.lore-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 32px rgba(0,0,0,0.7);
}

.lore-title-accent {
  color: var(--accent);
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  text-shadow:
    0 0 30px var(--accent-glow),
    0 0 60px var(--accent-dim);
}

.lore-lead {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  max-width: 36em;
}

.lore-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.lore-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
  animation: perkSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lore-perk:nth-child(1) { animation-delay: 0.1s; }
.lore-perk:nth-child(2) { animation-delay: 0.18s; }
.lore-perk:nth-child(3) { animation-delay: 0.26s; }
.lore-perk:nth-child(4) { animation-delay: 0.34s; }
.lore-perk:nth-child(5) { animation-delay: 0.42s; }

@keyframes perkSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lore-perk:hover { color: var(--text-primary); }

.lore-perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.82rem;
  box-shadow: 0 0 14px -4px var(--accent-glow);
  transition: background 0.2s, box-shadow 0.2s;
}

.lore-perk:hover .lore-perk-icon {
  background: color-mix(in srgb, var(--accent-dim) 180%, transparent);
  box-shadow: 0 0 20px -4px var(--accent-glow);
}

.lore-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.028);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 8px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.lore-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.lore-stat-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px var(--accent-glow);
}

.lore-stat-value i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.lore-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lore-stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 24px;
}

.auth-card-col {
  min-width: 0;
}

.auth-card {
  position: relative;
  border-radius: 20px;
  background: rgba(18, 15, 23, 0.72);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px -20px var(--accent-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  animation: cardReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-beam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 30%,
    color-mix(in srgb, var(--accent) 55%, #fff) 50%,
    var(--accent) 70%,
    transparent 100%
  );
  box-shadow: 0 0 28px var(--accent-glow);
  z-index: 2;
}

.auth-card-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  opacity: 0.55;
}
.auth-card-corner::before,
.auth-card-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.auth-card-corner::before { width: 100%; height: 1.5px; top: 0; left: 0; }
.auth-card-corner::after  { width: 1.5px; height: 100%; top: 0; left: 0; }

.auth-card-corner--tr { top: 12px; right: 12px; transform: rotate(90deg); }
.auth-card-corner--tl { top: 12px; left: 12px; }
.auth-card-corner--bl { bottom: 12px; left: 12px; transform: rotate(-90deg); }
.auth-card-corner--br { bottom: 12px; right: 12px; transform: rotate(180deg); }

.auth-card-inner {
  padding: clamp(24px, 3.5vh, 40px) clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-brand {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo {
  display: block;
  width: clamp(140px, 26vw, 220px);
  height: clamp(48px, 10vh, 72px);
  background-image: var(--theme-brand-logo-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto 6px;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.auth-tagline {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  text-shadow: 0 0 12px var(--accent-glow);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.auth-tab i {
  font-size: 0.85em;
  transition: transform 0.25s;
}

.auth-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

.auth-tab.active {
  color: var(--text-primary);
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--accent-dim) 80%, transparent) 0%,
    color-mix(in srgb, var(--bg-card) 70%, var(--accent-dim)) 100%
  );
  border-color: var(--accent-border);
  box-shadow:
    0 0 22px -5px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-tab.active i {
  transform: scale(1.1);
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form.hidden { display: none; }

.auth-form-head {
  margin-bottom: 20px;
}

.auth-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.2;
  position: relative;
  padding-bottom: 12px;
}

.auth-form-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.auth-form-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  animation: fieldIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-field:nth-child(1) { animation-delay: 0.05s; }
.form-field:nth-child(2) { animation-delay: 0.1s; }
.form-field:nth-child(3) { animation-delay: 0.15s; }
.form-field:nth-child(4) { animation-delay: 0.2s; }

@keyframes fieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.field-label i {
  color: color-mix(in srgb, var(--accent) 70%, var(--text-dim));
  font-size: 0.85em;
  width: 1em;
  text-align: center;
}

.field-optional {
  color: var(--text-dim);
  font-size: 0.7em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 2px;
}

.field-input,
.form-field .form-input,
.form-field .form-select {
  width: 100%;
  background: rgba(255,255,255,0.032);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder { color: var(--text-dim); }

.field-input:hover {
  border-color: color-mix(in srgb, var(--accent-border) 50%, var(--border));
  background: rgba(255,255,255,0.045);
}

.field-input:focus {
  border-color: var(--accent-border);
  background: rgba(255,255,255,0.05);
  box-shadow:
    0 0 0 3px var(--accent-dim),
    0 0 20px -6px var(--accent-glow);
}

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

select.field-input option {
  background: var(--bg-card2);
  color: var(--text-primary);
}

.field-pw-wrap {
  position: relative;
}

.field-pw-wrap .field-input {
  padding-right: 46px;
}

.field-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.field-pw-toggle:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}

.field-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  user-select: none;
}

.field-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

.field-check-box {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  margin-top: 1px;
  position: relative;
}

.field-check-box::after {
  content: '';
  position: absolute;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(0);
  top: 4px; left: 3px;
  transition: transform 0.15s ease;
}

.field-check input:checked ~ .field-check-box {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  box-shadow: 0 0 12px -3px var(--accent-glow);
}

.field-check input:checked ~ .field-check-box::after {
  transform: rotate(-45deg) scale(1);
}

.field-check--terms {
  margin-bottom: 16px;
  align-items: flex-start;
  font-size: 0.8rem;
}

.field-check--terms a,
.form-forgot {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}

.field-check--terms a:hover,
.form-forgot:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.auth-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 12px;
}

.auth-btn:active { transform: scale(0.98); }

.auth-btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-btn--primary {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 75%, #fff) 50%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  color: var(--bg-void);
  box-shadow:
    0 0 32px -8px var(--accent-glow),
    0 4px 16px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 0.28s ease;
}

.auth-btn--primary:hover {
  background-position: right center;
  box-shadow:
    0 0 48px -6px var(--accent-glow),
    0 6px 22px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.auth-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.22), transparent 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}
.auth-btn--primary:hover .auth-btn-glow { opacity: 1; }

.auth-btn--discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,0.4);
}
.auth-btn--discord .auth-btn-content > i:nth-of-type(n + 2),
.auth-btn--discord .auth-btn-content > svg:nth-of-type(n + 2) {
  display: none;
}
.auth-btn--discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 26px rgba(88,101,242,0.55);
  transform: translateY(-1px);
}

.auth-btn--google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: 0 4px 20px rgba(60, 64, 67, 0.12);
}
.auth-btn--google .auth-btn-content > i:nth-of-type(n + 2),
.auth-btn--google .auth-btn-content > svg:nth-of-type(n + 2) {
  display: none;
}
.auth-btn--google:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
  box-shadow: 0 6px 26px rgba(60, 64, 67, 0.18);
  transform: translateY(-1px);
}
.auth-btn--google .fa-google {
  color: #ea4335;
}

.auth-switch-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.auth-switch-sep {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.auth-tabs.hidden {
  display: none;
}

.auth-switch-link {
  color: var(--accent);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}
.auth-switch-link:hover { opacity: 0.75; }

.auth-divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.auth-divider-or::before,
.auth-divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-field.human-verify {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid color-mix(in srgb, var(--accent-border) 40%, var(--border));
  margin-bottom: 14px;
}

.human-verify__head {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.human-verify__timer {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.human-verify__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.human-verify__value {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}

.human-verify__refresh {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.human-verify__refresh:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}

@keyframes authFormIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form:not(.hidden).auth-form--enter {
  animation: authFormIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (max-width: 1020px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .auth-lore {
    padding: clamp(16px, 3vw, 24px);
    align-items: center;
    text-align: center;
  }

  .auth-lore-inner {
    align-items: center;
  }

  .lore-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }

  .lore-emblem { display: none; }

  .lore-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .auth-shell { padding: 12px 16px 16px; }
  .auth-card-inner { padding: 22px 18px 28px; }

  .reg-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lore-perks {
    grid-template-columns: 1fr;
  }

  .auth-btn {
    padding: 12px 16px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .form-row-meta { flex-direction: column; align-items: flex-start; }
}

.auth-panel { all: unset; }
.auth-side  { display: none; }
.auth-panel-col { all: unset; }
.auth-panel-accent { display: none; }
.auth-panel-inner { all: unset; display: contents; }

.auth-card .form-group { margin-bottom: 0; }
.auth-card .form-input,
.auth-card .form-select,
.auth-card .input-password-wrap .form-input {
  background: rgba(255,255,255,0.032);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-color: var(--border);
}
.auth-card .form-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.auth-card .toggle-pw {
  right: 12px;
  color: var(--text-dim);
}
.auth-card .form-check {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-card .form-link {
  color: var(--accent);
  font-weight: 600;
}
.auth-card .form-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.auth-card .btn-primary,
.auth-card .btn-full.auth-submit {
  
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 75%, #fff) 50%, var(--accent) 100%);
  color: var(--bg-void);
  border: none;
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 13px 20px;
  font-size: 0.82rem;
  text-transform: uppercase;
  box-shadow: 0 0 32px -8px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.45);
  transition: all 0.28s ease;
  width: 100%;
  margin-bottom: 12px;
}
.auth-card .btn-primary:hover,
.auth-card .btn-full.auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 48px -6px var(--accent-glow), 0 6px 22px rgba(0,0,0,0.5);
}
.auth-card .auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.auth-card .auth-switch-btn {
  color: var(--accent);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  font-size: inherit;
  text-decoration: underline;
}

.auth-actions,
.auth-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}
.auth-actions .auth-btn--main,
.auth-actions-row > .auth-btn--primary:first-child {
  width: 100%;
  flex: none;
  margin-bottom: 0;
}
.auth-actions-oauth {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.auth-actions-oauth .auth-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}
.auth-actions-oauth.is-hidden {
  display: none;
}
.auth-actions-oauth .auth-btn .auth-btn-content span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
@media (max-width: 520px) {
  .auth-actions-oauth {
    flex-direction: column;
  }
  .auth-actions-oauth .auth-btn {
    width: 100%;
  }
}

.auth-server-field {
  display: none;
}

.oauth-pick-email {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(94, 184, 255, 0.08);
  border: 1px solid rgba(94, 184, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  word-break: break-all;
}
.oauth-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.oauth-pick-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  font-family: var(--font-body);
}
.oauth-pick-item:hover:not(:disabled) {
  border-color: rgba(94, 184, 255, 0.45);
  background: rgba(94, 184, 255, 0.1);
  transform: translateY(-1px);
}
.oauth-pick-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.oauth-pick-item__name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.oauth-pick-item__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
.oauth-pick-loading,
.oauth-pick-error {
  padding: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.oauth-pick-error {
  color: #ff8a80;
}

body.page-downloads .site-content-section {
  padding: 8px 0 72px;
}

.dl-container {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: 80px;
}

.dl-launchers-block {
  margin-bottom: 48px;
}

.dl-launchers-intro {
  margin: 0 auto clamp(28px, 4vw, 44px);
  max-width: 820px;
}

.dl-launchers-intro__panel {
  position: relative;
  text-align: center;
  padding: clamp(26px, 4vw, 38px) clamp(20px, 4vw, 36px) clamp(22px, 3.5vw, 32px);
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border) 78%);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--bg-card) 88%, var(--accent) 12%) 0%, color-mix(in srgb, var(--bg-surface) 94%, transparent) 55%, color-mix(in srgb, var(--bg-card) 90%, #050a14 10%) 100%);
  box-shadow:
    0 28px 60px -34px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  isolation: isolate;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .dl-launchers-intro__panel {
    background: var(--bg-card);
    border-color: var(--accent-border);
  }
}

.dl-launchers-intro__shine {
  pointer-events: none;
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--accent-glow), transparent 62%),
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(80, 180, 255, 0.12), transparent 58%);
  opacity: 0.95;
  z-index: 0;
}

.dl-launchers-intro__panel > *:not(.dl-launchers-intro__shine) {
  position: relative;
  z-index: 1;
}

.dl-launchers-intro__kicker {
  margin: 0 auto 16px;
}

.dl-launchers-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 14px;
  text-wrap: balance;
}

.dl-launchers-intro__title span {
  background: linear-gradient(120deg, var(--accent) 0%, #7ec8ff 48%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 35%, transparent));
}

@media (prefers-reduced-motion: no-preference) {
  .dl-launchers-intro__title span {
    animation: dlIntroTitleShimmer 8s ease-in-out infinite;
  }
}

@keyframes dlIntroTitleShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.dl-launchers-intro__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 16px;
  max-width: 420px;
}

.dl-launchers-intro__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
  opacity: 0.9;
}

.dl-launchers-intro__divider-gem {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.45rem;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--accent-dim) 80%, transparent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.dl-launchers-intro__sub {
  margin: 0 auto 20px;
  max-width: 540px;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text-primary) 12%);
}

.dl-launchers-intro__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-launchers-intro__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dl-launchers-intro__hint--full {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.dl-launchers-intro__hint--lite {
  border-color: rgba(100, 190, 255, 0.28);
}

.dl-launchers-intro__hint-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.dl-launchers-intro__hint--full .dl-launchers-intro__hint-icon {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.dl-launchers-intro__hint--lite .dl-launchers-intro__hint-icon {
  color: #7ec8ff;
  background: rgba(80, 180, 255, 0.12);
  border: 1px solid rgba(100, 190, 255, 0.28);
}

.dl-launchers-intro__hint-text {
  text-align: left;
}

@media (hover: hover) {
  .dl-launchers-intro__hint--full:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 28px -12px var(--accent-glow);
    transform: translateY(-1px);
  }
  .dl-launchers-intro__hint--lite:hover {
    border-color: rgba(100, 190, 255, 0.45);
    box-shadow: 0 8px 28px -12px rgba(80, 180, 255, 0.35);
    transform: translateY(-1px);
  }
}

@media (max-width: 520px) {
  .dl-launchers-intro__hints {
    flex-direction: column;
    align-items: center;
  }
  .dl-launchers-intro__hint {
    width: min(100%, 320px);
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-launchers-intro__title span {
    animation: none;
  }
}

.dl-launchers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.dl-launcher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--bg-card) 94%, var(--accent) 6%);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.75);
  overflow: visible;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .dl-launcher-card { background: var(--bg-card); }
}
.dl-launcher-card__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, var(--accent-glow), transparent 58%);
  opacity: 0.85;
  z-index: 0;
}
.dl-launcher-card--lite {
  border-color: rgba(100, 190, 255, 0.28);
}
.dl-launcher-card--lite .dl-launcher-card__glow {
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(80, 180, 255, 0.18), transparent 58%);
}
.dl-launcher-card > *:not(.dl-launcher-card__glow) {
  position: relative;
  z-index: 1;
}

.dl-launcher-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dl-launcher-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  box-shadow: 0 8px 24px -12px var(--accent-glow);
}
.dl-launcher-card__icon--lite {
  color: #8fd4ff;
  background: rgba(80, 180, 255, 0.12);
  border-color: rgba(120, 200, 255, 0.35);
  box-shadow: 0 8px 24px -12px rgba(80, 180, 255, 0.35);
}
.dl-launcher-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}
.dl-launcher-card__tag--lite {
  color: #b8e8ff;
  background: rgba(80, 180, 255, 0.12);
  border-color: rgba(120, 200, 255, 0.35);
}

.dl-launcher-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dl-launcher-card__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.dl-info-tip {
  position: relative;
  flex-shrink: 0;
}

.dl-info-tip__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--bg-surface) 90%, var(--accent-dim));
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: color 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.dl-info-tip__btn--lite {
  color: #8fd4ff;
  border-color: rgba(100, 190, 255, 0.35);
  background: rgba(80, 180, 255, 0.1);
}

.dl-info-tip__btn:hover,
.dl-info-tip__btn:focus-visible {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 24px -10px var(--accent-glow);
  transform: translateY(-1px);
}

.dl-info-tip__btn--lite:hover,
.dl-info-tip__btn--lite:focus-visible {
  border-color: rgba(120, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(80, 180, 255, 0.18), 0 8px 24px -10px rgba(80, 180, 255, 0.35);
}

.dl-info-tip__btn[aria-expanded='true'] {
  color: #fff;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow: 0 10px 28px -12px var(--accent-glow);
}

.dl-info-tip__btn--lite[aria-expanded='true'] {
  background: linear-gradient(135deg, #3a9fd4, #5ec8ff);
  border-color: rgba(180, 230, 255, 0.65);
  color: #041018;
}

.dl-info-tip__sheet {
  margin: -4px 0 14px;
  animation: dlInfoSheetIn 0.22s ease-out;
}

.dl-info-tip__sheet[hidden] {
  display: none !important;
}

@keyframes dlInfoSheetIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dl-info-tip__sheet-inner {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: #060f1c;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, #0a1628 96%, var(--accent) 4%) 0%,
    #060d18 100%
  );
  box-shadow:
    0 18px 40px -22px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dl-info-tip__sheet-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
  border-radius: 3px 0 0 3px;
}

.dl-info-tip__sheet--lite .dl-info-tip__sheet-inner {
  border-color: rgba(100, 190, 255, 0.35);
  background: linear-gradient(145deg, #071422 0%, #050c14 100%);
}

.dl-info-tip__sheet--lite .dl-info-tip__sheet-inner::before {
  background: linear-gradient(180deg, #5ec8ff, rgba(80, 180, 255, 0.25));
}

.dl-info-tip__sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-left: 6px;
}

.dl-info-tip__sheet-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}

.dl-info-tip__sheet-icon--lite {
  color: #9ee0ff;
  background: rgba(80, 180, 255, 0.14);
  border-color: rgba(100, 190, 255, 0.35);
}

.dl-info-tip__sheet-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.dl-info-tip__sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.dl-info-tip__sheet-close:hover,
.dl-info-tip__sheet-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  outline: none;
}

.dl-info-tip__sheet-body {
  margin: 0;
  padding-left: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text-primary) 92%, var(--text-muted));
  text-align: left;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .dl-info-tip__sheet {
    animation: none;
  }
}

.dl-launcher-card__meta {
  margin-bottom: 14px;
}
.dl-launcher-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 auto;
  padding-bottom: 18px;
  flex: 1;
}
.dl-launcher-card__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.dl-launcher-card__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.dl-launcher-card__mirrors {
  align-items: stretch;
}
.dl-launcher-card__mirrors .dl-mirror-link {
  justify-content: center;
}

.dl-main-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
  
  overflow: visible;
}

#dl-android-card[hidden] {
  display: none !important;
}
#dl-launcher-lite-card[hidden] {
  display: none !important;
}
.dl-btn.dl-btn--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.dl-main-card--lite {
  border-color: rgba(120, 200, 255, 0.22);
}
.dl-main-card--lite::before {
  background: radial-gradient(ellipse 70% 120% at 100% 50%, rgba(80, 180, 255, 0.12), transparent 60%);
}
.dl-main-icon--lite {
  background: rgba(80, 180, 255, 0.12);
  border-color: rgba(120, 200, 255, 0.28);
  color: #7ec8ff;
}
.dl-meta-chip--highlight {
  border-color: rgba(126, 200, 255, 0.35);
  color: #b8e4ff;
}
.dl-meta-chip--highlight i {
  color: #7ec8ff;
}
.dl-main-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 120% at 100% 50%, var(--accent-glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.dl-main-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.dl-main-info {
  flex: 1;
  min-width: 0;
}
.dl-main-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 2rem; flex-shrink: 0;
}
.dl-main-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.dl-main-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dl-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  min-height: 32px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-surface) 92%, var(--text-primary) 8%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  font-variant-numeric: tabular-nums;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .dl-meta-chip {
    background: var(--bg-surface);
  }
}
.dl-meta-chip i {
  color: var(--text-dim);
  font-size: 0.88rem;
  min-width: 1.1em;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.95;
}
.dl-meta-chip span {
  color: var(--text-muted);
  line-height: 1.2;
}
.dl-main-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.dl-main-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  position: relative;
  flex-shrink: 0;
  min-width: 0;
  z-index: 1;
}
.dl-btn {
  font-size: .95rem;
  padding: 14px 28px !important;
  white-space: nowrap;
}
.dl-mirrors { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.dl-mirror-link {
  display: flex; align-items: center; gap: 6px;
  font-size: .83rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; background: var(--bg-surface);
  transition: color .15s, border-color .15s; text-decoration: none;
}
.dl-mirror-link:hover { color: var(--accent); border-color: var(--accent-border); }
.dl-mirror-link i { color: var(--accent); font-size: .78rem; }

.dl-section {
  margin-bottom: 56px;
  padding: 28px clamp(16px, 3vw, 28px) 32px;
  box-sizing: border-box;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
}
.dl-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dl-section-title i {
  color: var(--accent);
}

.dl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dl-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.dl-step:hover {
  border-color: var(--accent-border);
  box-shadow: 0 10px 32px -14px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
.dl-step-num {
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 18px -6px var(--accent-glow);
}
.dl-step-body {
  flex: 1;
  min-width: 0;
}
.dl-step-body h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 2px 0 8px;
  overflow-wrap: break-word;
}
.dl-step-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dl-reqs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.dl-req-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.dl-req-col--recommended { border-color: var(--accent-border); }
.dl-req-header { padding: 14px 20px; background: var(--bg-surface); border-bottom: 1px solid var(--border); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.dl-req-col--recommended .dl-req-header { color: var(--accent); background: var(--accent-dim); border-bottom-color: var(--accent-border); }
.dl-req-list { list-style: none; padding: 8px; }
.dl-req-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.dl-req-list li:hover { background: var(--bg-card2); }
.dl-req-list li span:first-child {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 3.5rem;
}
.dl-req-list li span:last-child {
  color: var(--text-primary);
  text-align: right;
  flex: 1 1 140px;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dl-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dl-tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; display: flex; align-items: center; gap: 18px; transition: border-color .2s; }
.dl-tool-card:hover { border-color: var(--accent-border); }
.dl-tool-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-dim); border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.dl-tool-body { flex: 1; }
.dl-tool-name { font-weight: 700; font-size: .95rem; color: var(--text-primary); margin-bottom: 4px; }
.dl-tool-desc { font-size: .83rem; color: var(--text-muted); }

@media (max-width: 1024px) {
  .dl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .dl-container {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .dl-launchers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-main-card {
    flex-direction: column;
    padding: 22px 18px;
    gap: 22px;
  }
  .dl-main-left { flex-direction: column; }
  .dl-main-right {
    align-items: stretch;
    width: 100%;
  }
  .dl-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .dl-mirrors { align-items: stretch; }
  .dl-mirror-link { justify-content: center; }
  .dl-steps { grid-template-columns: minmax(0, 1fr); }
  .dl-step {
    padding: 18px 16px;
    gap: 14px;
  }
  .dl-section {
    margin-bottom: 48px;
    padding: 22px 14px 26px;
  }
  .dl-section-title { margin-bottom: 22px; }
  .dl-reqs-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-tools-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-tool-card { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .dl-main-card { padding: 18px 14px; }
  .dl-main-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .dl-req-list li span:last-child {
    text-align: left;
    flex-basis: 100%;
  }
  .dl-req-header { padding: 12px 14px; }
}

body.page-ranking .page-hero-sub {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

body.page-ranking .ranking-section--page {
  padding: 8px 0 72px;
  background: transparent;
}

body.page-ranking .ranking-tabs-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  margin: 0 auto 20px;
  padding: 4px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}
body.page-ranking .ranking-tabs-scroll::-webkit-scrollbar {
  height: 7px;
}
body.page-ranking .ranking-tabs-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 999px;
}
body.page-ranking .ranking-tabs-scroll .ranking-tabs {
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

body.page-ranking .ranking-table-wrapper--page {
  padding: 0;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

body.page-ranking .ranking-table-wrapper--page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 100% at 100% 0%, var(--accent-glow), transparent 55%);
  pointer-events: none;
}

body.page-ranking .ranking-table-wrapper--page > table {
  position: relative;
  z-index: 1;
}

.ranking-section.ranking-locked {
  position: relative;
}
.ranking-section.ranking-locked .ranking-tabs,
.ranking-section.ranking-locked .ranking-table-wrapper,
.ranking-section.ranking-locked .ranking-pagination {
  pointer-events: none;
  filter: blur(1.5px);
  opacity: 0.35;
}
.ranking-locked-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}
.ranking-locked-inner {
  width: min(920px, 94vw);
  text-align: center;
}
.ranking-locked-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--accent);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}
.ranking-locked-box {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ranking-locked-accent {
  color: var(--accent);
}

body.page-ranking .ranking-section.ranking-locked {
  min-height: 420px;
}
body.page-ranking .ranking-section.ranking-locked > .container {
  min-height: 420px;
}

.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  width: fit-content;
  border: 1px solid var(--border);
  
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.ranking-tabs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 200px at 50% 0%, var(--accent-glow), transparent 62%);
  pointer-events: none;
  opacity: 0.5;
}
.tab-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab-btn i {
  opacity: 0.85;
}
.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}
.tab-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.ranking-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.ranking-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.ranking-table-v2 {
  min-width: 980px;
}
.ranking-table-v2 th,
.ranking-table-v2 td {
  padding: 16px 14px;
}
.ranking-table-v2 thead th {
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.ranking-table-v2 tbody tr {
  background: rgba(0, 0, 0, 0.12);
}
.ranking-table-v2 tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.ranking-table-v2 tbody tr:hover {
  background: var(--accent-dim);
}

.ranking-table-v2 .pvp-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.ranking-table-v2 .pvp-stat i {
  opacity: 0.7;
  font-size: 0.75em;
}
.ranking-table-v2 .pvp-stat--kills i {
  color: var(--accent);
}
.ranking-table-v2 .pvp-stat--deaths i {
  color: rgba(255, 107, 107, 0.85);
}
.ranking-table-v2 .pvp-th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ranking-table-v2 .pvp-th i {
  font-size: 0.75em;
  opacity: 0.8;
}
.ranking-table-v2 .pvp-th--kills i {
  color: var(--accent);
}
.ranking-table-v2 .pvp-th--deaths i {
  color: rgba(255, 107, 107, 0.85);
}
.ranking-table-v2 .pvp-th--kd {
  color: rgba(255, 220, 140, 0.9);
}
.ranking-table-v2 .pvp-kd-cell {
  vertical-align: middle;
}
.ranking-table-v2 .kd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ranking-table-v2 .kd-badge__value {
  font-size: 1rem;
}
.ranking-table-v2 .kd-badge__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}
.ranking-table-v2 .kd-badge.kd-bad {
  background: linear-gradient(135deg, rgba(180, 50, 50, 0.35), rgba(120, 30, 30, 0.4));
  color: rgba(255, 180, 180, 0.98);
  border-color: rgba(255, 100, 100, 0.25);
}
.ranking-table-v2 .kd-badge.kd-mid {
  background: linear-gradient(135deg, rgba(200, 110, 30, 0.3), rgba(140, 70, 20, 0.35));
  color: rgba(255, 200, 140, 0.98);
  border-color: rgba(255, 150, 50, 0.25);
}
.ranking-table-v2 .kd-badge.kd-good {
  background: linear-gradient(135deg, rgba(40, 140, 80, 0.3), rgba(20, 100, 55, 0.35));
  color: rgba(160, 255, 200, 0.98);
  border-color: rgba(80, 220, 140, 0.25);
}
.ranking-table-v2 .kd-badge.kd-great {
  background: linear-gradient(135deg, rgba(30, 160, 90, 0.35), rgba(15, 120, 65, 0.4));
  color: rgba(140, 255, 180, 0.98);
  border-color: rgba(60, 230, 140, 0.3);
  box-shadow: 0 2px 10px rgba(40, 200, 100, 0.15);
}
.ranking-table-v2 .kd-badge.kd-god {
  background: linear-gradient(135deg, rgba(255, 180, 40, 0.25), rgba(200, 130, 20, 0.35));
  color: rgba(255, 230, 160, 0.98);
  border-color: rgba(180, 220, 255, 0.35);
  box-shadow: 0 2px 12px rgba(255, 180, 50, 0.2);
}
.ranking-table-v2 .kd-badge__label {
  display: none;
}
.ranking-table-v2 .kd-badge.kd-badge--rank1 {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.35), rgba(184, 134, 11, 0.45));
  color: rgba(255, 235, 180, 0.98);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 2px 14px rgba(255, 193, 7, 0.3);
}
.ranking-table-v2 .kd-badge.kd-badge--rank2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.35), rgba(140, 140, 140, 0.45));
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(220, 220, 220, 0.5);
  box-shadow: 0 2px 12px rgba(180, 180, 180, 0.25);
}
.ranking-table-v2 .kd-badge.kd-badge--rank3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.4), rgba(139, 69, 19, 0.5));
  color: rgba(255, 220, 190, 0.98);
  border-color: rgba(205, 127, 50, 0.55);
  box-shadow: 0 2px 12px rgba(205, 127, 50, 0.3);
}

.ranking-table-v2 tbody tr.rank-row.rank-row--1 {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.04));
  border-left: 3px solid rgba(255, 193, 7, 0.9);
  box-shadow: inset 0 0 40px rgba(255, 193, 7, 0.06);
}
.ranking-table-v2 tbody tr.rank-row.rank-row--1 .rank-number {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #1a1a1a;
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.4);
  font-weight: 900;
}
.ranking-table-v2 tbody tr.rank-row.rank-row--1 .player-name-v2 {
  color: rgba(255, 215, 0, 0.98);
  font-weight: 800;
}
.ranking-table-v2 tbody tr.rank-row.rank-row--2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.14), rgba(192, 192, 192, 0.04));
  border-left: 3px solid rgba(192, 192, 192, 0.85);
  box-shadow: inset 0 0 40px rgba(192, 192, 192, 0.05);
}
.ranking-table-v2 tbody tr.rank-row.rank-row--2 .rank-number {
  background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
  color: #1a1a1a;
  border-color: rgba(200, 200, 200, 0.6);
  box-shadow: 0 2px 10px rgba(180, 180, 180, 0.35);
  font-weight: 900;
}
.ranking-table-v2 tbody tr.rank-row.rank-row--2 .player-name-v2 {
  color: rgba(220, 220, 220, 0.98);
  font-weight: 800;
}
.ranking-table-v2 tbody tr.rank-row.rank-row--3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.14), rgba(205, 127, 50, 0.04));
  border-left: 3px solid rgba(205, 127, 50, 0.85);
  box-shadow: inset 0 0 40px rgba(205, 127, 50, 0.06);
}
.ranking-table-v2 tbody tr.rank-row.rank-row--3 .rank-number {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
  border-color: rgba(205, 127, 50, 0.7);
  box-shadow: 0 2px 10px rgba(205, 127, 50, 0.35);
  font-weight: 900;
}
.ranking-table-v2 tbody tr.rank-row.rank-row--3 .player-name-v2 {
  color: rgba(230, 180, 130, 0.98);
  font-weight: 800;
}
.ranking-table-v2 tbody tr.rank-row.rank-row--top10 {
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  border-left: 2px solid var(--accent-border);
}
.ranking-table-v2 tbody tr.rank-row.rank-row--top10 .rank-number {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: rgba(255, 220, 160, 0.98);
  font-weight: 800;
}

.ranking-table-v2 .col-rank {
  width: 90px;
}
.ranking-table-v2 .col-lv,
.ranking-table-v2 .col-resets {
  width: 140px;
}
.ranking-table-v2 .col-guild {
  width: 90px;
}
.ranking-table-v2 .col-guild--character {
  width: auto;
  min-width: 168px;
  max-width: 280px;
}
.ranking-table-v2 .col-gens {
  width: 80px;
}
.ranking-table-v2 .col-country {
  width: 90px;
}

body.page-ranking .ranking-table-v2 {
  min-width: 0;
  width: 100%;
}
body.page-ranking .ranking-table-v2 thead th {
  padding: 14px 16px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
body.page-ranking .ranking-table-v2 tbody tr {
  background: var(--bg-card);
}
body.page-ranking .ranking-table-v2 tbody tr:nth-child(even) {
  background: var(--bg-card2);
}
body.page-ranking .ranking-table-v2 tbody tr:hover {
  background: var(--accent-dim);
}
body.page-ranking .ranking-table-v2 td {
  border-bottom: 1px solid var(--border);
}

.ranking-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}
.ranking-pagination--inside {
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 16px 0 20px;
  margin-top: 0;
  backdrop-filter: none;
}
.rank-page-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 900;
  font-size: 0.85rem;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease;
}
.rank-page-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--text-primary);
}
.rank-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.rank-page-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 14px 34px var(--accent-glow);
}
.rank-page-btn--prev,
.rank-page-btn--next {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.rank-page-btn--prev i,
.rank-page-btn--next i {
  font-size: 0.8rem;
  opacity: 0.92;
}
.rank-page-dots {
  opacity: 0.55;
  padding: 0 4px;
  color: var(--text-muted);
  font-weight: 900;
}

.rank-cell {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.rank-title {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.95;
}
.rank-number {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  bottom: -4px;
  right: -4px;
}
.ranking-table-v2 .col-rank .rank-cell .rank-number {
  position: static;
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  border-color: var(--accent-border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.55);
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-name-v2 {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.rank-avatar-cell {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}
.rank-avatar-cell .rank-number {
  bottom: 2px;
  right: 2px;
}
.rank-frame {
  position: absolute;
  inset: 0;
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: 0.98;
}
.rank-avatar-img {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
.online-dot.is-online {
  background: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}
.online-dot.is-offline {
  background: rgba(255, 255, 255, 0.25);
}

.class-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.class-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px;
}
.class-name {
  color: rgba(255, 255, 255, 0.85);
}

.gens-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
.flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.guild-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
}
.guild-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--accent-border);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}
.guild-mark.guild-mark--char {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}
.guild-logo.guild-logo--char {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.72rem;
}
.guild-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  vertical-align: middle;
}
.guild-cell__mark {
  flex-shrink: 0;
  line-height: 0;
}
.guild-cell__name {
  min-width: 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guild-cell__empty {
  color: var(--text-muted);
  font-weight: 600;
}
body.page-ranking .ranking-table-v2 .col-guild--character {
  text-align: left;
}

.ranking-table-v2 .col-logo {
  width: 90px;
}
.ranking-table-v2 .col-logo,
.ranking-table-v2 .col-rank {
  text-align: center;
}
.ranking-table-v2 .col-logo .guild-logo,
.ranking-table-v2 .col-logo .guild-mark {
  margin: 0 auto;
}

.guild-mark-img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  border-radius: 4px;
  border: 1px solid var(--border);
  vertical-align: middle;
}

@media (max-width: 768px) {
  body.page-ranking .ranking-section--page > .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  body.page-ranking .ranking-tabs-scroll {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 14px;
  }

  body.page-ranking .ranking-tabs-scroll .ranking-tabs {
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    padding: 8px;
    gap: 8px;
  }

  body.page-ranking .tab-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.68rem;
  }

  body.page-ranking .ranking-table-wrapper--page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
  }

  body.page-ranking .ranking-table-wrapper {
    padding: 0;
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }

  body.page-ranking .ranking-table-v2 {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
  }

  body.page-ranking .ranking-table-v2 thead {
    display: none;
  }

  body.page-ranking .ranking-table-v2 tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  body.page-ranking .ranking-table-v2 tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 8px 10px;
    padding: 14px;
    border-radius: 14px;
    background: radial-gradient(120% 140% at 0% 0%, var(--accent-dim), rgba(0, 0, 0, 0.28));
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  }

  body.page-ranking .ranking-table-v2 tbody tr td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
    width: auto;
  }

  body.page-ranking .ranking-table-v2 .col-rank {
    flex: 0 0 56px;
    order: 1;
    align-self: flex-start;
  }

  body.page-ranking .ranking-table-v2 .col-name {
    flex: 1 1 calc(100% - 68px);
    min-width: 0;
    order: 2;
    align-self: center;
  }

  body.page-ranking .ranking-table-v2 .col-class {
    flex: 1 1 100%;
    order: 3;
    padding-left: 66px;
    margin-top: -2px;
    opacity: 0.92;
    font-size: 0.84rem;
    box-sizing: border-box;
  }

  body.page-ranking .ranking-table-v2 .col-guild.col-guild--character {
    flex: 1 1 100%;
    order: 4;
    padding-left: 66px;
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
  }

  body.page-ranking .ranking-table-v2 .col-guild-name {
    flex: 1 1 calc(100% - 68px);
    order: 3;
    display: block !important;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
    min-width: 0;
  }

  body.page-ranking .ranking-table-v2 .col-logo {
    flex: 0 0 auto;
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  body.page-ranking .ranking-table-v2 .col-lv,
  body.page-ranking .ranking-table-v2 .col-resets,
  body.page-ranking .ranking-table-v2 .col-gr,
  body.page-ranking .ranking-table-v2 .col-gens,
  body.page-ranking .ranking-table-v2 .col-country,
  body.page-ranking .ranking-table-v2 .col-master,
  body.page-ranking .ranking-table-v2 .col-members,
  body.page-ranking .ranking-table-v2 .col-score,
  body.page-ranking .ranking-table-v2 .col-guild.pvp-kd-cell {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(33.333% - 8px);
    min-width: 72px;
    max-width: 100%;
    order: 10;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.38);
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
  }

  body.page-ranking .ranking-table-v2 tbody tr td[colspan] {
    flex: 1 1 100%;
    order: 0;
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 20px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
  }

  body.page-ranking .ranking-table-v2 .col-resets:not(.pvp-kd-cell) {
    border-color: var(--accent-border);
    background: var(--accent-dim);
  }

  body.page-ranking .ranking-table-v2 .col-gr {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.1);
  }

  body.page-ranking .ranking-table-v2 .name-cell {
    min-width: 0;
    width: 100%;
  }

  body.page-ranking .ranking-table-v2 .player-name-v2 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  body.page-ranking .ranking-table-v2 .class-name,
  body.page-ranking .ranking-table-v2 .guild-cell__name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-ranking .ranking-table-v2 .guild-cell {
    width: 100%;
    max-width: 100%;
  }

  body.page-ranking .ranking-table-v2 .rank-avatar-cell {
    width: 56px;
    height: 56px;
  }

  body.page-ranking .ranking-table-v2 .rank-frame {
    width: 56px;
    height: 56px;
  }

  body.page-ranking .ranking-table-v2 .rank-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  body.page-ranking .ranking-table-v2 .rank-cell {
    width: 48px;
    height: 48px;
  }

  body.page-ranking .ranking-table-v2 .col-rank .rank-number {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  body.page-ranking .ranking-table-v2 .pvp-stat {
    font-size: 0.78rem;
    gap: 4px;
  }

  body.page-ranking .ranking-table-v2 .kd-badge {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  body.page-ranking .ranking-table-v2.ranking-table--guilds .col-class,
  body.page-ranking .ranking-table-v2.ranking-table--guilds .col-name {
    display: none !important;
  }

  body.page-ranking .ranking-table-v2.ranking-table--guilds .col-guild-name {
    flex: 1 1 calc(100% - 120px);
    order: 3;
    padding-left: 0;
  }

  body.page-ranking .ranking-table-v2.ranking-table--guilds .col-master,
  body.page-ranking .ranking-table-v2.ranking-table--guilds .col-members,
  body.page-ranking .ranking-table-v2.ranking-table--guilds .col-score {
    flex: 1 1 calc(33.333% - 8px);
  }

  
  body.page-ranking .ranking-table-v2.ranking-table--character .col-gens,
  body.page-ranking .ranking-table-v2.ranking-table--character .col-country {
    display: none !important;
  }

  body.page-ranking .ranking-table-v2.ranking-table--pvp .col-class {
    padding-left: 66px;
  }

  body.page-ranking .ranking-table-v2.ranking-table--hunt .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--bc .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--ds .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--cc .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--duels .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--it .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--lms .col-lv,
  body.page-ranking .ranking-table-v2.ranking-table--achievements .col-lv {
    flex: 1 1 100%;
  }

  body.page-ranking .ranking-table-v2.ranking-table--gens .col-gens {
    display: inline-flex !important;
    flex: 0 0 auto;
    order: 4;
    padding-left: 66px;
    margin-top: -4px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: 0;
  }

  body.page-ranking .ranking-pagination,
  body.page-ranking .ranking-pagination--inside {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    margin-top: 14px;
  }
}

@media (max-width: 420px) {
  body.page-ranking .ranking-table-v2 .col-lv,
  body.page-ranking .ranking-table-v2 .col-resets,
  body.page-ranking .ranking-table-v2 .col-gr,
  body.page-ranking .ranking-table-v2 .col-guild.pvp-kd-cell,
  body.page-ranking .ranking-table-v2 .col-master,
  body.page-ranking .ranking-table-v2 .col-members,
  body.page-ranking .ranking-table-v2 .col-score {
    flex: 1 1 calc(50% - 6px);
  }
}

body.page-ranking .ranking-section--modern {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 52px) 0 clamp(72px, 9vw, 100px);
  background: #030a14;
  overflow: hidden;
}

body.page-ranking .ranking-page__hex {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--site-bg-hex-opacity, 0.04);
  background-image: var(--site-bg-hex-pattern);
  background-size: var(--site-bg-hex-size);
}

body.page-ranking .ranking-page__inner {
  position: relative;
  z-index: 1;
}

body.page-ranking .ranking-toolbar {
  margin-bottom: clamp(18px, 3vw, 28px);
}

body.page-ranking .ranking-tabs-scroll {
  margin-bottom: 0;
  padding: 2px 0 8px;
}

body.page-ranking .ranking-tabs {
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(122, 166, 255, 0.24);
  background: rgba(3, 10, 26, 0.82);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-ranking .ranking-tabs::before {
  opacity: 0.35;
  background: radial-gradient(ellipse 90% 120% at 50% 0%, rgba(13, 71, 152, 0.35), transparent 60%);
}

body.page-ranking .tab-btn {
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: rgba(186, 214, 255, 0.55);
}

body.page-ranking .tab-btn:hover {
  color: #e8f4ff;
  background: rgba(13, 71, 152, 0.22);
  border-color: rgba(122, 166, 255, 0.28);
}

body.page-ranking .tab-btn.active {
  color: #f5faff;
  border-color: rgba(158, 210, 255, 0.42);
  background: linear-gradient(135deg, #0d4798 0%, #0a307e 55%, #061228 100%);
  box-shadow:
    0 10px 28px rgba(13, 71, 152, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.page-ranking .ranking-table-shell {
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(122, 166, 255, 0.28) 0%,
    rgba(13, 71, 152, 0.12) 40%,
    rgba(122, 166, 255, 0.08) 100%
  );
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

body.page-ranking .ranking-table-wrapper--page {
  border-radius: 21px;
  border: 1px solid rgba(122, 166, 255, 0.16) !important;
  background: rgba(3, 10, 26, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: auto;
  max-height: min(72vh, 920px);
}

body.page-ranking .ranking-table-wrapper--page::before {
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(13, 71, 152, 0.2), transparent 55%);
  opacity: 1;
}

body.page-ranking .ranking-table-v2 thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

body.page-ranking .ranking-table-v2 thead th {
  padding: 16px 14px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: rgba(186, 214, 255, 0.75) !important;
  background: linear-gradient(180deg, rgba(13, 71, 152, 0.28) 0%, rgba(3, 10, 26, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(122, 166, 255, 0.22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-ranking .ranking-table-v2 tbody tr.rank-row {
  transition: background 0.18s ease;
}

body.page-ranking .ranking-table-v2 tbody tr {
  background: rgba(3, 10, 26, 0.55);
}

body.page-ranking .ranking-table-v2 tbody tr:nth-child(even) {
  background: rgba(6, 18, 40, 0.45);
}

body.page-ranking .ranking-table-v2 tbody tr:hover {
  background: rgba(13, 71, 152, 0.2) !important;
}

body.page-ranking .ranking-table-v2 td {
  padding: 12px 14px;
  border-bottom-color: rgba(122, 166, 255, 0.08) !important;
  font-size: 0.9rem;
}

body.page-ranking .player-name-v2 {
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.page-ranking .rank-avatar-img {
  border-radius: 12px;
  border: 2px solid rgba(122, 166, 255, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.page-ranking .ranking-table-v2 .col-rank .rank-cell .rank-number,
body.page-ranking .rank-avatar-cell .rank-number {
  border-color: rgba(122, 166, 255, 0.35);
  background: rgba(6, 18, 40, 0.9);
  color: #8ecfff;
  font-weight: 800;
}

body.page-ranking .ranking-table-v2 tbody tr.rank-row.rank-row--top10 {
  background: linear-gradient(90deg, rgba(13, 71, 152, 0.22), rgba(3, 10, 26, 0.4)) !important;
  border-left: 2px solid rgba(122, 166, 255, 0.45);
}

body.page-ranking .ranking-table-v2 tbody tr.rank-row.rank-row--top10 .rank-number {
  color: #b8dcff !important;
  background: rgba(13, 71, 152, 0.35);
  border-color: rgba(158, 210, 255, 0.4);
}

body.page-ranking .ranking-pagination,
body.page-ranking .ranking-pagination--inside {
  gap: 6px;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(122, 166, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

body.page-ranking .rank-page-btn {
  border-radius: 10px;
  border-color: rgba(122, 166, 255, 0.22);
  background: rgba(3, 10, 26, 0.75);
}

body.page-ranking .rank-page-btn:hover {
  border-color: rgba(158, 210, 255, 0.4);
  background: rgba(13, 71, 152, 0.25);
}

body.page-ranking .rank-page-btn.active {
  border-color: rgba(158, 210, 255, 0.5);
  background: linear-gradient(135deg, #0d4798, #0a307e);
  box-shadow: 0 8px 22px rgba(13, 71, 152, 0.35);
}

body.page-ranking .class-name {
  color: rgba(200, 225, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 600;
}

body.page-ranking .guild-cell__name {
  color: rgba(230, 242, 255, 0.9);
}

@media (max-width: 768px) {
  body.page-ranking .ranking-table-shell {
    border-radius: 18px;
  }

  body.page-ranking .ranking-table-wrapper--page {
    border-radius: 17px;
    max-height: none;
  }

  body.page-ranking .ranking-tabs {
    border-radius: 14px;
  }
}

body.page-terms {
  background: var(--bg-base);
}

.terms-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 80px;
}

#terms-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: fit-content;
}

#terms-nav .terms-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  width: 100%;
}

#terms-nav .terms-nav-btn i {
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.terms-nav-loading,
.terms-nav-error {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 12px 4px;
}

.terms-content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#terms-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

#terms-section-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

#terms-section-content h1,
#terms-section-content h2,
#terms-section-content h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 24px 0 12px;
  letter-spacing: 0.03em;
}

#terms-section-content h1 { font-size: 1.35rem; }
#terms-section-content h2 { font-size: 1.15rem; }
#terms-section-content h3 { font-size: 1rem; }

#terms-section-content p {
  margin-bottom: 14px;
}

#terms-section-content ul,
#terms-section-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

#terms-section-content li {
  margin-bottom: 6px;
}

#terms-section-content strong {
  color: var(--text-primary);
}

#terms-section-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#terms-section-content a:hover {
  color: var(--text-primary);
}

#terms-section-content .tos-footer-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .terms-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
  }

  #terms-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #terms-nav .terms-nav-btn {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
  }
}

.page-donation-status {
  --ds-accent: #ff9a4d;
  --ds-accent-deep: #5eb8ff;
  --ds-success: #5ee88a;
  --ds-error: #ff6b6b;
  --ds-muted: rgba(255, 255, 255, 0.62);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-donation-status #footer-placeholder {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.page-donation-status main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h, 80px) + 16px) 20px 24px;
  box-sizing: border-box;
}

.donation-status-hero {
  width: 100%;
  max-width: 560px;
  min-height: 0;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.donation-status-panel {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(28px, 4vw, 36px) clamp(24px, 4vw, 32px) clamp(32px, 4vw, 40px);
  border-radius: 22px;
  border: 1px solid rgba(94, 184, 255, 0.38);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(94, 184, 255, 0.16) 0%, transparent 55%),
    linear-gradient(168deg, rgba(26, 18, 34, 0.99) 0%, rgba(8, 6, 14, 0.99) 48%, rgba(4, 3, 8, 1) 100%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(94, 184, 255, 0.12);
  text-align: center;
  overflow: hidden;
}

.donation-status-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 77, 0.65), transparent);
  pointer-events: none;
}

.donation-status-panel__glow {
  position: absolute;
  top: -35%;
  right: -15%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(94, 184, 255, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.donation-status-view {
  position: relative;
  z-index: 1;
}

.donation-status-view.hidden,
.donation-status-view[hidden] {
  display: none !important;
}

.donation-status-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.donation-status-icon-wrap i {
  font-size: 2.75rem;
  line-height: 1;
}

.donation-status-icon-wrap--gold {
  border-color: rgba(255, 154, 77, 0.45);
  box-shadow:
    0 0 0 6px rgba(94, 184, 255, 0.1),
    0 14px 36px rgba(94, 184, 255, 0.25);
  color: var(--ds-accent);
}

.donation-status-icon-wrap--success {
  border-color: rgba(94, 232, 138, 0.45);
  box-shadow:
    0 0 0 6px rgba(46, 204, 113, 0.1),
    0 14px 36px rgba(46, 204, 113, 0.2);
  color: var(--ds-success);
}

.donation-status-icon-wrap--error {
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow:
    0 0 0 6px rgba(239, 68, 68, 0.08),
    0 14px 36px rgba(239, 68, 68, 0.18);
  color: var(--ds-error);
}

.donation-status-icon-wrap--muted {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

.donation-status-icon-wrap--spin i {
  animation: donationStatusSpin 0.9s linear infinite;
}

@keyframes donationStatusSpin {
  to {
    transform: rotate(360deg);
  }
}

.donation-status-eyebrow {
  margin: 0 0 10px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ds-accent);
}

.donation-status-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
}

.donation-status-title--gold {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 28px rgba(94, 184, 255, 0.3);
}

.donation-status-title--success {
  color: var(--ds-success);
  text-shadow: 0 0 24px rgba(94, 232, 138, 0.25);
}

.donation-status-title--error {
  color: var(--ds-error);
}

.donation-status-title--muted {
  color: rgba(255, 255, 255, 0.75);
}

.donation-status-message {
  margin: 0 0 24px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ds-muted);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.donation-status-message strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.donation-status-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.75;
}

.donation-status-order-ref {
  margin-bottom: 22px;
}

.donation-status-order-ref p {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.donation-status-order-id {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(94, 184, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.donation-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(100%, 260px);
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0a;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ds-accent-deep) 0%, var(--ds-accent) 50%, #ffb347 100%);
  box-shadow:
    0 14px 36px rgba(94, 184, 255, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.donation-status-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(94, 184, 255, 0.5);
  color: #0a0a0a;
}

.donation-status-progress {
  width: min(280px, 80%);
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.donation-status-progress__bar {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ds-accent-deep), var(--ds-accent));
  animation: donationStatusProgress 1.4s ease-in-out infinite;
}

@keyframes donationStatusProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

@media (max-width: 480px) {
  .page-donation-status main {
    padding: calc(var(--nav-h, 72px) + 12px) max(14px, env(safe-area-inset-left)) 16px;
  }

  .donation-status-panel {
    padding: 26px 18px 30px;
    border-radius: 18px;
  }

  .donation-status-icon-wrap {
    width: 76px;
    height: 76px;
  }

  .donation-status-icon-wrap i {
    font-size: 2.35rem;
  }
}

.page-shop {
  --shop-cut: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --shop-panel: rgba(24, 21, 29, 0.88);
  --shop-border: var(--accent-border);
  --shop-muted: var(--text-secondary);
  --bg-input: rgba(10, 8, 7, 0.92);
  min-height: 100vh;
  background: transparent;
  color: var(--text-primary);
}

.shop-wrap,
.shop-main {
  flex: 1 1 auto;
  width: 100%;
}

body.page-shop .shop-page-body {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.shop-inner {
  width: 100%;
  max-width: 100%;
}

.shop-hero {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.shop-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--text-primary);
  text-shadow: 0 0 28px var(--accent-dim);
}

.shop-hero p {
  margin: 0;
  color: var(--shop-muted);
  max-width: 640px;
  line-height: 1.55;
}

body.page-shop .db-logout-btn.hidden {
  display: none;
}

.shop-store {
  position: relative;
  padding-bottom: 24px;
}

.shop-store-hero {
  position: relative;
  z-index: 5;
  margin-bottom: 22px;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid rgba(94, 184, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(94, 184, 255, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, rgba(28, 22, 36, 0.92) 0%, rgba(8, 6, 14, 0.88) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shop-store-hero__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: min(420px, 55vw);
  height: 140%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(94, 184, 255, 0.35) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.85;
  clip-path: inset(0 round 20px);
}

.shop-store-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 28px;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px);
}

.shop-store-eyebrow {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.shop-store-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(94, 184, 255, 0.25);
}

.shop-store-lead {
  margin: 0;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--shop-muted);
}

.shop-store-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: min(100%, 340px);
  position: relative;
  z-index: 2;
}

.shop-store-panel {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 10, 18, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shop-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.shop-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-navigation--pill {
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.shop-nav-btn {
  padding: 11px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
}

.shop-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.shop-nav-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(94, 184, 255, 0.35);
}

.shop-currency {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-currency-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

.shop-currency .currency-select-wrap {
  position: relative;
  z-index: 30;
}

.shop-currency .currency-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 32px 0 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(94, 184, 255, 0.35);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-currency .currency-select-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(94, 184, 255, 0.2);
}

.shop-currency .currency-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  background: rgba(18, 14, 24, 0.98);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 200;
  padding: 8px;
  display: none;
}

.shop-currency .currency-select-menu.open {
  display: block;
}

.shop-currency .currency-option {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.shop-currency .currency-option + .currency-option {
  margin-top: 4px;
}

.shop-currency .currency-option:hover,
.shop-currency .currency-option.is-selected {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

.shop-layout-grid {
  display: block;
}

.shop-content-section {
  min-height: 420px;
}

.shop-view {
  display: none;
}

.shop-view.active {
  display: block;
}

.packages-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  padding-bottom: 8px;
}

.shop-package-section {
  --section-accent: var(--accent);
  --section-glow: rgba(94, 184, 255, 0.22);
}

.shop-package-section--vip {
  --section-accent: #f5c451;
  --section-glow: rgba(245, 196, 81, 0.35);
}

.shop-package-section--currency {
  --section-accent: #7dd3fc;
  --section-glow: rgba(125, 211, 252, 0.22);
}

.shop-package-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: clamp(14px, 2vw, 18px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 35%, transparent);
  background: linear-gradient(
    95deg,
    color-mix(in srgb, var(--section-glow) 55%, transparent) 0%,
    rgba(255, 255, 255, 0.02) 55%
  );
}

.shop-package-section__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--section-accent);
  background: color-mix(in srgb, var(--section-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--section-accent) 28%, transparent);
  font-size: 1.15rem;
}

.shop-package-section__copy {
  flex: 1;
  min-width: 0;
}

.shop-package-section__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--section-accent);
}

.shop-package-section__sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245, 242, 237, 0.62);
}

.shop-package-section__badge {
  flex-shrink: 0;
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--section-accent);
  border: 1px solid color-mix(in srgb, var(--section-accent) 40%, transparent);
  background: color-mix(in srgb, var(--section-accent) 10%, transparent);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 22px);
  padding-bottom: 12px;
}

@media (min-width: 1200px) {
  .packages-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.package-card {
  --pkg-accent: var(--accent);
  --pkg-glow: rgba(94, 184, 255, 0.35);
  --mx: 0.5;
  --my: 0.35;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 38%),
    linear-gradient(180deg, rgba(22, 18, 30, 0.95) 0%, rgba(6, 5, 10, 0.98) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.package-card--silver { --pkg-accent: #c0c8d4; --pkg-glow: rgba(192, 200, 212, 0.35); }
.package-card--gold { --pkg-accent: #ffb347; --pkg-glow: rgba(255, 179, 71, 0.4); }
.package-card--hot { --pkg-accent: #ff6b4a; --pkg-glow: rgba(255, 107, 74, 0.42); }
.package-card--platinum { --pkg-accent: #9fd4ff; --pkg-glow: rgba(159, 212, 255, 0.35); }
.package-card--ruby { --pkg-accent: #ff5c8a; --pkg-glow: rgba(255, 92, 138, 0.38); }
.package-card--mythic { --pkg-accent: #c084fc; --pkg-glow: rgba(192, 132, 252, 0.42); }

.package-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--pkg-accent) 55%, transparent);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.5),
    0 0 36px var(--pkg-glow);
}

.package-card__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at calc(var(--mx) * 100%) calc(var(--my) * 100%),
    color-mix(in srgb, var(--pkg-accent) 22%, transparent),
    transparent 58%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.package-card__body {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 28px 22px 12px;
  display: flex;
  flex-direction: column;
}

.package-card__foot {
  position: relative;
  z-index: 2;
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.package-deal-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0a0a0a;
  background: linear-gradient(135deg, #5ee88a, #2ecc71);
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.35);
}

.package-badge-preorder {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(45, 255, 154, 0.35);
  background: rgba(0, 24, 16, 0.82);
  color: #c8ffe8;
  cursor: pointer;
}

.package-visual {
  text-align: center;
  margin-bottom: 16px;
}

.package-icon-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in srgb, var(--pkg-accent) 45%, transparent);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--pkg-accent) 12%, transparent),
    0 12px 32px var(--pkg-glow);
}

.package-visual .package-icon-fa {
  font-size: 2.35rem;
  color: var(--pkg-accent);
  filter: drop-shadow(0 0 14px var(--pkg-glow));
}

.package-visual .category-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--shop-muted);
  background: rgba(255, 255, 255, 0.04);
}

.package-visual .category-tag--vip {
  color: #f5c451;
  border-color: rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.12);
  box-shadow: 0 0 18px rgba(245, 196, 81, 0.2);
}

.package-card--vip-offer {
  --pkg-accent: #f5c451;
  --pkg-glow: rgba(245, 196, 81, 0.38);
  border-color: rgba(245, 196, 81, 0.35);
}

.package-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.package-description {
  text-align: center;
  font-size: 0.84rem;
  color: var(--shop-muted);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.package-price {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--pkg-accent);
  margin-bottom: 14px;
  text-shadow: 0 0 24px var(--pkg-glow);
}

.package-price del {
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 8px;
  font-size: 0.95rem;
}

.action-btn {
  width: 100%;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--pkg-accent) 0%, color-mix(in srgb, var(--pkg-accent) 70%, #fff) 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px var(--pkg-glow);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.action-btn__icon {
  font-size: 0.75rem;
  opacity: 0.85;
}

.action-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px var(--pkg-glow);
}

.action-btn:active {
  transform: scale(0.98);
}

.shop-checkout-modal {
  --checkout-accent: #ff9a4d;
  --checkout-accent-deep: #5eb8ff;
  --checkout-panel: rgba(14, 10, 22, 0.98);
  --checkout-discount: #5ee88a;
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
}

.shop-checkout-modal.open {
  display: flex;
}

body.shop-checkout-open {
  overflow: hidden;
}

.shop-checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shop-checkout-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(94, 184, 255, 0.38);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(94, 184, 255, 0.16) 0%, transparent 55%),
    linear-gradient(168deg, rgba(26, 18, 34, 0.99) 0%, rgba(8, 6, 14, 0.99) 48%, rgba(4, 3, 8, 1) 100%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(94, 184, 255, 0.12);
  padding: 26px 26px 28px;
}

.shop-checkout-modal__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 77, 0.65), transparent);
  pointer-events: none;
}

.shop-checkout-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.shop-checkout-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 28px rgba(94, 184, 255, 0.25);
}

.shop-checkout-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.shop-checkout-modal__close:hover {
  border-color: rgba(94, 184, 255, 0.55);
  color: #fff;
  background: rgba(94, 184, 255, 0.18);
  transform: scale(1.04);
}

.shop-checkout-modal .cart-tabbed-view {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.shop-checkout-modal .cart-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-checkout-modal .cart-tabs .shop-nav-btn {
  flex: unset;
  width: 100%;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.shop-checkout-modal .cart-tabs .shop-nav-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.shop-checkout-modal .cart-tabs .shop-nav-btn.active {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--checkout-accent-deep) 0%, var(--checkout-accent) 55%, #ffb347 100%);
  border-color: transparent;
  box-shadow:
    0 10px 28px rgba(94, 184, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.shop-checkout-modal .cart-section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.shop-checkout-modal .cart-items-list {
  max-height: none;
  overflow: visible;
  margin-bottom: 18px;
  padding-right: 0;
}

.shop-checkout-modal .cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shop-checkout-modal .cart-item .item-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.shop-checkout-modal .cart-item .item-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--checkout-accent);
  text-shadow: 0 0 20px rgba(94, 184, 255, 0.35);
}

.shop-checkout-modal .gift-option-header,
.shop-checkout-modal .donation-policy-agreement {
  align-items: center;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.shop-checkout-modal .gift-option-header input[type='checkbox'],
.shop-checkout-modal .donation-policy-agreement input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--checkout-accent-deep);
  cursor: pointer;
}

.shop-checkout-modal .gift-details-container {
  margin-bottom: 14px;
}

.shop-checkout-modal .gift-details-container input,
.shop-checkout-modal .affiliate-code-input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-checkout-modal .gift-details-container input:focus,
.shop-checkout-modal .affiliate-code-input:focus {
  outline: none;
  border-color: rgba(94, 184, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 184, 255, 0.15);
}

.shop-checkout-modal .affiliate-code-section {
  margin: 0 0 18px;
  padding-top: 0;
  border-top: none;
}

.shop-checkout-modal .affiliate-code-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
}

.shop-checkout-modal .order-summary {
  margin-top: 8px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-checkout-modal .summary-line {
  margin: 10px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.shop-checkout-modal .summary-line span:last-child:not(.discount-amount) {
  font-weight: 700;
  color: var(--checkout-accent);
}

.shop-checkout-modal .summary-line .discount-amount {
  color: var(--checkout-discount);
  font-weight: 700;
}

.shop-checkout-modal .summary-line.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
}

.shop-checkout-modal .summary-line.total span:first-child {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.shop-checkout-modal .summary-line.total span:last-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--checkout-accent);
  text-shadow: 0 0 24px rgba(94, 184, 255, 0.35);
}

.shop-checkout-modal .payment-options h4 {
  margin: 0 0 14px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
}

.shop-checkout-modal .checkout-payment-recap {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.38);
}

.shop-checkout-modal .checkout-recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shop-checkout-modal .checkout-recap-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.shop-checkout-modal .checkout-recap-price {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--checkout-accent);
  white-space: nowrap;
}

.shop-checkout-modal .checkout-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  margin-bottom: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.shop-checkout-modal .checkout-recap-total strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--checkout-accent);
  text-transform: none;
  letter-spacing: 0;
}

.shop-checkout-modal .checkout-recap-edit {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.shop-checkout-modal .checkout-recap-edit:hover {
  border-color: rgba(94, 184, 255, 0.45);
  color: var(--checkout-accent);
  background: rgba(94, 184, 255, 0.08);
}

.shop-checkout-modal .payment-method-selection {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.shop-checkout-modal .payment-method-btn {
  flex: none;
  width: 100%;
  justify-content: flex-start;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(94, 184, 255, 0.35);
  font-size: 0.92rem;
  font-weight: 800;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.shop-checkout-modal .payment-method-btn i {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

.shop-checkout-modal .payment-method-btn:hover,
.shop-checkout-modal .payment-method-btn.active {
  border-color: rgba(94, 184, 255, 0.65);
  background: rgba(94, 184, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(94, 184, 255, 0.2) inset,
    0 12px 32px rgba(94, 184, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.shop-checkout-modal .donation-policy-agreement {
  margin-top: 4px;
  margin-bottom: 18px;
}

.shop-checkout-modal #payment-element {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-checkout-modal .saved-method-label {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.08);
}

.shop-checkout-modal .checkout-button {
  margin-top: 18px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--checkout-accent-deep) 0%, var(--checkout-accent) 50%, #ffb347 100%);
  box-shadow:
    0 14px 36px rgba(94, 184, 255, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.shop-checkout-modal .checkout-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(94, 184, 255, 0.5);
}

.shop-checkout-modal .checkout-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .shop-checkout-modal__panel {
    padding: 20px 18px 22px;
    border-radius: 18px;
  }

  .shop-checkout-modal .payment-method-btn {
    flex: 1 1 100%;
  }
}

.cart-view-container {
  max-width: 720px;
  margin: 0 auto;
}

.cart-view-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 20px;
}

#empty-cart-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--shop-muted);
  text-align: center;
  gap: 8px;
}

#empty-cart-view i {
  font-size: 3rem;
  opacity: 0.35;
}

.cart-tabbed-view {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.cart-view-container.card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 12, 20, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cart-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-tabs .shop-nav-btn {
  flex: 1;
  text-align: center;
}

.cart-tab-panel {
  display: none;
}

.cart-tab-panel.active {
  display: block;
}

.cart-items-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 6px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.cart-item .item-price {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.gift-option-header,
.donation-policy-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-size: 0.88rem;
  color: var(--shop-muted);
}

.gift-details-container {
  display: none;
  margin-bottom: 12px;
}

.gift-details-container input,
.affiliate-code-input,
.text-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.affiliate-code-section {
  margin: 12px 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.affiliate-code-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-muted);
  margin-bottom: 8px;
}

.affiliate-feedback {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
}

.affiliate-feedback.valid {
  color: #34d399;
}

.affiliate-feedback.invalid {
  color: #f87171;
}

.order-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--shop-muted);
}

.summary-line.total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-line.total span:last-child {
  color: var(--accent);
}

.discount-amount {
  color: #34d399;
}

.payment-options h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shop-muted);
}

.payment-method-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-method-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.payment-method-btn:hover,
.payment-method-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

#stripe-payment-form {
  margin-bottom: 16px;
}

#payment-element {
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

#card-errors {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 8px;
}

.saved-method-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.saved-method-label input {
  flex-shrink: 0;
}

.checkout-button {
  margin-top: 16px;
  width: 100%;
}

.checkout-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.clear-cart-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--shop-muted);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.clear-cart-btn:hover {
  border-color: #f87171;
  color: #f87171;
}

.journey-subtitle {
  color: var(--shop-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

.journey-progress-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.progress-bar-wrapper {
  height: 10px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold-2));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.journey-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.journey-reward-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.journey-reward-card.claimed {
  opacity: 0.55;
}

.journey-reward-card .jr-threshold {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 6px;
}

.journey-reward-card .jr-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.claim-journey-btn {
  width: 100%;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--accent);
  color: #0a0a0a;
}

.claim-journey-btn:disabled {
  background: var(--bg-input);
  color: var(--text-dim);
  cursor: not-allowed;
}

.shop-login-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48vh;
  padding: 32px 16px 64px;
}

.shop-login-gate.hidden {
  display: none !important;
}

.shop-login-gate-card {
  max-width: 420px;
  width: 100%;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.shop-login-gate-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 1.5rem;
}

.shop-login-gate-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.shop-login-gate-text {
  margin: 0 0 28px;
  color: var(--shop-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.shop-login-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-login-gate-actions .btn {
  justify-content: center;
  width: 100%;
}

.shop-login-gate-back {
  margin: 24px 0 0;
  font-size: 0.88rem;
}

.shop-login-gate-back a {
  color: var(--text-muted);
  text-decoration: none;
}

.shop-login-gate-back a:hover {
  color: var(--accent);
}

#shop-load-error {
  color: #f87171;
  padding: 24px;
  text-align: center;
}

.character-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.character-modal.open {
  display: flex;
}

.character-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
}

.character-modal-inner h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.character-modal-inner select {
  width: 100%;
  margin: 16px 0;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

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

.character-modal-actions button {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.character-modal-actions button.primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .shop-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shop-store-hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-store-hero__actions {
    align-items: stretch;
  }

  .shop-navigation--pill {
    justify-content: center;
  }

  .shop-currency {
    justify-content: space-between;
  }
}

.page-shop #page-loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(var(--color-accent-rgb), 0.18), rgba(0, 0, 0, 0.88) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94)),
    var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-shop #page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-shop .loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.page-shop .loader-logo.theme-brand-logo {
  width: min(320px, 72vw);
  height: clamp(72px, 18vh, 140px);
  background-image: var(--theme-brand-logo-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 28px rgba(var(--color-accent-rgb), 0.28));
  animation: shopLoaderPulse 2.2s ease-in-out infinite;
}

.page-shop .loader-bar {
  width: min(280px, 70vw);
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--color-accent-rgb), 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.page-shop .loader-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(var(--color-accent-rgb), 0.65),
    var(--color-accent),
    rgba(var(--color-accent-rgb), 0.85)
  );
  border-radius: 999px;
  animation: shopLoadBar 1.6s ease-in-out infinite;
}

@keyframes shopLoadBar {
  0% {
    width: 0%;
    margin-left: 0%;
  }
  50% {
    width: 70%;
    margin-left: 15%;
  }
  100% {
    width: 0%;
    margin-left: 100%;
  }
}

@keyframes shopLoaderPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.88;
    transform: scale(0.98);
  }
}

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

:root {
    --color-boss: #ff3333;
    --color-invasion: var(--primary);
    --color-event: #00f7ff;
    --text-medium: var(--text-muted);
    --btn-gold-gradient: var(--btn-gradient);
    --btn-gold-hover: var(--btn-gradient-hover);
    --btn-gold-border: var(--btn-border);
    --btn-gold-text: var(--btn-text);
    --btn-gold-shadow: var(--btn-shadow);
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.7);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.events-page-container {
    display: flex;
    flex-direction: column;
    min-height: min(72vh, 720px);
    overflow: hidden;
    padding: 0;
    background: 0 0;
    font-family: var(--font-body);
    align-items: stretch;
    justify-content: stretch;
}

.events-layout {
    display: flex;
    flex-direction: column;
    min-height: min(68vh, 680px);
    background: radial-gradient(120% 70% at 20% 0%, var(--primary-glow, rgba(94, 184, 255, 0.12)) 0%, rgba(0, 0, 0, 0.0) 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.82) 100%);
    border: var(--border-glass, 1px solid rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    overflow: hidden;
}

.events-headerbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 12px 18px;
    background: linear-gradient(90deg, rgba(94, 184, 255, 0.16), rgba(0, 0, 0, 0));
    border-bottom: 1px solid rgba(94, 184, 255, 0.14);
}

.events-fav-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
}

.events-fav-btn i {
    font-size: 18px;
    color: var(--primary);
}

.events-fav-btn:hover {
    border-color: rgba(94, 184, 255, 0.55);
}

.events-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
}

.events-modal.is-open {
    display: block;
}

.events-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.events-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, calc(100vw - 40px));
    max-height: min(720px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.events-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(94, 184, 255, 0.14), rgba(0, 0, 0, 0));
    border-bottom: 1px solid rgba(94, 184, 255, 0.14);
}

.events-modal-title {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

.events-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.events-modal-close:hover {
    border-color: rgba(94, 184, 255, 0.55);
}

.events-modal-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.events-modal-tabs {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.events-modal-tab {
    height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.events-modal-tab:hover {
    border-color: rgba(94, 184, 255, 0.55);
}

.events-modal-tab.active {
    background: var(--btn-gradient);
    border-color: var(--btn-border);
    color: var(--btn-text);
}

.events-modal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
}

.events-modal-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.events-modal-actions {
    display: inline-flex;
    gap: 10px;
}

.events-modal-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.events-modal-btn:hover {
    border-color: rgba(94, 184, 255, 0.55);
}

.events-modal-btn.primary {
    background: var(--btn-gradient);
    border-color: var(--btn-border);
    color: var(--btn-text);
}

.events-modal-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 16px 16px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.events-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(94, 184, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
}

.events-modal-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.events-modal-item span {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.90);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-modal-foot {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .events-modal-list {
        grid-template-columns: 1fr;
    }
}

.events-list-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.events-card { display: none; }
.events-card-header { display: none; }

.events-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.events-power {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.90);
    cursor: var(--cursor-arrow);
}

.events-power i {
    font-size: 20px;
}

.events-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.events-brand-title {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    font-size: 16px;
}

.events-brand-sub {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 11px;
    margin-top: 3px;
}

.events-clocks {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.events-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.events-clock:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 184, 255, 0.40);
    background: rgba(0, 0, 0, 0.45);
}

.events-clock-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.60);
    text-transform: uppercase;
}

.events-clock strong {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    color: #5ee88a;
    text-shadow: 0 0 12px rgba(94, 232, 138, 0.35);
    font-variant-numeric: tabular-nums;
}

.events-tabs {
    padding: 12px 18px 10px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.0) 100%);
}

.events-tab {
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.events-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 184, 255, 0.55);
}

.events-tab.active {
    background: var(--btn-gradient);
    color: rgba(255, 255, 255, 0.95);
    border-color: var(--btn-border);
    box-shadow: 0 8px 22px rgba(94, 184, 255, 0.18);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(94, 184, 255, 0.15);
    margin-bottom: 30px;
    flex-wrap: wrap;
    flex-shrink: 0;
    position: relative;
}

.events-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 150px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.events-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.events-header h1 i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px var(--primary));
}

.time-displays {
    display: flex;
    gap: 15px;
}

.time-box {
    background: var(--bg-panel);
    padding: 10px 25px;
    border: 1px solid var(--primary-dim);
    text-align: right;
    transition: var(--transition);
    position: relative;
    clip-path: var(--cut-shape);
}

.time-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(94, 184, 255, 0.10);
}

.time-box span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-weight: 600;
}

.time-box strong {
    font-size: 1.2rem;
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
}

.events-control-panel {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-shrink: 0;
}

.search-bar {
    position: relative;
    flex-grow: 1;
    min-width: 250px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

#event-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition);
    border-radius: 0;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

#event-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(94, 184, 255, 0.10);
}

#event-search-input:focus + i,
.search-bar:focus-within i {
    color: var(--primary);
}

.filter-group {
    display: flex;
    gap: 10px;
}

.type-filter-btn {
    padding: 10px 25px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-display);
    position: relative;
    transition: var(--transition);
    background: var(--btn-gold-gradient);
    color: var(--btn-gold-text);
    border: 1px solid var(--btn-gold-border);
    border-radius: 0;
    clip-path: var(--cut-shape);
    box-shadow: var(--btn-gold-shadow);
}

.type-filter-btn::before {
    display: none;
}

.type-filter-btn:hover {
    background: var(--btn-gold-hover);
    transform: translateY(-2px);
    color: #000;
    box-shadow: 0 0 15px rgba(94, 184, 255, 0.40);
}

.type-filter-btn.active {
    background: var(--btn-gold-hover);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(94, 184, 255, 0.60);
}

.events-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px 22px 20px;
}

.event-item {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.62) 100%);
    padding: 14px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.60);
    position: relative;
}

.event-item:hover {
    border-color: rgba(94, 184, 255, 0.40);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.72);
    transform: translateY(-1px);
}

.event-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.event-title {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.event-countdown {
    min-width: 110px;
    text-align: right;
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.90);
    font-family: var(--font-display);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.action-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    flex-shrink: 0;

    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    clip-path: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.action-icon:hover {
    transform: scale(1.07);
    border-color: rgba(94, 184, 255, 0.55);
}

.action-icon.notify-on {
    background: var(--btn-gradient);
    color: rgba(255, 255, 255, 0.95);
    border-color: var(--btn-border);
}

.event-progress {
    display: block;
    height: 5px;
    width: 100%;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
}

.event-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(94, 184, 255, 0.95) 0%, rgba(94, 184, 255, 0.40) 100%);
    border-radius: 999px;
    transition: width .4s ease;
    box-shadow: 0 0 8px rgba(94, 184, 255, 0.30);
    min-width: 5%;
}

.event-item[data-event-type="inv"] .event-progress-fill {
    background: linear-gradient(90deg, rgba(94, 184, 255, 0.95) 0%, rgba(94, 184, 255, 0.35) 100%);
}

.event-item[data-event-type="boss"] .event-progress-fill {
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.92) 0%, rgba(255, 51, 51, 0.30) 100%);
}

.event-item[data-event-type="event"] .event-progress-fill {
    background: linear-gradient(90deg, rgba(0, 247, 255, 0.88) 0%, rgba(0, 247, 255, 0.28) 100%);
}

.events-card-footer {
    padding: 10px 14px 12px 14px;
    text-align: center;
    color: rgba(120, 170, 200, 0.75);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.no-events-message {
    text-align: center;
    padding: 60px;
    color: var(--text-medium);
    font-size: 1.2rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.event-item {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .events-page-container {
        padding: 20px;
    }
    
    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .time-displays {
        width: 100%;
        justify-content: space-between;
    }
    
    .events-control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .event-details {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .event-next-time, .event-countdown {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }
    
    .action-icon {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

.page-guide {
  --guide-sidebar-w: 240px;
  --guide-gap: clamp(16px, 2vw, 28px);
  --guide-article-min-h: clamp(420px, calc(100vh - var(--nav-h) - 14rem), 820px);
  --color-accent: var(--accent);
  --color-accent-rgb: 42, 127, 212;
}

.guide-head {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(1rem, 2.5vw, 1.35rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.guide-head .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.guide-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.guide-head__badge i {
  color: var(--accent);
}

.guide-head__title {
  font-family: var(--font-display, var(--font-head, inherit));
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 0.45rem;
  max-width: min(42rem, 100%);
}

.guide-head__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  line-height: 1.55;
  max-width: min(36rem, 100%);
}

.page-guide .guide-section {
  padding-top: clamp(1rem, 2vw, 1.35rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.guide-shell {
  max-width: min(1420px, 96vw);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.guide-shell[data-state="loading"] .guide-layout {
  display: none !important;
}

.guide-shell[data-state="loading"] #guide-loading {
  display: flex !important;
}

.guide-shell[data-state="ready"] #guide-loading,
.guide-shell[data-state="ready"] #guide-error,
.guide-shell[data-state="error"] .guide-layout,
.guide-shell[data-state="error"] #guide-loading {
  display: none !important;
}

.guide-shell[data-state="ready"] .guide-layout {
  display: grid !important;
}

.guide-shell[data-state="error"] #guide-error {
  display: flex !important;
}

.guide-layout[hidden],
.guide-article__empty[hidden],
.guide-article__body[hidden],
#guide-loading[hidden],
#guide-error[hidden] {
  display: none !important;
}

.guide-layout {
  display: grid;
  grid-template-columns: var(--guide-sidebar-w) minmax(0, 1fr);
  gap: var(--guide-gap);
  align-items: start;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

.guide-sidebar.card,
.guide-article.card {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-color: rgba(94, 184, 255, 0.14) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(94, 184, 255, 0.08) !important;
}

.guide-sidebar {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  max-width: var(--guide-sidebar-w);
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
}

@media (max-width: 900px) {
  .guide-sidebar {
    position: static;
    max-height: none;
    min-height: 0;
  }
}

.guide-sidebar__head {
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.guide-nav {
  flex: 0 1 auto;
  overflow: auto;
  padding: 0.35rem 0 0.65rem;
  scrollbar-width: thin;
}

.guide-cat {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-cat:last-child {
  border-bottom: none;
}

.guide-cat__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.1rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.guide-cat__btn:hover,
.guide-cat__btn[aria-expanded="true"] {
  background: rgba(94, 184, 255, 0.08);
  color: var(--text-primary);
}

.guide-cat__btn i:first-child {
  width: 1.25rem;
  opacity: 0.85;
  color: var(--accent);
}

.guide-cat__chev {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.5;
  transition: transform 0.2s;
}

.guide-cat__btn[aria-expanded="true"] .guide-cat__chev {
  transform: rotate(180deg);
}

.guide-cat__panel {
  display: none;
  padding: 0 0.5rem 0.55rem;
}

.guide-cat__panel[hidden] {
  display: none !important;
}

.guide-cat__panel:not([hidden]) {
  display: block;
}

.guide-cat.is-open .guide-cat__panel:not([hidden]) {
  display: block;
}

.guide-sub {
  margin: 0.15rem 0 0.45rem;
  padding: 0.35rem 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.14);
}

.guide-sub__label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.92;
  padding: 0.15rem 0.55rem 0.35rem;
}

.guide-link {
  display: block;
  width: 100%;
  padding: 0.48rem 0.55rem;
  margin: 1px 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  opacity: 0.88;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
}

.guide-link:hover {
  background: rgba(94, 184, 255, 0.08);
  opacity: 1;
}

.guide-link.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 1;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(94, 184, 255, 0.22);
}

.guide-article {
  display: flex;
  flex-direction: column;
  min-height: var(--guide-article-min-h);
  width: 100%;
  min-width: 0;
}

.guide-article__empty {
  flex: 1 1 auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  opacity: 0.65;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.guide-article__empty i {
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.85;
}

.guide-article__body {
  flex: 1 1 auto;
  padding: clamp(1.35rem, 2.5vw, 1.85rem) clamp(1.35rem, 3vw, 2.1rem) clamp(1.75rem, 3vw, 2.25rem);
}

.guide-article:has(.guide-article__body:not([hidden])) .guide-article__empty {
  display: none !important;
}

.guide-cover {
  width: 100%;
  max-height: min(240px, 32vh);
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-article__title {
  font-family: var(--font-display, var(--font-head, inherit));
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-article__summary {
  opacity: 0.82;
  margin-bottom: 1.35rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

.guide-prose {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.guide-prose h1,
.guide-prose h2,
.guide-prose h3 {
  color: var(--text-primary);
  margin: 1.25rem 0 0.65rem;
}

.guide-prose p {
  margin-bottom: 0.85rem;
}

.guide-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
}

.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.guide-prose th,
.guide-prose td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
}

.guide-prose th {
  background: rgba(42, 127, 212, 0.14);
  color: var(--text-primary, #f0f6fc);
  font-weight: 600;
  text-align: left;
}

.guide-prose tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.guide-prose .embed-wrap {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.guide-prose .embed-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
  display: block;
}

.guide-prose .embed-wrap video {
  width: 100%;
  max-height: min(480px, 55vh);
  display: block;
}

.guide-prose pre {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  overflow: auto;
  font-size: 0.88rem;
}

.guide-prose pre code {
  background: transparent;
  padding: 0;
}

.guide-prose code {
  font-family: ui-monospace, Consolas, monospace;
  background: rgba(110, 118, 129, 0.2);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

.guide-state {
  text-align: center;
  padding: 2.5rem 1rem;
  opacity: 0.8;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.guide-state--loading i {
  color: var(--accent);
}

.guide-state--error {
  color: #f87171;
}

.guide-prose--embed .page-layout.guide-embed-layout {
  margin: 0;
}

.guide-prose--embed .side-menu {
  max-height: min(70vh, 520px);
}

.guide-schedule-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.guide-schedule-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.guide-schedule-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.guide-schedule-tz {
  margin-bottom: 1rem;
}

.guide-prose details.guide-details,
.guide-prose details.guide-reward-entry,
.guide-prose details.br-accordion {
  margin: 0.65rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.12);
}

.guide-prose details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-class-card {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-class-img {
  max-height: 64px;
  width: auto;
}

.guide-prose .guide-h3 {
  margin: 1.25rem 0 0.75rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.guide-details--section {
  margin: 0.75rem 0;
}

.guide-details__body {
  padding: 0.5rem 0 0.25rem;
}

.guide-prose .si-exp-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.guide-prose .si-exp-item.is-open .si-exp-body {
  max-height: 2000px;
}

.guide-prose .trader-recipe-body {
  display: none;
}

.guide-prose .trader-recipe.is-open .trader-recipe-body {
  display: block;
}

.pvm-guide-root .guide-pvm-block {
  margin-bottom: 1.5rem;
}

.guide-pvm-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 1.25rem 0;
}

.guide-prose .guide-details-root.details-root,
.guide-prose #server-details-root.details-root {
  display: grid;
  gap: 10px;
  padding: 0;
}

.guide-prose .section-card {
  padding: 14px 16px;
  margin: 0;
}

.guide-prose .section-card .si-acc-head {
  text-align: left;
}

.guide-prose .section-card .section-title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-family: var(--font-head, inherit) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-align: left !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.guide-prose .section-card[data-collapsed="1"] .si-acc-body[hidden] {
  display: none !important;
}

.page-guide .guide-prose .section-card,
.page-guide .guide-prose .si-stat-card,
.page-guide .guide-prose .si-hub-card,
.page-guide .guide-prose .si-hub-rule {
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(94, 184, 255, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.34)) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46) !important;
}

.page-guide .guide-prose .section-card:hover,
.page-guide .guide-prose .si-stat-card:hover {
  border-color: rgba(94, 184, 255, 0.26) !important;
  transform: none !important;
}

.page-guide .guide-prose {
  --sd-glow: 0 0 0 1px rgba(42, 127, 212, 0.22), 0 0 26px rgba(42, 127, 212, 0.1);
}

.page-guide .guide-prose .section-card {
  border: 1px solid rgba(94, 184, 255, 0.12) !important;
}

.page-guide .guide-prose .section-card:hover {
  border-color: rgba(94, 184, 255, 0.24) !important;
}

.page-guide .guide-prose .si-bar {
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(42, 127, 212, 0.2), rgba(0, 0, 0, 0.08)) !important;
  border-left: 3px solid rgba(94, 184, 255, 0.9) !important;
  border-top: 1px solid rgba(94, 184, 255, 0.14) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 rgba(94, 184, 255, 0.08);
}

.page-guide .guide-prose .si-bar span {
  font-family: var(--font-body, inherit) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.78rem !important;
  color: #9ad4ff !important;
  text-shadow: 0 0 20px rgba(94, 184, 255, 0.25);
}

.page-guide .guide-prose .vip-tier-title {
  font-family: var(--font-body, inherit) !important;
  color: #9ad4ff !important;
  background: linear-gradient(90deg, rgba(42, 127, 212, 0.2), rgba(0, 0, 0, 0.08)) !important;
  border-left: 3px solid rgba(94, 184, 255, 0.9) !important;
  border-top: 1px solid rgba(94, 184, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(94, 184, 255, 0.08);
}

.page-guide .guide-prose .si-table th,
.page-guide .guide-prose .section-card .table th {
  background: rgba(42, 127, 212, 0.18) !important;
  color: #b8dcff !important;
}

.page-guide .guide-prose .si-exp-icon,
.page-guide .guide-prose .hp-map-item i,
.page-guide .guide-prose .trader-cat-title i {
  color: #7eb8ff !important;
}

.page-guide .guide-prose .hp-buff-max,
.page-guide .guide-prose .req-rr {
  color: #7eb8ff !important;
}

.page-guide .guide-prose .trader-notes-title,
.page-guide .guide-prose .trader-notes-text {
  color: #8ec4ff !important;
}

.page-guide .guide-prose .dd-btn:focus {
  border-color: rgba(94, 184, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.14) !important;
}

.page-guide .guide-prose .dd-opt:hover {
  background: rgba(42, 127, 212, 0.12) !important;
  border-color: rgba(94, 184, 255, 0.22) !important;
}

.page-guide .guide-prose .dd-opt.active {
  background: rgba(42, 127, 212, 0.16) !important;
  border-color: rgba(94, 184, 255, 0.35) !important;
}

.page-guide .guide-prose .si-tag--lightning,
.page-guide .guide-prose .si-badge--dyellow {
  border-color: rgba(94, 184, 255, 0.45) !important;
  color: var(--accent) !important;
}

.page-guide .guide-prose .si-pill--gold,
.page-guide .guide-prose .si-pill--yellow {
  background: rgba(42, 127, 212, 0.14);
  color: #b8dcff;
}

.page-guide .guide-prose .si-vip-card--highlight,
.page-guide .guide-prose .si-callout,
.page-guide .guide-prose .si-note {
  background: linear-gradient(90deg, rgba(42, 127, 212, 0.14), rgba(0, 0, 0, 0.06));
  border-left: 3px solid rgba(94, 184, 255, 0.75);
}

.page-guide .guide-prose .si-stat-value {
  text-shadow: 0 0 18px rgba(94, 184, 255, 0.2);
}

.page-guide .guide-prose [class*='gold'],
.page-guide .guide-prose .si-vip-price {
  color: #9ad4ff !important;
}

.page-guide .guide-prose .si-acc-chevron {
  color: rgba(155, 220, 255, 0.75);
}

.page-guide .guide-prose .kv-row strong,
.page-guide .guide-prose .list li strong {
  color: #e8f4ff;
}

@media (min-width: 1100px) {
  .page-guide {
    --guide-sidebar-w: 268px;
  }
}

.page-guide .guide-head {
  position: relative;
  background:
    radial-gradient(900px 280px at 50% -40%, rgba(42, 127, 212, 0.18), transparent 55%),
    rgba(12, 14, 20, 0.62);
  border-bottom-color: rgba(94, 184, 255, 0.12);
}

.page-guide .guide-head::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(420px, 72%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 184, 255, 0.55), transparent);
  pointer-events: none;
}

.page-guide .guide-sidebar__head {
  color: rgba(200, 230, 255, 0.72);
  background: linear-gradient(180deg, rgba(42, 127, 212, 0.1), rgba(0, 0, 0, 0.14));
  border-bottom-color: rgba(94, 184, 255, 0.14);
}

.page-guide .guide-cat__btn[aria-expanded='true'] {
  box-shadow: inset 3px 0 0 var(--accent);
}

.page-guide .guide-link.is-active {
  border-left: 3px solid var(--accent);
  padding-left: calc(0.55rem - 3px);
  background: linear-gradient(90deg, rgba(42, 127, 212, 0.2), rgba(42, 127, 212, 0.06));
}

.page-guide .guide-article__title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.35rem;
}

.page-guide .guide-article__title::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.page-guide .guide-prose--rich {
  --guide-embed-surface: rgba(8, 14, 28, 0.78);
  --guide-embed-border: rgba(94, 184, 255, 0.16);
  --guide-embed-glow: 0 0 28px rgba(42, 127, 212, 0.12);
}

.page-guide .guide-prose .page-layout,
.page-guide .guide-prose .page-layout.guide-embed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
  margin: 0.5rem 0 0;
}

@media (min-width: 960px) {
  .page-guide .guide-prose .page-layout,
  .page-guide .guide-prose .page-layout.guide-embed-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(16px, 2.2vw, 26px);
  }
}

.page-guide .guide-prose .side-menu {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
}

.page-guide .guide-prose .side-menu-card,
.page-guide .guide-prose .class-view-card,
.page-guide .guide-prose .class-card {
  background:
    radial-gradient(900px 360px at 10% -20%, rgba(42, 127, 212, 0.14), transparent 50%),
    var(--guide-embed-surface, rgba(8, 14, 28, 0.78)) !important;
  border: 1px solid var(--guide-embed-border, rgba(94, 184, 255, 0.16)) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), var(--guide-embed-glow), inset 0 1px 0 rgba(94, 184, 255, 0.1) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-guide .guide-prose .class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 184, 255, 0.32) !important;
}

.page-guide .guide-prose .class-bg {
  opacity: 0.28;
  filter: saturate(1.1) hue-rotate(-8deg);
}

.page-guide .guide-prose .class-icon {
  border-color: rgba(94, 184, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(42, 127, 212, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.page-guide .guide-prose .class-view-title,
.page-guide .guide-prose .class-title {
  letter-spacing: 0.03em;
  text-shadow: 0 0 24px rgba(42, 127, 212, 0.2);
}

.page-guide .guide-prose .pill--even {
  border-color: rgba(94, 184, 255, 0.35);
  background: rgba(42, 127, 212, 0.12);
  color: #d8ecff;
}

.page-guide .guide-prose .kv-row {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(94, 184, 255, 0.1);
}

.page-guide .guide-prose .kv-row strong,
.page-guide .guide-prose .kv-row .autostat-text {
  color: #7ec8ff !important;
}

.page-guide .guide-prose .dd-btn {
  border-color: rgba(94, 184, 255, 0.22);
  background: linear-gradient(180deg, rgba(12, 22, 42, 0.9), rgba(6, 12, 24, 0.75));
}

.page-guide .guide-prose .dd-btn:hover,
.page-guide .guide-prose .dd-btn[aria-expanded='true'] {
  border-color: rgba(94, 184, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.12);
}

.page-guide .guide-prose .dd-panel {
  border-color: rgba(94, 184, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.98), rgba(6, 12, 24, 0.94));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(94, 184, 255, 0.08);
}

.page-guide .guide-prose .dd-opt:hover,
.page-guide .guide-prose .dd-opt.active {
  background: rgba(42, 127, 212, 0.14) !important;
  border-color: rgba(94, 184, 255, 0.32) !important;
  color: #e8f4ff !important;
}

.page-guide .guide-prose .side-menu-list a:hover,
.page-guide .guide-prose .side-menu-list a.active {
  background: rgba(42, 127, 212, 0.12);
  border-color: rgba(94, 184, 255, 0.28);
  color: var(--text-primary);
}

.page-guide .guide-prose .guide-class-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(42, 127, 212, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(94, 184, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(94, 184, 255, 0.08);
}

.page-guide .guide-prose .guide-class-img {
  max-height: 72px;
  border-radius: 12px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(94, 184, 255, 0.15);
}

.page-guide .guide-prose .section-card .si-acc-head {
  border-radius: 10px;
  padding: 4px 2px;
  transition: background 0.15s ease;
}

.page-guide .guide-prose .section-card .si-acc-head:hover {
  background: rgba(42, 127, 212, 0.08);
}

.page-guide .guide-prose .si-exp-row {
  border-radius: 12px;
  border: 1px solid rgba(94, 184, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.page-guide .guide-prose .si-exp-item.is-open .si-exp-row {
  border-color: rgba(94, 184, 255, 0.28);
  background: rgba(42, 127, 212, 0.08);
}

.server-details-main {
  padding-top: var(--nav-h);
  --sd-surface: rgba(0, 0, 0, 0.52);
  --sd-surface-2: rgba(0, 0, 0, 0.34);
  --sd-border: rgba(255, 255, 255, 0.10);
  --sd-border-soft: rgba(255, 255, 255, 0.07);
  --sd-shadow: 0 18px 52px rgba(0, 0, 0, 0.46);
  --sd-glow: 0 0 0 1px rgba(240, 208, 96, 0.22), 0 0 26px rgba(240, 208, 96, 0.1);
}

.side-menu-list::-webkit-scrollbar,
.dd-panel::-webkit-scrollbar {
  width: 10px;
}

.side-menu-list::-webkit-scrollbar-thumb,
.dd-panel::-webkit-scrollbar-thumb {
  background: rgba(240, 208, 96, 0.22);
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

.side-menu-list::-webkit-scrollbar-track,
.dd-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.page-hero { padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(1rem, 2.5vw, 1.35rem); }
.page-title {
  font-family: var(--font-head);
  font-size: 3.15rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 0 26px rgba(240, 208, 96, 0.22);
}
.page-subtitle { text-align: center; color: var(--color-text-muted); margin-top: 10px; max-width: 900px; margin-left: auto; margin-right: auto; }

.page-layout {
 display: grid;
 grid-template-columns: 3fr 1fr;
 gap: 18px;
 align-items: start;
}

@media (min-width: 1920px) {
 .page-title { font-size: 3.45rem; }
 .page-subtitle { font-size: 1.05rem; max-width: 1100px; }
 .page-layout {
   max-width: 1480px;
   margin: 0 auto;
   grid-template-columns: minmax(0, 1fr) 360px;
   gap: 22px;
 }
}

@media (min-width: 2560px) {
 .page-title { font-size: 3.75rem; }
 .page-subtitle { font-size: 1.1rem; max-width: 1200px; }
 .page-layout {
   max-width: 1720px;
   grid-template-columns: minmax(0, 1fr) 380px;
   gap: 26px;
 }
}

@media (min-width: 3440px) {
 .page-title { font-size: 4.0rem; }
 .page-subtitle { font-size: 1.15rem; max-width: 1320px; }
 .page-layout {
   max-width: 2000px;
   grid-template-columns: minmax(0, 1fr) 420px;
   gap: 30px;
 }
}

@media (min-width: 3840px) {
 .page-title { font-size: 4.25rem; }
 .page-subtitle { font-size: 1.2rem; max-width: 1500px; }
 .page-layout {
   max-width: 2200px;
   grid-template-columns: minmax(0, 1fr) 440px;
   gap: 34px;
 }
}

.page-content { min-width: 0; }

.details-root { min-width: 0; }

.side-menu {
  position: sticky;
  top: 98px;
  align-self: start;
}

.side-menu-card {
  background: radial-gradient(1000px 420px at 20% -10%, rgba(240, 208, 96, 0.10), transparent 45%),
    linear-gradient(180deg, var(--sd-surface), var(--sd-surface-2));
  border: 1px solid var(--sd-border-soft);
  border-radius: 16px;
  box-shadow: var(--sd-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-menu-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.side-menu-sub {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.side-menu-select-wrap { margin-top: 12px; }

.dd { position: relative; }
.dd-btn {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.dd-btn:focus {
  border-color: rgba(240, 208, 96, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 208, 96, 0.14);
}

.dd-label { color: rgba(255, 255, 255, 0.92); text-align: left; }
.dd-chevron { color: rgba(255, 255, 255, 0.70); transition: transform 160ms ease; }
.dd-btn[aria-expanded="true"] .dd-chevron { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.62));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}

.dd-opt {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.dd-opt:hover {
  background: rgba(240, 208, 96, 0.10);
  border-color: rgba(240, 208, 96, 0.22);
}

.dd-opt.active {
  background: rgba(240, 208, 96, 0.14);
  border-color: rgba(240, 208, 96, 0.35);
}

.side-menu-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.side-menu-list {
  margin-top: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 6px;
}

.side-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.85);
  transition: background 160ms ease, border-color 160ms ease;
}

.side-menu-list a:hover {
  background: rgba(240, 208, 96, 0.08);
  border-color: rgba(240, 208, 96, 0.20);
}

.side-menu-list a.active {
  background: rgba(240, 208, 96, 0.12);
  border-color: rgba(240, 208, 96, 0.32);
  box-shadow: 0 0 0 3px rgba(240, 208, 96, 0.10);
}

.details-root { display: grid; gap: 18px; padding: 0 0 10px; }

.section-card {
  background: radial-gradient(1200px 500px at 20% -10%, rgba(240, 208, 96, 0.10), transparent 45%),
    linear-gradient(180deg, var(--sd-surface), var(--sd-surface-2));
  border: 1px solid var(--sd-border-soft);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--sd-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i { color: var(--color-accent); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); }

.si-acc-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.si-acc-chevron {
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.70);
  transition: transform 160ms ease;
}

.section-card[data-collapsed="0"] .si-acc-chevron { transform: rotate(180deg); }

.si-acc-body { margin-top: 14px; }

.si-acc-body { min-width: 0; }

.kv { display: grid; gap: 10px; }
.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.kv-row span { color: var(--color-text-muted); font-size: 0.9rem; }
.kv-row strong { color: #fff; text-align: right; }

.list { list-style: none; padding-left: 0; display: grid; gap: 10px; margin: 0; }
.list li {
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.table th {
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
}
.table td { color: #fff; }
.table tr:hover td { background: rgba(240, 208, 96, 0.06); }

.section-card .table {
  display: table;
  width: 100%;
}

.si-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    justify-content: center;
    max-width: 1200px;
    margin: 10px auto 16px;
}

.si-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  text-align: center;
}

.si-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.si-stat-value {
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.si-bar {
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(240, 208, 96, 0.16), rgba(0, 0, 0, 0.06));
  border-left: 3px solid rgba(240, 208, 96, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.si-bar span {
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 208, 96, 0.95);
}

.si-row-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.si-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.si-row-left {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.si-row-right {
  color: rgba(255, 255, 255, 0.90);
  text-align: right;
}

.si-panel {
 padding: 14px;
 border: 1px solid rgba(255, 255, 255, 0.10);
 border-radius: 12px;
 background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.14));
 width: 100%;
}

.si-badge-row {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin: 0;
 justify-content: center;
}

.si-badge-row .si-badge { margin: 0; }

.si-badge {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 28px;
 height: 28px;
 padding: 0 10px;
 border-radius: 10px;
 border: 1px solid rgba(255, 255, 255, 0.16);
 color: rgba(255, 255, 255, 0.86);
 font-weight: 900;
 letter-spacing: 0.04em;
 background: rgba(0, 0, 0, 0.18);
}

.si-badge--red { border-color: rgba(255, 70, 70, 0.55); color: #ff6b6b; }
.si-badge--dyellow { border-color: rgba(240, 208, 96, 0.55); color: var(--color-accent); }
.si-badge--lblue { border-color: rgba(120, 170, 255, 0.55); color: #78aaff; }
.si-badge--water { border-color: rgba(90, 180, 255, 0.55); color: #5ab4ff; }
.si-badge--wind { border-color: rgba(130, 255, 190, 0.55); color: #82ffbe; }
.si-badge--earth { border-color: rgba(255, 195, 90, 0.55); color: #ffc35a; }
.si-badge--muted { border-color: rgba(255, 255, 255, 0.20); color: rgba(255, 255, 255, 0.75); }

.si-table-wrap { overflow: auto; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); }

.si-table-wrap { width: 100%; max-width: 100%; display: block; }

.si-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.si-table--wide { min-width: 860px; }

.si-table th, .si-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.si-table th {
  text-align: left;
  background: rgba(240, 208, 96, 0.14);
  color: rgba(240, 208, 96, 0.92);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.si-table td { color: rgba(255, 255, 255, 0.90); }
.si-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

#sec-socket-info .si-table-wrap {
  overflow: hidden;
}

#sec-socket-info .si-table {
  min-width: 0;
  table-layout: fixed;
}

#sec-socket-info .si-table--wide { min-width: 0; }

#sec-socket-info .si-table th,
#sec-socket-info .si-table td {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

#sec-socket-info .si-table th:nth-child(1),
#sec-socket-info .si-table td:nth-child(1) { width: 26%; }
#sec-socket-info .si-table th:nth-child(2),
#sec-socket-info .si-table td:nth-child(2) { width: 24%; }
#sec-socket-info .si-table th:nth-child(3),
#sec-socket-info .si-table td:nth-child(3) { width: 38%; }
#sec-socket-info .si-table th:nth-child(4),
#sec-socket-info .si-table td:nth-child(4) { width: 12%; }

#sec-socket-info .si-combo-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-card .table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.section-card .table th,
.section-card .table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.section-card .table th:last-child,
.section-card .table td:last-child {
  text-align: right;
}

.section-card .table th {
  background: rgba(240, 208, 96, 0.14);
  color: rgba(240, 208, 96, 0.92);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.section-card .table td {
  color: rgba(255, 255, 255, 0.90);
}

.section-card .table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.si-rank { color: rgba(255, 255, 255, 0.92); font-weight: 800; }
.si-rate-first { background: rgba(0, 255, 170, 0.10); }
.si-rate-100 {
  background: rgba(0, 255, 170, 0.10);
  color: rgba(0, 255, 170, 0.95);
  font-weight: 900;
}

.si-el { font-weight: 800; }
.si-el-sep { color: rgba(255, 255, 255, 0.35); padding: 0 6px; }

.si-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 3px 6px 3px 0;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.18);
}

.si-tag--fire { border-color: rgba(255, 80, 80, 0.55); color: #ff6b6b; }
.si-tag--water { border-color: rgba(90, 180, 255, 0.55); color: #5ab4ff; }
.si-tag--ice { border-color: rgba(95, 255, 208, 0.55); color: #5fffd0; }
.si-tag--wind { border-color: rgba(130, 255, 190, 0.55); color: #82ffbe; }
.si-tag--lightning { border-color: rgba(240, 208, 96, 0.55); color: var(--color-accent); }
.si-tag--earth { border-color: rgba(255, 79, 216, 0.55); color: #ff4fd8; }
.si-tag--muted { border-color: rgba(255, 255, 255, 0.20); color: rgba(255, 255, 255, 0.75); }

.vip-tier { margin-top: 18px; }
.vip-tier:first-child { margin-top: 6px; }

.vip-tier-title {
  font-family: var(--font-head);
  color: rgba(240, 208, 96, 0.95);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(240, 208, 96, 0.16), rgba(0, 0, 0, 0.06));
  border-left: 3px solid rgba(240, 208, 96, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.vip-tier-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  text-align: center;
}

.vip-tier-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vip-tier-value {
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.vip-benefits-title {
  margin-top: 16px;
  font-family: var(--font-head);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-row { display: flex; justify-content: center; gap: 15px; padding: 34px 20px 74px; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .side-menu { position: static; }
  .page-title { font-size: 2.25rem; }
  .cta-row { flex-direction: column; align-items: center; }
  .cta-row .btn { width: 100%; max-width: 420px; text-align: center; }
}

@media (max-width: 1100px) {
  .si-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .vip-tier-grid { grid-template-columns: 1fr; }
}

.si-exp-list {
   display: grid;
   gap: 10px;
}

.si-exp-item {
   border: 1px solid rgba(255, 255, 255, 0.10);
   border-radius: 14px;
   background: rgba(10, 12, 16, 0.40);
   overflow: hidden;
}

.si-exp-row {
   width: 100%;
   border: 0;
   background: transparent;
   color: inherit;
   display: grid;
   grid-template-columns: 1fr auto;
   gap: 12px;
   align-items: center;
   padding: 12px 14px;
   cursor: pointer;
   text-align: left;
}

.si-exp-row:hover {
   background: rgba(255, 255, 255, 0.03);
}

.si-exp-left {
   min-width: 0;
}

.si-exp-title {
   display: flex;
   align-items: center;
   gap: 10px;
   min-width: 0;
}

.si-exp-icon {
   color: rgba(201, 170, 92, 0.85); 
   width: 18px;
   display: inline-flex;
   justify-content: center;
}

.si-exp-name {
   font-weight: 900;
   color: rgba(240, 240, 240, 0.92);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.si-exp-desc {
   margin-top: 4px;
   color: rgba(210, 210, 210, 0.62);
   font-size: 0.92rem;
   line-height: 1.35;
}

.si-exp-right {
   color: rgba(210, 210, 210, 0.60);
   transition: transform 160ms ease;
}

.si-exp-item.is-open .si-exp-right {
   transform: rotate(180deg);
}

.si-exp-body {
   border-top: 1px solid rgba(255, 255, 255, 0.06);
   padding: 0 14px;
   max-height: 0;
   overflow: hidden;
   transition: max-height 180ms ease;
}

.si-exp-bullets {
   margin: 12px 0 14px;
   padding-left: 18px;
   display: grid;
   gap: 8px;
}

.si-exp-bullets li {
   color: rgba(235, 235, 235, 0.84);
   line-height: 1.35;
}

.si-exp-empty {
   margin: 12px 0 14px;
   color: rgba(210, 210, 210, 0.55);
   font-size: 0.92rem;
}

.hp-maps-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 10px 14px;
   padding: 8px 0 2px;
}

.hp-map-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border: 1px solid rgba(255,255,255,0.08);
   border-radius: 12px;
   background: rgba(10, 12, 16, 0.32);
   color: rgba(235,235,235,0.86);
}

.hp-map-item i {
   color: rgba(201, 170, 92, 0.85);
   width: 16px;
   display: inline-flex;
   justify-content: center;
}

.hp-buffs-table th,
.hp-buffs-table td {
   vertical-align: middle;
}

.hp-buff-name {
   font-weight: 800;
   color: rgba(240,240,240,0.92);
   white-space: nowrap;
}

.hp-buff-max {
   text-align: right;
   font-weight: 800;
   color: rgba(201, 170, 92, 0.90);
   white-space: nowrap;
}

.hp-buff-req {
   color: rgba(210,210,210,0.70);
   white-space: nowrap;
}

@media (max-width: 720px) {
   .hp-maps-grid {
       grid-template-columns: 1fr;
   }

   .hp-buff-name,
   .hp-buff-req {
       white-space: normal;
   }
}

.req-ml {
   color: #5da9ff; 
   font-weight: 700;
}

.req-rr {
   color: #f5c76b; 
   font-weight: 700;
}

.req-gr {
   color: #ff6b6b; 
   font-weight: 700;
}

.req-sep {
   color: rgba(255,255,255,0.35);
}

.si-note {
   padding: 12px 14px;
   border: 1px solid rgba(255,255,255,0.08);
   border-radius: 14px;
   background: rgba(10, 12, 16, 0.32);
   color: rgba(235,235,235,0.84);
   line-height: 1.35;
}

.trader-cats {
   display: grid;
   gap: 14px;
}

.trader-cat {
   border: 1px solid rgba(255,255,255,0.10);
   border-radius: 16px;
   background: rgba(10, 12, 16, 0.28);
   overflow: hidden;
}

.trader-cat-title {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 12px 14px;
   background: rgba(255,255,255,0.03);
   font-weight: 900;
   color: rgba(240,240,240,0.92);
}

.trader-cat-title i {
   color: rgba(201, 170, 92, 0.85);
}

.trader-cat-body {
   padding: 12px 14px 14px;
   display: grid;
   gap: 12px;
}

.trader-notes{
   margin-top: 10px;
   display: flex;
   gap: 8px;
   align-items: center;
}

.trader-notes-title{
   color: #ffb347; 
   font-weight: 700;
   white-space: nowrap;
}

.trader-notes-text{
   color: #ffb347; 
   opacity: 0.95;
}

.trader-notes{
   margin-top: 10px;
   margin-bottom: 12px; 
   display: flex;
   gap: 8px;
   align-items: center;
   flex-wrap: wrap;
}

.trader-notes-title,
.trader-notes-text{
   color: #ffb347;
   font-weight: 700;
}

.trader-notes-text{
   font-weight: 600;
}

.trader-row-split{
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
}

.trader-row-left{
   display: flex;
   align-items: center;
   gap: 10px;
   min-width: 0;
}

.trader-row-right{
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 8px;
   flex: 0 0 auto;
}

.trader-inline-count{
   opacity: 0.9;
   font-weight: 700;
}

.trader-reward-qty{
   display: inline-block;
   padding: 4px 10px;
   border-radius: 999px;
   font-weight: 800;
   color: #42d37c;
   background: rgba(66, 211, 124, 0.12);
   border: 1px solid rgba(66, 211, 124, 0.25);
}

.trader-badges{
   display: inline-flex;
   gap: 8px;
   align-items: center;
   flex-wrap: nowrap;
}

.trader-badge{
   white-space: nowrap;
}

.trader-recipe {
   border: 1px solid rgba(255,255,255,0.08);
   border-radius: 14px;
   background: rgba(0,0,0,0.18);
   overflow: hidden;
}

.trader-recipe.is-open {
   border-color: rgba(201, 170, 92, 0.25);
}

.trader-recipe-head {
   width: 100%;
   border: 0;
   background: rgba(255,255,255,0.03);
   cursor: pointer;
   text-align: left;

   display: grid;
   grid-template-columns: 1fr auto;
   align-items: center;
   gap: 12px;

   padding: 10px 12px;
   color: rgba(235,235,235,0.88);
}

.trader-recipe-head:hover {
   background: rgba(255,255,255,0.05);
}

.trader-recipe-head-left {
   display: flex;
   align-items: center;
   gap: 10px;
   min-width: 0;
}

.trader-recipe-head-left i {
   color: rgba(210,210,210,0.70);
}

.trader-recipe-name {
   font-weight: 900;
   font-size: 0.92rem;
   white-space: nowrap;
}

.trader-recipe-preview {
   color: rgba(210,210,210,0.65);
   font-weight: 700;
   font-size: 0.90rem;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.trader-recipe-head-right {
   color: rgba(210,210,210,0.60);
   transition: transform 160ms ease;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 28px;
   height: 28px;
   border-radius: 10px;
}

.trader-recipe-head-right i {
   font-size: 0.95rem;
}

.trader-recipe.is-open .trader-recipe-head-right {
   transform: rotate(180deg);
}

.trader-recipe-body {
   padding: 0 12px;             
   max-height: 0;
   overflow: hidden;
   transition: max-height 180ms ease;
}

.trader-recipe-body > .trader-req,
.trader-recipe-body > .trader-out {
   padding: 10px 0 12px;
}

.trader-recipe-body > .trader-req + .trader-out {
   border-top: 1px solid rgba(255,255,255,0.06);
}

.trader-req-title,
.trader-out-title {
   display: flex;
   align-items: center;
   gap: 8px;
   font-weight: 900;
   color: rgba(235,235,235,0.88);
   margin-bottom: 8px;
   font-size: 0.92rem;
}

.trader-req-title i {
   color: rgba(120, 200, 255, 0.80);
}

.trader-out-title i {
   color: rgba(150, 235, 170, 0.85);
}

.trader-row,
.trader-out-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding: 9px 10px;
   border: 1px solid rgba(255,255,255,0.06);
   border-radius: 12px;
   background: rgba(10, 12, 16, 0.22);
}

.trader-row-left {
   display: flex;
   align-items: center;
   gap: 10px;
   min-width: 0;
}

.trader-count {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 44px;
   height: 22px;
   padding: 0 8px;
   border-radius: 999px;
   background: rgba(255,255,255,0.06);
   color: rgba(235,235,235,0.86);
   font-weight: 900;
   font-size: 0.86rem;
   flex: 0 0 auto;
}

.trader-count-out {
   background: rgba(150, 235, 170, 0.12);
   color: rgba(150, 235, 170, 0.92);
}

.trader-item {
   color: rgba(235,235,235,0.88);
   font-weight: 700;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   min-width: 0;
}

.trader-item-out {
   color: rgba(150, 235, 170, 0.92);
}

.trader-badges {
   display: inline-flex;
   gap: 6px;
   margin-left: 6px;
   flex: 0 0 auto;
}

.trader-badge {
   display: inline-flex;
   align-items: center;
   height: 20px;
   padding: 0 8px;
   border-radius: 999px;
   font-size: 0.80rem;
   font-weight: 900;
   border: 1px solid rgba(255,255,255,0.06);
   white-space: nowrap;
}

.trader-badge-lvl {
   background: rgba(255, 206, 120, 0.10);
   color: rgba(255, 206, 120, 0.92);
}

.trader-badge-exc {
   background: rgba(120, 169, 255, 0.10);
   color: rgba(120, 169, 255, 0.92);
}

@media (max-width: 720px) {
   .trader-cat-body {
       padding: 10px 10px 12px;
   }

   .trader-recipe-head {
       padding: 10px 10px;
   }

   .trader-recipe-body {
       padding: 0 10px;
   }

   .trader-item {
       white-space: normal;
   }

   .trader-recipe-preview {
       display: none; 
   }
}

.exf-list .exf-li {
   position: relative;
   display: grid;
   grid-template-columns: 1fr auto;
   gap: 10px;
   align-items: start;
}

.exf-text {
   min-width: 0;
}

.exf-hot {
   position: relative;
   display: inline-flex;
   align-items: center;
   justify-content: center;

   padding: 4px 10px;
   border-radius: 999px;

   font-weight: 900;
   font-size: 0.72rem;
   letter-spacing: 0.5px;

   color: #ff3b2f; 
   background: rgba(255, 60, 40, 0.08);

   z-index: 0;
   overflow: hidden;

   animation: exfHotGlow 1.6s ease-in-out infinite;
}

.exf-hot::before {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: 999px;
   padding: 1px; 

   background: linear-gradient(
           45deg,
           #ff6a00,
           #ffb800,
           #ff3b2f,
           #ff6a00
   );

   background-size: 300% 300%;
   animation: exfHotBorder 3s linear infinite;

   -webkit-mask:
           linear-gradient(#000 0 0) content-box,
           linear-gradient(#000 0 0);
   mask:
           linear-gradient(#000 0 0) content-box,
           linear-gradient(#000 0 0);
   -webkit-mask-composite: xor;
   mask-composite: exclude;

   z-index: -1;
}

@keyframes exfHotGlow {
   0% {
       box-shadow: 0 0 0 rgba(255, 60, 40, 0.0);
   }
   50% {
       box-shadow: 0 0 12px rgba(255, 120, 0, 0.45);
   }
   100% {
       box-shadow: 0 0 0 rgba(255, 60, 40, 0.0);
   }
}

@keyframes exfHotBorder {
   0% { background-position: 0 50%; }
   100% { background-position: 300% 50%; }
}

.server-classes-main {
   padding-top: var(--nav-h);
   --sc-surface: rgba(24, 21, 29, 0.82);
   --sc-surface-2: rgba(19, 17, 23, 0.62);
   --sc-border: var(--border);
   --sc-border-soft: color-mix(in srgb, var(--accent-border) 45%, var(--border));
   --sc-shadow: var(--shadow-card);
   --sc-glow: 0 0 0 1px var(--accent-border), 0 0 24px var(--accent-glow);
 }

 .side-menu-list::-webkit-scrollbar,
 .dd-panel::-webkit-scrollbar {
   width: 10px;
 }

 .side-menu-list::-webkit-scrollbar-thumb,
 .dd-panel::-webkit-scrollbar-thumb {
   background: rgba(var(--color-accent-rgb), 0.22);
   border: 2px solid rgba(0, 0, 0, 0.35);
   border-radius: 999px;
 }

 .side-menu-list::-webkit-scrollbar-track,
 .dd-panel::-webkit-scrollbar-track {
   background: rgba(0, 0, 0, 0.25);
   border-radius: 999px;
 }
 
 .page-hero { padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(1rem, 2.5vw, 1.35rem); }
 .page-title {
   font-family: var(--font-display);
   font-size: 3.15rem;
   letter-spacing: 0.06em;
   text-align: center;
   color: var(--text-primary);
   text-shadow: 0 0 32px var(--accent-glow);
 }
 .page-subtitle { text-align: center; color: var(--text-muted); margin-top: 10px; max-width: 820px; margin-left: auto; margin-right: auto; }
 
 .toolbar { display: flex; justify-content: center; padding: 18px 0 16px; }
 .search {
   width: 100%;
   max-width: 640px;
   padding: 13px 14px;
   border-radius: var(--radius-md);
   background: var(--sc-surface);
   border: 1px solid var(--sc-border-soft);
   box-shadow: var(--sc-shadow);
   color: var(--text-primary);
   outline: none;
   transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
 }
 .search::placeholder { color: var(--text-dim); }
 .search:focus {
   border-color: var(--accent-border);
   box-shadow: var(--shadow-card), 0 0 0 3px var(--accent-dim);
 }
 
 .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

@media (min-width: 1920px) {
  .page-title { font-size: 3.45rem; }
  .page-subtitle { font-size: 1.05rem; max-width: 1000px; }
  .toolbar { padding-top: 22px; }
  .search { max-width: 760px; padding: 14px 16px; }
  .page-layout {
    max-width: 1480px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
  }
}

@media (min-width: 2560px) {
  .page-title { font-size: 3.75rem; }
  .page-subtitle { font-size: 1.1rem; max-width: 1160px; }
  .search { max-width: 860px; }
  .page-layout {
    max-width: 1720px;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 26px;
  }
}

@media (min-width: 3440px) {
  .page-title { font-size: 4.0rem; }
  .page-subtitle { font-size: 1.15rem; max-width: 1360px; }
  .search { max-width: 980px; }
  .page-layout {
    max-width: 2000px;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 30px;
  }
}

@media (min-width: 3840px) {
  .page-title { font-size: 4.25rem; }
  .page-subtitle { font-size: 1.2rem; max-width: 1500px; }
  .search { max-width: 1100px; }
  .page-layout {
    max-width: 2200px;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 34px;
  }
}
 
 .page-content { min-width: 0; }
 
 .side-menu {
   position: sticky;
   top: 98px;
   align-self: start;
 }

 
 .page-layout .page-content:has(.toolbar) + .side-menu {
   padding-top: calc(18px + 16px + 3.25rem);
 }
 
 .side-menu-card {
   background: var(--sc-surface);
   border: 1px solid var(--sc-border-soft);
   border-radius: var(--radius-lg);
   box-shadow: var(--sc-shadow), inset 0 1px 0 rgba(240, 208, 96, 0.06);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   padding: 14px;
 }
 
 .side-menu-title {
   font-family: var(--font-display);
   font-size: 1.05rem;
   letter-spacing: 0.06em;
   color: var(--text-primary);
 }
 
 .side-menu-sub {
   margin-top: 6px;
   color: var(--text-muted);
   font-size: 0.9rem;
 }
 
 .side-menu-select-wrap { margin-top: 12px; }

 .dd { position: relative; }
 .dd-btn {
   width: 100%;
   padding: 11px 12px;
   border-radius: 12px;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
   border: 1px solid rgba(255, 255, 255, 0.12);
   color: #fff;
   outline: none;
   cursor: pointer;
   display: grid;
   grid-template-columns: 1fr auto;
   align-items: center;
   gap: 10px;
 }

 .dd-btn:focus {
   border-color: rgba(var(--color-accent-rgb), 0.45);
   box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.14);
 }

 .dd-label { color: rgba(255, 255, 255, 0.92); text-align: left; }
 .dd-chevron { color: rgba(255, 255, 255, 0.70); transition: transform 160ms ease; }
 .dd-btn[aria-expanded="true"] .dd-chevron { transform: rotate(180deg); }

 .dd-panel {
   position: absolute;
   left: 0;
   right: 0;
   top: calc(100% + 10px);
   z-index: 50;
   border-radius: 14px;
   border: 1px solid rgba(255, 255, 255, 0.10);
   background: linear-gradient(180deg, rgba(24, 21, 29, 0.96), rgba(19, 17, 23, 0.88));
   box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
   padding: 8px;
   max-height: 320px;
   overflow: auto;
 }

 .dd-opt {
   padding: 10px 10px;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   background: rgba(0, 0, 0, 0.18);
   color: rgba(255, 255, 255, 0.88);
   cursor: pointer;
 }

 .dd-opt:hover {
   background: rgba(var(--color-accent-rgb), 0.10);
   border-color: rgba(var(--color-accent-rgb), 0.22);
 }

 .dd-opt.active {
   background: rgba(var(--color-accent-rgb), 0.14);
   border-color: rgba(var(--color-accent-rgb), 0.35);
 }
 
 .side-menu-select {
   width: 100%;
   padding: 11px 12px;
   border-radius: 12px;
     border: 1px solid rgba(255, 255, 255, 0.12);
   color: #fff;
   outline: none;
   color-scheme: dark;
   appearance: none;
   -webkit-appearance: none;
   background-image:
     linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
     linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%),
     linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
   background-position:
     calc(100% - 18px) calc(50% - 3px),
     calc(100% - 13px) calc(50% - 3px),
     0 0;
   background-size: 6px 6px, 6px 6px, 100% 100%;
   background-repeat: no-repeat;
 }
 
 .side-menu-list {
   margin-top: 12px;
   max-height: calc(100vh - 220px);
   overflow: auto;
   display: grid;
   gap: 8px;
   padding-right: 6px;
 }
 
 .side-menu-list a {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   text-decoration: none;
   padding: 10px 10px;
   border-radius: var(--radius-sm);
   border: 1px solid var(--border);
   background: rgba(255, 255, 255, 0.03);
   color: var(--text-muted);
   transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
 }
 
 .side-menu-list a:hover {
   background: var(--accent-dim);
   border-color: var(--accent-border);
   color: var(--text-primary);
 }
 
 .side-menu-list a.active {
   background: var(--accent-dim);
   border-color: var(--accent-border);
   color: var(--text-primary);
   box-shadow: 0 0 0 3px var(--accent-dim);
 }
 
 .class-viewer { padding: 12px 0 10px; }

 .class-view-card {
   position: relative;
   background: var(--sc-surface);
   border: 1px solid var(--sc-border-soft);
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow: var(--sc-shadow), inset 0 1px 0 rgba(240, 208, 96, 0.06);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
 }

 .class-bg {
   position: absolute;
   top: 0;
   right: 0;
   bottom: auto;
   width: min(46%, 420px);
   height: 60%;
   background-repeat: no-repeat;
   background-position: right center;
   background-size: contain;
   opacity: 0.22;
   pointer-events: none;
   filter: saturate(1.05) contrast(1.05);
   mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
   -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
 }

 .class-view-content {
   position: relative;
   z-index: 2;
 }

 .class-view-head {
   display: flex;
   gap: 14px;
   align-items: center;
   padding: 18px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.06);
 }

 @media (max-width: 920px) {
   .class-bg {
     width: 52%;
     opacity: 0.16;
   }
 }

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

 .class-icon--lg { width: 72px; height: 72px; }

 .class-view-title {
   font-family: var(--font-display);
   font-size: 1.6rem;
   margin: 0;
   color: var(--text-primary);
 }
 
 .class-card {
   background: var(--sc-surface);
   border: 1px solid var(--sc-border-soft);
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow: var(--sc-shadow), inset 0 1px 0 rgba(240, 208, 96, 0.06);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
 }
 .class-card:hover {
   transform: translateY(-3px);
   border-color: rgba(var(--color-accent-rgb), 0.22);
   box-shadow: var(--sc-shadow), var(--sc-glow);
 }

 .class-acc-head {
   width: 100%;
   text-align: left;
   background: transparent;
   border: 0;
   padding: 0;
   color: inherit;
   display: grid;
   grid-template-columns: 1fr auto;
   align-items: center;
   gap: 10px;
   cursor: pointer;
 }

 .class-acc-chevron {
   padding: 0 16px;
   color: rgba(255, 255, 255, 0.70);
   transition: transform 160ms ease;
 }

 .class-card[data-collapsed="0"] .class-acc-chevron { transform: rotate(180deg); }

 .class-acc-body { padding: 0 0 6px; }
 
 .class-card-head { display: flex; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
 .class-icon {
   width: 58px;
   height: 58px;
   border-radius: 14px;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.18));
   border: 1px solid rgba(255, 255, 255, 0.12);
   display: grid;
   place-items: center;
   overflow: hidden;
   box-shadow: inset 0 0 0 1px rgba(var(--color-accent-rgb), 0.08);
 }
 .class-icon img { width: 100%; height: 100%; object-fit: contain; padding: 7px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
 
 .class-title { font-family: var(--font-display); font-size: 1.28rem; margin: 0; color: var(--text-primary); }
 .class-sub { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; line-height: 1.35; }
 .class-card-body .class-sub {
   color: rgba(255, 255, 255, 0.92);
   font-weight: 900;
 }
 .class-view-head .class-sub {
   color: var(--text-muted);
   font-weight: 600;
 }
 .class-sub + .pills { margin-top: 10px; }
 
 .class-card-body { padding: 18px; display: grid; gap: 14px; }
 .kv { display: grid; gap: 10px; }
 .kv-row {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 12px;
   padding: 11px 12px;
   border-radius: var(--radius-sm);
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid var(--border);
 }
 .kv-row span { color: var(--text-muted); font-size: 0.9rem; }
 .kv-row strong { color: var(--accent); text-align: right; }
 .kv-row .autostat-text { color: var(--accent); }

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

 .copy-btn {
   width: 34px;
   height: 34px;
   border-radius: 10px;
   border: 1px solid rgba(255, 255, 255, 0.12);
   background: rgba(0, 0, 0, 0.20);
   color: rgba(255, 255, 255, 0.90);
   cursor: pointer;
   display: inline-grid;
   place-items: center;
   transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
 }

 .copy-btn:hover {
   background: rgba(var(--color-accent-rgb), 0.10);
   border-color: rgba(var(--color-accent-rgb), 0.26);
 }

 .copy-btn:active { transform: scale(0.98); }

 .copy-btn.copy-btn--ok {
   background: rgba(0, 255, 170, 0.10);
   border-color: rgba(0, 255, 170, 0.30);
 }
 
 .pills { display: flex; flex-wrap: wrap; gap: 8px; }
 .pill {
   padding: 7px 10px;
   border-radius: 999px;
   font-size: 0.86rem;
   border: 1px solid rgba(255, 255, 255, 0.12);
   background: rgba(0, 0, 0, 0.18);
   box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
 }
 .pill--good { border-color: rgba(0, 255, 65, 0.20); background: rgba(0, 255, 65, 0.06); }
 .pill--bad { border-color: rgba(255, 80, 80, 0.20); background: rgba(255, 80, 80, 0.06); }
 .pill--even { border-color: var(--accent-border); background: var(--accent-dim); }
 
 .gear-list {
   margin: 0;
   padding: 0;
   list-style: none;
   display: grid;
   gap: 8px;
 }
 .gear-list li {
   padding: 10px 12px;
   border-radius: 12px;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.18));
   border: 1px solid rgba(255, 255, 255, 0.07);
   color: rgba(255, 255, 255, 0.92);
   font-size: 0.9rem;
   line-height: 1.4;
   cursor: pointer;
   transition: all 160ms ease;
   display: flex;
   align-items: center;
   gap: 8px;
 }
 .gear-list li i {
   color: rgba(var(--color-accent-rgb), 0.70);
   font-size: 0.85rem;
 }
 .gear-list li:hover {
   background: linear-gradient(180deg, rgba(var(--color-accent-rgb), 0.15), rgba(var(--color-accent-rgb), 0.08));
   border-color: rgba(var(--color-accent-rgb), 0.35);
   box-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.15);
 }
 .gear-list li:hover i {
   color: rgba(var(--color-accent-rgb), 0.95);
 }

 .pvp-setup {
   margin-top: 20px;
   padding: 18px;
   border-top: 1px solid rgba(255, 255, 255, 0.06);
 }
 .pvp-setup h3 {
   font-family: var(--font-head);
   font-size: 1.35rem;
   margin: 0 0 16px 0;
   color: #fff;
   text-shadow: 0 0 16px rgba(var(--color-accent-rgb), 0.20);
 }
 .pvp-categories {
   display: flex;
   flex-wrap: wrap;
   gap: 24px;
 }
 .pvp-category {
   flex: 0 1 auto;
   min-width: 160px;
 }
 .pvp-category h4 {
   font-size: 1.05rem;
   margin: 0 0 12px 0;
   color: rgba(var(--color-accent-rgb), 0.95);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
 }

 .pvp-rules-row {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}
 .pvp-rule-card {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.pvp-rule-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pvp-rule-title i {
  color: var(--accent);
}
.pvp-rule-value {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .pvp-rules-row {
    flex-direction: column;
  }
}

 .class-tooltip {
   position: fixed;
   background: linear-gradient(135deg, rgba(24, 21, 29, 0.98), rgba(19, 17, 23, 0.96));
   border: 2px solid var(--accent-border);
   border-radius: 12px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95),
               inset 0 0 25px rgba(var(--color-accent-rgb), 0.12),
               0 0 30px rgba(var(--color-accent-rgb), 0.25);
   padding: 18px 20px;
   max-width: 380px;
   z-index: 99999;
   font-size: 0.88rem;
   line-height: 1.7;
   font-family: 'Courier New', monospace;
   pointer-events: none;
   color: rgba(255, 255, 255, 0.95);
   word-wrap: break-word;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
   display: none !important;
   visibility: hidden !important;
   opacity: 0 !important;
 }

 .class-tooltip.visible {
   display: block !important;
   visibility: visible !important;
   opacity: 1 !important;
 }
 .tooltip-title {
   font-weight: bold;
   color: rgba(var(--color-accent-rgb), 0.98);
   margin-bottom: 10px;
   font-size: 1.05rem;
   letter-spacing: 0.05em;
   border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.20);
   padding-bottom: 8px;
 }
 .class-tooltip div {
   margin-bottom: 6px;
   color: rgba(255, 255, 255, 0.85);
 }
 .yellow { color: #FFD700; font-weight: 600; }
 .green { color: #00FF41; font-weight: 600; }
 .skyblue { color: #87CEEB; font-weight: 600; }
 .purple { color: #DA70D6; font-weight: 600; }

 .cta-row { display: flex; justify-content: center; gap: 15px; padding: 34px 20px 74px; }
 
 @media (max-width: 1100px) {
   .page-layout { grid-template-columns: minmax(0, 1fr) 300px; }
 }
 
 @media (max-width: 760px) {
   .page-layout { grid-template-columns: 1fr; }
   .side-menu { position: static; }
   .page-title { font-size: 2.25rem; }
   .cta-row { flex-direction: column; align-items: center; }
   .cta-row .btn { width: 100%; max-width: 420px; text-align: center; }
 }

 .class-bg {
   filter: saturate(1.05) contrast(1.05) drop-shadow(-10px 0 22px rgba(0, 0, 0, 0.55));
 }

.si-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  justify-content: center;
  max-width: 1200px;
  margin: 10px auto 16px;
}

@media (max-width: 1100px) {
  .si-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.si-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  text-align: center;
}

.si-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.si-stat-value {
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.br-top { padding: 14px 14px 0 14px; }

.br-sections { padding: 10px 14px 14px 14px; display: grid; gap: 10px; }

.br-accordion {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}

.br-accordion-summary {
  cursor: pointer;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.br-accordion-summary::-webkit-details-marker { display: none; }

.br-accordion-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.br-accordion-hint {
  font-size: 12px;
  opacity: 0.75;
}

.br-accordion-body {
  padding: 10px 12px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 10px;
}

.br-drop-group {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.18);
}

.br-drop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.br-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.br-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.br-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  line-height: 1;
  cursor: default;
  white-space: nowrap;
}

.br-chip-count {
  font-size: 12px;
  opacity: 0.85;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
}

.br-chip-exc {
  border-color: rgba(0, 255, 128, 0.45);
  background: rgba(0, 255, 128, 0.10);
}

.br-chip-socket {
  border-color: rgba(180, 100, 255, 0.50);
  background: rgba(180, 100, 255, 0.12);
}

.br-chip-nonexc {
  border-color: rgba(255, 220, 90, 0.55);
  background: rgba(255, 220, 90, 0.10);
}

.br-chip-ancient {
  border-color: rgba(100, 200, 255, 0.50);
  background: rgba(100, 200, 255, 0.12);
}

.br-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.72);
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

@media (max-width: 900px) {
  .br-items { gap: 6px; }
  .br-chip { font-size: 12px; padding: 6px 9px; }
}

.br-drop-meta-lg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.br-meta-pill {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25));
}

.br-meta-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
}

.br-meta-value {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  min-width: 70px;
  text-align: center;
  letter-spacing: 0.5px;
}

.br-meta-pill:nth-child(1) .br-meta-value {
  
  background: rgba(0, 180, 255, 0.15);
  border: 1px solid rgba(0, 180, 255, 0.5);
  color: #3dc6ff;
}

.br-meta-pill:nth-child(2) .br-meta-value {
  
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255, 170, 0, 0.5);
  color: #ffb347;
}

.br-meta-pill:nth-child(3) .br-meta-value {
  
  background: rgba(180, 100, 255, 0.15);
  border: 1px solid rgba(180, 100, 255, 0.5);
  color: #c98fff;
}

@media (max-width: 900px) {
  .br-drop-meta-lg {
    grid-template-columns: 1fr;
  }
}

.br-tooltip {
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.br-items .br-chip {
  font-size: 12.5px;
}

.br-rank-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.br-rank-tab {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.2s;
  border-radius: 10px;
}

.br-rank-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.br-rank-tab.active {
  background: rgba(var(--color-accent-rgb), 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.br-rank-panel {
  margin-top: 10px;
}

.mb-summary {
  padding: 14px 12px !important;
}

.mb-tier-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.mb-tier-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.mb-tier-name i {
  color: rgba(255, 200, 100, 0.8);
  font-size: 15px;
}

.mb-tier-cost {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--color-accent-rgb), 0.12);
  border: 1px solid rgba(var(--color-accent-rgb), 0.25);
  color: rgba(255, 220, 150, 0.95);
  font-weight: 600;
  white-space: nowrap;
}

.mb-tier-cost i {
  color: rgba(255, 200, 100, 0.9);
  font-size: 11px;
}

.mb-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .mb-items {
    grid-template-columns: 1fr;
  }
}

.mb-chip {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: default;
}

.mb-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.mb-chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-chip-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.mb-chip-qty {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.mb-chip-footer {
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  opacity: 0.85;
}

.mb-chip-rate {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mb-chip-normal {
  border-color: rgba(255, 220, 90, 0.45);
  background: linear-gradient(135deg, rgba(255, 220, 90, 0.08), rgba(255, 220, 90, 0.05));
}

.mb-chip-normal:hover {
  border-color: rgba(255, 220, 90, 0.6);
  background: linear-gradient(135deg, rgba(255, 220, 90, 0.12), rgba(255, 220, 90, 0.08));
}

.mb-chip-exc {
  border-color: rgba(0, 255, 128, 0.45);
  background: linear-gradient(135deg, rgba(0, 255, 128, 0.10), rgba(0, 255, 128, 0.06));
}

.mb-chip-exc:hover {
  border-color: rgba(0, 255, 128, 0.6);
  background: linear-gradient(135deg, rgba(0, 255, 128, 0.14), rgba(0, 255, 128, 0.10));
}

.mb-chip-socket {
  border-color: rgba(180, 100, 255, 0.50);
  background: linear-gradient(135deg, rgba(180, 100, 255, 0.12), rgba(180, 100, 255, 0.08));
}

.mb-chip-socket:hover {
  border-color: rgba(180, 100, 255, 0.65);
  background: linear-gradient(135deg, rgba(180, 100, 255, 0.16), rgba(180, 100, 255, 0.12));
}

.mb-chip-ancient {
  border-color: rgba(100, 200, 255, 0.50);
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.12), rgba(100, 200, 255, 0.08));
}

.mb-chip-ancient:hover {
  border-color: rgba(100, 200, 255, 0.65);
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.16), rgba(100, 200, 255, 0.12));
}

