/* Korean hero title — intentional line break, no mid-word split */
html[lang='ko'] .bm-hero-title {
  text-wrap: balance;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
  max-width: 18em;
}

html[lang='ko'] .bm-hero-title br {
  display: block;
  content: '';
}

html[lang='ja'] .bm-hero-title {
  word-break: keep-all;
  line-break: strict;
}

.bm-lang-switcher {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 9000;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.bm-lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, background 0.2s;
}

.bm-lang-trigger:hover,
.bm-lang-trigger[aria-expanded='true'] {
  border-color: #c6ff00;
  background: rgba(39, 39, 42, 0.95);
}

.bm-lang-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.bm-lang-trigger[aria-expanded='true'] .bm-lang-chevron {
  transform: rotate(180deg);
}

.bm-lang-menu {
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 0.5rem);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  min-width: 10rem;
  background: rgba(24, 24, 27, 0.98);
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.bm-lang-menu[hidden] {
  display: none;
}

.bm-lang-menu li {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: #d4d4d8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.bm-lang-menu li:hover,
.bm-lang-menu li[aria-selected='true'] {
  background: #27272a;
  color: #c6ff00;
}

@media (max-width: 640px) {
  .bm-lang-trigger {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* Media / IR nav dropdown */
.bm-media-nav,
.bm-ir-nav,
.bm-dropdown-nav {
  position: relative;
}

.bm-media-dropdown,
.bm-ir-dropdown,
.bm-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.5rem;
  min-width: 14rem;
  z-index: 200;
}

.bm-media-nav:hover .bm-media-dropdown,
.bm-media-nav:focus-within .bm-media-dropdown,
.bm-media-nav.bm-media-open .bm-media-dropdown,
.bm-ir-nav:hover .bm-ir-dropdown,
.bm-ir-nav:focus-within .bm-ir-dropdown,
.bm-ir-nav.bm-dropdown-open .bm-ir-dropdown,
.bm-dropdown-nav:hover .bm-dropdown-menu,
.bm-dropdown-nav.bm-dropdown-open .bm-dropdown-menu {
  display: block;
}

.bm-media-dropdown-panel {
  background: rgba(39, 39, 42, 0.98);
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.bm-media-dropdown-panel a {
  color: #d4d4d8;
}

.bm-media-dropdown-panel a:hover {
  color: #fff;
}

/* IR dropdown — same panel look as Media (all pages load i18n.css) */
.bm-dropdown-panel {
  background: rgba(39, 39, 42, 0.98);
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.bm-dropdown-panel a {
  color: #d4d4d8;
}

.bm-dropdown-panel a:hover {
  color: #fff;
}

/* Liquid Staking CTA — centered on hero / list page */
.bm-liquid-staking-hero-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.bm-liquid-staking-btn--hero,
.bm-liquid-staking-btn--page {
  margin-left: auto;
  margin-right: auto;
}

/* Homepage: button below centered logo */
.relative.z-10.px-4 > .bm-liquid-staking-btn,
.relative.z-10.px-4 > .bm-liquid-staking-hero-wrap {
  margin-left: auto;
  margin-right: auto;
}

.relative.z-10.px-4 > .bm-liquid-staking-btn:not(.bm-liquid-staking-btn--footer),
.bm-liquid-staking-btn--hero {
  display: inline-flex;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding: 1rem 2.75rem !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 28px rgba(198, 255, 0, 0.28);
  min-width: 220px;
  justify-content: center;
}

@media (min-width: 640px) {
  .bm-liquid-staking-btn--hero,
  .relative.z-10.px-4 > .bm-liquid-staking-btn:not(.bm-liquid-staking-btn--footer) {
    padding: 1.1rem 3.25rem !important;
    font-size: 1.35rem !important;
    min-width: 260px;
  }
}

.bm-liquid-staking-btn--nav {
  flex-shrink: 0;
}

/* Auth buttons — desktop header only (mobile: hamburger menu) */
@media (min-width: 1024px) {
  #bm-auth-nav.bm-auth-nav .bm-auth-guest,
  #bm-auth-nav.bm-auth-nav .bm-auth-user {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 1023px) {
  #bm-auth-nav.bm-auth-nav {
    display: none !important;
  }
}

#bm-mobile-menu-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#bm-mobile-menu-auth a.bm-auth-btn,
#bm-mobile-menu-auth button.bm-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto;
  padding: 0.65rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

#bm-auth-nav a.bm-auth-btn,
#bm-auth-nav button.bm-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1.2rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  cursor: pointer;
  border: 2px solid transparent !important;
  line-height: 1.2 !important;
  -webkit-appearance: none;
  appearance: none;
}

#bm-auth-nav a.bm-auth-btn--signup,
#bm-auth-nav a.bm-auth-btn--light,
#bm-auth-nav button.bm-auth-btn--signup {
  background-color: rgba(9, 9, 11, 0.7) !important;
  color: #ffffff !important;
  border-color: #c6ff00 !important;
  box-shadow: 0 0 14px rgba(198, 255, 0, 0.2) !important;
}

#bm-auth-nav a.bm-auth-btn--signup:hover,
#bm-auth-nav a.bm-auth-btn--light:hover {
  background-color: #c6ff00 !important;
  color: #09090b !important;
}

#bm-auth-nav a.bm-auth-btn--login,
#bm-auth-nav a.bm-auth-btn--dark,
#bm-auth-nav button.bm-auth-btn--login,
#bm-auth-nav button.bm-auth-btn--dark {
  background-color: #c6ff00 !important;
  color: #09090b !important;
  border-color: #c6ff00 !important;
  box-shadow: 0 2px 16px rgba(198, 255, 0, 0.4) !important;
}

#bm-auth-nav a.bm-auth-btn--login:hover,
#bm-auth-nav a.bm-auth-btn--dark:hover,
#bm-auth-nav button.bm-auth-btn--login:hover {
  background-color: #d4ff33 !important;
  border-color: #d4ff33 !important;
}

.bm-auth-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.bm-auth-nav[hidden],
.bm-auth-guest[hidden],
.bm-auth-user[hidden] {
  display: none !important;
}

.bm-auth-guest,
.bm-auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bm-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}

/* 회원가입 — 테두리 라임, 밝은 글자 */
.bm-auth-btn--signup,
.bm-auth-btn--light {
  background: rgba(9, 9, 11, 0.55) !important;
  color: #ffffff !important;
  border-color: #c6ff00 !important;
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.15);
}

.bm-auth-btn--signup:hover,
.bm-auth-btn--light:hover {
  background: #c6ff00 !important;
  color: #09090b !important;
}

/* 로그인 — 라임 채움, 진한 글자 */
.bm-auth-btn--login,
.bm-auth-btn--dark {
  background: #c6ff00 !important;
  color: #09090b !important;
  border-color: #c6ff00 !important;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(198, 255, 0, 0.35);
}

.bm-auth-btn--login:hover,
.bm-auth-btn--dark:hover {
  background: #d4ff33 !important;
  border-color: #d4ff33 !important;
}

/* 밝은 헤더(스테이킹 상세 등) */
.bm-stake-detail-page .bm-auth-btn--signup,
.bm-stake-detail-page .bm-auth-btn--light {
  background: #fff !important;
  color: #101014 !important;
  border-color: #101014 !important;
  box-shadow: none;
}

.bm-stake-detail-page .bm-auth-btn--signup:hover,
.bm-stake-detail-page .bm-auth-btn--light:hover {
  background: #101014 !important;
  color: #fff !important;
}

.bm-stake-detail-page .bm-auth-btn--login,
.bm-stake-detail-page .bm-auth-btn--dark {
  background: #101014 !important;
  color: #fff !important;
  border-color: #101014 !important;
  box-shadow: none;
}

.bm-stake-detail-page .bm-auth-btn--login:hover,
.bm-stake-detail-page .bm-auth-btn--dark:hover {
  background: #333 !important;
}

.bm-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #09090b 0%, #18181b 100%);
  color: #fff;
  overflow-x: hidden;
}

.bm-auth-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: rgba(24, 24, 27, 0.95);
  border-bottom: 1px solid #3f3f46;
  backdrop-filter: blur(8px);
}

.bm-auth-header-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bm-auth-header-logo img {
  height: 2rem;
  width: auto;
}

@media (min-width: 640px) {
  .bm-auth-header-logo img {
    height: 2.25rem;
  }
}

.bm-auth-header-link {
  color: #d4d4d8;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.bm-auth-header-link:hover {
  color: #c6ff00;
}

.bm-auth-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bm-auth-header-actions .bm-auth-nav {
  margin-left: 0;
}

.bm-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.bm-auth-main-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.bm-auth-footer {
  flex-shrink: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #71717a;
  border-top: 1px solid #27272a;
}

.bm-auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  background: rgba(39, 39, 42, 0.95);
  border: 1px solid #52525b;
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .bm-auth-card {
    padding: 2rem 1.75rem;
  }
  .bm-auth-main {
    padding: 2rem 1.5rem 2.5rem;
  }
}

.bm-auth-card h1 {
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-align: center;
  color: #fafafa;
}

.bm-auth-card .bm-auth-sub {
  color: #a1a1aa;
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.bm-auth-field {
  margin-bottom: 1rem;
}

.bm-auth-field label {
  display: block;
  font-size: 0.85rem;
  color: #d4d4d8;
  margin-bottom: 0.35rem;
}

.bm-auth-field input,
.bm-auth-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #52525b;
  background: #18181b;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

.bm-auth-field select {
  cursor: pointer;
  appearance: auto;
}

.bm-auth-field input:focus {
  outline: none;
  border-color: #c6ff00;
}

.bm-auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  background: #c6ff00;
  color: #09090b;
  cursor: pointer;
}

.bm-auth-submit:hover {
  background: #d4ff33;
}

.bm-auth-error {
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  font-size: 0.875rem;
}

.bm-auth-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #a1a1aa;
}

.bm-auth-footer-link a {
  color: #c6ff00;
  text-decoration: none;
}

.bm-assets-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.bm-assets-email {
  color: #a1a1aa;
  margin: 0 0 2rem;
}

.bm-assets-section {
  margin-bottom: 2rem;
}

.bm-assets-section h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: #e4e4e7;
}

.bm-assets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bm-assets-table th,
.bm-assets-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #3f3f46;
}

.bm-assets-table th {
  color: #a1a1aa;
  font-weight: 500;
}

.bm-assets-status--active {
  color: #4ade80;
}

.bm-assets-status--pending {
  color: #fbbf24;
}

.bm-assets-empty {
  color: #71717a;
  font-size: 0.95rem;
}

/* Assets (마이페이지) — 다크 톤 */
.bm-assets-page .bm-assets-main {
  background: linear-gradient(180deg, #09090b 0%, #18181b 100%);
}

.bm-assets-page .bm-assets-title {
  color: #fafafa;
}

.bm-assets-page .bm-assets-email {
  color: #a1a1aa;
}

.bm-assets-page .bm-assets-section h2 {
  color: #e4e4e7;
}

.bm-assets-page .bm-assets-table th {
  color: #a1a1aa;
}

.bm-assets-page .bm-assets-table td {
  color: #d4d4d8;
  border-color: #3f3f46;
}

.bm-assets-page .bm-auth-submit {
  display: inline-block;
  width: auto;
  min-width: 200px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .bm-auth-nav {
    gap: 0.35rem;
  }
  .bm-auth-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Global mobile UX + performance-friendly layout */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

video,
iframe {
  max-width: 100%;
  height: auto;
}

/* 본문 이미지만 반응형 — 헤더/푸터 로고는 제외 */
main article img,
main .prose img {
  max-width: 100%;
  height: auto;
}

/* 헤더·네비 로고만 고정 (푸터는 아래 별도 규칙) */
header img[src*='logo'],
header img[src*='bmnrlogo'],
.bm-site-header img[src*='logo'],
.bm-site-header img[src*='bmnrlogo'],
a[href='/'] > img[alt*='Logo'],
a[href='/'] > img[src*='bmnrlogo'] {
  max-width: 150px !important;
  width: auto !important;
  height: 2rem !important;
  max-height: 2.5rem !important;
  object-fit: contain;
}

footer img[src*='logo'],
footer img[src*='bmnrlogo'] {
  max-width: 120px !important;
  width: auto !important;
  height: 1.25rem !important;
  max-height: 1.25rem !important;
  object-fit: contain;
  flex-shrink: 0;
}

/* 모바일 — 헤더·푸터·히어로 로고 축소 */
@media (max-width: 639px) {
  header img[src*='logo'],
  header img[src*='bmnrlogo'],
  .bm-site-header img[src*='logo'],
  .bm-site-header img[src*='bmnrlogo'],
  a[href='/'] > img[alt*='Logo'],
  a[href='/'] > img[src*='bmnrlogo'] {
    max-width: 88px !important;
    height: 1.125rem !important;
    max-height: 1.125rem !important;
  }

  main img[src*='bmnrlogo'].mx-auto,
  main .mx-auto img[src*='logo'],
  main .mx-auto img[src*='bmnrlogo'] {
    max-width: min(120px, 40vw) !important;
    max-height: 1.75rem !important;
    width: auto !important;
    height: auto !important;
  }

  body footer img[src*='bmnrlogo'],
  body footer img[alt*='Bitmine Logo'] {
    max-width: 24px !important;
    width: 24px !important;
    height: 8px !important;
    max-height: 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
  }

  .max-w-7xl .flex.items-center.justify-between > #bm-auth-nav.bm-auth-nav {
    display: none !important;
  }

  .bm-auth-header-logo img {
    height: 1.125rem !important;
    max-width: 88px !important;
  }
}

/* 홈 히어로 중앙 로고 — 데스크톱만 (모바일 규칙 덮어쓰기 방지) */
@media (min-width: 640px) {
  main img[src*='bmnrlogo'].mx-auto,
  main .mx-auto img[src*='logo'] {
    max-width: min(280px, 90vw) !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
  }
}

button,
a.bm-auth-btn,
.bm-liquid-staking-btn,
.bm-stake-submit,
.bm-admin-btn {
  min-height: 44px;
  touch-action: manipulation;
}

/* Channel Talk launcher — below language switcher */
#ch-plugin,
#ch-plugin-script,
.ch-desk-messenger,
.ch-mobile-messenger {
  z-index: 9998 !important;
}

/* Mobile menu */
.bm-mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  color: #d4d4d8;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.bm-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10050;
}

.bm-mobile-menu[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.bm-mobile-menu[hidden] .bm-mobile-menu__backdrop,
.bm-mobile-menu[hidden] .bm-mobile-menu__sheet {
  pointer-events: none !important;
}

.bm-mobile-menu:not([hidden]) {
  pointer-events: auto;
}

.bm-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.bm-mobile-menu__sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: #18181b;
  border-left: 1px solid #3f3f46;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: bm-mob-slide 0.22s ease-out;
}

@keyframes bm-mob-slide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.bm-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #3f3f46;
}

.bm-mobile-menu__title {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.bm-mobile-menu__close {
  font-size: 1.75rem;
  line-height: 1;
  color: #a1a1aa;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.bm-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.bm-mobile-menu__link {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 8px;
  color: #e4e4e7;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.bm-mobile-menu__link--active,
.bm-mobile-menu__link:hover {
  background: rgba(198, 255, 0, 0.12);
  color: #c6ff00;
}

.bm-mobile-menu__actions {
  margin-top: auto;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid #3f3f46;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.bm-mobile-menu__actions .bm-auth-btn {
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.bm-mobile-open {
  overflow: hidden;
}

/* 모바일 메뉴 열림 — 하단 언어 버튼이 로그인/회원가입과 겹치지 않도록 숨김 */
body.bm-mobile-open #bm-lang-switcher {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Site header — mobile */
@media (max-width: 1023px) {
  .bm-site-header .max-w-7xl > .flex {
    gap: 0.5rem;
  }

  .bm-site-header nav.hidden.lg\:flex {
    display: none !important;
  }

  .bm-liquid-staking-btn--nav {
    display: none !important;
  }

  .bm-auth-nav {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .bm-auth-btn {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem !important;
  }
}

/* Staking / assets pages */
@media (max-width: 640px) {
  .bm-stake-detail-main,
  .bm-assets-main {
    padding-top: 5.5rem !important;
  }

  .bm-stake-detail-title {
    font-size: 1.5rem !important;
  }

  .bm-stake-tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .bm-stake-tabs::-webkit-scrollbar {
    display: none;
  }

  .bm-stake-tab {
    flex-shrink: 0;
  }

  .bm-stake-table-head,
  .bm-stake-table-row {
    grid-template-columns: 1fr 0.7fr 1fr 0.85fr !important;
    font-size: 0.7rem !important;
    gap: 0.35rem !important;
  }

  .bm-assets-chain-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .bm-assets-chain-pills::-webkit-scrollbar {
    display: none;
  }

  .bm-assets-chain-pill {
    flex-shrink: 0;
  }

  .bm-assets-hist-head,
  .bm-assets-hist-row {
    grid-template-columns: 1fr 0.75fr 1fr 0.8fr !important;
    font-size: 0.68rem !important;
    gap: 0.3rem !important;
  }

  .bm-assets-actions {
    flex-direction: column;
  }

  .bm-assets-action {
    width: 100%;
    text-align: center;
  }

  .bm-assets-total-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .bm-stake-list-hero h1 {
    font-size: 1.75rem !important;
  }

  .bm-auth-main {
    padding: 1rem !important;
  }

  .bm-auth-card {
    padding: 1.25rem !important;
  }
}

/* Main marketing pages */
@media (max-width: 1023px) {
  .max-w-7xl.mx-auto.px-4 .flex.items-center.justify-between > nav.hidden.lg\:flex {
    display: none !important;
  }

  h1.font-archivo.text-5xl,
  h1.text-\[2rem\] {
    font-size: clamp(1.5rem, 7vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }

  .pt-24.sm\:pt-28,
  .pt-20 {
    padding-top: 5.5rem !important;
  }

  iframe {
    min-height: 200px;
  }
}

/* 언어 버튼 — 오른쪽 하단 (채널톡·모바일 메뉴 버튼보다 낮은 z-index) */
#bm-lang-switcher.bm-lang-switcher {
  position: fixed !important;
  right: 0.75rem !important;
  left: auto !important;
  bottom: 1rem !important;
  top: auto !important;
  z-index: 9000 !important;
}

@media (min-width: 640px) {
  #bm-lang-switcher.bm-lang-switcher {
    right: 1rem !important;
    bottom: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  #bm-lang-switcher.bm-lang-switcher {
    bottom: 3.5rem !important;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .bm-mobile-menu__sheet {
    animation: none;
  }
}
