@font-face {
  font-family: "NTH Justice Mist";
  src: url("../../../assets/fonts/NTH_Justice_Mist-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #090d16;
  --surface: #121a28;
  --surface2: #182234;
  --line: #29364b;
  --text: #edf2f8;
  --muted: #9ba9bb;
  --gold: #d7aa55;
  --gold2: #f2cf80;
  --danger: #ef6a6a;
  --ok: #54c98b;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(circle at 20% 0, #1b2940 0, transparent 38%), var(--bg);
  color: var(--text);
  font:
    15px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.account-body {
  font-family: "Roboto", sans-serif;
}
.account-body button,
.account-body input,
.account-body select,
.account-body textarea {
  font-family: "Roboto", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: #02675c;
  text-decoration: none;
}
.container {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}
.site-header {
  top: 0;
  z-index: 20;
  background: #ffffee
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(215, 170, 85, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.nav {
  width: min(1440px, calc(100% - 32px));
  height: 93px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-menu {
  display: contents;
}
.nav-toggle {
  display: none;
}
.brand {
  font-family: inherit;
  font-size: 22px;
  color: var(--gold2);
  font-weight: 700;
  margin-right: auto;
}
.site-header .brand {
  flex: 0 0 118px;
  width: 118px;
  height: 100px;
  background: url("../imgs/logo_KL3D.png?v=2") center / contain no-repeat;
  font-size: 0;
  overflow: hidden;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  /* font-family: "Roboto", Georgia, "Times New Roman", serif; */
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.home-banner {
  position: relative;
  min-height: 570px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 40%, rgb(215 170 85 / 22%), transparent 27%),
    radial-gradient(circle at 18% 0%, #263c5f 0, transparent 42%),
    linear-gradient(130deg, #080c15 15%, #121e31 62%, #22170d 100%);
}
.home-banner::before,
.home-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgb(215 170 85 / 18%);
  border-radius: 50%;
}
.home-banner::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -90px;
}
.home-banner::after {
  width: 360px;
  height: 360px;
  right: 90px;
  bottom: -250px;
}
.home-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.home-banner-copy {
  max-width: 710px;
}
.home-banner h1 {
  max-width: 700px;
  margin: 14px 0 20px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.06;
}
.home-banner p {
  max-width: 650px;
  color: #b8c4d4;
  font-size: 18px;
}
.home-banner-mark {
  flex: 0 0 auto;
  color: rgb(242 207 128 / 8%);
  font-size: clamp(150px, 23vw, 330px);
  font-weight: 900;
  line-height: 1;
  user-select: none;
}
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.home-section-heading .section-title {
  margin: 8px 0 0;
}
.home-section-more,
.home-news-link {
  color: var(--gold2);
  font-weight: 700;
}
.home-news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.home-news-tab {
  position: relative;
  padding: 11px 18px;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.home-news-tab::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: transparent;
}
.home-news-tab.active {
  color: var(--gold2);
}
.home-news-tab.active::after {
  background: var(--gold);
}
.home-news-panel {
  display: none;
}
.home-news-panel.active {
  display: block;
}
.news-list {
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.news-list-item {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.news-list-item:last-child {
  border-bottom: 0;
}
.news-list-item:hover {
  background: rgb(255 255 255 / 3%);
}
.news-list-thumb {
  width: 112px;
  height: 66px;
  flex: 0 0 112px;
  overflow: hidden;
  background: #0c1320;
  border-radius: 8px;
}
.news-list-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.news-list-content {
  min-width: 0;
  flex: 1;
}
.news-list-content time {
  color: var(--muted);
  font-size: 13px;
}
.news-list-content h3 {
  margin: 5px 0 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list-link {
  flex: 0 0 auto;
  color: var(--gold2);
  font-size: 14px;
  font-weight: 700;
}
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-news-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.home-news-image {
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #0c1320;
}
.home-news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.home-news-card:hover img {
  transform: scale(1.04);
}
.home-news-content {
  padding: 18px;
}
.home-news-content time {
  color: var(--muted);
  font-size: 13px;
}
.home-news-content h3 {
  min-height: 48px;
  margin: 8px 0 16px;
  font-size: 17px;
  line-height: 1.4;
}
.home-news-empty {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.home-sects-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(24 34 52 / 18%), transparent);
}
.home-sects-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.home-sect-card {
  padding: 22px 16px;
  text-align: center;
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.home-sect-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  color: #171006;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border-radius: 50%;
}
.home-sect-card h3 {
  margin: 0 0 6px;
  color: var(--gold2);
}
.home-sect-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1000px) {
  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-sects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-banner-mark {
    display: none;
  }
}
@media (max-width: 650px) {
  .home-banner {
    min-height: 500px;
  }
  .home-news-grid,
  .home-sects-grid {
    grid-template-columns: 1fr;
  }
  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-news-tabs {
    overflow-x: auto;
  }
  .home-news-tab {
    white-space: nowrap;
  }
  .news-list-item {
    gap: 12px;
    padding: 11px 12px;
  }
  .news-list-thumb {
    width: 84px;
    height: 56px;
    flex-basis: 84px;
  }
  .news-list-link {
    display: none;
  }
}
.nav-links a:hover,
.nav-links a.active {
  color: #d7aa55;
  text-shadow: 0 0 14px rgba(242, 207, 128, 0.35);
}
.nav-links a.nav-username {
  color: d7aa55;
}
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 140px;
  min-height: 80px;
  padding: 0 14px;
  text-align: center;
  transition: color 0.2s ease, background-color 0.2s ease;
  margin-top: 10px;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.035);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 15px;
  right: 15px;
  height: 2px;
  /* background: var(--gold); */
  border-radius: 2px;
}
.nav-dropdown {
  position: relative;
  min-width: 140px;
  margin-top: 10px;
}

.nav-dropdown-toggle {
  display: flex;
  width: 100%;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #02675c;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown-arrow {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  display: grid;
  width: max-content;
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(215, 170, 85, 0.28);
  border-radius: 0 0 10px 10px;
  background: #ffffee;
  box-shadow: 0 14px 30px rgb(0 0 0 / 22%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.nav-links .nav-dropdown-menu a {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 14px;
  border-radius: 7px;
  color: #28535c;
  text-align: left;
  text-shadow: none;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: #d7aa55;
  background: rgba(255, 255, 255, 0.035);
  text-shadow: 0 0 14px rgba(242, 207, 128, 0.35);
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
  transform: translateY(4px) rotate(225deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a:focus-visible {
  color: #176d69;
  background: rgb(219 241 238 / 82%);
  text-shadow: none;
  outline: none;
}

.nav-dropdown-toggle:focus-visible {
  outline: 2px solid #328b85;
  outline-offset: -5px;
}

.nav-auth.active {
  color: var(--gold2);
  border-color: transparent;
  box-shadow: inset 0 -2px var(--gold);
}

.site-header .nav > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 140px;
  min-width: 140px;
  min-height: 80px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
  color: #fff;
  font-family: "NTH Justice Mist", Georgia, "Times New Roman", serif;
  font-size: 22px;
  white-space: nowrap;
}

.site-header .nav > .btn:hover,
.site-header .nav > .btn-primary:hover {
  color: var(--gold2);
  background: rgba(255, 255, 255, 0.035);
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
}
.btn:hover {
  border-color: var(--gold);
}
.btn-primary {
  background: linear-gradient(135deg, #af792d, var(--gold));
  border-color: transparent;
  color: #140e05;
}
.hero {
  padding: 100px 0 80px;
  min-height: 520px;
  display: grid;
  align-items: center;
}
.hero-inner {
  max-width: 720px;
}
.eyebrow {
  color: var(--gold2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 750;
}
.hero h1 {
  font:
    700 clamp(42px, 7vw, 78px) / 1.08 system-ui,
    sans-serif;
  margin: 14px 0 22px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
table .actions {
	margin-top: 0;
}
.section {
  padding: 56px 0;
}
.section-title {
  font:
    700 32px/1.25 system-ui,
    sans-serif;
  margin: 0 0 5px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 10px
}
.card h3 {
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
/* Article detail */
.article-body {
  min-height: 100vh;
  background: #f3eddf url("../imgs/bg-screen-5.png") center top / cover fixed;
  color: #4b3029;
}
.article-body main {
  min-height: calc(100vh - 93px);
}
.article-detail-section {
  padding: 58px 0 90px;
}
.article-detail-card {
  max-width: 1040px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgb(159 113 53 / 24%);
  border-radius: 18px;
  background: rgb(255 252 242 / 88%);
  box-shadow: 0 22px 60px rgb(77 53 31 / 15%);
  backdrop-filter: blur(5px);
}
.article-detail-header {
  position: relative;
  padding-bottom: 25px;
  border-bottom: 1px solid rgb(165 113 48 / 25%);
  text-align: center;
}
.article-detail-back {
  position: absolute;
  top: 2px;
  left: 0;
  color: #8e552c;
  font-weight: 650;
}
.article-detail-back:hover {
  color: #b66c2d;
}
.article-detail-category {
  display: inline-block;
  margin-bottom: 10px;
  color: #b47427;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article-detail-header h1 {
  max-width: 850px;
  margin: 0 auto 12px;
  color: #6b2f24;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  text-wrap: balance;
}
.article-detail-header time {
  color: #8a7465;
  font-size: 14px;
}
.article-detail-content {
  padding-top: 32px;
  color: #4b3029;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.article-detail-content :is(p, div, span, li, td, th) {
  color: #4b3029 !important;
}
.article-detail-content :is(h1, h2, h3, h4, h5, h6) {
  color: #75372b !important;
  line-height: 1.35;
}
.article-detail-content a {
  color: #a85727 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-detail-content img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 24px auto !important;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgb(73 43 24 / 18%);
}
.article-detail-content :is(video, iframe) {
  display: block;
  max-width: 100%;
  margin: 24px auto;
}
.article-detail-content table {
  display: block;
  height: 450px !important;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-detail-content table > :is(thead, tbody, tfoot) {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.article-detail-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid #bb7b31;
  background: rgb(225 196 145 / 22%);
}
.article-detail-empty {
  padding: 80px 20px;
  color: #6b2f24;
  text-align: center;
}
.article-detail-empty a {
  color: #a85727;
  text-decoration: underline;
}
/* News index */
.news-body {
  min-height: 100vh;
  color: #243f49;
  background: #e8f4f2 url("../imgs/bg-screen-5.png") center top / cover fixed;
}
.news-body main {
  min-height: calc(100vh - 93px);
}
.news-index-section {
  position: relative;
  padding: 54px 0 88px;
}
.news-index-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(235 249 248 / 18%), rgb(230 243 239 / 38%));
}
.news-index-container {
  position: relative;
  max-width: 1120px;
}
.news-index-heading {
  margin-bottom: 28px;
  text-align: center;
}
.news-index-eyebrow,
.news-index-card-kicker {
  color: #448b86;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.news-index-heading h1 {
  margin: 8px 0 10px;
  color: #173f4a;
  font-family: "Roboto", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.16;
  text-shadow: 0 2px 0 rgb(255 255 255 / 65%);
}
.news-index-heading > p {
  max-width: 620px;
  margin: 0 auto;
  color: #587078;
  font-size: 16px;
}
.news-index-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 6px;
  border: 1px solid rgb(67 127 126 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 60%);
  box-shadow: 0 10px 30px rgb(39 91 94 / 8%);
  backdrop-filter: blur(8px);
}
.news-index-tabs a {
  min-width: 118px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #42636a;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.news-index-tabs a:hover {
  color: #176d69;
  background: rgb(219 241 238 / 72%);
  transform: translateY(-1px);
}
.news-index-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, #247d78, #4a9b94);
  box-shadow: 0 7px 18px rgb(31 111 107 / 24%);
}
.news-index-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgb(65 121 121 / 20%);
  border-radius: 20px;
  background: rgb(255 252 242 / 88%);
  box-shadow: 0 22px 60px rgb(41 82 79 / 13%);
  backdrop-filter: blur(7px);
}
.news-index-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(69 126 124 / 18%);
}
.news-index-card-heading h2 {
  margin: 3px 0 0;
  color: #1d4650;
  font-size: 27px;
  line-height: 1.3;
}
.news-index-count {
  flex: 0 0 auto;
  color: #6c858a;
  font-size: 14px;
}
.news-index-list {
  display: grid;
  gap: 12px;
}
.news-index-item {
  border: 1px solid rgb(70 126 123 / 15%);
  border-radius: 14px;
  background: rgb(255 255 255 / 67%);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}
.news-index-item:hover {
  border-color: rgb(46 137 131 / 38%);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 28px rgb(42 103 100 / 12%);
  transform: translateY(-2px);
}
.news-index-item > a {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 20px;
  padding: 13px 18px 13px 13px;
  color: inherit;
}
.news-index-thumb {
  display: grid;
  width: 136px;
  height: 86px;
  flex: 0 0 136px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #d9efeb, #b9ded9);
  overflow: hidden;
}
.news-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}
.news-index-item:hover .news-index-thumb img {
  transform: scale(1.045);
}
.news-index-thumb-mark {
  color: rgb(31 109 105 / 55%);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .08em;
}
.news-index-item-main {
  display: block;
  min-width: 0;
  flex: 1;
}
.news-index-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.news-index-category {
  padding: 3px 9px;
  border: 1px solid rgb(53 136 130 / 28%);
  border-radius: 999px;
  color: #21756f;
  background: rgb(220 244 240 / 72%);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.news-index-item time {
  color: #7c9094;
  font-size: 13px;
}
.news-index-title {
  display: block;
  overflow: hidden;
  color: #4b3029;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}
.news-index-item:hover .news-index-title {
  color: #176f6b;
}
.news-index-read-more {
  display: block;
  margin-top: 5px;
  color: #759095;
  font-size: 13px;
}
.news-index-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgb(47 126 121 / 24%);
  border-radius: 50%;
  color: #2d817c;
  background: rgb(232 247 244 / 64%);
  font-size: 20px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.news-index-item:hover .news-index-arrow {
  color: #fff;
  background: #328b85;
  transform: translateX(3px);
}
.news-index-notice,
.news-index-empty {
  padding: 32px 24px;
  border: 1px solid rgb(69 126 124 / 18%);
  border-radius: 14px;
  color: #547076;
  background: rgb(236 248 245 / 72%);
  text-align: center;
}
.news-index-notice strong {
  color: #285d62;
  font-size: 18px;
}
.news-index-notice p,
.news-index-empty p {
  margin: 6px 0 0;
}
.news-index-empty > span {
  color: #56a29c;
  font-size: 34px;
}
.news-index-card .pagination {
  flex-wrap: wrap;
  margin-top: 28px;
}
.news-index-card .pagination-info {
  display: none;
}
.news-index-card .pagination a,
.news-index-card .pagination .current {
  border-color: rgb(53 126 121 / 25%);
  border-radius: 9px;
  color: #39656a;
  background: rgb(255 255 255 / 78%);
}
.news-index-card .pagination a:hover {
  color: #fff;
  border-color: #328b85;
  background: #328b85;
}
.news-index-card .pagination .current {
  color: #fff;
  border-color: #287c77;
  background: linear-gradient(135deg, #247d78, #4a9b94);
}
@media (max-width: 700px) {
  .article-body { background-attachment: scroll; }
  .article-detail-section { padding: 24px 0 48px; }
  .article-detail-card { padding: 24px 18px; border-radius: 12px; }
  .article-detail-header { padding-top: 35px; }
  .article-detail-content { padding-top: 24px; font-size: 16px; }
   .news-body { background-attachment: scroll; }
  .news-index-section { padding: 28px 0 48px; }
  .news-index-tabs { display: flex; width: 100%; }
  .news-index-tabs a { min-width: 0; flex: 1; padding-inline: 10px; }
  .news-index-card { padding: 20px 16px; border-radius: 14px; }
  .news-index-card-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .news-index-item > a { align-items: flex-start; gap: 13px; padding: 12px; }
  .news-index-thumb { width: 94px; height: 72px; flex-basis: 94px; }
  .news-index-title { white-space: normal; }
  .news-index-read-more { display: none; }
  .news-index-arrow { display: none; }
  .news-index-item-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .news-index-card .pagination { justify-content: center; }
}
.auth-shell {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
  padding: 45px 0px;
  background-image: url(../imgs/bg-screen-2.png);
}
#register-dob + .muted {
    white-space: nowrap;
}
.register-submit {
    display: block;
    margin: 14px auto 0;
}
.account-page .alert-error a,
.account-page .alert-error a:hover,
.account-page .alert-error a:focus-visible {
  color: #fff;
}
.auth-card {
  width: min(520px, 100%);
}
/* Login and registration share the light jade palette of the news page. */
.auth-body {
  min-height: 100vh;
  color: #243f49;
  background: #e8f4f2 url("../imgs/bg-screen-5.png") center top / cover fixed;
}
.auth-body main {
  min-height: calc(100vh - 93px);
}
.auth-body .auth-shell {
  position: relative;
  min-height: calc(100vh - 93px);
  padding: 48px 16px 72px;
  background: transparent;
  overflow: hidden;
}
.auth-body .auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(235 249 248 / 20%), rgb(230 243 239 / 42%));
}
.auth-body .auth-card {
  position: relative;
  width: min(540px, 100%);
  margin: 0;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgb(65 121 121 / 24%);
  border-radius: 20px;
  color: #243f49;
  background: rgb(250 255 253 / 90%);
  box-shadow: 0 22px 60px rgb(41 82 79 / 15%);
  backdrop-filter: blur(8px);
}
.auth-body .auth-card h1 {
  margin: 0 0 26px;
  color: #173f4a;
  font-family: "Roboto", Georgia, serif;
  font-size: clamp(31px, 4vw, 40px);
  line-height: 1.2;
  text-shadow: 0 2px 0 rgb(255 255 255 / 72%);
  text-align: center;
}
.auth-body .form-group label {
  color: #28535c;
  font-weight: 700;
}
.auth-body .form-control {
  border-color: rgb(62 126 123 / 32%);
  color: #203d45;
  background: rgb(255 255 255 / 82%);
  box-shadow: inset 0 1px 2px rgb(35 83 81 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.auth-body .form-control:hover {
  border-color: rgb(46 137 131 / 48%);
  background: rgb(255 255 255 / 94%);
}
.auth-body .form-control:focus {
  border-color: #328b85;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(50 139 133 / 14%);
}
.auth-body .form-control::placeholder {
  color: #82989c;
}
.auth-body .form-control:-webkit-autofill,
.auth-body .form-control:-webkit-autofill:hover,
.auth-body .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #203d45;
  box-shadow: 0 0 0 1000px #f7fcfb inset, 0 0 0 3px rgb(50 139 133 / 10%);
}
.auth-body .muted {
  color: #607d82;
}
.auth-body .btn {
  border-color: rgb(53 126 121 / 28%);
  color: #356168;
  background: rgb(239 249 247 / 90%);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.auth-body .btn:hover {
  border-color: #328b85;
  color: #176d69;
  background: #fff;
  transform: translateY(-1px);
}
.auth-body .btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #247d78, #4a9b94);
  box-shadow: 0 7px 18px rgb(31 111 107 / 22%);
}
.auth-body .btn-primary:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #1f706c, #3e918a);
  box-shadow: 0 9px 22px rgb(31 111 107 / 28%);
}
.auth-body .otp-message.info {
  color: #285d62;
  border-color: rgb(53 136 130 / 26%);
  background: rgb(220 244 240 / 74%);
}
.auth-body .otp-message.success {
  color: #236849;
  border-color: rgb(46 139 96 / 25%);
  background: rgb(224 246 233 / 82%);
}
.auth-body .otp-message.error,
.auth-body .alert-error {
  color: #8b3d45;
  border: 1px solid rgb(177 77 87 / 20%);
  background: rgb(255 235 237 / 88%);
}
.auth-body .alert-success {
  color: #27664a;
  border: 1px solid rgb(54 139 98 / 20%);
  background: rgb(226 247 235 / 88%);
}
@media (max-width: 700px) {
  .auth-body { background-attachment: scroll; }
  .auth-body .auth-shell { padding: 26px 16px 48px; }
  .auth-body .auth-card { padding: 24px 18px; border-radius: 14px; }
}
.otp-fields {
  align-items: end;
}
.otp-group {
  min-width: 0;
}
.otp-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.otp-input {
  min-width: 0;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.otp-send-button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.otp-message {
  margin-bottom: 7px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.45;
}
.otp-message.info {
  color: #bfdbfe;
  background: #172554;
  border-color: #1e40af;
}
.otp-message.success {
  color: #a7f3d0;
  background: #064e3b;
  border-color: #047857;
}
.otp-message.error {
  color: #fecaca;
  background: #450a0a;
  border-color: #b91c1c;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #cad4e1;
  font-weight: 650;
}
.form-control {
  width: 100%;
  background: #0c1320;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--text);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
}
.alert {
  padding: 12px 14px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.alert-error {
  background: #401d24;
  color: #ffbdc4;
}
.alert-success {
  background: #173629;
  color: #aaf1c8;
}
.account-page .phone-verification-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgb(239 126 136 / 52%);
  border-left: 5px solid #f87171;
  background: linear-gradient(110deg, #401d24, #5b242b);
  box-shadow: 0 10px 26px rgb(64 29 36 / 22%);
}
.phone-verification-message {
  display: grid;
  gap: 3px;
}
.phone-verification-message strong {
  color: #fff;
  font-size: 16px;
}
.phone-verification-message span {
  color: #ffc5cb;
  line-height: 1.45;
}
.phone-verification-message .phone-verification-deadline {
  margin-top: 7px;
  padding: 9px 12px;
  border-left: 3px solid #f9cd70;
  border-radius: 4px;
  background: rgb(255 207 112 / 12%);
  color: #ffe6a3;
  font-weight: 500;
}
.account-giftcode-claim {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e4c78c;
  border-radius: 10px;
  background: #fff8e8;
}
.account-giftcode-claim p {
  margin: 0 0 12px;
}
.account-page .alert-error a.phone-verification-action {
  display: inline-flex;
  min-width: 180px;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 2px solid #fff0c7;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3c86a, #d79834);
  box-shadow: 0 8px 20px rgb(20 8 9 / 30%);
  color: #401d24;
  font-size: 15px;
  font-weight: 800;
  text-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.account-page .alert-error a.phone-verification-action:hover,
.account-page .alert-error a.phone-verification-action:focus-visible {
  color: #401d24;
  filter: brightness(1.08);
  outline: 3px solid rgb(243 200 106 / 30%);
  outline-offset: 2px;
  box-shadow: 0 11px 24px rgb(20 8 9 / 38%);
  transform: translateY(-2px);
}
@media (max-width: 700px) {
  .account-page .phone-verification-alert {
    align-items: stretch;
    flex-direction: column;
  }
  .account-page .alert-error a.phone-verification-action {
    width: 100%;
  }
}
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 32px 0 60px;
}
.sidebar {
  padding: 12px;
}
.sidebar a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
}
.sidebar a:hover {
  background: var(--surface2);
  color: var(--text);
}
.sidebar-group {
  margin: 4px 0;
}
.sidebar-label {
  display: block;
  padding: 11px 12px 7px;
  color: var(--text);
  font-weight: 700;
}
.sidebar-submenu {
  margin-left: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.sidebar-submenu a {
  padding: 8px 10px;
  font-size: 0.92rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold2);
}
.account-giftcodes-heading,
.account-giftcode-meta,
.account-giftcode-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.account-giftcodes-heading h2,
.account-giftcodes-heading p {
  margin: 0;
}
.account-giftcodes-heading p {
  margin-top: 5px;
}
.account-giftcode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.account-giftcode-item {
  min-width: 0;
  padding: 16px;
  background: linear-gradient(135deg, rgb(255 218 137 / 82%), rgb(94 145 224 / 20%));
  border: 1px solid var(--line);
  border-radius: 12px;
}
.account-giftcode-meta {
  align-items: flex-start;
}
.account-giftcode-type {
  display: block;
  margin-top: 3px;
  color: #19324a;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.account-giftcode-code {
  margin: 16px 0;
  padding: 12px;
  color: #19324a;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--line);
  border-radius: 9px;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  text-align: center;
}
.account-giftcode-empty {
  margin-top: 18px;
  padding: 24px;
  text-align: center;
  background: var(--surface2);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
@media (max-width: 800px) {
  .account-giftcode-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .account-giftcodes-heading,
  .account-giftcode-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .account-giftcode-actions .btn {
    width: 100%;
  }
}
.table-wrap {
  overflow: auto;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading .section-title {
  margin-bottom: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;	
}
.table th,
.table td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-size: 13px;
}
.table-sort {
  display: inline-flex;
  align-items: center;
  color: inherit;
  white-space: nowrap;
}
.table-sort:hover {
  color: var(--gold2);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  /* flex-wrap: wrap; */
  margin-bottom: 18px;
}
.toolbar .form-group {
  margin: 0;
}
.toolbar button {
	flex: none
}
.toolbar .btn {
	flex: none
}
.toolbar.compact-toolbar {
	margin-bottom: 0;
}
.compact-actions,
.compact-toolbar {
  margin-top: 0;
}
.compact-toolbar .form-control {
  min-width: 260px;
}
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-tabs .active {
  border-color: var(--gold);
  color: var(--gold2);
}
.report-stats,
.report-entry,
.report-table {
  margin-top: 18px;
}
.report-entry summary {
  cursor: pointer;
  font-weight: 700;
}
.report-entry-form {
  margin-top: 18px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 1200px) {
  .nav {
    gap: 6px;
  }
  .site-header .brand {
    flex-basis: 100px;
    width: 100px;
  }
  .nav-links {
    font-size: 19px;
  }
  .nav-links a {
    min-width: 112px;
    padding-right: 9px;
    padding-left: 9px;
  }
  .nav-dropdown {
    min-width: 112px;
  }
  .site-header .nav > .btn {
    flex-basis: 112px;
    min-width: 112px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 19px;
  }
}
@media (max-width: 800px) {
  .nav {
    position: relative;
    height: 64px;
  }
  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    place-content: center;
    gap: 5px;
    color: var(--text);
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 12px;
    background: rgba(9, 13, 22, 0.98);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
  }
  .nav-menu.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .nav-menu .nav-links {
    display: grid;
    grid-column: 1 / -1;
    gap: 2px;
  }
  .nav-menu .nav-links a {
    padding: 12px 14px;
    color: var(--muted);
    border-radius: 8px;
  }
  .nav-menu .nav-links a:hover,
  .nav-menu .nav-links a.active {
    color: var(--gold2);
    background: rgb(215 170 85 / 10%);
  }
  .nav-menu > .btn {
    text-align: center;
  }
  .nav-menu > .btn:not(.nav-auth) {
    grid-column: 1 / -1;
  }
  .grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 65px 0;
  }
  .nav-dropdown {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .nav-dropdown-toggle {
    min-height: 0;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--muted);
  }
  .nav-dropdown-menu {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 3px 0 3px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-links .nav-dropdown-menu a {
    min-height: 0;
    color: var(--muted);
  }
}

/* Keep semantic action colors after the generic Control button rules. */
.admin-body .btn.btn-success {
  color: #fff;
  border-color: #059669;
  background: #059669;
}
.admin-body .btn.btn-warning {
  color: #fff;
  border-color: #d97706;
  background: #d97706;
}
.admin-body .btn.btn-danger {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}
.admin-body .btn.btn-secondary {
  color: #334155;
  border-color: #cbd5e1;
  background: #e2e8f0;
}
.admin-body .btn.btn-success:hover,
.admin-body .btn.btn-warning:hover,
.admin-body .btn.btn-danger:hover {
  color: #fff;
  filter: brightness(0.94);
}
.filter-bar .actions {
  margin: 0;
}
.role-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}
.admin-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}
.admin-create-grid .form-group {
  margin: 0;
}
.admin-create-action .btn {
  width: 100%;
}
.account-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.accounts-table .sticky-account-column,
.accounts-table .sticky-actions-column {
  position: sticky;
  z-index: 3;
  background: #fff;
  background-clip: padding-box;
}
.accounts-table .sticky-account-column {
  left: -24px;
  min-width: 150px;
  box-shadow: 4px 0 8px rgb(15 23 42 / 8%);
}
.accounts-table .sticky-actions-column {
  right: -24px;
  min-width: 245px;
  box-shadow: -4px 0 8px rgb(15 23 42 / 8%);
}
.accounts-table thead .sticky-account-column,
.accounts-table thead .sticky-actions-column {
  z-index: 5;
  background: #f8fafc;
}
.control-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.control-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 65%);
  backdrop-filter: blur(2px);
}
.control-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgb(15 23 42 / 35%);
}
.control-modal-header {
  flex: 0 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  margin: 0!important;
}
.control-modal-header h2,
.control-modal-header p {
  margin: 0;
}
.control-modal-header p {
  margin-top: 4px;
}
.control-modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}
.control-modal-body {
  padding: 22px 24px 26px;
  overflow: auto;
}
.account-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.account-characters-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.account-characters-panel .card-header {
  margin-bottom: 10px;
}
.account-characters-panel h3,
.account-characters-panel p {
  margin: 0;
}
.modal-open {
  overflow: hidden;
}
.wheel-admin-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.wheel-admin-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.wheel-flag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.wheel-flag-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(130px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
@media (max-width: 1200px) {
  .admin-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wheel-flag-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .admin-create-grid {
    grid-template-columns: 1fr;
  }
  .control-modal {
    padding: 0;
  }
  .control-modal-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
  .control-modal-body,
  .control-modal-header {
    padding: 16px;
  }
  .account-row-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .wheel-flag-form {
    grid-template-columns: 1fr;
  }
}

/* Admin shell and reusable controls, aligned with web_vlg. */
.admin-body .admin-main {
  padding: 0;
}
.admin-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px 30px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}
.admin-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 25px;
  font-weight: 700;
}
.admin-content {
  padding: 30px;
}
.admin-brand {
  padding: 2px 8px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.admin-brand .brand {
  display: block;
  margin: 0 0 7px !important;
  padding: 0 !important;
  font-size: 21px;
  font-weight: 750;
}
.admin-brand span {
  color: #c7d2fe;
  font-size: 12px;
}
.admin-nav nav {
  display: grid;
  gap: 3px;
}
.admin-body .admin-nav .admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-nav-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}
.compact-toolbar {
  margin: 0;
  align-items: end;
}
.compact-toolbar > .form-control:first-child {
  min-width: min(420px, 38vw);
}
.filter-group {
  
}
.filter-group label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
}
.filter-total {
  white-space: nowrap;
  color: #64748b;
}
.card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin: -20px -20px 20px;
  padding: 17px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.card-header h2,
.admin-body .card h2,
.admin-body .card h3 {
  margin-top: 0;
}
.admin-body .btn-success,
.btn-success {
  color: #fff;
  border-color: #059669;
  background: #059669;
}
.admin-body .btn-warning,
.btn-warning {
  color: #fff;
  border-color: #d97706;
  background: #d97706;
}
.admin-body .btn-danger,
.btn-danger {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}
.admin-body .btn-secondary,
.btn-secondary {
  color: #334155;
  border-color: #cbd5e1;
  background: #e2e8f0;
}
.admin-body .btn-success:hover,
.admin-body .btn-warning:hover,
.admin-body .btn-danger:hover {
  color: #fff;
  filter: brightness(0.94);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-success {
  color: #047857;
  background: #d1fae5;
}
.badge-danger {
  color: #b91c1c;
  background: #fee2e2;
}
.badge-info {
  color: #1d4ed8;
  background: #dbeafe;
}
.badge-muted {
  color: #64748b;
  background: #e2e8f0;
}
.admin-summary-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin-bottom: 20px;
}
.admin-summary-grid .stat {
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.admin-summary-grid .stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.admin-summary-grid .stat strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}
.account-edit-panel {
  margin-bottom: 20px;
}
.account-field-grid,
.banner-admin-grid,
.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.inline-field-editor {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.inline-field-editor > div {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.inline-field-editor .form-control {
  min-width: 0;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}
.admin-form-grid .form-group {
  margin: 0;
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}
.admin-fieldset {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.admin-fieldset legend {
  padding: 0 8px;
  font-weight: 750;
}
.narrow-card {
  max-width: 720px;
}
.table-actions {
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.empty-cell {
  padding: 36px !important;
  text-align: center;
  color: #64748b;
}
.cell-preview {
  max-width: 360px;
  color: #64748b;
}
.report-export-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}
.mod-character {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.profile-edit-grid {
  margin-top: 18px;
}
.profile-edit-card h2 {
  font-size: 20px;
}
/* Download page */

.download-body {
  min-height: 100vh;
  background: #f7f0e8 url("../imgs/bg-main-content.png") center top / 1920px auto repeat-y fixed;
  color: #4a211f;
}
.download-body main { min-height: calc(100vh - 150px); }
.download-body .section { padding: 42px 0 64px; }
.download-page { max-width: 1120px; gap: 22px; }
.download-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(125deg, #3d1718, #762923 62%, #a66c2e);
  box-shadow: 0 18px 42px rgb(82 31 25 / 20%);
}
.download-heading .eyebrow, .download-heading .section-title { color: #fff; }
.download-heading .section-title { margin: 3px 0 0; }
.download-heading-icon, .download-card-icon { color: #f3c86a; }
.download-heading-icon { font-size: 44px; }
.download-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgb(126 49 40 / 14%);
  border-left: 4px solid #b78632;
  border-radius: 16px;
  background: rgb(255 253 248 / 92%);
  box-shadow: 0 14px 36px rgb(83 35 28 / 10%);
  backdrop-filter: blur(8px);
}
.download-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.download-system-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eadfd4;
}
.download-mobile-versions {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #ead8c4;
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(255 249 237 / 88%), rgb(249 240 229 / 72%));
}
.download-mobile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.download-mobile-heading .eyebrow { display: block; margin-bottom: 3px; }
.download-mobile-heading h3 { margin: 0; color: #3b2926; font-size: 19px; }
.download-update-badge, .download-platform-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5c77f;
  color: #895c16;
  background: #fff2c9;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.download-update-badge { gap: 7px; padding: 6px 10px; border-radius: 999px; }
.download-update-badge span { width: 7px; height: 7px; border-radius: 50%; background: #d89b2b; box-shadow: 0 0 0 4px rgb(216 155 43 / 14%); }
.download-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.download-platform-card  {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
}
.download-platform-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #fff; }
.download-platform-icon--ios { background: linear-gradient(145deg, #59616b, #252a31); }
.download-platform-icon--android { background: linear-gradient(145deg, #75bd58, #3d8938); }
.download-platform-icon svg { width: 24px; height: 24px; fill: currentColor; }
.download-platform-icon--android svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-platform-card strong { display: block; color: #34404d; font-size: 15px; }
.download-platform-card p { margin: 3px 0 0; color: #74808b; font-size: 13px; line-height: 1.45; }
.download-platform-status { padding: 4px 8px; border-radius: 7px; }
.download-mobile-note { margin: 12px 0 0; color: #7a675e; font-size: 13px; }
.download-platform-card .download-google-play,
.download-platform-card .download-app-store {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 80px;
  padding: 16px 20px;
  box-sizing: border-box;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: box-shadow .18s ease, filter .18s ease;
}
.download-platform-card .download-google-play {
  border: 1px solid #246b32;
  background: linear-gradient(135deg, #246b32, #154923);
  box-shadow: 0 6px 16px rgb(21 73 35 / 20%);
}
.download-platform-card .download-app-store {
  border: 1px solid #4a5668;
  background: linear-gradient(135deg, #394554, #141b25);
  box-shadow: 0 6px 18px rgb(20 27 37 / 24%), inset 0 1px rgb(255 255 255 / 12%);
}
.download-google-play svg,
.download-app-store svg { width: 34px; height: 34px; flex: 0 0 34px; fill: currentColor; }
.download-google-play small,
.download-app-store small { display: block; font-size: 11px; letter-spacing: .06em; line-height: 1.5; }
.download-platform-card .download-google-play strong,
.download-platform-card .download-app-store strong { color: #fff; font-size: 25px; line-height: 1.3; }
.download-platform-card .download-google-play:hover { background: #154923; }
.download-platform-card .download-app-store:hover { filter: brightness(1.12); box-shadow: 0 8px 22px rgb(20 27 37 / 30%); }
.download-google-play:focus-visible,
.download-app-store:focus-visible { outline: 3px solid #d7aa55; outline-offset: 3px; }
.download-system-heading__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 10px;
  color: #fff3cf;
  background: linear-gradient(145deg, #e5b75f, #b67928);
  box-shadow: 0 7px 16px rgb(175 113 31 / 24%);
}
.download-system-heading__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-system-heading .eyebrow {
  display: block;
  margin-bottom: 5px;
}
.download-system-heading h2 {
  margin: 0;
  color: #2f3843;
  font-size: 24px;
  font-weight: 500;
}
.download-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.download-system-column h3 {
  margin: 0 0 4px;
  color: #4a211f;
  font-size: 17px;
}
.download-spec-list {
  display: grid;
}
.download-spec-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #eadfd4;
}
.download-spec-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #74808b;
}
.download-spec-label svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #bd873d;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-spec-label svg use[href="#download-icon-windows"] {
  fill: currentColor;
  stroke: none;
}
.download-spec-row strong {
  color: #34404d;
  font-weight: 500;
  text-align: right;
}
.download-card > h2, .download-card > p, .download-card > .download-links,
.download-card > .table-wrap, .download-card > .download-prerequisites,
.download-card > .alert, .download-card > .btn { position: relative; z-index: 1; }
.download-card > h2 { color: #4a211f; }
.download-card-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #f3c86a;
  font-size: 52px;
  opacity: .25;
}
.download-link-row {
  border-color: #e6d5ce;
  background: rgb(255 255 255 / 72%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.download-link-row:hover {
  border-color: #b94c42;
  box-shadow: 0 8px 20px rgb(133 47 40 / 10%);
  transform: translateY(-2px);
}
.download-body .btn-primary { border-color: transparent; background: linear-gradient(135deg, #842a27, #bb4a3f); }
.download-body .btn .bi, .download-prerequisites h3 .bi { color: #f3c86a; }
.download-card table th { color: #66433d; background: #f8ece7; }
.download-card table td, .download-card table th { border-color: #eadbd5; }
.download-body .download-game-link {
  position: relative;
  display: flex;
  width: min(460px, 100%);
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  padding: 15px 22px;
  border: 1px solid #e9b959;
  border-radius: 12px;
  background: linear-gradient(135deg, #7e201f 0%, #b84336 55%, #d18a31 100%);
  box-shadow:
    0 10px 22px rgb(126 32 31 / 24%),
    inset 0 1px rgb(255 255 255 / 24%);
  color: #fffdf5;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgb(72 16 15 / 45%);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.download-body .download-game-link::before {
  content: "\2193";
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #ffe29b;
  font-size: 23px;
  line-height: 1;
}
.download-body .download-game-link::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -35%;
  width: 22%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 32%), transparent);
  transform: rotate(20deg);
  transition: left 450ms ease;
}
.download-body .download-game-link:hover,
.download-body .download-game-link:focus-visible {
  border-color: #ffd980;
  color: #fff;
  filter: saturate(1.12) brightness(1.06);
  box-shadow:
    0 14px 30px rgb(126 32 31 / 34%),
    0 0 0 3px rgb(209 138 49 / 18%);
  outline: none;
  transform: translateY(-3px) scale(1.01);
}
.download-body .download-game-link:hover::after,
.download-body .download-game-link:focus-visible::after {
  left: 115%;
}
@media (max-width: 700px) {
  .download-body .download-game-link {
    width: 100%;
    min-height: 58px;
  }
}
.download-dynamic {
  position: relative;
  z-index: 1;
  margin: 24px 0 20px;
}
.download-dynamic > h3 {
  margin: 0 0 12px;
  color: #4a211f;
  font-size: 19px;
}
.download-link-info {
  min-width: 0;
}
.download-link-info span {
  display: block;
  margin-bottom: 3px;
  color: #8b766b;
  font-size: 12px;
}
.download-link-info h4 {
  margin: 0;
  color: #4a211f;
  font-size: 16px;
}
.download-dynamic .download-link-row .btn {
  flex: 0 0 auto;
  min-width: 120px;
  text-align: center;
  
}
.download-system-column:nth-child(1) h3 {
  text-align: right;
}
.download-system-column:nth-child(2) h3 {
  text-align: right;
}
@media (max-width: 700px) {
  .download-body { background-attachment: scroll; background-size: auto 100vh; }
  .download-body .section { padding: 24px 0 40px; }
  .download-heading, .download-card { padding: 20px; }
  .download-heading-icon { font-size: 34px; }
  .download-card-icon { font-size: 40px; }
  .download-link-row { align-items: flex-start; flex-direction: column; }
  .download-dynamic .download-link-row .btn {
    width: 100%;
  }
}
.download-page {
  display: grid;
  gap: 18px;
}
.download-links {
  display: grid;
  gap: 10px;
}
.download-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.download-prerequisites {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.download-prerequisites h3 {
  flex-basis: 100%;
  margin: 0;
}
.home-managed-banners {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.home-managed-banner {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.home-managed-banner img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}
.home-managed-banner span {
  position: absolute;
  left: 6%;
  bottom: 8%;
  padding: 10px 16px;
  color: #fff;
  background: rgb(0 0 0 / 60%);
  border-radius: 8px;
  font-weight: 750;
}


@media (max-width: 1200px) {
  .admin-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .admin-content {
    padding: 18px;
  }
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .compact-toolbar > .form-control:first-child {
    min-width: 0;
  }
  .admin-summary-grid,
  .admin-card-grid,
  .account-field-grid,
  .banner-admin-grid,
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Control panel: follow the clean, light admin language used by web_vlg. */
.admin {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-nav {
  padding: 22px 14px;
  background: #1e1b4b;
  border-right: 1px solid var(--line);
}
.admin-nav a {
  display: block;
  padding: 10px;
  color: var(--muted);
  border-radius: 8px;
}
.admin-nav a:hover {
  color: #fff;
  background: var(--surface2);
}
.admin-main {
  min-width: 0;
  padding: 30px;
}
.admin-body {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --line: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --gold: #7c3aed;
  --gold2: #6d28d9;
  --danger: #dc2626;
  --ok: #059669;
  background: var(--bg);
  color: var(--text);
}
.admin-body .admin {
  grid-template-columns: 260px minmax(0, 1fr);
}
.admin-body .admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  background: #1e1b4b;
  border-right: 0;
  overflow-y: auto;
}
.admin-body .admin-nav .brand {
  margin: 0 6px 12px;
  color: #fff;
}
.admin-body .admin-nav .muted {
  margin: 0 10px 18px;
  color: #c7d2fe;
}
.admin-body .admin-nav a:not(.brand) {
  margin: 2px 0;
  padding: 11px 14px;
  color: #e0e7ff;
  border-left: 3px solid transparent;
}
.admin-body .admin-nav a:not(.brand):hover {
  color: #fff;
  background: rgb(255 255 255 / 10%);
  border-left-color: #8b5cf6;
}
.admin-body .admin-nav a.active:not(.brand) {
  color: #fff;
  background: rgb(124 58 237 / 35%);
  border-left-color: #a78bfa;
  box-shadow: inset 0 0 0 1px rgb(167 139 250 / 14%);
}
.admin-body .admin-main {
  padding: 0;
}
.admin-body .section-title {
  color: var(--text);
}
.admin-body .card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}
.admin-body .form-group label {
  color: var(--muted);
}
.admin-body .form-control {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.admin-body .form-control:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgb(124 58 237 / 12%);
}
.admin-body .btn {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.admin-body .btn:hover,
.admin-body .report-tabs .active {
  color: #6d28d9;
  border-color: #7c3aed;
  background: #f5f3ff;
}
.admin-body .btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.admin-body .table th,
.admin-body .table td {
  padding: 13px 15px;
  border: 1px solid var(--line);
}
.admin-body .table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.admin-body .table tbody tr:hover {
  background: #f8fafc;
}
.admin-body .stat {
  color: #6d28d9;
}
.report-summary {
  margin-top: 18px;
  overflow: hidden;
}
.report-summary-header {
  padding: 14px 18px;
  color: #fff;
  background: #1e293b;
  font-weight: 750;
}
.report-summary-body {
  padding: 18px;
}
.report-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px 28px;
}
.report-metric {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #e2e8f0;
}
.report-metric strong {
  color: #475569;
}
.report-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.report-breakdown h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.report-table {
  margin-top: 20px;
}
.report-positive {
  color: #047857;
  font-weight: 700;
}
.report-negative {
  color: #b91c1c;
  font-weight: 700;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 18px;
}
.pagination a,
.pagination .current {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pagination .current {
  color: #fff;
  background: #7c3aed;
  border-color: #7c3aed;
}
.pagination-info {
  margin-right: auto;
  color: var(--muted);
}
.pagination-size select {
  height: 38px;
  padding: 0 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mt-18 {
  margin-top: 18px;
}
.mb-14 {
  margin-bottom: 14px;
}
.payment-panel {
  width: 100%;
  max-width: 760px;
}
.payment-panel .section-title {
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgb(57 111 156 / 20%);
}
.alert-warning {
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fde68a;
}
.payment-warning {
  font-size: 13px;
  line-height: 1.6;
}
.payment-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.payment-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
}
.payment-qr {
  display: block;
  width: min(300px, 100%);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(30 41 59 / 12%);
}
.payment-info {
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgb(173 128 54 / 22%);
  border-radius: 10px;
  background: rgb(255 255 255 / 48%);
}
.payment-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(57 111 156 / 13%);
}
.payment-info-row:last-child {
  border-bottom: 0;
}
.payment-info-row span {
  color: #60788d;
  font-size: 13px;
}
.payment-info-row strong {
  color: #102236;
  text-align: right;
}
.payment-form {
  margin-top: 18px;
}
.payment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}
.btn-outline {
  color: #1e64c8;
  background: rgb(47 123 255 / 8%);
  border-color: #2f7bff;
}
.payment-note {
  margin: 14px 0 0;
  color: #657f94;
  font-size: 13px;
  text-align: center;
}
@media (max-width: 600px) {
  .payment-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .payment-token,
  .payment-info-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .payment-info-row strong {
    text-align: left;
  }
}
.account-body {
  background: linear-gradient(180deg, #eef4fb 0, #f8f3e8 100%);
  color: #19324a;
}
.account-page {
  min-height: calc(100vh - 130px);
  padding: 30px 0 60px;
}
.account-banner {
  margin-bottom: 22px;
  padding: 22px 26px;
  border: 1px solid rgb(173 128 54 / 38%);
  border-radius: 12px;
  background: rgb(255 252 244 / 88%);
  box-shadow: 0 14px 34px rgb(74 47 18 / 10%);
}
.account-banner p a {
  color: inherit;
  text-underline-offset: 3px;
}
.account-banner p a:hover,
.account-banner p a:focus-visible {
  color: #f3c86a;
}
.account-banner h1 {
  margin: 0 0 5px;
  color: #5a3213;
  font-size: 28px;
}
.account-banner p {
  margin: 0;
  color: #7d5630;
}
.account-body .account-layout {
  display: flex;
  grid-template-columns: none;
  gap: 24px;
  padding: 0;
}
.account-sidebar {
  width: 330px;
  flex: 0 0 330px;
  align-self: flex-start;
  padding: 10px;
  border: 1px solid rgb(173 128 54 / 26%);
  border-radius: 12px;
  background: rgb(255 252 244 / 82%);
  box-shadow: 0 12px 30px rgb(74 47 18 / 8%);
}
.account-sidebar a {
  display: block;
  margin-bottom: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #2f4b63;
  font-weight: 600;
}
.account-sidebar a:hover {
  color: #7a3f08;
  background: rgb(194 137 54 / 14%);
}
.account-sidebar a.active {
  color: #173b6f;
  background: linear-gradient(135deg, rgb(255 218 137 / 82%), rgb(94 145 224 / 20%));
  box-shadow: inset 0 0 0 1px rgb(173 128 54 / 24%);
}
.account-sidebar .sidebar-label {
  color: #5a3213;
}
.account-main {
  flex: 1;
  min-width: 0;
}
.account-main .card {
  color: #19324a;
  border-color: rgb(173 128 54 / 28%);
  background: rgb(255 252 244 / 88%);
  box-shadow: 0 12px 30px rgb(74 47 18 / 8%);
}
.account-main .section-title {
  color: #174d83;
}
.account-main .muted,
.account-main .form-group label {
  color: #19324a;
}
.account-main .form-control {
  color: #071a3d;
  background: rgb(255 255 255 / 96%);
  border-color: rgb(70 123 179 / 58%);
}

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

@media (max-width: 800px) {
  .account-body .account-layout {
    flex-direction: column;
  }
  .account-sidebar {
    width: 100%;
    flex-basis: auto;
  }
}
@media (max-width: 1000px) {
  .report-matrix,
  .report-breakdown {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .admin-body .admin {
    grid-template-columns: 1fr;
  }
  .admin-body .admin-nav {
    position: static;
    height: auto;
  }
  .admin-body .admin-main {
    padding: 0;
  }
}
/* Account center */
.account-body {
  --account-navy: #4a211f;
  --account-blue: #9f352f;
  --account-gold: #c28a3a;
  --account-paper: #fffdf8;
  background-color: #f8f3e9;
  background-image:
    linear-gradient(rgb(255 253 248 / 18%), rgb(255 253 248 / 18%)),
    url("../imgs/bg-main-content.png");
  background-position: center top;
  background-size: 1920px auto;
  background-repeat: repeat-y;
  background-attachment: fixed;
}
.account-body .site-header {
  box-shadow: 0 8px 24px rgb(73 24 20 / 14%);
}
.account-page > .container {
  width: min(1240px, calc(100% - 32px));
}
.account-banner {
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(125deg, #3d1718, #762923 58%, #a75a2d 82%, #9a742f);
  box-shadow: 0 18px 45px rgb(83 28 24 / 22%);
}
.account-banner::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  top: -120px;
  right: -40px;
  border: 1px solid rgb(255 223 157 / 38%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(255 255 255 / 4%);
}
.account-banner h1,
.account-banner p {
  position: relative;
  z-index: 1;
  color: inherit;
}
.account-banner h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 4vw, 32px);
}
.account-banner h1 .bi {
  color: #f0c978;
}
.account-sidebar {
  width: 280px;
  flex-basis: 280px;
  position: sticky;
  top: 88px;
  padding: 12px;
  border: 1px solid rgb(130 55 43 / 14%);
  border-radius: 16px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 14px 38px rgb(84 35 27 / 10%);
  backdrop-filter: blur(12px);
}
.account-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 2px 0;
  padding: 10px 14px;
  border-radius: 10px;
  color: #685b58;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.account-sidebar a .bi {
  width: 22px;
  color: #7d94a8;
  font-size: 18px;
  text-align: center;
}
.account-sidebar a:hover {
  color: var(--account-blue);
  background: #fbefeb;
  transform: translateX(2px);
}
.account-sidebar a.active {
  color: #fff;
  background: linear-gradient(135deg, #7d2724, #b6473b);
  box-shadow: 0 8px 20px rgb(132 45 37 / 25%);
}
.account-sidebar a.active .bi {
  color: #ffd987;
}
.account-sidebar .sidebar-group {
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px solid #eee1dc;
}
.account-sidebar .sidebar-label {
  display: block;
  padding: 0 14px 7px;
  color: #a1847c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.account-main .card {
  border: 1px solid rgb(130 55 43 / 13%);
  border-radius: 16px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 12px 34px rgb(84 35 27 / 9%);
}
.account-main .card h1,
.account-main .card h2,
.account-main .card h3,
.account-main .section-title {
  color: var(--account-navy);
}
.account-main .section-title,
.account-main .card > h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-main .section-title .bi,
.account-main .card > h1 .bi {
  color: var(--account-gold);
}
.account-main .grid > .card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  border-top: 3px solid var(--account-gold);
}
.account-card-icon {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: rgb(159 53 47 / 13%);
  font-size: 54px;
  line-height: 1;
}
.account-main .stat {
  margin-top: 8px;
  color: var(--account-blue);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}
.account-main .form-group {
  margin-bottom: 18px;
}
.account-main .form-group label {
  display: block;
  margin-bottom: 7px;
  color: #6d5550;
  font-weight: 700;
}
.account-main .form-control {
  min-height: 46px;
  border: 1px solid #decac3;
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.account-main .form-control:focus {
  border-color: #b94c42;
  outline: 0;
  box-shadow: 0 0 0 4px rgb(185 76 66 / 13%);
}
.account-main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 10px;
}
.account-main .btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #8a2c28, #bd4d40);
  box-shadow: 0 8px 18px rgb(143 45 39 / 22%);
}
.account-main .btn-outline {
  color: #92332d;
  background: rgb(159 53 47 / 7%);
  border-color: #b74a40;
}
.account-main .table-wrap {
  padding: 0;
  overflow-x: auto;
}
.account-main .table {
  min-width: 650px;
  margin: 0;
  border-collapse: collapse;
}
.account-main .table th {
  padding: 14px 16px;
  color: #47647c;
  background: #edf4f9;
  border-bottom: 1px solid #dbe6ee;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.account-main .table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f4;
}
.account-main .table tbody tr:hover {
  background: #f7fafc;
}
.profile-edit-grid {
  gap: 18px;
  margin-top: 18px;
}
.profile-edit-card {
  border-top: 3px solid #4b87b5 !important;
}
.account-main article.card {
  position: relative;
  padding-left: 28px;
  border-left: 4px solid var(--account-gold);
}
.account-main .alert {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgb(25 57 83 / 7%);
}
.payment-panel {
  max-width: 820px;
  margin-inline: auto;
}
@media (max-width: 800px) {
  .account-page {
    padding-top: 18px;
  }
  .account-banner {
    padding: 22px;
    border-radius: 14px;
  }
  .account-sidebar {
    position: static;
    width: 100%;
    flex-basis: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-sidebar .sidebar-group {
    grid-column: 1 / -1;
  }
  .account-sidebar a {
    margin: 2px;
  }
  .account-main .grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
	.account-body {
    background-size: auto 100vh;
    background-attachment: scroll;
  }
  .account-page > .container {
    width: min(100% - 20px, 1240px);
  }
  .account-sidebar {
    grid-template-columns: 1fr;
  }
  .account-sidebar .sidebar-group {
    grid-column: auto;
  }
  .account-main .card {
    padding: 18px;
  }
  .account-main .table-wrap {
    padding: 0;
  }
}

.password-field {
  position: relative;
}
.password-field > .form-control {
  padding-right: 50px;
}
.password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: currentColor;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  opacity: .72;
  transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgb(128 128 128 / 12%);
  opacity: 1;
  outline: none;
}
.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.password-toggle-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .password-toggle-slash {
  display: block;
}
/* Responsive shell shared by all non-home public and account pages. */
main,
.nav-menu,
.nav-links,
.account-main {
  min-width: 0;
}

.article-detail-content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

@media (min-width: 801px) and (max-width: 1050px) {
  .nav {
    width: min(100% - 20px, 1440px);
  }
  .site-header .brand {
    width: 78px;
    flex-basis: 78px;
  }
  .nav-links {
    font-size: 15px;
  }
  .nav-links > a,
  .nav-dropdown {
    min-width: 86px;
  }
  .nav-links > a,
  .nav-dropdown-toggle {
    padding-inline: 7px;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 64px;
  }
  body {
    overflow-x: hidden;
  }
  body.nav-open {
    overflow: hidden;
  }
  .container,
  .account-page > .container {
    width: min(100% - 24px, 1240px);
  }
  .site-header {
    position: sticky;
    top: 0;
  }
  .nav {
    width: min(100% - 24px, 1440px);
  }
  .site-header .brand {
    width: 82px;
    height: 58px;
    flex-basis: 82px;
  }
  .nav-toggle {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(135deg, #6f2522, #a8463b);
    border-color: rgb(112 47 41 / 35%);
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: auto;
    left: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 14px 14px;
    background: rgb(255 255 238 / 98%);
    box-shadow: 0 18px 38px rgb(52 27 20 / 25%);
  }
  .nav-menu.is-open {
    display: block;
  }
  .nav-menu .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .nav-menu .nav-links > a,
  .nav-dropdown-toggle {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 11px 12px;
    justify-content: center;
    color: #28535c;
    background: rgb(255 255 255 / 55%);
    border: 1px solid rgb(50 139 133 / 12%);
    border-radius: 9px;
    font-size: 15px;
    text-align: left;
    text-shadow: none;
    white-space: normal;
  }
  .nav-menu .nav-links > a:hover,
  .nav-menu .nav-links > a.active,
  .nav-dropdown.is-open .nav-dropdown-toggle {
    color: #8b382f;
    background: #fbefeb;
    border-color: rgb(159 53 47 / 22%);
  }
  .nav-menu .nav-links > a.active::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 4px;
    width: 3px;
    height: auto;
    background: #a9463b;
  }
  .nav-dropdown {
    width: auto;
  }
  .nav-dropdown-menu {
    display: none;
	left: auto;
    width: 100%;
    padding: 5px 0 0 10px;
	transform: none !important;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
	opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none !important;
	justify-content: center;
  }
  .nav-dropdown.is-open .nav-dropdown-arrow {
    transform: translateY(4px) rotate(225deg);
  }
  .nav-links .nav-dropdown-menu a {
    min-height: 42px;
    padding: 9px 12px;
    color: #45656b;
    background: transparent;
    border: 0;
  }
  .section {
    padding: 32px 0 44px;
  }
  .section-title {
    font-size: clamp(25px, 7vw, 32px);
  }
  .card {
    max-width: 100%;
  }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
  .pagination-info {
    width: 100%;
    margin: 0 0 3px;
    text-align: center;
  }
  .article-detail-content :is(video, iframe) {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .article-detail-content table {
    height: auto !important;
  }
  #register-dob + .muted {
    white-space: normal;
  }
  .download-platform-grid,
  .download-system-grid {
    grid-template-columns: 1fr;
  }
  .download-system-column:nth-child(1) h3,
  .download-system-column:nth-child(2) h3 {
    text-align: left;
  }
  .account-main,
  .account-main form,
  .account-main .form-control {
    max-width: 100%;
  }
  .site-footer__address {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .nav-menu .nav-links {
    grid-template-columns: 1fr;
  }
  .auth-body .auth-shell {
    padding-inline: 12px;
  }
  .auth-body .auth-card,
  .article-detail-card,
  .news-index-card,
  .download-card,
  .account-main .card {
    padding: 18px 14px;
  }
  .article-detail-header h1 {
    font-size: 26px;
  }
  .article-detail-content table {
    height: auto !important;
  }
  .news-index-tabs {
    overflow-x: auto;
    justify-content: center;
    border-radius: 12px;
  }
  .news-index-tabs a {
    flex: 0 0 auto;
    min-width: 104px;
  }
  .news-index-item > a {
    gap: 10px;
  }
  .news-index-thumb {
    width: 82px;
    height: 64px;
    flex-basis: 82px;
  }
  .news-index-title {
    font-size: 16px;
  }
  .download-mobile-heading,
  .download-platform-card,
  .download-spec-row {
    align-items: flex-start;
  }
  .download-mobile-heading,
  .download-spec-row {
    flex-direction: column;
  }
  .download-platform-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .download-platform-status {
    grid-column: 1 / -1;
  }
  .download-spec-row strong {
    padding-left: 26px;
    text-align: left;
  }
  .otp-input-row {
    flex-wrap: wrap;
  }
  .otp-send-button {
    width: 100%;
  }
  .account-banner {
    padding: 20px 18px;
  }
  .account-banner::after {
    opacity: .45;
  }
  .account-main article.card {
    padding-left: 18px;
  }
  .actions > form,
  .actions > form .btn {
    width: 100%;
  }
}

/* Shared OTP selector follows the account/auth form palette. */
.otp-channels{--otp-accent:#247d78;--otp-tint:#edf7f5;--otp-border:#c9ddda;min-inline-size:0;border:0;padding:0;margin:0 0 16px;}
.otp-channels legend{padding:0;margin:0 0 8px;font-size:14px;font-weight:700;color:inherit;}
.otp-channel-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.otp-channel-options .otp-channel-choice{position:relative;display:block;margin:0;cursor:pointer;}
.otp-channel-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;}
.otp-channel-choice span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 12px;border:1px solid var(--otp-border);border-radius:10px;background:#fff;color:var(--otp-accent);font-size:14px;font-weight:700;line-height:1.35;transition:background .15s,border-color .15s,box-shadow .15s;}
.otp-channel-choice span::before{content:"";width:14px;height:14px;flex:0 0 14px;border:1.5px solid var(--otp-border);border-radius:50%;background:#fff;}
.otp-channel-choice input:checked+span{border-color:var(--otp-accent);background:var(--otp-tint);box-shadow:0 0 0 1px var(--otp-accent);}
.otp-channel-choice input:checked+span::before{border:4px solid var(--otp-accent);}
.otp-channel-choice input:focus-visible+span{outline:3px solid var(--otp-border);outline-offset:3px;}
.otp-channel-choice input:disabled+span{opacity:.5;cursor:not-allowed;}
.otp-channel-note{margin:9px 0 0;font-size:12px;line-height:1.5;color:#607d82;}
.account-main .otp-channels{--otp-accent:var(--account-blue,#9f352f);--otp-tint:#fbefeb;--otp-border:#decac3;}
.account-main .form-group .otp-channel-choice{margin-bottom:0;}
.account-main .otp-channel-note,.account-main .phone-edit-note{color:#7b655e;}
.phone-edit-note{margin:8px 0 0;font-size:13px;line-height:1.55;}
