@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");
[hidden] {
  display: none !important;
}

:root {
  font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif;
  color: #31585c;
  background: #eefbf9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #31585c;
  --ink-strong: #115e59;
  --ink-muted: #647b7f;
  --teal: #0f766e;
  --teal-light: #14b8a6;
  --gold: #b98223;
  --gold-light: #f2d783;
  --border: #bfe7e4;
  --paper: rgba(255, 255, 255, 0.94);
  --container: 1168px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #eefbf9;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(58, 142, 152, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 184, 166, 0.04) 1px, transparent 1px),
    linear-gradient(#eefbf9, #ffffff 48%, #eefbf9);
  background-size: 32px 32px, 32px 32px, auto;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.page-container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 65px;
  border-bottom: 1px solid #dce9e8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(38, 68, 72, 0.1);
  backdrop-filter: blur(24px);
}

.mobile-site-header,
.mobile-bottom-nav {
  display: none;
}

.header-inner {
  width: min(1256px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: flex;
  align-items: center;
  min-width: 78px;
}

.brand-mark img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.brand-mark:hover img {
  transform: scale(1.05);
}

.site-header nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 4px;
  color: #323f42;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: #9b6a1f;
}

.header-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}

.header-auth-session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.header-auth-button {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: #3e5559;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.header-auth-button:hover {
  transform: translateX(-2px);
}

.header-auth-button span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-auth-button svg {
  flex: 0 0 auto;
}

.header-auth-login {
  border: 1px solid rgba(185, 130, 50, 0.26);
  background: linear-gradient(135deg, rgba(183, 130, 50, 0.12), rgba(255, 255, 255, 0.92));
}

.header-auth-register {
  border: 1px solid rgba(46, 143, 151, 0.22);
  background: linear-gradient(135deg, rgba(46, 143, 151, 0.12), rgba(255, 255, 255, 0.92));
}

.header-auth-account {
  min-width: 0;
  max-width: 170px;
  border: 1px solid rgba(46, 143, 151, 0.28);
  background: linear-gradient(135deg, rgba(46, 143, 151, 0.18), rgba(255, 255, 255, 0.92));
}

.header-auth-logout {
  border: 1px solid rgba(185, 130, 50, 0.22);
  background: linear-gradient(135deg, rgba(185, 130, 50, 0.12), rgba(255, 255, 255, 0.92));
}

.social-rail {
  position: fixed;
  z-index: 40;
  top: 136px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  padding: 16px 7px;
  border: 2px solid rgba(228, 196, 92, 0.92);
  border-right: 0;
  border-radius: 1.45rem 0 0 1.45rem;
  background:
    linear-gradient(180deg, rgba(37, 151, 145, 0.96), rgba(18, 101, 104, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 242, 160, 0.38), transparent 36%);
  box-shadow:
    0 14px 28px rgba(11, 64, 69, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.social-rail::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 232, 139, 0.66);
  border-radius: 1rem 0 0 1rem;
  content: "";
  pointer-events: none;
}

.social-rail-list {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  gap: 8px;
}

.social-link {
  display: grid;
  min-height: 49px;
  place-items: center;
  gap: 3px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 232, 139, 0.62);
  border-radius: 999px;
  color: #104f56;
  background: linear-gradient(180deg, #f3d56d, #b98223);
  font-size: 9px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 5px 10px rgba(11, 64, 69, 0.22);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.social-link:hover {
  transform: translateX(-2px);
  filter: brightness(1.06);
}

.social-link.download {
  color: #fff7c3;
  background: linear-gradient(180deg, #78d1e2, #2a8798);
}

.social-link span {
  max-width: 66px;
  overflow: hidden;
  color: #fff8c9;
  font-size: 9px;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(62, 34, 8, 0.44);
  white-space: nowrap;
}

.rail-knot {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 232, 139, 0.84);
  background: #2aa79c;
  transform: translateX(-50%) rotate(45deg);
}

.rail-knot-top {
  top: -7px;
}

.rail-knot-bottom {
  bottom: -7px;
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 65px);
  overflow: hidden;
  border-bottom: 6px solid #22201c;
  background: #eaf5f5;
}

.hero-backdrop,
.hero-backdrop img,
.hero-wash,
.hero-fade {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wash {
  background: linear-gradient(90deg, rgba(250, 255, 255, 0.62), rgba(238, 248, 247, 0.42) 42%, rgba(255, 250, 235, 0.18));
}

.hero-fade {
  top: auto;
  height: 96px;
  background: linear-gradient(180deg, rgba(234, 245, 245, 0), rgba(234, 245, 245, 0.76));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100svh - 71px);
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 34px;
}

.hero-logo {
  position: absolute;
  z-index: 4;
  top: -12px;
  left: -80px;
  width: 176px;
  object-fit: contain;
  filter: drop-shadow(0 15px 18px rgba(45, 24, 8, 0.35));
}

.hero-title {
  position: absolute;
  z-index: 25;
  bottom: clamp(10rem, 17vh, 12rem);
  left: clamp(1.5rem, 5vw, 4rem);
  display: block;
  width: min(21.5rem, calc(100vw - 9rem));
  padding: 0.58rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #24170f;
  background:
    linear-gradient(180deg, rgba(255, 248, 222, 0.78), rgba(255, 255, 255, 0.42)) padding-box,
    linear-gradient(90deg, rgba(199, 147, 50, 0.18), rgba(85, 148, 152, 0.1)) padding-box,
    linear-gradient(135deg, rgba(117, 70, 24, 0.72), rgba(255, 226, 139, 0.82) 46%, rgba(93, 55, 20, 0.62)) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 240, 174, 0.46),
    0 0 0 4px rgba(65, 38, 15, 0.08),
    0 14px 30px rgba(42, 32, 18, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 0 0 4px rgba(139, 88, 30, 0.1);
  backdrop-filter: blur(2px);
  text-align: center;
}

.hero-title::before,
.hero-title::after {
  position: absolute;
  z-index: 1;
  width: 9.2rem;
  height: 9.2rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  filter: drop-shadow(0 5px 8px rgba(64, 38, 12, 0.24));
  pointer-events: none;
}

.hero-title::before {
  top: -3.72rem;
  left: -4.12rem;
  background-image: url("../sites/ninjatruyenky.com-c0d799d1/root-8a5edab2/goc3.png");
}

.hero-title::after {
  right: -4.22rem;
  bottom: -4.72rem;
  background-image: url("../sites/ninjatruyenky.com-c0d799d1/root-8a5edab2/goc2.png");
}

.hero-title span {
  position: relative;
  z-index: 2;
  display: block;
  color: #24170f;
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.58;
  text-shadow:
    0 1px 0 rgba(255, 248, 225, 0.78),
    0 6px 14px rgba(50, 28, 8, 0.18);
}

.hero-art-wrap {
  position: relative;
  height: min(64vh, 614px);
  min-height: 360px;
  margin-top: 2px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 94%;
  max-width: 1024px;
  transform: translate(-50%, -48%);
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(45, 35, 72, 0.28));
}

.download-dock {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  width: min(704px, 100%);
  min-height: 140px;
  gap: 5px;
  margin: auto auto 0;
  padding: 6px;
  border: 4px solid #4a382f;
  border-radius: 6px;
  background:
    radial-gradient(circle at 14% -20%, rgba(251, 146, 60, 0.34), transparent 38%),
    radial-gradient(circle at 84% 120%, rgba(99, 102, 241, 0.42), transparent 40%),
    linear-gradient(135deg, rgba(18, 29, 54, 0.93), rgba(31, 42, 73, 0.88));
  box-shadow: 0 18px 45px rgba(39, 32, 22, 0.34);
}

.download-tile,
.download-account-panel {
  min-width: 0;
  border-radius: 3px;
}

.download-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  color: #fff7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-tile:hover {
  z-index: 1;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(10, 22, 42, 0.28);
}

.download-tile.payment {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.42), rgba(236, 72, 153, 0.18));
}

.download-tile.game {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.36), rgba(59, 130, 246, 0.2));
}

.download-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #ffb23f, #f43f8e);
}

.download-tile.game .download-icon {
  background: linear-gradient(135deg, #3ee7f5, #3985ff);
}

.download-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.download-copy strong {
  font-size: 14px;
}

.download-copy small {
  color: rgba(255, 247, 235, 0.74);
  font-size: 10px;
}

.download-arrow {
  flex: 0 0 auto;
  margin-left: auto;
}

.download-account-panel {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.18));
}

.account-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #fff6dc;
}

.account-heading span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-heading small {
  color: rgba(255, 246, 220, 0.72);
  font-size: 9px;
}

.auth-stack,
.mobile-hero-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}

.auth-link {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-start;
  min-height: 32px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-link:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(3px);
}

.auth-link span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-link:focus-visible,
.header-auth-button:focus-visible,
.news-category-tabs button:focus-visible {
  outline: 2px solid rgba(5, 111, 162, 0.35);
  outline-offset: 2px;
}

.auth-link-user {
  grid-column: 1 / -1;
}

.auth-stack-session:not(.auth-stack-admin) .auth-link-logout {
  grid-column: 1 / -1;
}

.auth-link-logout {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.auth-link-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

.auth-link-admin {
  border-color: rgba(47, 111, 118, 0.28);
  background: rgba(47, 111, 118, 0.14);
}

.auth-link-admin:hover {
  background: rgba(47, 111, 118, 0.22);
}

.auth-arrow {
  margin-left: auto;
}

.mobile-hero-auth {
  display: none;
}

.paper-section {
  position: relative;
  border-bottom: 1px solid rgba(191, 231, 228, 0.72);
  background: linear-gradient(rgba(255, 255, 255, 0.94), rgba(239, 249, 248, 0.92));
}

.news-section {
  min-height: 598px;
  padding: 56px 0;
}

.activity-section {
  min-height: 791px;
  padding: 40px 0;
}

.class-section {
  min-height: 625px;
  padding: 40px 0;
}

.ranking-section {
  min-height: 639px;
  padding: 32px 0;
}

@media (max-width: 1279px) {
  .hero-title {
    display: none;
  }
}

.ornate-heading {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.ornate-heading span {
  height: 2px;
  background: linear-gradient(90deg, transparent, #cfa446 45%, #4999a6);
}

.ornate-heading span:last-child {
  background: linear-gradient(90deg, #4999a6, #cfa446 55%, transparent);
}

.ornate-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.news-board {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 25px;
}

.news-preview,
.news-panel {
  position: relative;
  min-height: 344px;
  overflow: hidden;
  border: 1px solid rgba(191, 231, 228, 0.72);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
}

.news-preview {
  display: block;
}

.news-preview::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(26, 67, 73, 0.85));
  content: "";
}

.news-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-preview:hover img {
  transform: scale(1.04);
}

.news-preview-type {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 5px;
  color: #fff9e7;
  background: linear-gradient(#dfb24c, #ad7222);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-preview-caption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.news-panel {
  padding: 0 15px 15px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(244, 250, 251, 0.54));
}

.news-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(191, 231, 228, 0.72);
  scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar {
  display: none;
}

.news-tabs button,
.news-tabs a {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--ink-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.news-tabs button:hover,
.news-tabs button.active {
  color: #fff8df;
  background: linear-gradient(#d5a642, #b77a21);
}

.news-tabs a {
  display: grid;
  margin-left: auto;
  place-items: center;
  color: var(--gold);
}

.news-list {
  display: grid;
  gap: 0;
  padding-top: 6px;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(191, 231, 228, 0.48);
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.news-row:hover,
.news-row.active {
  color: var(--ink-strong);
  background: rgba(219, 239, 240, 0.66);
  transform: translateX(3px);
}

.news-row-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-row-title svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.news-row-date {
  color: #8b6b35;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.news-empty {
  margin: 20px 0;
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
}

.news-search {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
  margin-top: 12px;
}

.news-search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.news-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.news-search button {
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--teal);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.outline-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #cfa446;
  border-radius: 4px;
  color: #8b651e;
  font-size: 12px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.outline-action:hover {
  color: #fff;
  background: #b98223;
  transform: translateY(-2px);
}

.activity-showcase {
  display: grid;
  place-items: center;
  gap: 42px;
}

.activity-carousel {
  position: relative;
  width: min(896px, 100%);
  height: 220px;
}

.activity-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border: 5px solid rgba(223, 188, 102, 0.7);
  border-radius: 8px;
  background: #effaf8;
  box-shadow: 0 12px 26px rgba(38, 75, 79, 0.18);
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.activity-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-slide-left-2,
.activity-slide-right-2 {
  width: 150px;
  height: 85px;
  opacity: 0.58;
}

.activity-slide-left-2 {
  transform: translate(calc(-50% - 382px), -50%);
}

.activity-slide-right-2 {
  transform: translate(calc(-50% + 382px), -50%);
}

.activity-slide-left-1,
.activity-slide-right-1 {
  width: 213px;
  height: 120px;
  opacity: 0.8;
}

.activity-slide-left-1 {
  transform: translate(calc(-50% - 255px), -50%);
}

.activity-slide-right-1 {
  transform: translate(calc(-50% + 255px), -50%);
}

.activity-slide-active {
  width: 384px;
  height: 216px;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.activity-slide:hover {
  z-index: 2;
  opacity: 1;
}

.activity-content {
  width: min(896px, 100%);
  min-height: 360px;
  padding: 38px 50px;
  border: 1px solid rgba(191, 231, 228, 0.8);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 241, 190, 0.58), transparent 56%),
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(238, 248, 248, 0.84));
  box-shadow: 0 14px 30px rgba(33, 92, 97, 0.1);
  text-align: center;
}

.activity-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #8a5c1b;
  background: rgba(242, 215, 131, 0.36);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-content h3 {
  margin: 13px 0 14px;
  color: var(--ink-strong);
  font-size: 26px;
  font-weight: 800;
}

.activity-content p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.activity-cta {
  margin-top: 18px !important;
  color: var(--ink-muted) !important;
  font-size: 12px !important;
}

.activity-cta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  font-weight: 800;
}

.activity-mobile-strip {
  display: none;
}

.class-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.class-tabs button,
.ranking-tabs button {
  min-height: 41px;
  border: 1px solid rgba(191, 231, 228, 0.74);
  border-radius: 4px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.class-tabs button:hover,
.class-tabs button.active,
.ranking-tabs button:hover,
.ranking-tabs button.active {
  color: #fff9e7;
  background: linear-gradient(#d7aa47, #ad701d);
  transform: translateY(-2px);
}

.class-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 436px;
  border: 1px solid rgba(191, 231, 228, 0.82);
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(247, 252, 250, 0.9));
}

.class-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 42px 44px;
  background: linear-gradient(135deg, rgba(255, 251, 232, 0.96), rgba(245, 252, 251, 0.92));
}

.class-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.class-copy h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 32px;
  font-weight: 800;
}

.class-difficulty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #bcc7c9;
}

.stars svg.active {
  color: #c79631;
}

.class-difficulty strong {
  color: var(--gold);
}

.class-description {
  max-width: 405px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

.class-controls {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 28px;
}

.class-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(185, 130, 35, 0.55);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, background 0.2s ease;
}

.class-controls button:hover {
  color: #fff;
  background: var(--gold);
}

.class-controls span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.class-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(226, 243, 244, 0.34) 1px, transparent 1px),
    linear-gradient(0deg, rgba(207, 164, 70, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #e8f6f6, #f8f4e4);
  background-size: 22px 22px, 22px 22px, auto;
}

.class-visual-backdrop,
.class-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.class-visual-backdrop {
  opacity: 0.22;
  filter: blur(2px) saturate(0.8);
  transform: scale(1.04);
}

.class-visual-image {
  z-index: 1;
  inset: 21px;
  width: calc(100% - 42px);
  height: calc(100% - 42px);
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(73, 44, 19, 0.2));
}

.class-image-frame {
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 9px solid transparent;
  border-image: linear-gradient(90deg, #f2d783, #aa6d1c, #f2d783, #aa6d1c) 1;
  pointer-events: none;
}

.ranking-board {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}

.ranking-art {
  position: relative;
  min-height: 517px;
  overflow: hidden;
  border: 1px solid rgba(191, 231, 228, 0.72);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255, 237, 159, 0.92), rgba(139, 86, 23, 0.72) 48%, rgba(255, 230, 137, 0.82));
}

.ranking-logo {
  position: absolute;
  top: -8px;
  left: 22px;
  width: 248px;
  opacity: 0.92;
  filter: drop-shadow(0 14px 18px rgba(64, 38, 16, 0.24));
}

.ranking-characters {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  object-fit: contain;
  object-position: bottom left;
}

.ranking-art p {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  margin: 0;
  padding: 13px 15px;
  border-radius: 5px;
  color: #fff9e7;
  background: rgba(62, 43, 24, 0.56);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.ranking-panel {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(191, 231, 228, 0.78);
  border-radius: 5px;
  background: linear-gradient(rgba(255, 255, 255, 0.76), rgba(244, 250, 251, 0.6));
}

.ranking-toolbar {
  display: grid;
  gap: 12px;
}

.ranking-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: 5px;
}

.ranking-tabs button {
  min-height: 31px;
}

.ranking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ranking-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 11px;
}

.ranking-table th {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(191, 231, 228, 0.9);
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.ranking-table td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(191, 231, 228, 0.55);
  white-space: nowrap;
}

.rank-badge {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.rank-1 {
  background: linear-gradient(135deg, #ccfbf1, #14b8a6 48%, #0f766e);
}

.rank-2 {
  background: linear-gradient(135deg, #f7fbff, #7aa8bf 48%, #426f86);
}

.rank-3 {
  background: linear-gradient(135deg, #ecfeff, #0891b2 48%, #155e75);
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
  color: #7e5b25;
  background: #f4e6bb;
}

.player {
  color: var(--ink);
  font-weight: 700;
}

.player.top {
  color: #0f766e;
  font-weight: 800;
}

.level-value,
.potential-value {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 4px;
  color: #0f766e;
  background: linear-gradient(#ecfeff, #ccfbf1);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 48px 0 40px;
}

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

.footer-brand-heading img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand h3,
.footer-column h3,
.footer-contact h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 320px;
  margin: 17px 0 20px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: var(--social-color);
  background: #eefbf9;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: #fff;
  background: var(--social-color);
  transform: translateY(-3px);
}

.footer-column ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-contact li {
  color: var(--ink-muted);
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--teal);
  transform: translateX(3px);
}

.footer-contact li {
  line-height: 1.4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(16px, calc((100% - var(--container)) / 2));
  border-top: 1px solid rgba(191, 231, 228, 0.78);
  color: var(--ink-muted);
  font-size: 10px;
}

@media (max-width: 1100px) {
  .site-header nav a {
    font-size: 10px;
  }

  .hero-logo {
    left: -20px;
    width: 160px;
  }

  .hero-title {
    left: 30px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    height: 57px;
  }
}

@media (max-width: 767px) {
  :root {
    --container: 100%;
  }

  .page-container {
    width: min(100% - 32px, 600px);
  }

  .site-header {
    display: none;
  }

  .mobile-site-header {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    height: 53px;
    border-bottom: 1px solid #dce9e8;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(38, 68, 72, 0.12);
    backdrop-filter: blur(24px);
  }

  .mobile-site-header-inner {
    display: flex;
    width: min(100% - 26px, 600px);
    height: 52px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-site-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #26484e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-site-brand-icon {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d8e7e6;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(38, 68, 72, 0.12);
  }

  .mobile-site-brand-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 8px;
  }

  .mobile-search-button {
    display: grid;
    width: 36px;
    height: 30px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink-muted);
    background: #fff;
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-mark {
    min-width: 58px;
  }

  .brand-mark img {
    width: 48px;
    height: 48px;
  }

  .site-header nav {
    gap: 2px;
  }

  .site-header nav a {
    padding: 4px 2px;
    font-size: 8px;
  }

  .header-auth {
    min-width: 96px;
  }

  .header-auth-button {
    height: 23px;
    font-size: 9px;
  }

  .hero-section {
    min-height: calc(100svh - 52px);
    margin-top: 52px;
  }

  .hero-inner {
    min-height: calc(100svh - 58px);
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-logo {
    top: 13px;
    left: -3px;
    width: 104px;
  }

  .hero-title {
    top: 45%;
    left: 16px;
    width: 152px;
    padding: 13px 10px 12px;
    border-radius: 2px 13px 2px 13px;
    font-size: 7px;
    line-height: 1.45;
  }

  .hero-title::after {
    right: 9px;
    bottom: -8px;
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .hero-art-wrap {
    height: 55vh;
    min-height: 300px;
    margin-top: 1px;
  }

  .hero-art {
    width: 94%;
    max-width: 1024px;
    transform: translate(-50%, -48%);
  }

  .mobile-hero-auth {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    display: grid;
    width: min(168px, calc(100vw - 24px));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(9, 18, 34, 0.3);
    box-shadow:
      0 12px 28px rgba(2, 6, 23, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
  }

  .mobile-hero-auth .auth-link {
    min-height: 30px;
    padding: 5px 8px;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #fff;
    background: rgba(96, 165, 250, 0.17);
    box-shadow:
      0 9px 20px rgba(2, 6, 23, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 18px rgba(96, 165, 250, 0.16);
    font-size: 8px;
  }

  .mobile-hero-auth .auth-link-user {
    grid-column: 1 / -1;
  }

  .mobile-hero-auth .auth-link-login,
  .mobile-hero-auth .auth-link-register {
    grid-column: 1 / -1;
  }

  .mobile-hero-auth .auth-link:hover {
    background: rgba(96, 165, 250, 0.3);
  }

  .mobile-hero-auth .auth-link-register {
    background: rgba(167, 139, 250, 0.17);
    box-shadow:
      0 9px 20px rgba(2, 6, 23, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 18px rgba(167, 139, 250, 0.16);
  }

  .mobile-hero-auth .auth-link-register:hover {
    background: rgba(167, 139, 250, 0.3);
  }

  .mobile-hero-auth .auth-link-admin {
    background: rgba(47, 111, 118, 0.2);
  }

  .mobile-hero-auth .auth-link-admin:hover {
    background: rgba(47, 111, 118, 0.3);
  }

  .mobile-hero-auth.mobile-auth-session:not(.mobile-auth-admin) .auth-link-logout {
    grid-column: 1 / -1;
  }

  .download-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: absolute;
    top: 58.8%;
    right: auto;
    left: 1px;
    width: calc(100vw - 36px);
    min-height: 73px;
    gap: 4px;
    padding: 5px;
    border-width: 3px;
  }

  .download-tile {
    min-height: 60px;
    height: 60px;
    gap: 7px;
    padding: 7px;
  }

  .download-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .download-icon svg {
    width: 16px;
    height: 16px;
  }

  .download-copy strong {
    font-size: 9px;
  }

  .download-copy small {
    font-size: 7px;
  }

  .download-arrow {
    width: 14px;
  }

  .download-account-panel {
    display: none;
  }

  .account-heading {
    justify-content: flex-start;
    gap: 8px;
  }

  .account-heading span {
    font-size: 10px;
  }

  .account-heading small {
    font-size: 8px;
  }

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

  .auth-link {
    min-height: 24px;
    font-size: 8px;
  }

  .social-rail {
    top: auto;
    right: 1px;
    bottom: 75px;
    left: auto;
    width: min(221px, calc(100vw - 16px));
    padding: 5px;
    border: 2px solid rgba(228, 196, 92, 0.92);
    border-radius: 999px;
    transform: none;
  }

  .social-rail::before {
    inset: 3px;
    border-radius: 999px;
  }

  .social-rail-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .social-link {
    width: 30px;
    height: 30px;
    min-height: 30px;
    gap: 0;
    border-radius: 999px;
    font-size: 16px;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }

  .social-link span,
  .rail-knot {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 66px;
    border-top: 1px solid #dce9e8;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(38, 68, 72, 0.12);
    backdrop-filter: blur(24px);
  }

  .mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 65px;
  }

  .mobile-bottom-link {
    display: flex;
    min-width: 0;
    height: 65px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #647b7f;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transition: color 0.2s ease;
  }

  .mobile-bottom-link.active,
  .mobile-bottom-link:hover {
    color: #9b6a1f;
  }

  .mobile-bottom-link.active .mobile-bottom-icon {
    color: #9b6a1f;
    background: #fff3d2;
    box-shadow: 0 2px 7px rgba(185, 130, 35, 0.12);
  }

  .mobile-bottom-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 4px;
    color: inherit;
    background: #fff;
  }

  .mobile-bottom-account {
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .mobile-bottom-account .mobile-bottom-link {
    width: 100%;
  }

  .mobile-login-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
  }

  .mobile-login-panel {
    position: relative;
    display: grid;
    width: min(100%, 360px);
    gap: 12px;
    padding: 25px 20px 20px;
    border: 1px solid rgba(191, 231, 228, 0.86);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 52, 56, 0.3);
  }

  .mobile-login-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    color: var(--ink-muted);
    background: transparent;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-login-kicker {
    margin: 0;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-login-panel h2 {
    margin: -4px 0 0;
    color: var(--ink-strong);
    font-size: 24px;
  }

  .mobile-login-welcome {
    margin: -3px 0 2px;
    color: var(--ink-muted);
    font-size: 12px;
  }

  .mobile-login-panel label {
    display: grid;
    gap: 5px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-login-panel input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
  }

  .mobile-login-panel input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
  }

  .mobile-login-submit {
    min-height: 38px;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(#d7aa47, #ad701d);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-login-register {
    margin: 0;
    color: var(--ink-muted);
    font-size: 11px;
    text-align: center;
  }

  .mobile-login-register a {
    color: var(--teal);
    font-weight: 900;
  }

  .mobile-account-action {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-account-action.logout {
    color: #9b5d24;
    background: #fffaf0;
  }

  .site-main {
    padding-bottom: 96px;
  }

  .news-section,
  .activity-section,
  .class-section,
  .ranking-section {
    min-height: 0;
    padding: 32px 0;
  }

  .ornate-heading {
    gap: 10px;
    margin-bottom: 21px;
  }

  .ornate-heading h2 {
    font-size: 16px;
  }

  .news-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-preview,
  .news-panel {
    min-height: 160px;
  }

  .news-preview-caption {
    font-size: 12px;
  }

  .news-panel {
    min-height: 0;
    padding: 0 10px 10px;
  }

  .news-tabs {
    min-height: 42px;
    gap: 2px;
  }

  .news-tabs button,
  .news-tabs a {
    padding: 6px 7px;
    font-size: 8px;
  }

  .news-row {
    min-height: 31px;
    padding: 4px 6px;
  }

  .news-row-title {
    font-size: 9px;
  }

  .news-row-date {
    font-size: 8px;
  }

  .activity-showcase {
    display: block;
  }

  .activity-carousel {
    height: 132.6px;
  }

  .activity-slide {
    width: 117px;
    height: 65.8125px;
    padding: 2.34px;
    border-width: 1.17px;
    border-radius: 4px;
    box-shadow: 0 7px 16px rgba(38, 75, 79, 0.16);
    transition: border-color 0.26s ease, box-shadow 0.26s ease, opacity 0.26s ease,
      transform 0.42s ease, width 0.42s ease, height 0.42s ease;
  }

  .activity-slide-left-2,
  .activity-slide-right-2 {
    opacity: 0.48;
  }

  .activity-slide-left-2 {
    transform: translate(calc(-50% - 145.6px), -50%) scale(0.58);
  }

  .activity-slide-right-2 {
    transform: translate(calc(-50% + 145.6px), -50%) scale(0.58);
  }

  .activity-slide-left-1,
  .activity-slide-right-1 {
    opacity: 0.68;
  }

  .activity-slide-left-1 {
    transform: translate(calc(-50% - 87.1px), -50%) scale(0.82);
  }

  .activity-slide-right-1 {
    transform: translate(calc(-50% + 87.1px), -50%) scale(0.82);
  }

  .activity-slide-active {
    width: 188.5px;
    height: 106.031px;
    opacity: 1;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .activity-slide img {
    border-radius: 2px;
  }

  .activity-content {
    height: 416px;
    min-height: 416px;
    margin-top: 4.55px;
    padding: 11.05px 11.7px;
  }

  .activity-tag {
    display: none;
  }

  .activity-content h3 {
    margin: 0;
    font-size: 15.6px;
    font-weight: 900;
    line-height: 18.72px;
  }

  .activity-content p {
    max-width: none;
    margin: 8.45px 0 0;
    font-size: 10.14px;
    font-weight: 700;
    line-height: 15.21px;
  }

  .activity-cta {
    margin: 7.54px 0 0 !important;
    padding-top: 6.5px;
    font-size: 10.14px !important;
    font-weight: 900;
    line-height: 13.9932px;
  }

  .activity-mobile-strip {
    display: none;
  }

  .class-tabs {
    display: flex;
    gap: 5px;
    margin-right: -16px;
    margin-bottom: 8px;
    padding-right: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .class-tabs::-webkit-scrollbar {
    display: none;
  }

  .class-tabs button {
    flex: 0 0 auto;
    min-width: 124px;
    min-height: 37px;
    font-size: 10px;
  }

  .class-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .class-copy {
    padding: 24px 20px 22px;
  }

  .class-copy h3 {
    font-size: 25px;
  }

  .class-description {
    margin-top: 15px;
    font-size: 12px;
  }

  .class-controls {
    margin-top: 18px;
  }

  .class-visual {
    min-height: 280px;
  }

  .ranking-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ranking-art {
    display: none;
    min-height: 145px;
  }

  .ranking-logo {
    top: -28px;
    left: 9px;
    width: 154px;
  }

  .ranking-characters {
    width: 58%;
    left: 42%;
  }

  .ranking-art p {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 9px 10px;
    font-size: 9px;
  }

  .ranking-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 8px;
  }

  .ranking-table {
    min-width: 610px;
    font-size: 9px;
  }

  .ranking-table th {
    padding: 5px;
    font-size: 8px;
  }

  .ranking-table td {
    padding: 4px 5px;
  }

  .rank-badge {
    width: 22px;
    height: 22px;
  }

  .rank-badge svg {
    width: 12px;
    height: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    padding: 34px 0 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    padding: 14px 16px 0;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .page-container {
    width: calc(100% - 24px);
  }

  .hero-title {
    left: 10px;
  }

  .mobile-hero-auth {
    right: 0;
    width: min(160px, calc(100vw - 16px));
  }

  .download-copy strong {
    font-size: 9px;
  }

  .news-section {
    padding: 32.5px 0;
  }

  .activity-section,
  .class-section {
    padding: 26px 0;
  }

  .ranking-section {
    padding: 19.5px 0;
  }

  .news-preview {
    height: 216px;
    min-height: 216px;
  }

  .news-tabs {
    min-height: 32px;
  }

  .news-list {
    padding-top: 0;
  }

  .news-search {
    margin-top: 0;
  }

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

  .footer-column,
  .footer-contact {
    grid-column: 1;
  }
}

/* Inner route pages */
.inner-site-shell {
  min-height: 100vh;
  background: #eefbf9;
}

.inner-site-main {
  min-height: 70vh;
}

.inner-site-header {
  position: sticky;
}

.inner-social-rail {
  display: none;
}

.route-container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.route-shell-dark .site-footer {
  background: #ecf4f1;
}

.route-dark-surface {
  min-height: 920px;
  color: #effaf8;
  background:
    radial-gradient(circle at 18% 8%, rgba(53, 211, 224, 0.38), transparent 384px),
    radial-gradient(circle at 88% 16%, rgba(237, 56, 45, 0.22), transparent 288px),
    linear-gradient(rgba(2, 39, 55, 0.9), rgba(5, 73, 91, 0.86)),
    url("../sites/ninjatruyenky.com-c0d799d1/root-8a5edab2/bg1.png") center / cover fixed;
}

.news-route-container {
  padding: 28px 0 76px;
}

.news-page-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.news-install-panel {
  position: sticky;
  top: 92px;
  display: grid;
  min-height: 370px;
  align-content: start;
  gap: 12px;
  padding: 10px;
  border: 1px solid #3c9db0;
  background:
    linear-gradient(rgba(2, 43, 61, 0.95), rgba(2, 28, 45, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(87, 230, 244, 0.24), transparent 60%);
  box-shadow: 0 18px 28px rgba(0, 15, 27, 0.2);
}

.news-install-logo {
  display: grid;
  min-height: 103px;
  place-items: center;
  border-bottom: 1px solid rgba(64, 170, 188, 0.36);
}

.news-install-logo img {
  width: 170px;
  height: 96px;
  object-fit: contain;
}

.news-install-flag {
  display: grid;
  min-height: 126px;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #fff6bf;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 212, 95, 0.3), transparent 34%),
    linear-gradient(#c82916, #8f130b 72%, #710c08);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  text-align: center;
}

.news-install-flag span {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.news-install-flag strong {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.news-install-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.news-install-actions a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid #62a6af;
  color: #ffe77f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.route-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 0;
  margin-top: 1px;
}

.route-search-form input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: #345b62;
  background: #f5faf9;
  font-size: 11px;
}

.route-search-form button {
  display: grid;
  place-items: center;
  color: #fff;
  background: #16a49c;
}

.news-page-content {
  display: grid;
  gap: 20px;
}

.news-carousel {
  position: relative;
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0, 1fr) 56px;
  overflow: hidden;
  border: 1px solid #308da0;
  background: linear-gradient(rgba(0, 23, 35, 0.96), rgba(0, 45, 67, 0.92));
  box-shadow: 0 20px 38px rgba(0, 18, 29, 0.2);
}

.news-carousel > img {
  width: 100%;
  height: 100%;
  min-height: 498px;
  object-fit: cover;
}

.news-carousel-dots {
  display: grid;
  grid-auto-rows: 1fr;
  background: #ae091c;
}

.news-carousel-dots button {
  display: grid;
  place-items: center;
  color: #ffd3a3;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 900;
}

.news-carousel-dots button.active {
  color: #fff;
  background: #c01022;
}

.news-main-panel {
  overflow: hidden;
  color: #173f4b;
  background: linear-gradient(rgba(246, 250, 243, 0.96), rgba(232, 239, 230, 0.95));
  box-shadow: 0 16px 28px rgba(0, 21, 31, 0.16);
}

.news-main-heading {
  display: flex;
  min-height: 91px;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  background:
    radial-gradient(circle at 84% 32%, rgba(255, 255, 255, 0.58), transparent 144px),
    linear-gradient(100deg, rgba(2, 63, 85, 0.98), rgba(0, 101, 127, 0.7) 52%, rgba(238, 252, 251, 0.56));
}

.news-main-heading img {
  width: 57px;
  height: 57px;
  border-radius: 10px;
}

.news-main-heading h1 {
  margin: 0;
  color: #fff8d8;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
}

.news-main-heading p {
  display: flex;
  gap: 8px;
  margin: 2px 0 0;
  color: #e9f8f7;
  font-size: 11px;
  font-weight: 800;
}

.news-main-heading a {
  color: #d7eff1;
}

.news-category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(191, 231, 228, 0.72);
  background: linear-gradient(180deg, rgba(250, 253, 252, 0.95), rgba(236, 244, 239, 0.8));
}

.news-category-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(88, 112, 114, 0.24);
  border-radius: 999px;
  color: #27444a;
  background: linear-gradient(180deg, #fbfdfd, #e6ece9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(38, 68, 72, 0.04);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.news-category-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 122, 171, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(38, 68, 72, 0.08);
}

.news-category-tabs button.active {
  color: #fff;
  border-color: #0975a5;
  background: linear-gradient(135deg, #159bd0, #056fa2);
  box-shadow: 0 10px 20px rgba(5, 111, 162, 0.2);
}

.news-route-list {
  padding: 0 20px 16px;
}

.news-route-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dotted #c4cac5;
  color: #23373b;
  font-size: 12px;
}

.news-route-row:hover {
  color: #0d758c;
}

.news-route-row strong {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-route-category {
  color: #c7403b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-route-row time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #758182;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.route-empty-state {
  padding: 24px 0;
  color: #71817f;
  font-size: 12px;
  text-align: center;
}

.download-page-surface,
.handbook-page-surface,
.article-page-surface {
  min-height: 1120px;
  background:
    linear-gradient(#eefbf9, #f8fffd 52%, #eefbf9),
    repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.055) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(14, 116, 144, 0.043) 0 1px, transparent 1px 48px);
}

.download-page-surface {
  min-height: 720px;
}

.download-route-container {
  padding: 28px 0 72px;
}

.route-page-intro {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 0 0 24px;
  text-align: center;
}

.route-page-intro h1 {
  margin: 0;
  color: #11869a;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
}

.route-page-intro p {
  margin: 0;
  color: #637d80;
  font-size: 13px;
  line-height: 1.5;
}

.route-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #52bfd1;
  border-radius: 999px;
  color: #3c6870;
  background: #d9f5f4;
  font-size: 12px;
  font-weight: 800;
}

.route-version-pill strong {
  color: #117b85;
}

.download-platform-list {
  display: grid;
  gap: 14px;
}

.download-platform-card {
  overflow: hidden;
  border: 1px solid #c9e8e4;
  border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.86)), linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(14, 165, 233, 0.07));
  box-shadow: 0 10px 22px rgba(47, 119, 125, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-platform-card.open {
  border-color: #2fbba9;
  box-shadow: inset 0 0 0 1px #2fbba9, 0 15px 31px rgba(32, 137, 133, 0.12);
}

.download-platform-toggle:hover {
  background: rgba(224, 250, 247, 0.48);
}

.download-platform-toggle:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.24);
  outline-offset: -3px;
}

.download-platform-card.open .download-platform-toggle {
  background: rgba(235, 253, 250, 0.72);
}

.download-platform-card.open .download-platform-chevron {
  transform: rotate(180deg);
}

.download-platform-chevron {
  display: grid;
  place-items: center;
  color: #6d8789;
  transition: transform 0.2s ease;
}

.download-platform-toggle {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 90px;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  color: #537176;
  background: transparent;
  text-align: left;
}

.download-platform-icon {
  display: grid;
  place-items: center;
  color: #128d99;
}

.download-platform-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.download-platform-copy strong {
  color: #17626b;
  font-size: 24px;
  line-height: 1.1;
}

.download-platform-copy em {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #148ba4;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.download-platform-copy small {
  overflow: hidden;
  color: #6f8082;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.download-platform-body {
  padding: 18px;
  border-top: 1px solid #d5ebe6;
}

.download-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card-grid.single-download {
  grid-template-columns: minmax(0, 1fr);
}

.download-card-panel {
  display: grid;
  min-height: 310px;
  align-content: start;
  gap: 10px;
  padding: 18px 16px 16px;
  border: 1px solid #cde8e5;
  border-radius: 8px;
  color: #355d63;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(236, 254, 255, 0.78));
}

.download-card-grid.single-download .download-card-panel {
  grid-template-columns: 58px minmax(210px, 1fr) minmax(240px, 0.85fr) 180px;
  grid-template-areas: "icon title details action";
  min-height: 118px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}

.download-card-grid.single-download .download-card-icon {
  grid-area: icon;
}

.download-card-grid.single-download .download-card-panel h2 {
  grid-area: title;
  min-height: 0;
  text-align: left;
}

.download-card-grid.single-download .download-card-panel dl {
  grid-area: details;
  margin: 0;
}

.download-card-grid.single-download .download-card-button {
  grid-area: action;
  margin-top: 0;
}

.download-card-icon {
  justify-self: center;
  color: #168e8a;
}

.download-card-panel h2 {
  min-height: 44px;
  margin: 0;
  color: #1b626c;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

.download-card-panel dl {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
}

.download-card-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #788587;
  font-size: 12px;
}

.download-card-panel dt,
.download-card-panel dd {
  margin: 0;
}

.download-card-panel dd {
  color: #356b70;
  font-weight: 900;
  text-align: right;
}

.download-card-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border-radius: 8px;
  color: #fff;
  background: #128479;
  font-size: 14px;
  font-weight: 900;
}

.download-card-button:hover {
  background: #0f7169;
}

.download-card-button:focus-visible {
  outline: 3px solid rgba(18, 132, 121, 0.24);
  outline-offset: 2px;
}

.download-card-button:disabled {
  cursor: not-allowed;
  color: #6d8183;
  background: #dce9e8;
}

.handbook-route-container {
  padding: 25px 0 92px;
}

.handbook-intro h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #126b69;
  font-size: 34px;
}

.handbook-title-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #148b7f;
}

.handbook-intro p {
  margin: -4px 0 0;
  color: #597176;
  font-size: 14px;
  font-weight: 600;
}

.handbook-review-shell {
  overflow: hidden;
  padding: 18px 14px 16px;
  border: 1px solid #cfe9e5;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 254, 255, 0.82)), linear-gradient(rgba(20, 184, 166, 0.1), rgba(245, 158, 11, 0.05));
  box-shadow: 0 16px 34px rgba(45, 126, 128, 0.08);
}

.handbook-section-heading {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0 14px 18px;
  color: #225c60;
  text-align: center;
}

.handbook-section-heading > span,
.handbook-article-heading > span {
  padding: 4px 10px;
  border: 1px solid #bfe5de;
  border-radius: 999px;
  color: #1b978d;
  background: #f2fffd;
  font-size: 10px;
  font-weight: 900;
}

.handbook-section-heading h2,
.handbook-article-heading h2 {
  margin: 0;
  color: #146a68;
  font-size: 28px;
  font-weight: 900;
}

.handbook-section-heading p {
  max-width: 650px;
  margin: 0;
  color: #597176;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.handbook-review-grid {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 18px;
}

.handbook-activity-menu {
  display: grid;
  align-content: start;
  gap: 7px;
}

.handbook-activity-menu button {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-height: 53px;
  padding: 7px 9px;
  border: 1px solid #d7ebe7;
  border-radius: 10px;
  color: #20595c;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.handbook-activity-menu button.active {
  border-color: #57b9bc;
  background: #effdfb;
  box-shadow: 0 3px 9px rgba(33, 145, 145, 0.08);
}

.handbook-activity-menu button > span {
  display: grid;
  width: 31px;
  height: 31px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #168e93;
  font-size: 11px;
  font-weight: 900;
}

.handbook-activity-menu strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.handbook-activity-menu small {
  color: #1d958c;
  font-size: 10px;
  font-weight: 800;
}

.handbook-review-detail {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
  min-width: 0;
}

.handbook-review-image {
  width: 100%;
  aspect-ratio: 1.78;
  border: 3px solid #b7dcd6;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 25px rgba(35, 99, 102, 0.12);
}

.handbook-review-copy {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 15px;
  border: 1px solid #d3ebe7;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
}

.handbook-tag {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #169586;
  background: #dff8f2;
  font-size: 10px;
  font-weight: 900;
}

.handbook-review-copy h3 {
  margin: 0;
  color: #126565;
  font-size: 24px;
  font-weight: 900;
}

.handbook-review-copy p {
  margin: 0;
  color: #3f6569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

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

.handbook-benefits span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d9efeb;
  border-radius: 9px;
  color: #335f62;
  background: #f2fffc;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.handbook-benefits svg {
  flex: 0 0 auto;
  color: #e08c18;
}

.handbook-review-cta,
.article-more-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 13px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  font-size: 12px;
  font-weight: 900;
}

.handbook-article-section {
  padding-top: 50px;
}

.handbook-article-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-bottom: 18px;
  text-align: center;
}

.handbook-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.handbook-activity-card {
  overflow: hidden;
  border: 1px solid #d1ebe6;
  border-radius: 12px;
  background: linear-gradient(rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.84)), linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(14, 165, 233, 0.06));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.handbook-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(42, 115, 118, 0.12);
}

.handbook-activity-card img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
}

.handbook-card-copy {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.handbook-card-copy > span {
  color: #19988f;
  font-size: 10px;
  font-weight: 900;
}

.handbook-card-copy h3 {
  min-height: 42px;
  margin: 0;
  color: #205c60;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.handbook-card-copy p {
  margin: 0;
  color: #819294;
  font-size: 10px;
  font-weight: 800;
}

.article-route-container {
  padding: 24px 0 90px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #13877f;
  font-size: 12px;
  font-weight: 900;
}

.article-detail {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 0 28px;
  border: 1px solid #d6ebe8;
  background: #fff;
  box-shadow: 0 15px 30px rgba(36, 101, 104, 0.08);
}

.article-hero {
  overflow: hidden;
  width: 100%;
  max-height: 520px;
  background: #dbe8e8;
}

.article-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-detail > h1,
.article-detail > .article-lead,
.article-detail > .article-meta,
.article-content,
.article-updated,
.article-more-link {
  margin-right: 28px;
  margin-left: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 18px;
  color: #859394;
  font-size: 11px;
  font-weight: 800;
}

.article-meta span:first-child {
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  background: #9d38ce;
}

.article-detail > h1 {
  margin-top: 12px;
  margin-bottom: 0;
  color: #126d6b;
  font-size: 32px;
  line-height: 1.25;
}

.article-lead {
  margin-top: 10px;
  color: #728385;
  font-size: 12px;
}

.article-content {
  color: #294f53;
  font-size: 13px;
  line-height: 1.75;
}

.article-content h2 {
  margin: 26px 0 9px;
  color: #194f53;
  font-size: 19px;
}

.article-content h3 {
  margin: 20px 0 8px;
  color: #27575b;
  font-size: 14px;
}

.article-content p {
  margin: 10px 0;
}

.article-content ol {
  display: grid;
  gap: 7px;
  padding-left: 24px;
}

.article-content a {
  color: #0c8e87;
  font-weight: 800;
}

.article-content img {
  width: min(100%, 760px);
  margin: 18px auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(29, 86, 89, 0.13);
}

.article-updated {
  color: #8b9999;
  font-size: 11px;
}

.article-more-link {
  margin-top: 10px;
}

.article-comments,
.related-articles {
  max-width: 970px;
  margin: 28px auto 0;
}

.article-comments {
  padding: 20px 28px;
  border: 1px solid #d6ebe8;
  background: rgba(255, 255, 255, 0.76);
}

.article-comments h2,
.related-articles h2 {
  margin: 0 0 12px;
  color: #175f62;
  font-size: 22px;
}

.article-comments p {
  margin: 5px 0;
  color: #728385;
  font-size: 12px;
}

.related-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-article-grid a {
  display: grid;
  gap: 7px;
  overflow: hidden;
  border: 1px solid #d2eae5;
  border-radius: 9px;
  background: #fff;
}

.related-article-grid img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.related-article-grid span,
.related-article-grid strong,
.related-article-grid small {
  margin: 0 10px;
}

.related-article-grid span {
  color: #168f86;
  font-size: 9px;
  font-weight: 900;
}

.related-article-grid strong {
  min-height: 49px;
  color: #28595d;
  font-size: 11px;
  line-height: 1.4;
}

.related-article-grid small {
  padding-bottom: 10px;
  color: #89999a;
  font-size: 10px;
}

.community-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 470px) minmax(500px, 580px);
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 58px 32px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 15, 25, 0.88), rgba(13, 27, 42, 0.72) 46%, rgba(236, 244, 255, 0.82)),
    url("../sites/ninjatruyenky.com-c0d799d1/root-8a5edab2/bg1.png") center / cover fixed;
}

.community-intro-card,
.community-links-card {
  min-height: 606px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.community-intro-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(180deg, rgba(4, 12, 30, 0.86), rgba(9, 16, 31, 0.72));
}

.community-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.community-logo {
  width: 200px;
  height: 103px;
  object-fit: contain;
}

.community-avatar {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(98, 220, 235, 0.54);
  border-radius: 11px;
  object-fit: cover;
}

.community-eyebrow {
  margin: 42px 0 13px;
  color: #f7d66c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.community-intro-card h1 {
  margin: 0;
  color: #fff;
  font-size: 47px;
  line-height: 1.1;
}

.community-subtitle {
  margin: 7px 0 22px;
  color: #bbd6db;
  font-size: 15px;
  font-weight: 800;
}

.community-description {
  max-width: 385px;
  margin: 0;
  color: #e2e8ed;
  font-size: 13px;
  line-height: 2;
}

.community-home-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  color: #102034;
  background: #fff;
}

.community-home-link > svg:first-child {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  background: #159b91;
}

.community-home-link span {
  display: grid;
  gap: 3px;
}

.community-home-link strong {
  font-size: 13px;
}

.community-home-link small {
  color: #8d999c;
  font-size: 10px;
}

.community-links-card {
  display: grid;
  align-content: start;
  padding: 22px;
  color: #182334;
  background: rgba(255, 255, 255, 0.91);
}

.community-links-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe5ea;
}

.community-links-heading span {
  color: #14786e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.community-links-heading h2 {
  margin: 5px 0 0;
  font-size: 25px;
}

.community-links-heading > small {
  color: #929da9;
  font-size: 11px;
  font-weight: 800;
}

.community-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
}

.community-link-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 88px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #e0e5ea;
  border-radius: 9px;
  color: #2c3440;
  background: #f9fafc;
  text-align: left;
}

.community-link-card.featured {
  grid-column: 1 / -1;
  color: #fff;
  background: #0879f9;
}

.community-link-card.disabled {
  color: #82909c;
  cursor: not-allowed;
  opacity: 0.78;
}

.community-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
}

.community-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.community-card-copy small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-card-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card-copy em {
  overflow: hidden;
  color: #74808b;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-link-card.featured .community-card-copy em {
  color: rgba(255, 255, 255, 0.76);
}

.community-footer-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #020617;
}

.community-footer-mark span {
  display: grid;
  gap: 3px;
}

.community-footer-mark strong {
  font-size: 12px;
}

.community-footer-mark small {
  color: #aab5c4;
  font-size: 10px;
}

.community-footer-mark img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.community-mini-logo,
.community-letter-icon,
.community-play-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
}

.community-mini-logo {
  font-size: 9px;
}

.community-letter-icon {
  font-size: 24px;
}

.community-play-icon {
  font-size: 18px;
}

.auth-route-background {
  min-height: 100vh;
}

.auth-route-overlay {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 47, 73, 0.66);
  backdrop-filter: blur(5px);
}

.auth-route-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  padding: 10px 15px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 7px;
  color: #fff9e7;
  background: rgba(30, 41, 59, 0.92);
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
}

.auth-route-dialog {
  position: relative;
  display: grid;
  width: min(100%, 444px);
  gap: 15px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 32px 26px;
  border: 1px solid #bde5e3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 25px 60px -12px rgba(15, 118, 110, 0.22), 0 8px 20px -6px rgba(8, 47, 73, 0.1);
}

.auth-route-dialog::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, #0f766e, #14b8a6 40%, #b98223 70%, #f2d783);
  content: "";
}

.auth-route-close {
  position: absolute;
  top: 13px;
  right: 14px;
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  color: #668085;
  background: transparent;
}

.auth-route-heading {
  display: grid;
  gap: 4px;
  padding: 3px 0 15px;
  border-bottom: 1px solid #d8e9e7;
  text-align: center;
}

.auth-route-heading h1 {
  margin: 0;
  color: #0f766e;
  font-size: 29px;
  font-weight: 900;
}

.auth-route-heading p {
  margin: 0;
  color: #88a0a2;
  font-size: 13px;
}

.auth-route-fields {
  display: grid;
  gap: 13px;
}

.auth-route-fields label {
  display: grid;
  gap: 6px;
  color: #397075;
  font-size: 11px;
  font-weight: 900;
}

.auth-route-fields label small {
  color: #91a2a4;
  font-size: 10px;
  font-weight: 700;
}

.auth-input-wrap {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #cfe8e5;
  border-radius: 10px;
  color: #779396;
  background: #fff;
}

.auth-input-wrap:focus-within {
  border-color: #0f9e96;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: #31585c;
  font-size: 13px;
}

.auth-input-wrap button {
  display: grid;
  place-items: center;
  color: #779396;
  background: transparent;
}

.auth-forgot-link {
  justify-self: end;
  margin-top: -5px;
  color: #278d84;
  font-size: 11px;
  font-weight: 900;
}

.auth-submit-button {
  min-height: 43px;
  border-radius: 8px;
  color: #fff;
  background: #128479;
  font-size: 14px;
  font-weight: 900;
}

.auth-submit-status {
  margin: -4px 0 0;
  color: #148777;
  font-size: 11px;
  text-align: center;
}

.auth-submit-error,
.auth-route-demo-hint {
  margin: -4px 0 0;
  font-size: 10px;
  text-align: center;
}

.auth-submit-error {
  color: #b45309;
}

.auth-route-demo-hint {
  color: #6f898c;
}

.auth-switch-copy {
  margin: 0;
  color: #899b9e;
  font-size: 12px;
  text-align: center;
}

.auth-switch-copy a {
  color: #1a8d83;
  font-weight: 900;
}

.auth-switch-link {
  padding: 0;
  color: #1a8d83;
  background: transparent;
  font-size: inherit;
  font-weight: 900;
}

.auth-route-hint {
  margin: -4px 0 0;
  color: #7c9193;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .news-page-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .news-carousel {
    min-height: 420px;
  }

  .news-carousel > img {
    min-height: 418px;
  }

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

  .download-card-grid.single-download .download-card-panel {
    grid-template-columns: 54px minmax(0, 1fr) 170px;
    grid-template-areas:
      "icon title action"
      "details details details";
  }

  .community-page {
    grid-template-columns: minmax(300px, 430px) minmax(420px, 520px);
    padding: 42px 20px;
  }
}

@media (max-width: 767px) {
  .inner-site-header {
    display: none;
  }

  .inner-mobile-site-header {
    display: block;
  }

  .route-container {
    width: calc(100% - 24px);
  }

  .route-dark-surface {
    min-height: 980px;
    background-attachment: scroll;
  }

  .news-route-container {
    padding: 74px 0 80px;
  }

  .news-page-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-install-panel {
    position: static;
    min-height: 0;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .news-install-logo {
    grid-row: span 2;
    min-height: 117px;
  }

  .news-install-logo img {
    width: 110px;
    height: 90px;
  }

  .news-install-flag {
    min-height: 74px;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
  }

  .news-install-flag svg {
    width: 18px;
    height: 18px;
  }

  .news-install-flag span,
  .news-install-flag strong {
    font-size: 16px;
  }

  .news-install-actions {
    grid-column: 1 / -1;
  }

  .route-search-form {
    grid-column: 1 / -1;
  }

  .news-carousel {
    min-height: 215px;
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .news-carousel > img {
    min-height: 213px;
  }

  .news-carousel-dots button {
    font-size: 12px;
  }

  .news-main-heading {
    min-height: 75px;
    gap: 10px;
    padding: 10px 13px;
  }

  .news-main-heading img {
    width: 42px;
    height: 42px;
  }

  .news-main-heading h1 {
    font-size: 24px;
  }

  .news-main-heading p {
    font-size: 9px;
  }

  .news-category-tabs {
    gap: 6px;
    padding: 12px 10px 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .news-category-tabs button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 10px;
    white-space: nowrap;
  }

  .news-route-list {
    padding: 0 10px 10px;
  }

  .news-route-row {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 48px;
    gap: 4px 8px;
    padding: 5px 0;
  }

  .news-route-row strong {
    font-size: 10px;
    white-space: normal;
  }

  .news-route-row time {
    grid-column: 2;
    font-size: 9px;
  }

  .news-route-category {
    grid-row: 1 / span 2;
    font-size: 9px;
  }

  .download-page-surface,
  .handbook-page-surface,
  .article-page-surface {
    min-height: 980px;
  }

  .download-page-surface {
    min-height: 0;
  }

  .download-route-container,
  .handbook-route-container,
  .article-route-container {
    padding-top: 73px;
  }

  .route-page-intro {
    padding-bottom: 15px;
  }

  .route-page-intro h1 {
    font-size: 35px;
  }

  .route-page-intro p {
    max-width: 290px;
    font-size: 11px;
  }

  .route-version-pill {
    padding: 7px 11px;
    font-size: 10px;
  }

  .download-platform-list {
    gap: 14px;
  }

  .download-platform-toggle {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 85px;
    gap: 8px;
    padding: 14px 12px;
  }

  .download-platform-icon svg {
    width: 27px;
    height: 27px;
  }

  .download-platform-copy strong {
    font-size: 18px;
  }

  .download-platform-copy small {
    font-size: 10px;
    white-space: normal;
  }

  .download-platform-copy em {
    font-size: 8px;
  }

  .download-platform-body {
    padding: 12px;
  }

  .download-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download-card-grid.single-download .download-card-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "details"
      "action";
    gap: 10px;
    padding: 18px 16px;
  }

  .download-card-grid.single-download .download-card-panel h2 {
    text-align: center;
  }

  .download-card-panel {
    min-height: 0;
  }

  .handbook-intro h1 {
    gap: 7px;
    font-size: 27px;
  }

  .handbook-title-icon {
    width: 31px;
    height: 31px;
  }

  .handbook-intro p {
    font-size: 11px;
  }

  .handbook-review-shell {
    padding: 14px 9px 10px;
    border-radius: 13px;
  }

  .handbook-section-heading h2,
  .handbook-article-heading h2 {
    font-size: 22px;
  }

  .handbook-section-heading p {
    font-size: 10px;
  }

  .handbook-review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .handbook-activity-menu {
    display: flex;
    gap: 6px;
    margin-right: -9px;
    padding-right: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .handbook-activity-menu::-webkit-scrollbar {
    display: none;
  }

  .handbook-activity-menu button {
    flex: 0 0 138px;
    min-height: 58px;
  }

  .handbook-review-image {
    aspect-ratio: 1.56;
  }

  .handbook-review-copy {
    padding: 12px;
  }

  .handbook-review-copy h3 {
    font-size: 20px;
  }

  .handbook-review-copy p {
    font-size: 11px;
  }

  .handbook-benefits {
    grid-template-columns: 1fr;
  }

  .handbook-article-section {
    padding-top: 30px;
  }

  .handbook-article-grid {
    grid-template-columns: 1fr;
  }

  .handbook-card-copy h3 {
    min-height: 0;
  }

  .article-route-container {
    width: 100%;
  }

  .article-back-link {
    margin-right: 12px;
    margin-left: 12px;
  }

  .article-detail {
    border-right: 0;
    border-left: 0;
  }

  .article-detail > h1,
  .article-detail > .article-lead,
  .article-detail > .article-meta,
  .article-content,
  .article-updated,
  .article-more-link {
    margin-right: 16px;
    margin-left: 16px;
  }

  .article-detail > h1 {
    font-size: 25px;
  }

  .article-content {
    font-size: 12px;
  }

  .article-comments,
  .related-articles {
    margin-right: 12px;
    margin-left: 12px;
  }

  .related-article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community-page {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    min-height: 100vh;
    padding: 14px 12px;
    background-attachment: scroll;
  }

  .community-intro-card,
  .community-links-card {
    min-height: 0;
  }

  .community-intro-card {
    padding: 22px 18px 18px;
  }

  .community-logo {
    width: 155px;
    height: 77px;
  }

  .community-avatar {
    width: 70px;
    height: 70px;
  }

  .community-eyebrow {
    margin-top: 23px;
    font-size: 10px;
  }

  .community-intro-card h1 {
    font-size: 35px;
  }

  .community-description {
    font-size: 12px;
    line-height: 1.7;
  }

  .community-home-link {
    margin-top: 27px;
  }

  .community-links-card {
    padding: 15px;
  }

  .community-links-heading h2 {
    font-size: 20px;
  }

  .community-card-grid {
    gap: 9px;
  }

  .community-link-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 74px;
    gap: 7px;
    padding: 9px;
  }

  .community-link-card.featured {
    grid-column: 1 / -1;
  }

  .community-card-icon {
    width: 36px;
    height: 36px;
  }

  .community-card-copy strong {
    font-size: 11px;
  }

  .community-card-copy small,
  .community-card-copy em {
    font-size: 8px;
  }

  .community-footer-mark {
    margin-top: 15px;
  }

  .auth-route-overlay {
    padding: 12px;
  }

  .auth-route-dialog {
    width: min(100%, 380px);
    max-height: calc(100vh - 24px);
    padding: 26px 18px 20px;
    border-radius: 11px;
  }

  .auth-route-heading h1 {
    font-size: 24px;
  }

  .auth-route-heading p {
    font-size: 12px;
  }

  .auth-input-wrap {
    min-height: 43px;
  }

  .auth-input-wrap input {
    height: 39px;
    font-size: 12px;
  }

  .auth-route-toast {
    top: 7px;
    right: 12px;
    left: 12px;
    max-width: none;
    transform: none;
    text-align: center;
  }
}

/* Payment route */
.payment-page-surface {
  min-height: 70vh;
  margin: 0 -5px;
  padding: 24px 16px 56px;
  background: #eefbf9;
}

.payment-shell {
  position: relative;
  width: min(1200px, 100%);
  min-height: 934px;
  margin: 0 auto;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.98), rgba(236, 254, 255, 0.94) 48%, rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(90deg, rgba(14, 116, 144, 0.055) 0, rgba(14, 116, 144, 0.055) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.05) 0, rgba(20, 184, 166, 0.05) 1px, transparent 1px, transparent 44px);
  box-shadow: 0 24px 70px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.payment-heading {
  position: relative;
  z-index: 1;
  padding-bottom: 32px;
  text-align: center;
}

.payment-eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 5.6px 16px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.1);
  font-size: 12.48px;
  font-weight: 900;
  line-height: 18.72px;
}

.payment-title {
  margin: 0 0 12px;
  color: var(--ink-strong);
  background: linear-gradient(135deg, #115e59, #0f766e 42%, #0891b2);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 48px;
  font-weight: 700;
  line-height: 50.88px;
  -webkit-text-fill-color: transparent;
}

.payment-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

.payment-tabs-wrap {
  position: relative;
  z-index: 1;
  width: min(896px, 100%);
  margin: 0 auto 32px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 45px rgba(15, 118, 110, 0.1);
  backdrop-filter: blur(12px);
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payment-tab {
  position: relative;
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13.6px 16px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 16px;
  color: #334155;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
  font-size: 16px;
  font-weight: 900;
  line-height: 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background-color 0.18s;
}

.payment-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.45);
}

.payment-tab.active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.2);
}

.payment-tab[data-payment-tab="transfer"].active {
  background: linear-gradient(to right bottom, #0d9488, #0891b2);
}

.payment-tab[data-payment-tab="card"].active {
  background: linear-gradient(to right bottom, #0ea5e9, #0891b2);
}

.payment-tab[data-payment-tab="usdt"].active {
  background: linear-gradient(to right bottom, #10b981, #0d9488);
}

.payment-tab-bonus {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 8px;
  border: 1px solid #ef4444;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.payment-content-panel {
  position: relative;
  z-index: 1;
  width: min(896px, 100%);
  margin: 0 auto;
}

.payment-panel[hidden] {
  display: none !important;
}

.payment-method-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.78)),
    linear-gradient(135deg, rgba(14, 165, 233, 0.09), rgba(20, 184, 166, 0.08));
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.payment-method-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.payment-method-card h2 svg {
  color: var(--teal);
}

.payment-form-group {
  margin-bottom: 24px;
}

.payment-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.payment-bank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payment-bank-option {
  position: relative;
  display: flex;
  min-height: 125px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-bank-option:hover {
  border-color: rgba(15, 118, 110, 0.5);
  background: rgba(238, 251, 249, 0.3);
}

.payment-bank-option-disabled,
.payment-bank-option-disabled:hover {
  cursor: not-allowed;
  opacity: 0.5;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.payment-bank-option.active {
  border-color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-bank-option img {
  width: 100%;
  height: 61px;
  margin-bottom: 8px;
  object-fit: contain;
}

.payment-bank-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.payment-bank-bonus {
  position: absolute;
  bottom: 12px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.payment-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.payment-help {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.payment-server-picker {
  position: relative;
  width: 256px;
}

.payment-server-toggle {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--ink-strong);
  background: #fff;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-server-toggle:hover,
.payment-server-toggle.open {
  border-color: var(--teal);
  box-shadow: 0 5px 16px rgba(15, 118, 110, 0.12);
}

.payment-server-toggle svg {
  transition: transform 0.2s ease;
}

.payment-server-toggle.open svg {
  transform: rotate(180deg);
}

.payment-server-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.payment-server-note {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
}

.payment-server-note span {
  color: var(--teal);
}

.payment-server-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--ink-strong);
  background: #fff;
  opacity: 0.5;
  cursor: not-allowed;
}

.payment-server-option:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.payment-server-option:not(:disabled):hover,
.payment-server-option.active {
  border-color: var(--teal);
  background: rgba(238, 251, 249, 0.72);
}

.payment-server-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  font-size: 11px;
}

.payment-submit {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-submit:hover:not(:disabled) {
  background: #0d9488;
  transform: translateY(-1px);
}

.payment-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.payment-submit.is-loading {
  cursor: wait;
}

.payment-submit-status.is-error {
  color: #dc2626;
}

.payment-transaction-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  color: var(--ink-muted);
  background: rgba(236, 253, 245, 0.7);
}

.payment-result-copy {
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 20px;
}

.payment-result-copy strong {
  color: var(--ink-strong);
  font-size: 17px;
}

.payment-result-copy b {
  color: var(--ink-strong);
}

.payment-result-copy small {
  margin-top: 6px;
  color: #b45309;
  font-size: 12px;
  line-height: 18px;
}

.payment-result-qr {
  display: block;
  width: 180px;
  height: 180px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.payment-empty-card {
  min-height: 212px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  color: var(--ink-muted);
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.78)),
    linear-gradient(135deg, rgba(14, 165, 233, 0.09), rgba(20, 184, 166, 0.08));
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-align: center;
}

.payment-empty-card svg {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.58;
}

.payment-empty-card h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 20px;
  line-height: 28px;
}

.payment-empty-card p {
  margin: 0;
}

.payment-usdt-card {
  text-align: center;
}

.payment-usdt-card h2 {
  justify-content: center;
}

.payment-usdt-inner {
  max-width: 672px;
  margin: 0 auto;
}

.payment-usdt-box {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(238, 251, 249, 0.5);
}

.payment-usdt-box p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 28px;
}

.payment-usdt-link {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  font-weight: 700;
  transition: 0.2s ease;
}

.payment-usdt-link:hover {
  background: #1d4ed8;
  transform: scale(1.02);
}

.payment-usdt-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(15, 118, 110, 0.1);
  text-align: left;
}

.payment-usdt-note > svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--teal);
}

.payment-usdt-note p {
  margin: 0 0 4px;
}

.payment-usdt-note p:last-child {
  margin-bottom: 0;
}

.payment-usdt-note strong {
  color: var(--ink-strong);
}

.payment-submit-status {
  margin: 12px 0 0;
  color: var(--teal);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .payment-page-surface {
    min-height: 70vh;
    margin: 0;
    padding: 72px 12px 88px;
  }

  .payment-shell {
    min-height: auto;
    padding: 24px 14px;
    border-radius: 20px;
  }

  .payment-title {
    font-size: 36px;
    line-height: 40px;
  }

  .payment-subtitle {
    font-size: 15px;
    line-height: 24px;
  }

  .payment-tabs {
    grid-template-columns: 1fr;
  }

  .payment-tab {
    min-height: 58px;
  }

  .payment-method-card,
  .payment-empty-card {
    padding: 20px;
  }

  .payment-method-card h2 {
    font-size: 21px;
    line-height: 28px;
  }

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

  .payment-bank-option {
    min-height: 118px;
    padding: 12px;
  }

  .payment-server-picker {
    width: 100%;
  }

  .payment-transaction-result {
    grid-template-columns: 1fr;
  }

  .payment-result-qr {
    width: min(180px, 100%);
    height: auto;
    margin: 0 auto;
  }

  .payment-usdt-box p {
    font-size: 16px;
    line-height: 24px;
  }

  .payment-usdt-note {
    margin-top: 24px;
  }
}

/* Profile route */
.profile-page-surface {
  min-height: 70vh;
  padding: 48px 16px 40px;
  background: transparent;
}

.profile-route-container {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.profile-heading {
  margin: 0 auto 48px;
  text-align: center;
}

.profile-avatar {
  display: flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  color: #e5fffb;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-avatar svg {
  width: 38px;
  height: 38px;
}

.profile-gradient-text {
  margin: 0 0 8px;
  color: #115e59;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  background: linear-gradient(135deg, #115e59, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-heading p {
  min-height: 24px;
  margin: 0;
  color: var(--ink-muted);
}

.profile-tabs {
  display: flex;
  width: min(896px, 100%);
  gap: 8px;
  margin: 0 auto 32px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(238, 251, 249, 0.5);
}

.profile-tab {
  display: flex;
  min-height: 50px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--ink-muted);
  background: transparent;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.profile-tab:hover,
.profile-tab.active {
  color: #fff;
  background: var(--teal);
}

.profile-tab.active {
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.2);
}

.profile-card {
  width: min(896px, 100%);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.2);
}

.profile-card-content {
  padding: 16px;
}

.profile-section-block h2,
.profile-card-content > h2 {
  margin: 0 0 24px;
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.profile-account-rows {
  display: grid;
  gap: 0;
}

.profile-account-row {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.profile-account-row:last-child {
  border-bottom: 0;
}

.profile-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
}

.profile-row-label svg {
  color: var(--teal);
}

.profile-account-row strong {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 700;
}

.profile-character-block {
  margin-top: 32px;
}

.profile-server-field label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.profile-server-field label svg {
  margin-right: 8px;
  color: var(--teal);
}

.profile-server-picker {
  position: relative;
  width: 256px;
}

.profile-server-toggle {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--ink-strong);
  background: #fff;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-server-toggle:hover,
.profile-server-toggle.open {
  border-color: var(--teal);
  box-shadow: 0 5px 16px rgba(15, 118, 110, 0.12);
}

.profile-server-toggle svg {
  transition: transform 0.2s ease;
}

.profile-server-toggle.open svg {
  transform: rotate(180deg);
}

.profile-server-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.profile-server-menu p {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.profile-server-menu p span {
  color: #0f766e;
}

.profile-server-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--ink-strong);
  background: #fff;
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-server-option:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.profile-server-option:not(:disabled):hover,
.profile-server-option.active {
  border-color: var(--teal);
  background: rgba(238, 251, 249, 0.72);
}

.profile-server-option small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  font-size: 11px;
}

.profile-empty-state {
  margin-top: 16px;
  padding: 48px 16px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--ink-muted);
  text-align: center;
  background: rgba(238, 251, 249, 0.2);
}

.profile-empty-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--teal);
  opacity: 0.2;
}

.profile-empty-state p,
.profile-simple-empty p {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 18px;
  font-weight: 500;
}

.profile-empty-state small {
  font-size: 14px;
}

.profile-character-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.profile-character-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.5);
}

.profile-character-item div {
  display: grid;
  gap: 4px;
}

.profile-character-item strong {
  color: var(--ink-strong);
}

.profile-character-item small,
.profile-character-item > span {
  color: var(--ink-muted);
  font-size: 13px;
}

.profile-history-list {
  display: grid;
  gap: 10px;
}

.profile-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.profile-history-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-history-row strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.profile-history-row small,
.profile-history-row time {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-history-status {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-history-status.status-0 {
  color: #d97706;
}

.profile-history-status.status-1 {
  color: #16a34a;
}

.profile-history-status.status-2,
.profile-history-status.status-3 {
  color: #dc2626;
}

.profile-created-at {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 14px;
}

.profile-simple-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  color: var(--ink-muted);
  text-align: center;
}

.profile-simple-empty svg {
  margin-bottom: 12px;
  color: var(--teal);
  opacity: 0.24;
}

.profile-settings-list {
  display: grid;
  gap: 12px;
}

.profile-setting-action {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-strong);
  background: #fff;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.profile-setting-action:hover {
  border-color: var(--teal);
  background: rgba(238, 251, 249, 0.65);
}

.profile-setting-action > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.profile-setting-action > span > svg {
  grid-row: span 2;
  color: var(--teal);
}

.profile-setting-action strong {
  font-size: 14px;
}

.profile-setting-action small {
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 767px) {
  .profile-page-surface {
    padding: 72px 12px 88px;
  }

  .profile-heading {
    margin-bottom: 32px;
  }

  .profile-gradient-text {
    font-size: 30px;
    line-height: 36px;
  }

  .profile-tabs {
    gap: 4px;
    margin-bottom: 20px;
    padding: 6px;
  }

  .profile-tab {
    min-height: 46px;
    gap: 4px;
    padding: 8px 4px;
    font-size: 12px;
  }

  .profile-tab svg {
    width: 16px;
    height: 16px;
  }

  .profile-card {
    padding: 6px;
  }

  .profile-card-content {
    padding: 12px;
  }

  .profile-section-block h2,
  .profile-card-content > h2 {
    font-size: 21px;
    line-height: 28px;
  }

  .profile-account-row {
    align-items: flex-start;
  }

  .profile-account-row strong {
    max-width: 48%;
    text-align: right;
  }

  .profile-server-picker {
    width: 100%;
  }

  .profile-history-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .profile-history-row time {
    grid-column: 1 / -1;
  }
}

.header-auth-admin {
  border: 1px solid rgba(47, 111, 118, 0.28);
  background: linear-gradient(135deg, rgba(47, 111, 118, 0.14), rgba(255, 255, 255, 0.92));
}

.mobile-bottom-admin {
  color: #14535b;
}

.admin-page-surface {
  padding: 28px 0 40px;
}

.admin-route-container {
  width: min(1240px, calc(100% - 32px));
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-kicker {
  margin: 0 0 6px;
  color: #8a6220;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 0;
  color: #19383c;
  font-size: 30px;
  line-height: 1.1;
}

.admin-summary {
  margin: 8px 0 0;
  max-width: 720px;
  color: #5a7377;
  font-size: 14px;
  line-height: 1.6;
}

.admin-home-link,
.admin-new-link,
.admin-row-action,
.admin-submit-button,
.admin-delete-button,
.profile-password-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
}

.admin-home-link,
.admin-new-link {
  padding: 10px 14px;
  border: 1px solid rgba(47, 111, 118, 0.22);
  color: #225258;
  background: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(191, 231, 228, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-tab-button {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #567175;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.admin-tab-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #11666b, #0d8a7c);
}

.admin-stat {
  padding: 16px;
  border: 1px solid rgba(191, 231, 228, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #19383c;
  font-size: 28px;
  line-height: 1;
}

.admin-stat span {
  color: #62787b;
  font-size: 13px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
}

.admin-panel {
  border: 1px solid rgba(191, 231, 228, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(40, 78, 82, 0.08);
  padding: 16px;
}

.admin-panel-nested {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.admin-tab-panel {
  display: grid;
  gap: 16px;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-heading h2 {
  margin: 0;
  color: #19383c;
  font-size: 18px;
}

.admin-panel-heading span {
  color: #667d80;
  font-size: 13px;
}

.admin-panel-heading p {
  margin: 6px 0 0;
  color: #5c7478;
  font-size: 13px;
  line-height: 1.5;
}

.admin-form {
  display: grid;
  gap: 12px;
}

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

.admin-form-grid label,
.profile-password-form label {
  display: grid;
  gap: 6px;
}

.admin-form-grid label span,
.profile-password-form label span {
  color: #305a5d;
  font-size: 12px;
  font-weight: 700;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.profile-input-wrap {
  border: 1px solid rgba(191, 231, 228, 0.95);
  border-radius: 6px;
  background: #fff;
  color: #233c3e;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  padding: 11px 12px;
  outline: none;
}

.admin-form-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.admin-form-span-2 {
  grid-column: 1 / -1;
}

.admin-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-preview {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(191, 231, 228, 0.95);
  border-radius: 8px;
  overflow: hidden;
  background: #f4fbfa;
}

.admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-form-status,
.profile-password-status {
  margin: 0;
  min-height: 22px;
  color: #547276;
  font-size: 13px;
  line-height: 1.5;
}

.admin-form-status.is-error,
.profile-password-status.is-error {
  color: #b42318;
}

.admin-form-status.is-success,
.profile-password-status.is-success {
  color: #0f766e;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-form-actions-split {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-form-actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-settings-stack {
  display: grid;
  gap: 12px;
}

.admin-setting-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(191, 231, 228, 0.88);
  border-radius: 8px;
  background: rgba(250, 253, 252, 0.98);
}

.admin-setting-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.admin-setting-card-heading h3 {
  margin: 0;
  color: #19383c;
  font-size: 15px;
}

.admin-setting-card-heading span {
  color: #748a8d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-field-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 2px;
  color: #305a5d;
  font-size: 12px;
  font-weight: 700;
}

.admin-checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #305a5d;
  font-size: 12px;
  font-weight: 700;
}

.admin-checkline input {
  width: auto;
}

.admin-submit-button,
.profile-password-submit {
  padding: 11px 14px;
  border: 1px solid rgba(18, 101, 104, 0.18);
  color: #fff;
  background: linear-gradient(135deg, #11666b, #0d8a7c);
}

.admin-delete-button,
.admin-row-action.danger {
  border: 1px solid rgba(180, 35, 24, 0.2);
  color: #b42318;
  background: rgba(255, 245, 244, 0.96);
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(191, 231, 228, 0.82);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  color: #547276;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-table td strong {
  display: block;
  color: #19383c;
  font-size: 14px;
}

.admin-table td small {
  display: block;
  margin-top: 3px;
  color: #708789;
  font-size: 12px;
}

.admin-table tr.active {
  background: rgba(20, 184, 166, 0.05);
}

.admin-table-thumb {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-status.status-1 {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}

.admin-status.status-0 {
  color: #8a6220;
  background: rgba(185, 130, 35, 0.12);
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-action {
  padding: 8px 10px;
  border: 1px solid rgba(47, 111, 118, 0.18);
  color: #205058;
  background: rgba(255, 255, 255, 0.94);
}

.admin-inline-form {
  display: inline-flex;
}

.admin-empty {
  padding: 18px 10px;
  color: #60787b;
  text-align: center;
}

.admin-image-panel {
  margin-bottom: 16px;
}

.admin-image-panel .admin-panel-heading p {
  margin: 6px 0 0;
  max-width: 760px;
  color: #5c7478;
  font-size: 13px;
  line-height: 1.5;
}

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

.admin-image-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(191, 231, 228, 0.92);
  border-radius: 8px;
  background: rgba(250, 253, 252, 0.96);
}

.admin-image-card.is-overridden {
  border-color: rgba(5, 111, 162, 0.24);
  box-shadow: inset 0 0 0 1px rgba(5, 111, 162, 0.05);
}

.admin-image-form {
  display: grid;
  gap: 10px;
}

.admin-image-preview {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(191, 231, 228, 0.95);
  border-radius: 8px;
  background: #eef8f7;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-body {
  display: grid;
  gap: 10px;
}

.admin-image-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-image-title strong {
  color: #17373b;
  font-size: 15px;
}

.admin-image-title span {
  color: #6a8184;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-image-body code {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #35565a;
  background: rgba(228, 241, 239, 0.8);
  font-size: 12px;
  word-break: break-word;
}

.admin-image-body label {
  display: grid;
  gap: 6px;
}

.admin-image-body label span {
  color: #305a5d;
  font-size: 12px;
  font-weight: 700;
}

.admin-image-body input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(191, 231, 228, 0.95);
  border-radius: 6px;
  background: #fff;
  color: #233c3e;
  outline: none;
}

.admin-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-image-reset-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-password-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.profile-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.profile-input-wrap input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #233c3e;
}

.profile-password-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-forgot-link {
  margin: 0;
  color: #657c80;
  font-size: 12px;
}

.is-loading {
  opacity: 0.72;
}

@media (max-width: 960px) {
  .admin-topbar,
  .admin-preview-row,
  .admin-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: start;
  }

  .admin-dashboard-stats {
    grid-template-columns: 1fr;
  }

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

  .admin-image-grid {
    grid-template-columns: 1fr;
  }
}
