:root {
  --red: #ba0c2f;
  --red-dark: #8e0a24;
  --cream: #fdf1de;
  --text: #111;
  --muted: #9d9d9d;
  --line: #d9d9d9;
  --page: #fff;
  --wrap: 1232px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}
body {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page);
  font-size: 15px;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* Header banner */
.header-banner {
  min-height: 128px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  background-color: var(--red);
  background-image:
    linear-gradient(180deg, rgba(186, 12, 47, 0.12), rgba(142, 10, 36, 0.2)),
    url("https://bocongan.gov.vn/media/bca-media/photo-library-20250930140754-a4db4116-cbf1-4199-879e-2f23e7ba4e83-component-page-20250930093041-13a9d9db-b00f-4f65-ab34-335da1918042-cddh-hd.webp");
  background-size: cover;
  background-position: center;
  padding: 0 16px;
}
.header-brand {
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.header-logo {
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.header-spacer { width: 40px; }
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.header-logo-fallback {
  display: none;
  align-items: center;
  gap: 16px;
  color: #fff;
  padding: 12px 16px;
}
.header-logo-fallback svg { width: 72px; height: 72px; flex-shrink: 0; }
.header-logo-fallback .kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.header-logo-fallback .name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

/* Nav */
.nav-bar {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid #f0e4c9;
}
.nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a.nav-link {
  text-transform: uppercase;
  color: #111;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a.nav-link:hover,
.nav-links a.nav-link.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav-drop { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  max-width: min(500px, calc(100vw - 24px));
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 40;
  border-radius: 4px;
  padding: 6px 0;
}
.nav-drop:hover .dropdown,
.nav-drop:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 16px;
  color: #222;
  text-transform: none;
  font-weight: 400;
  line-height: 1.4;
}
.dropdown a:hover { background: #faf6ee; color: var(--red); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover { box-shadow: 0 0 0 2px rgba(186, 12, 47, 0.15); }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  background: var(--red);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.lang-btn:hover { background: var(--red-dark); }

.drawer-tools { display: none; }

.search-panel {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 16px;
}
.search-panel.open { display: block; }
.search-row {
  display: flex;
  gap: 8px;
}
.search-row input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}
.search-row input:focus { border-color: var(--red); }
.search-row button[type="submit"] {
  height: 42px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.search-results {
  margin-top: 10px;
  display: none;
}
.search-results.show { display: block; }
.search-results a {
  display: block;
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.search-results a:hover { color: var(--red); }

/* Hero */
.featured { padding-top: 16px; padding-bottom: 8px; }
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 36px;
}
.hero-main,
.hero-side,
.news-item,
.side-item,
.leader-row {
  min-width: 0;
}
.hero-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 385px;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-main h2 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.hero-main h2:hover,
.card-title:hover,
.news-item h3:hover,
.side-item h3:hover,
.side-feature h3:hover { color: var(--red); }

.hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.hero-side img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.card-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* Banners */
.banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 28px;
}
.banners img {
  width: 100%;
  height: auto;
  aspect-ratio: 376 / 90;
  object-fit: cover;
  border-radius: var(--radius);
}
.banners a:hover img { opacity: 0.92; }

/* Main two columns */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 36px;
  padding-bottom: 12px;
}
.cat-title {
  position: relative;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9d9d9;
  letter-spacing: 0.02em;
}
.cat-title a:hover { opacity: 0.85; }

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  min-width: 0;
}
.news-item:first-child { padding-top: 0; }
.news-item > a {
  flex: 0 0 auto;
  min-width: 0;
  width: min(288px, 42%);
}
.news-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.news-item > div {
  flex: 1 1 0;
  min-width: 0;
}
.news-item h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.news-item p {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item .date {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.side-block { margin-bottom: 28px; }
.side-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.side-feature h3 {
  margin: 10px 0 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.side-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  min-width: 0;
}
.side-item img {
  width: 103px;
  max-width: 32%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.side-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Albums */
.albums { padding-top: 8px; padding-bottom: 36px; }
.album-stage {
  position: relative;
  margin-bottom: 16px;
}
.album-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(549px, 70vh);
  object-fit: cover;
  border-radius: var(--radius);
  background: #1a1a1a;
}
.album-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.album-nav:hover { background: rgba(186, 12, 47, 0.9); }
.album-nav.prev { left: 16px; }
.album-nav.next { right: 16px; }
.album-caption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
}
.album-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.album-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.album-thumbs h3 {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
}

/* Footer */
.site-footer {
  margin-top: 36px;
  border-top: 2px solid #f3f4f6;
  padding-top: 16px;
  color: #fff;
  background-color: #7a0c28;
  background-image:
    linear-gradient(180deg, rgba(80, 8, 24, 0.35), rgba(80, 8, 24, 0.55)),
    url("https://bocongan.gov.vn/media/bca-media/photo-library-20250930140754-dfa26d22-0cbf-49df-a0e0-eeeb5938bdad-component-page-20250930092920-e2e6aa3d-beac-4918-bd61-657b8b6115b5-cddh-ft.webp");
  background-size: cover;
  background-position: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  text-transform: uppercase;
  font-size: 15px;
  padding: 8px 0 10px;
}
.footer-nav a {
  white-space: normal;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-emblem {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
.footer-emblem img { width: 95px; height: 84px; object-fit: contain; }
.footer-brand {
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.footer-meta {
  text-align: center;
  font-size: 15px;
  line-height: 1.56;
  padding-bottom: 18px;
}
.footer-copy {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.56;
}
.footer-copy strong { display: block; }

/* Inner pages */
.page-hero {
  padding-top: 4px;
  padding-bottom: 8px;
}
.breadcrumb {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  padding: 9px 0 12px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep {
  display: inline-block;
  margin: 0 6px;
  font-weight: 400;
  color: #999;
}
.breadcrumb .here { color: var(--red); }

.gate-card {
  max-width: 640px;
  margin: 8px auto 48px;
  padding: 40px 32px 36px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
}
.gate-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.gate-icon svg {
  width: 76px;
  height: 76px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(142, 10, 36, 0.22));
}
.gate-card h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #111;
}
.gate-card p {
  color: #444;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto 12px;
  max-width: 52ch;
}
.gate-note {
  color: #777 !important;
  font-size: 13px !important;
  margin-bottom: 24px !important;
}
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 240px;
  height: 44px;
  padding: 0 18px 0 12px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  color: #3c4043;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15px;
  cursor: pointer;
}
.google-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}
.google-btn:active { background: #eee; }
.google-btn-icon {
  display: flex;
  width: 20px;
  height: 20px;
}
a.google-btn,
button.google-btn { color: #3c4043; }
.otp-form {
  margin-top: 8px;
}
.otp-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 20px;
}
.otp-box {
  width: 44px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  background: #fff;
}
.otp-box:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}
.otp-submit {
  min-width: 180px;
  height: 42px;
  padding: 0 20px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}
.otp-submit:hover { background: var(--red-dark); }
.otp-submit:disabled { opacity: 0.7; cursor: default; }
.otp-error {
  color: var(--red) !important;
  font-weight: 500;
  margin-bottom: 16px !important;
}
.empty-page {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 8px 0 48px;
  background: #fafafa;
}
.empty-page p {
  color: #888;
  font-size: 15px;
}
.verify-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(186, 12, 47, 0.35), transparent 42%),
    linear-gradient(180deg, #2a050c 0%, #140308 55%, #090102 100%);
}
.verify-loading[hidden] { display: none; }
.verify-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(246, 217, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 217, 168, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(500px) rotateX(58deg);
  animation: verify-grid 8s linear infinite;
  opacity: 0.55;
}
.verify-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 220, 160, 0.18), transparent);
  animation: verify-scan 2s ease-in-out infinite;
}
.verify-loading-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 20px;
}
.verify-orbit {
  position: relative;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 22px rgba(186, 12, 47, 0.55));
}
.verify-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(246, 217, 168, 0.35);
}
.verify-ring-a {
  inset: 8px;
  animation: verify-spin 10s linear infinite;
  border-top-color: #f6d9a8;
  border-right-color: transparent;
}
.verify-ring-b {
  inset: 22px;
  animation: verify-spin-rev 7s linear infinite;
  border-bottom-color: #ba0c2f;
  border-left-color: transparent;
}
.verify-ring-c {
  inset: 36px;
  border-color: rgba(255, 255, 255, 0.12);
  animation: verify-pulse 1.6s ease-in-out infinite;
}
.verify-progress {
  position: absolute;
  width: 168px;
  height: 168px;
  transform: rotate(-90deg);
}
.verify-progress-track,
.verify-progress-arc {
  fill: none;
  stroke-width: 3;
}
.verify-progress-track { stroke: rgba(255, 255, 255, 0.12); }
.verify-progress-arc {
  stroke: #f6d9a8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: verify-arc 2s linear forwards;
  filter: drop-shadow(0 0 6px rgba(246, 217, 168, 0.8));
}
.verify-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #e11d48, #7a081e 70%);
  box-shadow: 0 0 0 6px rgba(186, 12, 47, 0.28), 0 0 28px rgba(246, 217, 168, 0.35);
  animation: verify-core 1.4s ease-in-out infinite;
}
.verify-loading-title {
  margin-top: 28px;
  min-height: 2.4em;
  max-width: 22em;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.verify-loading-sub {
  margin-top: 8px;
  color: #f6d9a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@keyframes verify-spin {
  to { transform: rotate(360deg); }
}
@keyframes verify-spin-rev {
  to { transform: rotate(-360deg); }
}
@keyframes verify-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes verify-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes verify-arc {
  to { stroke-dashoffset: 0; }
}
@keyframes verify-scan {
  0% { top: -10%; }
  100% { top: 95%; }
}
@keyframes verify-grid {
  to { background-position: 0 28px; }
}
body.is-verifying { overflow: hidden; }

.page-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
h1.article-h1,
.article-h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.56;
  text-align: justify;
  color: #111;
  margin: 24px 0 16px;
}
.article-lead {
  font-size: 20px;
  font-weight: 500;
  color: #434343;
  margin: 0 0 22px;
  text-align: justify;
  line-height: 1.5;
}
.article-date { color: #9d9d9d; font-size: 15px; font-weight: 500; margin: 0; }
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.article-cover {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: fill;
  border-radius: 0;
  margin: 16px 0;
}
.article-body {
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  max-width: 800px;
}
.article-body p {
  margin-bottom: 16px;
  text-align: justify;
}
.article-body figure {
  margin: 16px 0 22px;
}
.article-body figure img,
.album-shot img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: fill;
  border-radius: 0;
  display: block;
}
.article-body figcaption,
.album-shot figcaption {
  margin-top: 8px;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: #434343;
  text-align: center;
}
.article-body figure.image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: fill;
  border-radius: 0;
  display: block;
}
.article-body .image-tinymce-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 8px;
}
.article-body .image-tinymce-slot img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body .image-tinymce-caption {
  font-style: italic;
  text-align: center;
  color: #434343;
  margin: 0 0 16px;
}
.article-author {
  font-size: 15px;
  font-weight: 500;
  margin: 8px 0 24px;
}
.article-audio {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  background: #f7f7f7;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
}
.article-audio button {
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}
.article-audio-time { color: #888; }
.article-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 32px;
  font-size: 14px;
}
.article-actions button,
.share-fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  background: none;
  font: inherit;
}
.share-fb img { display: block; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 36px;
  padding-bottom: 40px;
}
.side-banners {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.side-banners img {
  width: 100%;
  height: auto;
  display: block;
}
.related > h3 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 40px;
}
[data-leaders] {
  display: grid;
  gap: 36px;
  margin-top: 24px;
}
.leader-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  min-width: 0;
  background: #fff;
}
.leader-row img {
  width: 235px;
  height: 270px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius);
  background: #f4f4f4;
}
.leader-body {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.leader-bio {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.leader-row h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  margin: 0;
  overflow-wrap: anywhere;
}
.leader-row p {
  color: #434343;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.see-more {
  display: inline-block;
  align-self: flex-end;
  margin-top: 10px;
  color: var(--red);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}
.article-tools {
  display: flex;
  gap: 7px;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 6px 8px;
}
.article-tools button {
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  height: 18px;
  padding: 0 10px;
  font-size: 10px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.article-tools button span {
  font-size: 15px;
  font-weight: 500;
  margin-left: 2px;
}
.article-tools button:hover { background: #fff; }
.filters {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 28px;
}
.filters h4 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 12px;
}
.filters label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.filters input,
.filters select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
  font: inherit;
}
.filters button[type="submit"] {
  margin-top: 14px;
  width: 100%;
  height: 40px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 8px;
  font-size: 14px;
}
.pager a,
.pager span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
}
.pager .is-current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 40px;
}
.album-grid a { min-width: 0; }
.album-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
}
.album-grid h3 {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
}
.album-shot { margin: 0 0 28px; }
.most-read .side-item:first-child { border-top: 0; padding-top: 0; }
.leader-extra { margin-top: 12px; }
.leader-extra[hidden] { display: none; }
.inner-side > h3,
.related > h3 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 16px;
  margin: 8px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prose { max-width: 860px; padding-bottom: 48px; }
.prose h2 { color: var(--red); font-size: 20px; margin: 28px 0 12px; }
.prose p { margin-bottom: 14px; line-height: 1.7; }
.prose ul { margin: 0 0 16px 20px; list-style: disc; }
.prose li { margin: 6px 0; }

.list-page .news-item > a { width: 288px; }

.img-ph {
  background: linear-gradient(135deg, #6b1024, #ba0c2f 45%, #2b2b2b);
}

/* Mobile */
@media (max-width: 1024px) {
  .menu-btn { display: flex; }
  .nav-bar {
    background: transparent;
    border: 0;
  }
  .drawer-tools {
    display: flex;
    gap: 10px;
    padding: 4px 0 16px;
  }
  .header-banner {
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
  }
  .header-spacer { display: none; }
  .header-brand { justify-content: flex-start; }
  .nav-inner {
    height: auto;
    display: block;
    padding: 0;
  }
  .nav-tools {
    display: none;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: #fff;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px 24px;
    overflow: auto;
    height: auto;
    gap: 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
  }
  .nav-links.open { display: flex; }
  .nav-links.open a.nav-link,
  .nav-links.open .nav-drop {
    height: auto;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
    white-space: normal;
  }
  .dropdown { position: static; box-shadow: none; min-width: 0; display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .drawer-backdrop { display: block; }
  .hero, .layout, .article-layout, .about-grid, .banners, .album-thumbs, .leader-row, .album-grid {
    grid-template-columns: 1fr;
  }
  .layout,
  .albums {
    padding-left: 26px;
    padding-right: 26px;
  }
  .header-brand {
    min-width: 0;
    overflow: hidden;
  }
  .header-logo {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 100%;
  }
  .hero-main img {
    max-height: none;
    aspect-ratio: 16 / 10;
  }
  .hero-side {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-side article a {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    min-width: 0;
  }
  .hero-side img {
    width: 103px;
    max-width: 34%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
  }
  .hero-side .card-title {
    margin-top: 0;
    font-weight: 400;
    font-size: 15px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .news-item > a,
  .list-page .news-item > a {
    width: min(120px, 38%);
  }
  .news-item h3 {
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .news-item p { display: none; }
  .album-stage img {
    max-height: none;
  }
  .album-nav {
    width: 36px;
    height: 36px;
  }
  .album-nav.prev { left: 8px; }
  .album-nav.next { right: 8px; }
  [data-leaders] {
    gap: 24px;
  }
  .leader-row {
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    gap: 24px;
  }
  .leader-row img {
    width: 100%;
    max-width: 100%;
    height: 400px;
    aspect-ratio: auto;
  }
  .leader-body {
    padding-left: 0;
  }
  .page-title { font-size: 22px; overflow-wrap: anywhere; }
  h1.article-h1,
  .article-h1 { font-size: 18px; margin: 16px 0; }
  .article-lead { font-size: 15px; }
  .album-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 10px 16px; font-size: 13px; }
  .cat-title { font-size: 18px; overflow-wrap: anywhere; }
  .dropdown { min-width: 0; max-width: 100%; }
}

@media (min-width: 1025px) {
  .header-banner {
    display: flex;
    justify-content: center;
  }
  .menu-btn,
  .header-spacer { display: none; }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .featured.wrap,
  .banners.wrap,
  .layout,
  .albums {
    padding-left: 20px;
    padding-right: 20px;
  }
  .banners { gap: 10px; }
  .news-item { gap: 10px; }
  .news-item > a,
  .list-page .news-item > a {
    width: min(96px, 36%);
  }
  .hero-side img {
    width: 96px;
    max-width: 34%;
  }
  .album-grid { grid-template-columns: 1fr; }
  .album-grid img { height: 180px; }
  .gate-card { padding: 28px 16px 24px; margin-bottom: 32px; }
  .crypto-card { padding: 20px 16px 18px; }
  .crypto-connect,
  .crypto-disconnect { width: 100%; }
  .dex-wallets { grid-template-columns: 1fr; }
  .otp-box { width: 40px; height: 48px; font-size: 20px; }
}

.legal-doc {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(794px, 100%);
  margin: 8px auto 48px;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px) clamp(28px, 4vw, 40px);
  background-color: #fff;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.014) 0 1px, transparent 1px 4px);
  border: 1px solid #cfcfcf;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 36px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  font-family: "Times New Roman", Times, serif;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  -webkit-text-stroke: 0.28px rgba(26, 26, 26, 0.4);
  text-shadow: 0.35px 0.22px 0 rgba(26, 26, 26, 0.28);
}
.legal-doc::before,
.legal-doc::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.legal-doc::before {
  background-image: url("../img/legal/paper-grain.svg");
  background-size: 160px 160px;
  opacity: 0.14;
  mix-blend-mode: multiply;
}
.legal-doc::after {
  z-index: 2;
  background-image: url("../img/legal/paper-grain.svg");
  background-size: 80px 80px;
  opacity: 0.06;
  mix-blend-mode: multiply;
}
.legal-doc > * {
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
}
.legal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px 20px;
  align-items: start;
  margin-bottom: 18px;
}
.legal-head-left,
.legal-head-right {
  min-width: 0;
}
.legal-agency {
  margin: 0;
  text-align: center;
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.legal-dept {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
.legal-dept::after {
  content: "";
  display: block;
  width: min(140px, 70%);
  height: 1.5px;
  margin: 6px auto 0;
  background: #222;
  opacity: 0.82;
}
.legal-nation {
  margin: 0;
  text-align: center;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
.legal-motto {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(13px, 3.2vw, 14px);
  font-style: italic;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.legal-motto::after {
  content: "";
  display: block;
  width: min(168px, 80%);
  height: 1.5px;
  margin: 6px auto 0;
  background: #222;
  opacity: 0.82;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 8px 0 28px;
  font-size: clamp(14px, 3.4vw, 15px);
}
.legal-no,
.legal-place {
  margin: 0;
  overflow-wrap: anywhere;
}
.legal-place {
  font-style: italic;
}
.legal-kind {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: inherit;
  overflow-wrap: anywhere;
}
.legal-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  color: inherit;
  overflow-wrap: anywhere;
}
.legal-byline {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.legal-body p {
  margin: 0 0 12px;
  font-size: clamp(14px, 3.6vw, 15px);
  line-height: 1.7;
  color: inherit;
  text-align: justify;
  text-indent: 1.25em;
  overflow-wrap: anywhere;
}
.legal-decide {
  margin: 18px 0 8px !important;
  text-align: center !important;
  text-indent: 0 !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.legal-art-title {
  margin: 18px 0 8px;
  font-size: clamp(15px, 3.6vw, 16px);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.legal-list-alpha {
  list-style: none;
  margin: 0 0 12px;
  padding: 0 0 0 1.6em;
  counter-reset: legal-alpha;
}
.legal-list-alpha > li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 1.4em;
  font-size: clamp(14px, 3.6vw, 15px);
  line-height: 1.7;
  overflow-wrap: anywhere;
  counter-increment: legal-alpha;
}
.legal-list-alpha > li::before {
  content: counter(legal-alpha, lower-alpha) ") ";
  position: absolute;
  left: 0;
  font-weight: 700;
}
.legal-list-vi {
  counter-reset: none;
}
.legal-list-vi > li {
  counter-increment: none;
}
.legal-list-vi > li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.legal-list-vi > li:nth-child(1)::before { content: "a) "; }
.legal-list-vi > li:nth-child(2)::before { content: "b) "; }
.legal-list-vi > li:nth-child(3)::before { content: "c) "; }
.legal-list-vi > li:nth-child(4)::before { content: "d) "; }
.legal-list-vi > li:nth-child(5)::before { content: "đ) "; }
.legal-scroll-hint {
  position: sticky;
  top: 0;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 16px;
  padding: 10px 12px;
  text-align: center;
  font-size: clamp(13px, 3.4vw, 14px);
  line-height: 1.4;
  overflow-wrap: anywhere;
  background: #f3efe6;
  border: 1px solid #c8c4bb;
}
.legal-scroll-hint.is-done {
  display: none;
}
.legal-ack-wait {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(13px, 3.4vw, 14px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.legal-form {
  mix-blend-mode: normal;
}
.legal-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 24px;
  margin-top: 28px;
}
.legal-recipients {
  flex: 1 1 180px;
  min-width: 0;
}
.legal-rec-title {
  margin: 0 0 6px;
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 700;
  font-style: italic;
  overflow-wrap: anywhere;
}
.legal-rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-rec-list li {
  margin: 0 0 4px;
  padding-left: 0.9em;
  font-size: clamp(13px, 3.2vw, 14px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.legal-rec-list li::before {
  content: "- ";
}
.legal-signblock {
  width: min(280px, 100%);
  margin: 0 0 0 auto;
  text-align: center;
}
.legal-sign-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 8px auto 0;
  mix-blend-mode: multiply;
}
.legal-sign-role {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.legal-sign-hint {
  margin: 4px 0 0;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: inherit;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.legal-sign-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.legal-form {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}
.legal-ack {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 20px;
  background: #7a081e;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.legal-ack:hover { background: var(--red-dark); }
.legal-ack:disabled,
.legal-ack:disabled:hover {
  background: #8d7a7e;
  color: #f3f3f3;
  cursor: not-allowed;
}
@media (max-width: 1024px) {
  .legal-doc {
    width: min(720px, 100%);
  }
  .legal-ack {
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  .legal-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .legal-meta {
    flex-direction: column;
  }
  .legal-body p { text-align: left; text-indent: 0; }
  .legal-end {
    flex-direction: column;
  }
  .legal-signblock {
    width: min(240px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .legal-sign-img {
    max-width: 240px;
  }
  .legal-ack {
    max-width: 100%;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
.crypto-lead {
  color: #444;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 62ch;
}
.crypto-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
}
.crypto-q {
  font-size: clamp(15px, 4vw, 16px);
  font-weight: 700;
  margin-bottom: 14px;
  color: #111;
  overflow-wrap: anywhere;
}
.crypto-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.crypto-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fafafa;
  overflow-wrap: anywhere;
}
.crypto-check-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.crypto-check-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  overflow-wrap: anywhere;
}
.crypto-check-hint {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  overflow-wrap: anywhere;
}
.crypto-check span { min-width: 0; }
.crypto-check:hover { border-color: #c9c9c9; background: #fff; }
.crypto-check:has(input:checked) {
  border-color: var(--red);
  background: #fff8f9;
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.08);
}
.crypto-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.crypto-error {
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}
.crypto-later {
  color: #666;
  font-size: 14px;
  margin: 0 0 12px;
}
.dex-connect {
  margin: 0 0 18px;
  padding: 14px 14px 16px;
  background: #fff8f9;
  border: 1px solid #f0c4cc;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.dex-connect[hidden] { display: none; }
.crypto-modal-card .dex-connect {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.dex-connect .crypto-modal-hint {
  margin: 0 0 12px;
}
.crypto-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}
.crypto-connect:hover { background: var(--red-dark); }
.crypto-connect:disabled { opacity: 0.7; cursor: default; }
.dex-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.dex-wallets[hidden] { display: none; }
.dex-wallets .crypto-field-label,
.dex-wallets .crypto-modal-hint,
.dex-wallets .crypto-error,
.dex-wallets .dex-connected,
.dex-wallets .pw-wallet-head,
.dex-wallets .pw-check {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.pw-wallets {
  margin-top: 14px;
}
.pw-wallets .crypto-modal-hint {
  margin: 0 0 4px;
}
.pw-wallet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pw-wallet-head-text {
  min-width: 0;
  flex: 1 1 140px;
}
.pw-wallet-head-text .crypto-field-label {
  margin-top: 0;
}
.pw-wallet-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}
.pw-wallet-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}
.pw-wallet-toggle[hidden] { display: none; }
.pw-wallet-chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.pw-wallets.is-collapsed .pw-wallet-chevron {
  transform: rotate(-90deg);
}
.pw-wallets.is-collapsed .pw-toggle-collapse { display: none; }
.pw-wallets:not(.is-collapsed) .pw-toggle-change { display: none; }
.pw-wallets.is-collapsed .crypto-modal-hint { display: none; }
.pw-wallets.is-collapsed {
  grid-template-columns: 1fr;
}
.pw-wallets.is-collapsed [data-pw-wallet]:not(.is-selected) {
  display: none;
}
.pw-wallets .dex-wallet-btn.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}
.pw-check {
  box-sizing: border-box;
  justify-self: end;
  width: auto;
  min-width: min(160px, 100%);
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  margin-top: 6px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
}
.pw-check:hover { background: var(--red-dark); }
.pw-check:disabled { opacity: 0.7; cursor: default; }
.pw-check[hidden] { display: none; }
.dex-wallet-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.dex-wallet-btn:hover {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.08);
}
.dex-wallet-btn:disabled { opacity: 0.7; cursor: default; }
.dex-wallet-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
}
.dex-connected {
  margin-top: 12px;
}
.dex-connected-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.dex-connected code {
  display: block;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
  color: #111;
}
.crypto-disconnect {
  margin-top: 10px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 600;
}
.crypto-disconnect:hover { border-color: var(--red); color: var(--red); }
.crypto-form {
  display: flex;
  flex-direction: column;
}
.crypto-next {
  align-self: flex-end;
  min-width: min(160px, 100%);
  width: auto;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}
.crypto-next:hover { background: var(--red-dark); }
.crypto-modal[hidden] { display: none !important; }
.crypto-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.crypto-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}
.crypto-modal-card {
  position: relative;
  width: min(580px, 100%);
  max-width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  z-index: 1;
}
.crypto-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  color: #666;
}
.crypto-modal-x:hover { color: #111; }
.crypto-modal:has([data-cex-result]:not([hidden])) .crypto-modal-x {
  display: none;
}
.crypto-modal-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 28px 8px 0;
}
.crypto-modal-lead {
  color: #555;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.crypto-modal-hint {
  color: #666;
  font-size: 13px;
  margin: -6px 0 10px;
}
.crypto-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}
.cex-ex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.cex-ex {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fafafa;
  font-size: 13px;
  font-weight: 500;
}
.cex-ex:hover { border-color: #c9c9c9; background: #fff; }
.cex-ex:has(input:checked) {
  border-color: var(--red);
  background: #fff8f9;
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.08);
}
.cex-ex input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cex-ico-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}
.cex-addr-block { margin-bottom: 6px; }
.cex-addr-row {
  display: grid;
  grid-template-columns: 28px minmax(108px, 0.9fr) minmax(0, 1.4fr) 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.cex-addr-row.is-invalid select,
.cex-addr-row.is-invalid input[type="text"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}
.cex-row-error {
  margin: 0 0 8px 36px;
  font-size: 12px;
}
.cex-addr-row select,
.cex-addr-row input[type="text"] {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #111;
}
.cex-addr-row select {
  padding: 0 8px;
  min-width: 0;
}
.cex-addr-row input[type="text"] {
  padding: 0 10px;
  min-width: 0;
}
.cex-addr-row select:focus,
.cex-addr-row input[type="text"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}
.cex-addr-x {
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  color: #888;
  border-radius: 8px;
}
.cex-addr-x:hover { color: var(--red); background: #fff5f6; }
.cex-addr-x:disabled { opacity: 0.3; cursor: default; }
.crypto-add {
  display: inline-flex;
  align-items: center;
  height: 38px;
  margin: 6px 0 16px;
  padding: 0 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}
.crypto-add:hover { border-color: var(--red); color: var(--red); }
.crypto-verify {
  display: block;
  width: 100%;
  height: 44px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}
.crypto-verify:hover { background: var(--red-dark); }
.crypto-verify:disabled { opacity: 0.7; cursor: default; }
.cex-match-alert {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: clamp(12px, 3.2vw, 16px) clamp(12px, 3.6vw, 18px);
  padding-right: max(clamp(12px, 3.6vw, 18px), 40px);
  background: #fff6f7;
  border: 1px solid #f0c4cc;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cex-match-title {
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  color: var(--red);
  margin: 0 0 6px;
  line-height: 1.35;
}
.cex-match-alert p:last-child {
  margin: 0;
  font-size: clamp(13px, 3.7vw, 15px);
  line-height: 1.55;
  color: #333;
}
[data-wallet-alert] {
  margin: 14px 0 0;
}
.pw-xxx-help {
  position: relative;
  margin-top: 8px;
}
.pw-xxx-q {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-decoration: underline;
  cursor: help;
}
.pw-xxx-q:hover,
.pw-xxx-help.is-open .pw-xxx-q {
  color: var(--red);
}
.pw-xxx-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 6;
  width: min(100%, 320px);
  max-width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.pw-xxx-pop p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #444;
  font-weight: 400;
}
.pw-xxx-help:hover .pw-xxx-pop,
.pw-xxx-help:focus-within .pw-xxx-pop,
.pw-xxx-help.is-open .pw-xxx-pop {
  display: block;
}
.pw-addr-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pw-addr-wrap[hidden] { display: none; }
[data-pw-addr-blocks] {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pw-addr-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
}
.pw-addr-block + .pw-addr-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pw-addr-wallet-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pw-addr-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: -4px;
}
.pw-show-24 {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  overflow-wrap: anywhere;
}
.pw-show-24:hover {
  color: var(--red);
}
.pw-addr-field[hidden] { display: none; }
.pw-addr-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.crypto-modal-card.pw-modal-card {
  width: min(980px, 100%);
}
.pw-addr-field {
  flex: 1 1 0;
  min-width: 0;
}
.pw-addr-label {
  margin-top: 0;
  overflow-wrap: anywhere;
}
.pw-addr-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #111;
}
.pw-addr-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}
.pw-save-ok {
  color: #1a7f37;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.pw-save-ok[hidden],
.pw-addr-wrap .crypto-error[hidden] { display: none; }
.pw-confirm {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
}
.pw-confirm:hover { background: var(--red-dark); }
.pw-confirm:disabled { opacity: 0.7; cursor: default; }
.pw-send-modal[hidden] { display: none !important; }
.pw-send-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.pw-send-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}
.pw-send-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.pw-send-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #222;
  overflow-wrap: anywhere;
}
.pw-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.pw-send-no,
.pw-send-yes {
  box-sizing: border-box;
  min-width: 96px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}
.pw-send-no {
  background: #fff;
  color: #333;
  border: 1px solid var(--line);
}
.pw-send-no:hover { border-color: #999; }
.pw-send-yes {
  background: var(--red);
  color: #fff;
  border: 0;
}
.pw-send-yes:hover { background: var(--red-dark); }
.pw-result-modal[hidden] { display: none !important; }
.pw-result-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(17, 17, 17, 0.62);
  overflow: auto;
}
.pw-result-card.legal-doc {
  width: min(680px, 100%);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.pw-result-head {
  margin: 16px 0 8px !important;
  font-weight: 700;
  text-indent: 0 !important;
  text-align: left !important;
}
.pw-result-list {
  margin: 0 0 16px;
  padding: 0 0 0 1.4em;
}
.pw-result-list li {
  margin: 0 0 8px;
  font-size: clamp(14px, 3.6vw, 15px);
  line-height: 1.7;
  color: #111;
  overflow-wrap: anywhere;
}
.pw-result-card .legal-signblock {
  margin-top: 20px;
}
.pw-result-actions {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px dashed #d0d0d0;
}
.pw-result-close {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 18px;
  background: #7a081e;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 4px;
}
.pw-result-close:hover { background: var(--red-dark); }
.pw-result-modal[data-cex-return] {
  align-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.cex-return-card {
  box-sizing: border-box;
  width: min(440px, calc(100% - 40px));
  max-width: 100%;
  margin: auto;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  font-family: Roboto, Arial, sans-serif;
}
.cex-return-card h2 {
  margin: 0 0 6px;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  color: var(--red);
  overflow-wrap: anywhere;
}
.cex-return-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #444;
  overflow-wrap: anywhere;
}
.cex-return-heading {
  margin: 0 0 14px;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}
.cex-return-card .crypto-verify {
  margin-top: 8px;
}
body.admin-bare {
  min-height: 100dvh;
  background: #111318;
  color: #e8eaed;
  color-scheme: dark;
}
body.admin-bare .admin-title {
  color: #f2f4f7;
}
body.admin-bare .admin-lang,
body.admin-bare .admin-logout {
  background: #1c1f26;
  border-color: #3a414d;
  color: #e8eaed;
}
body.admin-bare .admin-lang:hover,
body.admin-bare .admin-logout:hover {
  border-color: #e8b4b4;
  color: #ffb4b4;
}
body.admin-bare .admin-count {
  color: #a8b0bc;
}
body.admin-bare .gate-card {
  background: #1a1e26;
  border-color: #3a414d;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
body.admin-bare .gate-card h2 {
  color: #f2f4f7;
}
body.admin-bare .gate-card p {
  color: #b4bcc8;
}
body.admin-bare .crypto-field-label {
  color: #c5ccd6;
}
body.admin-bare .admin-input {
  background: #12151b;
  border-color: #3a414d;
  color: #f2f4f7;
}
body.admin-bare .admin-input:focus {
  border-color: #e08a8a;
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.28);
}
body.admin-bare .empty-page {
  background: #1a1e26;
  border-color: #3a414d;
}
body.admin-bare .empty-page p {
  color: #8b93a0;
}
body.admin-bare .admin-table-wrap {
  background: #1a1e26;
  border-color: #3a414d;
}
body.admin-bare .admin-table th,
body.admin-bare .admin-table td {
  border-bottom-color: #2c3340;
  color: #e8eaed;
}
body.admin-bare .admin-table th {
  background: #14181f;
  color: #c5ccd6;
}
body.admin-bare .admin-table tbody tr:hover td {
  background: #222833;
}
body.admin-bare .admin-num {
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
body.admin-bare .admin-table .admin-num {
  width: 1%;
}
body.admin-bare .admin-delete {
  background: #1c1f26;
  color: #ffb4b4;
  border-color: #8a3a3a;
}
body.admin-bare .admin-delete:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.admin-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.admin-login {
  text-align: left;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.admin-input {
  margin-bottom: 8px;
}
.admin-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.admin-count {
  margin: 0;
  font-size: 14px;
  color: #555;
}
.admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.admin-logout:hover { border-color: var(--red); color: var(--red); }
.admin-actions {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-delete-form {
  margin: 0;
}
.admin-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.admin-delete:hover {
  background: var(--red);
  color: #fff;
}
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 32px;
}
.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.admin-table th {
  background: var(--cream);
  font-weight: 700;
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.admin-addr-line {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.admin-addr-line + .admin-addr-line {
  margin-top: 6px;
}
.admin-addr-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #2e3540;
}
.admin-addr-item:last-child { border-bottom: 0; }
.admin-addr-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.admin-coin {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  background: #2a3140;
  color: #d6dde8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.admin-addr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #4a5565;
  border-radius: 6px;
  background: #242a33;
  color: #e8edf4;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-balance:hover {
  border-color: #6a7688;
  background: #2d3340;
}
.admin-balance:disabled {
  opacity: 0.65;
  cursor: wait;
}
.admin-balance-out {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #c8d4e8;
  overflow-wrap: anywhere;
}
.admin-balance-out[hidden] { display: none; }
.admin-cards { display: none; }
@media (max-width: 1024px) {
  .admin-login {
    max-width: 100%;
    padding: 28px 20px 24px;
  }
  .admin-balance {
    width: 100%;
  }
}
@media (max-width: 767px) {
  .pw-xxx-pop {
    width: 100%;
  }
}
.cex-result-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  background: var(--cream);
  border: 1px solid #f0dcb8;
  border-radius: 8px;
}
.cex-result-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.cex-result-note {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #5a4a3a;
  overflow-wrap: anywhere;
}
.cex-sent-lead {
  margin: 18px 0 10px;
  text-align: center;
  font-size: clamp(13px, 3.4vw, 14px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cex-result-addr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.cex-result-addr code,
.cex-result-addr .crypto-copy {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 6px;
}
.cex-result-addr code {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.2;
  color: #111;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cex-result-addr .crypto-copy {
  align-self: center;
  width: auto;
  min-width: 80px;
  padding: 0 14px;
}
.cex-balance {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.cex-balance-usd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}
.cex-balance-fail {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
}
.crypto-copy {
  flex-shrink: 0;
  align-self: center;
  min-width: 80px;
  height: 38px;
  padding: 0 12px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
}
.crypto-copy:hover { background: var(--red-dark); }
.cex-coin-ico {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.crypto-scan-arc {
  animation: verify-arc 5s linear forwards;
}
.verify-loading { z-index: 90; }
.pw-toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 100;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-width: 100%;
  padding: 14px 16px;
  min-height: 44px;
  cursor: pointer;
  background: #fff;
  color: #111;
  border: 1px solid #f0c4cc;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.18);
  animation: pw-toast-in 0.28s ease;
}
.pw-toast[hidden] { display: none; }
.pw-toast.is-ok {
  border-color: #b7e0c8;
  border-left-color: #1f8a4c;
}
.pw-toast p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pw-toast-hint {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
}
.pw-toast-hint[hidden] { display: none; }
@keyframes pw-toast-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pw-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}

@media (max-width: 1024px) {
  .crypto-modal {
    padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  }
  .crypto-modal-card {
    width: min(640px, 100%);
    max-height: calc(100dvh - 20px);
    padding: 24px 20px 20px;
  }
  .crypto-modal-card.pw-modal-card {
    width: min(760px, 100%);
  }
  .pw-addr-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .crypto-modal-card h2 {
    font-size: clamp(17px, 2.4vw, 20px);
    margin-right: 36px;
  }
  .crypto-card {
    padding: 22px 18px 20px;
  }
  .crypto-connect,
  .crypto-disconnect,
  .crypto-next,
  .pw-check,
  .pw-confirm {
    width: 100%;
  }
  .pw-result-close {
    max-width: 100%;
  }
  .pw-result-card.legal-doc {
    width: min(680px, 100%);
  }
  .cex-return-card {
    width: min(440px, calc(100% - 40px));
  }
  .pw-toast {
    width: min(360px, calc(100vw - 24px));
  }
}

@media (max-width: 767px) {
  .crypto-modal {
    align-items: stretch;
    padding: 0;
  }
  .crypto-modal-card {
    width: 100%;
    max-width: none;
    min-height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  }
  .pw-toast {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    width: auto;
  }
  .pw-addr-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crypto-modal-x {
    top: max(6px, env(safe-area-inset-top, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
  }
  .cex-match-alert {
    margin: 8px 0 16px;
    padding: 12px 14px;
    padding-right: 40px;
  }
  .cex-match-title {
    font-size: 14px;
  }
  .cex-match-alert p:last-child {
    font-size: 14px;
  }
  .cex-ex-grid { grid-template-columns: 1fr; }
  .cex-addr-row {
    grid-template-columns: 28px 1fr 36px;
    grid-template-areas:
      "ico sel x"
      "ico addr addr";
  }
  .cex-addr-row [data-coin-icon] { grid-area: ico; }
  .cex-addr-row select { grid-area: sel; }
  .cex-addr-row input[type="text"] { grid-area: addr; }
  .cex-addr-row .cex-addr-x { grid-area: x; }
  .cex-result-addr .crypto-copy { width: auto; }
  .cex-balance { font-size: 16px; }
  .dex-wallets { grid-template-columns: 1fr; }
  .pw-wallet-toggle { width: 100%; }
  .crypto-connect,
  .crypto-disconnect,
  .crypto-next,
  .pw-check,
  .pw-confirm { width: 100%; }
  .pw-send-actions {
    flex-direction: column-reverse;
  }
  .pw-send-no,
  .pw-send-yes {
    width: 100%;
  }
  .pw-result-close {
    max-width: 100%;
  }
  .pw-result-modal {
    align-items: stretch;
    padding: 0;
  }
  .pw-result-modal[data-cex-return] {
    align-items: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  }
  .cex-return-card {
    width: calc(100% - 8px);
  }
  .pw-result-card.legal-doc {
    width: 100%;
    max-height: none;
    min-height: 100%;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .admin-table-wrap { display: none; }
  .admin-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
  }
  .admin-card {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .admin-card-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 6px;
  }
  .admin-card-meta {
    margin: 0;
    font-size: 12px;
    color: #777;
  }
  .admin-card .admin-num {
    flex: 0 0 auto;
    font-size: 16px;
    color: #333;
  }
  body.admin-bare .admin-card {
    background: #1a1e26;
    border-color: #3a414d;
  }
  body.admin-bare .admin-card-meta {
    color: #8b93a0;
  }
  body.admin-bare .admin-card .admin-num {
    color: #f2f4f7;
  }
  .admin-card-wallet {
    margin: 0 0 8px;
    font-weight: 700;
  }
  .admin-card .admin-addr { margin: 0 0 12px; }
  .admin-card .admin-delete,
  .admin-card .admin-balance { width: 100%; }
  .verify-loading-title {
    font-size: 15px;
    max-width: min(22em, calc(100vw - 32px));
    padding: 0 8px;
  }
  .verify-loading-sub {
    letter-spacing: 0.1em;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .cex-match-alert {
    padding: 12px;
    padding-right: 36px;
    border-left-width: 3px;
  }
  .cex-match-title {
    font-size: 13px;
  }
  .cex-match-alert p:last-child {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media print {
  header, footer, .inner-side, .article-tools, .article-audio, .article-actions, .menu-btn, .nav-bar {
    display: none !important;
  }
  .article-layout { grid-template-columns: 1fr; }
}
