:root {
  --bg: #060d1b;
  --bg-2: #0b1426;
  --panel: #101b31;
  --panel-soft: #152442;
  --line: rgba(146, 174, 223, 0.22);
  --text: #eaf1ff;
  --muted: #9fb3d9;
  --blue: #198bff;
  --blue-soft: #5cb8ff;
  --yellow: #ffd24a;
  --red: #e83e4d;
  --green: #2ccf84;
  --shadow: 0 16px 45px rgba(2, 7, 16, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(26, 97, 192, 0.4), transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(232, 62, 77, 0.25), transparent 35%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
}

a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.site-topbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 16px;
  background: #04080f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.site-topbar a {
  color: #c9d8f7;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-topbar i {
  margin-right: 6px;
  color: var(--blue-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(6, 13, 27, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.site-logo img {
  height: 54px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a {
  color: #d8e6ff;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(25, 139, 255, 0.18);
  color: #ffffff;
}

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  color: #d8e6ff;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  background: rgba(25, 139, 255, 0.18);
  color: #fff;
}

.nav-dropdown-toggle .dd-arrow {
  font-size: 0.6em;
  transition: transform 0.2s;
}

.nav-dropdown.open .dd-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: linear-gradient(165deg, rgba(16, 28, 50, 0.98), rgba(9, 19, 37, 0.98));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(2, 7, 16, 0.55);
  padding: 6px 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: #d0e2ff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(25, 139, 255, 0.15);
  color: #fff;
}

.nav-dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--blue-soft);
  font-size: 0.85rem;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-action {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action.btn-primary {
  background: linear-gradient(135deg, #1a87ff, #1668ff);
  color: #fff;
}

.btn-action.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-download-now {
  background: linear-gradient(135deg, #ff9a1f, #ff5b2e) !important;
  box-shadow: 0 10px 24px rgba(255, 107, 47, 0.35);
  animation: ctaPulse 1.7s ease-in-out infinite;
}

.btn-download-now:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.btn-action.btn-outline {
  background: transparent;
  border-color: rgba(167, 194, 236, 0.45);
  color: #d6e6ff;
}

.btn-action.btn-outline:hover {
  background: rgba(92, 184, 255, 0.12);
  color: #fff;
}

@keyframes ctaPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 116, 37, 0.5);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 14px rgba(255, 116, 37, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 116, 37, 0);
  }
}

.site-shell {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 18px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.site-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.side-card {
  background: linear-gradient(170deg, rgba(19, 33, 60, 0.95), rgba(10, 20, 39, 0.95));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.side-card h3 {
  margin: 0 0 10px;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f7ff;
}

.side-card h3 i {
  margin-right: 8px;
  color: var(--yellow);
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(13, 25, 46, 0.85);
  border: 1px solid rgba(146, 174, 223, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
}

.rank-row:hover {
  border-color: rgba(92, 184, 255, 0.5);
  transform: translateY(-1px);
}

.rank-pos {
  color: var(--yellow);
  font-weight: 800;
}

.rank-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name.online {
  color: #7dffb2;
}

.rank-name.offline {
  color: #c3d3ef;
}

.rank-stat {
  color: #e8f2ff;
  font-weight: 700;
}

.rank-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.side-card-cta {
  background: linear-gradient(160deg, rgba(18, 36, 65, 0.95), rgba(19, 40, 71, 0.95));
}

.side-link {
  display: block;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #dbe8ff;
  background: rgba(12, 25, 47, 0.85);
  border: 1px solid rgba(146, 174, 223, 0.2);
  font-weight: 600;
}

.side-link:hover {
  background: rgba(23, 64, 126, 0.5);
  color: #fff;
}

.site-main {
  min-width: 0;
}

.main-content,
.container,
.account-container,
.wiki-page,
.dl-container {
  width: 100%;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.hero-art {
  position: relative;
  border-radius: 16px;
  min-height: 420px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(146, 174, 223, 0.25);
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(25deg, rgba(5, 15, 31, 0.7), rgba(9, 24, 51, 0.16));
}

.hero-brand {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 2;
}

.hero-brand img {
  max-width: 360px;
  width: 72%;
}

.hero-panel {
  border-radius: 16px;
  border: 1px solid rgba(146, 174, 223, 0.22);
  background: linear-gradient(170deg, rgba(13, 23, 42, 0.96), rgba(8, 17, 34, 0.96));
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-kicker {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--blue-soft);
  font-weight: 700;
}

.hero-panel h1 {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  font-size: 2.1rem;
  line-height: 1.08;
}

.hero-panel p {
  margin: 0;
  color: #c7d8f8;
  line-height: 1.55;
}

.hero-points {
  margin: 2px 0 8px;
  padding-left: 18px;
  color: #deebff;
}

.hero-points li {
  margin-bottom: 6px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-login-card {
  margin-top: 4px;
  border: 1px solid rgba(146, 174, 223, 0.24);
  border-radius: 12px;
  background: rgba(8, 18, 35, 0.78);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.hero-login-card-success {
  background: linear-gradient(160deg, rgba(11, 24, 46, 0.92), rgba(7, 18, 36, 0.94));
}

.hero-login-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #e5f0ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-login-title i {
  color: var(--yellow);
}

.hero-login-error {
  border: 1px solid rgba(255, 129, 129, 0.55);
  background: rgba(117, 28, 35, 0.5);
  color: #ffd4d4;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.hero-login-form input {
  width: 100%;
  border: 1px solid rgba(146, 174, 223, 0.32);
  border-radius: 9px;
  background: rgba(12, 24, 44, 0.9);
  color: #eef5ff;
  padding: 9px 10px;
  outline: none;
}

.hero-login-form input:focus {
  border-color: rgba(92, 184, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(25, 139, 255, 0.2);
}

.hero-login-form .btn-hero {
  white-space: nowrap;
  min-height: 41px;
}

.hero-login-hint {
  color: #b9cef0;
  font-size: 0.86rem;
}

.hero-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-account-item {
  border: 1px solid rgba(146, 174, 223, 0.2);
  border-radius: 9px;
  background: rgba(12, 23, 43, 0.85);
  padding: 8px 10px;
}

.hero-account-item span {
  color: #9db8e2;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-account-item strong {
  display: block;
  margin-top: 3px;
  font-size: 1.18rem;
  font-family: 'Exo 2', sans-serif;
  color: #ebf4ff;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.btn-hero.primary {
  background: linear-gradient(135deg, #198bff, #1668ff);
  color: #fff;
}

.btn-hero.primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-hero.primary.cta-download {
  background: linear-gradient(135deg, #ff9a1f, #ff5b2e);
  box-shadow: 0 10px 24px rgba(255, 112, 41, 0.33);
  animation: ctaPulse 1.7s ease-in-out infinite;
}

.btn-hero.secondary {
  background: #212e49;
  border-color: rgba(146, 174, 223, 0.32);
  color: #dce9ff;
}

.btn-hero.secondary:hover {
  background: #2a3d63;
  color: #fff;
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.42rem;
  font-family: 'Exo 2', sans-serif;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  background: linear-gradient(165deg, rgba(17, 30, 54, 0.96), rgba(10, 20, 39, 0.96));
  border-radius: 12px;
  border: 1px solid rgba(146, 174, 223, 0.2);
  padding: 14px;
  box-shadow: var(--shadow);
}

.news-cover {
  width: 100%;
  height: 170px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(146, 174, 223, 0.25);
  margin-bottom: 10px;
}

.news-meta {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.news-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-family: 'Exo 2', sans-serif;
}

.news-subtitle {
  color: var(--blue-soft);
  font-weight: 700;
  margin-bottom: 8px;
}

.news-summary {
  color: #d2e1fb;
  margin-bottom: 12px;
}

.news-empty {
  background: rgba(11, 22, 41, 0.92);
  border: 1px solid rgba(146, 174, 223, 0.2);
  color: #cad9f5;
  border-radius: 12px;
  padding: 16px;
}

.home-hero-community .hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(25, 139, 255, 0.3), transparent 25%),
    radial-gradient(circle at 82% 70%, rgba(255, 210, 74, 0.2), transparent 30%),
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 16px);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(146, 174, 223, 0.3);
  background: rgba(14, 28, 52, 0.82);
  color: #dce9ff;
}

.hero-highlight i {
  color: var(--yellow);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.95fr);
  gap: 18px;
}

.news-main {
  min-width: 0;
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid rgba(146, 174, 223, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(17, 31, 56, 0.95), rgba(9, 20, 40, 0.95));
  box-shadow: var(--shadow);
}

.news-feature-cover {
  min-height: 238px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(146, 174, 223, 0.18);
}

.news-feature-cover-fallback {
  background:
    radial-gradient(circle at center, rgba(34, 204, 140, 0.5), transparent 35%),
    radial-gradient(circle at 10% 20%, rgba(25, 139, 255, 0.45), transparent 32%),
    radial-gradient(circle at 85% 78%, rgba(232, 62, 77, 0.35), transparent 30%),
    linear-gradient(140deg, #163969 0%, #1a2d55 45%, #2a214b 100%);
}

.news-feature-content {
  padding: 16px;
}

.news-feature-title {
  margin: 0 0 5px;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.55rem;
}

.news-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.timeline-card {
  background: rgba(13, 25, 46, 0.9);
  border: 1px solid rgba(146, 174, 223, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.timeline-card .news-title {
  font-size: 1.1rem;
}

.timeline-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--blue-soft);
}

.timeline-link:hover {
  color: #fff;
}

.community-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.community-card {
  border: 1px solid rgba(146, 174, 223, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(170deg, rgba(17, 30, 54, 0.95), rgba(10, 21, 40, 0.95));
  box-shadow: var(--shadow);
}

.community-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.community-card-title {
  margin: 0 0 10px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: #f2f7ff;
}

.live-pill {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #09111f;
  background: linear-gradient(135deg, #ff5564, #ffbb54);
  border-radius: 999px;
  padding: 3px 8px;
}

.radar-list {
  display: grid;
  gap: 8px;
}

.radar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(146, 174, 223, 0.18);
  border-radius: 9px;
  background: rgba(13, 25, 46, 0.82);
  padding: 8px 10px;
}

.radar-item:hover {
  border-color: rgba(92, 184, 255, 0.48);
  background: rgba(20, 38, 70, 0.9);
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ca7ff, #4ce6c3);
  box-shadow: 0 0 10px rgba(28, 167, 255, 0.7);
}

.radar-text {
  color: #d4e4ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.radar-empty {
  color: var(--muted);
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.community-stat {
  background: rgba(12, 24, 44, 0.82);
  border: 1px solid rgba(146, 174, 223, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
}

.community-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 1.2rem;
  font-family: 'Exo 2', sans-serif;
}

.community-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.community-catch {
  margin-top: 10px;
  color: #d7e7ff;
  line-height: 1.45;
  font-size: 0.94rem;
}

.trainer-house-card .community-card-title {
  margin-bottom: 0;
}

.trainer-house-empty {
  margin: 10px 0 4px;
  border: 1px dashed rgba(146, 174, 223, 0.25);
  border-radius: 9px;
  padding: 10px;
  color: #a8bfdc;
  font-size: 0.9rem;
}

.trainer-house-list {
  margin: 10px 0 12px;
  display: grid;
  gap: 8px;
}

.trainer-house-row {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(146, 174, 223, 0.18);
  border-radius: 9px;
  background: rgba(12, 23, 42, 0.86);
  padding: 8px 10px;
}

.trainer-house-row:hover {
  border-color: rgba(92, 184, 255, 0.5);
  background: rgba(18, 35, 63, 0.9);
}

.trainer-house-name {
  color: #e4efff;
  font-weight: 700;
}

.trainer-house-meta {
  color: #9db7df;
  font-size: 0.82rem;
}

.rank-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rank-snapshot-group h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.snapshot-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(146, 174, 223, 0.16);
  background: rgba(12, 23, 42, 0.84);
}

.snapshot-row span {
  color: var(--yellow);
  font-weight: 800;
}

.snapshot-row strong {
  color: #deebff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snapshot-row em {
  color: #9bc1ff;
  font-style: normal;
  font-weight: 700;
}

.snapshot-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.chat-feed {
  margin: 0;
  padding: 10px 6px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 139, 214, 0.3) transparent;
}
.chat-feed::-webkit-scrollbar { width: 5px; }
.chat-feed::-webkit-scrollbar-thumb { background: rgba(89, 139, 214, 0.3); border-radius: 4px; }
.chat-feed::-webkit-scrollbar-track { background: transparent; }

.chat-row {
  position: relative;
  max-width: 88%;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(135deg, rgba(18, 38, 70, 0.92), rgba(12, 26, 52, 0.95));
  border: 1px solid rgba(89, 139, 214, 0.15);
  padding: 8px 11px 6px 11px;
  box-shadow: 0 2px 8px rgba(2, 7, 18, 0.35);
  transition: background 0.2s;
}
.chat-row:hover {
  background: linear-gradient(135deg, rgba(22, 46, 82, 0.95), rgba(15, 32, 62, 0.97));
}
.chat-row::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, rgba(18, 38, 70, 0.92), transparent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.chat-row-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 3px;
}

.chat-player {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5cb8ff;
}

.chat-channel {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(137, 185, 255, 0.6);
  background: rgba(89, 139, 214, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.chat-message {
  color: #d8e8ff;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.chat-time {
  font-size: 0.68rem;
  color: rgba(142, 169, 209, 0.7);
  text-align: right;
}

.chat-loading,
.chat-empty,
.chat-error {
  border: 1px dashed rgba(146, 174, 223, 0.2);
  border-radius: 10px;
  padding: 18px 14px;
  color: rgba(156, 179, 217, 0.7);
  text-align: center;
  font-size: 0.85rem;
}

.market-preview-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.market-preview-item {
  border: 1px solid rgba(146, 174, 223, 0.18);
  border-radius: 9px;
  background: rgba(12, 24, 44, 0.85);
  padding: 8px 10px;
}

.market-preview-item strong {
  color: #deecff;
  margin-left: 6px;
}

.market-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #9cb6dd;
}

.market-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.market-type-sell {
  background: rgba(34, 210, 127, 0.2);
  color: #9affc3;
}

.market-type-buy {
  background: rgba(25, 139, 255, 0.2);
  color: #94ccff;
}

.market-preview-empty {
  color: var(--muted);
}

.discord-card p {
  color: #c6d9fa;
  margin-bottom: 10px;
}

.market-page {
  display: grid;
  gap: 14px;
}

.market-hero {
  border: 1px solid rgba(146, 174, 223, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(24, 132, 255, 0.22), transparent 34%),
    radial-gradient(circle at 85% 78%, rgba(255, 75, 84, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(14, 27, 50, 0.96), rgba(9, 18, 35, 0.96));
  padding: 20px;
  box-shadow: var(--shadow);
}

.market-hero h1 {
  margin: 5px 0 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
}

.market-hero p {
  margin: 0 0 10px;
  color: #cfdef8;
  max-width: 900px;
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(146, 174, 223, 0.2);
  border-radius: 12px;
  background: rgba(11, 22, 41, 0.95);
  padding: 12px;
}

.market-input-wrap {
  display: grid;
  gap: 5px;
}

.market-input-wrap label {
  color: #aac0e5;
  font-size: 0.84rem;
  font-weight: 600;
}

.market-input-wrap input,
.market-input-wrap select {
  width: 100%;
  border: 1px solid rgba(146, 174, 223, 0.24);
  border-radius: 9px;
  background: rgba(13, 25, 46, 0.92);
  color: #eff5ff;
  padding: 9px 10px;
  outline: none;
}

.market-input-wrap input:focus,
.market-input-wrap select:focus {
  border-color: rgba(92, 184, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(25, 139, 255, 0.2);
}

.market-filter-btn {
  height: 41px;
}

.market-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-overview-card {
  border-radius: 10px;
  border: 1px solid rgba(146, 174, 223, 0.18);
  background: rgba(12, 24, 45, 0.9);
  padding: 10px 12px;
}

.market-overview-card span {
  display: block;
  color: #a8bedf;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.market-overview-card strong {
  display: block;
  margin-top: 3px;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2rem;
  color: #e7f1ff;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  gap: 12px;
}

.market-list-wrap {
  min-width: 0;
}

.market-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-offer-card {
  border-radius: 11px;
  border: 1px solid rgba(146, 174, 223, 0.2);
  background: linear-gradient(165deg, rgba(18, 33, 58, 0.95), rgba(10, 21, 40, 0.95));
  padding: 12px;
}

.market-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-time {
  color: #97b0d6;
  font-size: 0.8rem;
}

.market-offer-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  color: #eaf3ff;
  font-family: 'Exo 2', sans-serif;
}

.market-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #b9cce9;
  font-size: 0.88rem;
}

.market-offer-meta i {
  color: #7ec0ff;
  margin-right: 4px;
}

.market-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-main .card,
.site-main .panel,
.site-main .wiki-card,
.site-main .dl-panel,
.site-main .dl-card,
.site-main .account-header,
.site-main .info-alert {
  border-radius: 12px;
  border: 1px solid rgba(146, 174, 223, 0.2);
  box-shadow: var(--shadow);
}

.site-main .card,
.site-main .panel,
.site-main .wiki-card,
.site-main .dl-panel {
  background: linear-gradient(165deg, rgba(16, 28, 50, 0.95), rgba(9, 19, 37, 0.95));
  color: #e9f1ff;
}

.site-main .card-header,
.site-main .panel-header {
  background: rgba(12, 23, 43, 0.95) !important;
  color: #f2f7ff !important;
  border-bottom: 1px solid rgba(146, 174, 223, 0.2);
}

.site-main .table,
.site-main .account-table {
  color: #e8f2ff;
}

.site-main .table th,
.site-main .table td,
.site-main .account-table th,
.site-main .account-table td {
  border-color: rgba(146, 174, 223, 0.18);
}

.site-main .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}

.site-main .thead-light th {
  background-color: rgba(18, 36, 65, 0.95);
  color: #e9f1ff;
}

.site-main .pagination .page-link {
  background: rgba(18, 36, 65, 0.95);
  border-color: rgba(146, 174, 223, 0.2);
  color: #d4e5ff;
}

.site-main .pagination .page-item.disabled .page-link {
  background: rgba(11, 21, 40, 0.7);
  color: #92a7cc;
}

.site-footer {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 18, 0.92);
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #aabfe4;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #cddcf7;
}

.footer-links a:hover {
  color: #fff;
}

/* ── Shared page components (.pg-*) ── */

.pg-card {
  background: linear-gradient(165deg, rgba(16, 28, 50, 0.96), rgba(9, 19, 37, 0.96));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.pg-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(12, 23, 43, 0.95);
  border-bottom: 1px solid rgba(146, 174, 223, 0.18);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f2f7ff;
}

.pg-card-head i { color: var(--yellow); font-size: 0.9rem; }

.pg-card-body { padding: 16px 18px; }

.pg-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(165deg, rgba(16, 28, 50, 0.96), rgba(9, 19, 37, 0.96));
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.pg-welcome h1 {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-welcome-meta { color: var(--muted); font-size: 0.88rem; }

.pg-row {
  display: flex;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(146, 174, 223, 0.1);
  gap: 12px;
}

.pg-row:last-child { border-bottom: none; }

.pg-label {
  width: 180px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.pg-value { flex: 1; color: var(--text); font-size: 0.92rem; }

.pg-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pg-stat {
  background: rgba(12, 24, 45, 0.88);
  border: 1px solid rgba(146, 174, 223, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
}

.pg-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.pg-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
  font-family: 'Exo 2', sans-serif;
  color: var(--blue-soft);
}

.pg-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  text-decoration: none;
}

.pg-btn:hover { transform: translateY(-1px); filter: brightness(1.12); text-decoration: none; }
.pg-btn-primary { background: linear-gradient(135deg, #198bff, #1668ff); color: #fff; }
.pg-btn-primary:hover { color: #fff; }
.pg-btn-secondary { background: rgba(25, 45, 80, 0.9); border: 1px solid rgba(146, 174, 223, 0.28); color: #d0e2ff; }
.pg-btn-secondary:hover { color: #fff; background: rgba(35, 60, 105, 0.9); }
.pg-btn-danger { background: linear-gradient(135deg, #c0392b, #a93226); color: #fff; }
.pg-btn-danger:hover { color: #fff; }
.pg-btn-sm { padding: 5px 11px; font-size: 0.8rem; }

.pg-alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pg-alert i { font-size: 1.1rem; flex-shrink: 0; }
.pg-alert-info { background: rgba(25, 139, 255, 0.1); border: 1px solid rgba(92, 184, 255, 0.3); color: #c0e0ff; flex-wrap: wrap; }
.pg-alert-info i { color: var(--blue-soft); }
.pg-alert-info .pg-btn { margin-left: auto; flex-shrink: 0; }
.pg-alert-success { background: rgba(44, 207, 132, 0.1); border: 1px solid rgba(44, 207, 132, 0.35); color: #b0f0d8; }
.pg-alert-success i { color: var(--green); }
.pg-alert-error { background: rgba(117, 28, 35, 0.45); border: 1px solid rgba(255, 129, 129, 0.5); color: #ffd4d4; }
.pg-alert-error i { color: #ff8a8a; }

.pg-form { display: grid; gap: 16px; }

.pg-field { display: grid; gap: 6px; }

.pg-field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pg-field input,
.pg-field select,
.pg-field textarea {
  width: 100%;
  border: 1px solid rgba(146, 174, 223, 0.3);
  border-radius: 10px;
  background: rgba(12, 24, 44, 0.9);
  color: #eef5ff;
  padding: 11px 14px;
  font-size: 0.93rem;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pg-field textarea { min-height: 80px; resize: vertical; }

.pg-field input:focus,
.pg-field select:focus,
.pg-field textarea:focus {
  border-color: rgba(92, 184, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(25, 139, 255, 0.18);
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.pg-table th {
  background: rgba(10, 20, 40, 0.95);
  color: #dce8ff;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(146, 174, 223, 0.2);
}

.pg-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(146, 174, 223, 0.1);
  font-size: 0.9rem;
}

.pg-table tr:last-child td { border-bottom: none; }
.pg-table tbody tr:hover { background: rgba(25, 139, 255, 0.05); }
.pg-table-wrap { overflow-x: auto; }

.pg-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pg-badge-leader { background: rgba(255, 210, 74, 0.18); color: var(--yellow); border: 1px solid rgba(255, 210, 74, 0.4); }
.pg-badge-vice { background: rgba(92, 184, 255, 0.15); color: var(--blue-soft); border: 1px solid rgba(92, 184, 255, 0.35); }
.pg-badge-member { background: rgba(146, 174, 223, 0.1); color: var(--muted); border: 1px solid rgba(146, 174, 223, 0.22); }
.pg-badge-ok { background: rgba(44, 207, 132, 0.15); color: var(--green); border: 1px solid rgba(44, 207, 132, 0.35); }
.pg-badge-warn { background: rgba(255, 210, 74, 0.15); color: var(--yellow); border: 1px solid rgba(255, 210, 74, 0.35); }

.pg-alert-ok {
  background: rgba(44, 207, 132, 0.1);
  border: 1px solid rgba(44, 207, 132, 0.3);
  color: var(--green);
}
.pg-alert-danger {
  background: rgba(232, 62, 77, 0.1);
  border: 1px solid rgba(232, 62, 77, 0.3);
  color: var(--red);
}

/* Player Search */
.player-search-input {
  flex: 1;
  background: rgba(12, 24, 44, 0.7);
  border: 1px solid rgba(92, 184, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.player-search-input:focus {
  border-color: var(--blue);
}
.player-search-input::placeholder {
  color: var(--muted);
}
.player-search-results {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(92, 184, 255, 0.15);
}
.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(12, 24, 44, 0.6);
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}
.ps-row:hover {
  background: rgba(25, 139, 255, 0.12);
}
.ps-row strong { flex: 1; color: var(--blue-soft); }
.ps-row em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.ps-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.ps-dot.pg-dot-online { background: var(--green); }
.ps-dot.pg-dot-offline { background: var(--red); }
.ps-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.pg-progress {
  height: 24px;
  background: rgba(12, 24, 44, 0.9);
  border-radius: 99px;
  border: 1px solid rgba(146, 174, 223, 0.18);
  overflow: hidden;
  margin-bottom: 8px;
}

.pg-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #ffa41f);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1a1200;
  min-width: 36px;
}

.pg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.pg-dot-online { background: var(--green); box-shadow: 0 0 5px var(--green); }
.pg-dot-offline { background: rgba(146, 174, 223, 0.35); }

.pg-section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-soft);
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(146, 174, 223, 0.15);
  letter-spacing: 0.04em;
}

.pg-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pg-tab {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}

.pg-tab:hover { color: var(--text); background: rgba(25, 139, 255, 0.1); text-decoration: none; }

.pg-tab.active {
  background: rgba(25, 139, 255, 0.18);
  border-color: rgba(92, 184, 255, 0.35);
  color: var(--blue-soft);
}

.pg-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

.pg-pg-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(146, 174, 223, 0.2);
  background: rgba(14, 26, 48, 0.9);
  color: #d4e5ff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.15s;
}

.pg-pg-link:hover { background: rgba(25, 139, 255, 0.15); color: #fff; text-decoration: none; }
.pg-pg-link.disabled { opacity: 0.4; pointer-events: none; }
.pg-pg-link.current { background: rgba(25, 139, 255, 0.2); color: var(--blue-soft); }

.pg-poke-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.pg-poke-item {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(12, 24, 44, 0.7);
  border: 1px solid rgba(146, 174, 223, 0.15);
  min-width: 80px;
}

.pg-poke-item img { width: 56px; height: 56px; }
.pg-poke-item small { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--muted); }

.pg-quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pg-quest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(12, 24, 44, 0.6);
  border: 1px solid rgba(146, 174, 223, 0.12);
}

.pg-quest-ok { color: var(--green); }
.pg-quest-no { color: var(--red); }

.pg-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pg-guilds-flex {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 12px;
}

/* ── Login page ── */
.login-page {
  max-width: 460px;
  margin: 32px auto;
}

.login-card {
  background: linear-gradient(170deg, rgba(19, 33, 60, 0.96), rgba(10, 20, 39, 0.96));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(146, 174, 223, 0.15);
}

.login-card-header i {
  font-size: 1.4rem;
  color: var(--yellow);
}

.login-card-header h2 {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f3f7ff;
}

.login-card-body {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.login-alert {
  border: 1px solid rgba(255, 129, 129, 0.55);
  background: rgba(117, 28, 35, 0.5);
  color: #ffd4d4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert i {
  color: #ff8a8a;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.login-field input {
  width: 100%;
  border: 1px solid rgba(146, 174, 223, 0.3);
  border-radius: 10px;
  background: rgba(12, 24, 44, 0.9);
  color: #eef5ff;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input::placeholder {
  color: #6b84ab;
}

.login-field input:focus {
  border-color: rgba(92, 184, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(25, 139, 255, 0.18);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #198bff, #1668ff);
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.login-submit:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-divider {
  height: 1px;
  background: rgba(146, 174, 223, 0.15);
  border: none;
  margin: 0;
}

.login-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(146, 174, 223, 0.12);
  text-align: center;
}

.login-footer p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.login-footer .login-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(135deg, #ff9a1f, #ff5b2e);
  transition: filter 0.15s, transform 0.15s;
}

.login-footer .login-download-link:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 1220px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-main {
    order: 1;
  }

  .community-grid,
  .market-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .site-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-logo {
    display: flex;
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .nav-dropdown-menu {
    left: 0;
    transform: none;
  }

  .site-actions {
    justify-content: center;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-login-form {
    grid-template-columns: 1fr;
  }

  .hero-login-form .btn-hero {
    width: 100%;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    grid-template-columns: 1fr;
  }

  .news-timeline,
  .market-list-grid {
    grid-template-columns: 1fr;
  }

  .rank-snapshot {
    grid-template-columns: 1fr;
  }

  .market-toolbar {
    grid-template-columns: 1fr;
  }

  .market-filter-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .market-overview {
    grid-template-columns: 1fr;
  }

  .hero-panel h1,
  .market-hero h1 {
    font-size: 1.55rem;
  }

  .hero-account-grid {
    grid-template-columns: 1fr;
  }

  .news-feature-title {
    font-size: 1.35rem;
  }

  .login-page {
    margin: 16px auto;
  }

  .login-card-body {
    padding: 18px 16px;
  }

  .login-card-header {
    padding: 16px 16px 12px;
  }

  .login-footer {
    padding: 14px 16px;
  }
}
