:root {
  --my-bg: #030303;
  --my-surface: rgba(20, 16, 10, 0.82);
  --my-surface2: rgba(26, 20, 12, 0.86);
  --my-border: rgba(245, 213, 71, 0.14);
  --my-text: #e8edf7;
  --my-muted: #b0bfd8;
  --my-accent: #e8b923;
  --my-accent2: #00d4aa;
  --my-gold: #f0b429;
  --my-danger: #ff5c6c;
  --my-radius: 12px;
  --my-nav-h: 64px;
  --my-header-h: 110px;
  --my-glass-blur: blur(10px);
  --my-bg-base: #050505;
  --my-bg-mid: #0a0604;
  --my-bg-deep: #0d0805;
  --my-bg-fade: rgba(5, 5, 5, 0);
  --my-content-max: 480px;
  --my-page-pad: 16px;
  --my-page-pad-y: 12px;
  --my-page-pad-bottom: 16px;
  --my-sidebar-w: 0px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  background-color: var(--my-bg);
}
html, body { margin: 0; padding: 0; }
body.my-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background-color: var(--my-bg);
  background: var(--my-bg);
  color: var(--my-text);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px) + var(--my-page-pad-bottom));
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}
body.my-app.no-nav {
  padding-bottom: max(var(--my-page-pad-bottom), env(safe-area-inset-bottom, 0px));
}

/* ===== PLUBIT 프리미엄 골드 배경 (전 페이지 공통 · 크로스브라우저) ===== */
.my-app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: url('../img/background.jpg') top center / cover no-repeat;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.my-app-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/background2.png') bottom center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 55%, rgba(0,0,0,0) 85%);
  mask-image: linear-gradient(to top, #000 55%, rgba(0,0,0,0) 85%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* 웹(PC) - 하단 40% 영역에만 background2 블렌드 */
@media (min-width: 1024px) {
  .my-app-bg::before {
    -webkit-mask-image: linear-gradient(to top, #000 30%, rgba(0,0,0,0) 55%);
    mask-image: linear-gradient(to top, #000 30%, rgba(0,0,0,0) 55%);
  }
}
.my-app-bg::after { display: none; }
.my-app-bg-orb,
.my-app-bg-shimmer,
.my-app-bg-rays { display: none; }

.my-header-lang {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.my-lang-select--compact {
  min-width: 58px;
  width: auto;
  height: 28px;
  padding: 0 22px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--my-muted);
  background: rgba(15, 12, 8, 0.85);
  border: 1px solid rgba(245, 213, 71, 0.2);
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23c9a227' d='M0 0l4 5 4-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  backdrop-filter: var(--my-glass-blur);
  -webkit-backdrop-filter: var(--my-glass-blur);
}
.my-lang-select--compact option {
  background: #121a2b;
  color: var(--my-text);
  font-size: 12px;
}

.my-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #0f0c08;
  background-image: linear-gradient(180deg, rgba(15, 12, 8, 0.96) 0%, rgba(10, 8, 5, 0.94) 100%);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border-bottom: 1px solid var(--my-border);
}
.my-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-y) max(var(--my-page-pad), env(safe-area-inset-left, 0px));
}
.my-logo {
  font-weight: 700;
  font-size: clamp(13px, 3.5vw, 15px);
  letter-spacing: 0.04em;
  color: var(--my-accent2);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  flex-shrink: 0;
}
.my-btn-text {
  color: var(--my-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.my-coin-tabs {
  display: flex;
  gap: 8px;
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: 0 var(--my-page-pad) var(--my-page-pad-y);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.my-coin-tabs::-webkit-scrollbar { display: none; }
.my-coin-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--my-surface);
  color: var(--my-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.my-coin-tab.is-active {
  background: var(--my-accent);
  color: #fff;
}
.my-rate-bar {
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: 0 var(--my-page-pad) var(--my-page-pad-y);
  font-size: 11px;
  color: var(--my-muted);
}

.my-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--my-content-max);
  margin: 0 auto;
  padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-bottom);
}

.my-user-card {
  background-color: rgba(20, 16, 10, 0.92);
  background: var(--my-surface);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.my-user-card-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--my-surface2);
}
.my-badge {
  background: var(--my-gold);
  color: #1a1200;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.my-promo-img {
  font-size: 12px;
  color: var(--my-muted);
}
.my-user-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px;
  text-align: center;
}
.my-user-rank strong { color: var(--my-gold); font-size: 18px; display: block; }
.my-rank-label, .my-plb-label { font-size: 11px; color: var(--my-muted); display: block; }
.my-user-plb strong { color: var(--my-accent2); font-size: 14px; display: block; }

.my-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.my-mini-table th, .my-mini-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--my-border);
  text-align: left;
}
.my-mini-table th { color: var(--my-muted); font-weight: 500; }

.my-section-title {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  margin: 0 0 12px;
}
.my-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.my-product-card {
  display: block;
  background-color: rgba(20, 16, 10, 0.92);
  background: var(--my-surface);
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.my-product-card:hover, .my-product-card.is-selected {
  border-color: var(--my-accent);
}
.my-product-card strong { font-size: 18px; display: block; margin-bottom: 4px; }
.my-product-card span { font-size: 13px; color: var(--my-accent2); }

.my-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--my-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.my-btn-primary { background: var(--my-accent); color: #fff; }
.my-btn-secondary { background: var(--my-surface2); color: var(--my-text); border: 1px solid var(--my-border); }
.my-btn-outline { background: transparent; color: var(--my-muted); border: 1px solid var(--my-border); }
.my-btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.my-btn + .my-btn { margin-top: 10px; }

.my-form-group { margin-bottom: 14px; }
.my-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--my-text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.my-input, .my-select, .my-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--my-border);
  background: var(--my-surface);
  color: var(--my-text);
  font-size: 15px;
}
.my-textarea { min-height: 120px; resize: vertical; }
.my-input::placeholder, .my-select::placeholder, .my-textarea::placeholder {
  color: var(--my-muted);
  opacity: 1;
}
#otp_code::placeholder {
  color: #888;
  font-weight: 700;
}

.my-plb-summary {
  background: var(--my-surface2);
  border-radius: var(--my-radius);
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}
.my-plb-summary .amount { font-size: 22px; font-weight: 700; color: var(--my-accent2); }
.my-plb-summary .sub { font-size: 13px; color: var(--my-muted); margin-top: 4px; }

.my-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.my-tabs::-webkit-scrollbar { display: none; }
.my-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--my-surface);
  color: var(--my-muted);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--my-border);
}
.my-tab.is-active {
  background: var(--my-accent);
  color: #fff;
  border-color: var(--my-accent);
}

.my-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--my-surface);
  border-radius: var(--my-radius);
  overflow: hidden;
}
.my-data-table th, .my-data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--my-border);
  text-align: left;
}
.my-data-table th { background: var(--my-surface2); color: var(--my-muted); font-weight: 500; }
.my-empty { text-align: center; padding: 40px 16px; color: var(--my-muted); }

.my-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
  border-radius: var(--my-radius);
}
.my-table-wrap--mini { margin-bottom: 0; }
.my-data-table { min-width: 280px; }
.my-mini-table { min-width: 260px; }

.my-deposit-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(8, 6, 3, 0.7);
  border: 1px solid var(--my-border);
  border-radius: 12px;
}
.my-deposit-tab {
  flex: 1;
  padding: 11px 12px;
  text-align: center;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--my-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.my-deposit-tab.is-active {
  background: rgba(0, 212, 170, 0.13);
  border-color: rgba(0, 212, 170, 0.35);
  color: var(--my-accent2);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.1) inset;
}
.my-deposit-panel { display: none; }
.my-deposit-panel.is-active { display: block; }

/* staking period group */
.my-period-group {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.my-period-btn {
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.my-period-btn input[type="radio"] {
  display: none;
}
.my-period-btn span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 56px;
  background: rgba(8, 6, 3, 0.7);
  color: #6b6050;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--my-border);
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.my-period-rate {
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  opacity: 0.75;
}
.my-period-btn:has(input[type="radio"]:checked) .my-period-rate {
  color: #1a1200;
  opacity: 0.7;
}
.my-period-btn:has(input[type="radio"]:checked) span {
  background: var(--my-gold);
  color: #1a1200;
  border-color: var(--my-gold);
}

/* staking deposit */
.my-input-lg {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 16px;
  background: #ffffff; /* 입금 금액(USDT) 입력창 바탕 흰색으로 변경 (2026-07-02) */
  color: #1a1a1a; /* 흰 배경에서 글자가 보이도록 어두운 글자색 지정 */
  border-color: rgba(245, 213, 71, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.my-input-lg::placeholder {
  color: #888; /* 흰 배경에서 안내문구가 보이도록 색상 조정 */
}
/* 특정 입력창만 흰 배경으로 바꿀 때 쓰는 공용 클래스 (2026-07-02, wallet.php 출금 수량 등) */
.my-input-white {
  background: #ffffff;
  color: #1a1a1a;
}
.my-input-white::placeholder {
  color: #888;
}
.my-input-lg:focus {
  outline: none;
  border-color: rgba(245, 213, 71, 0.45);
  box-shadow: 0 0 0 3px rgba(245, 213, 71, 0.07);
}
.my-input-hint {
  font-size: 12px;
  color: var(--my-muted);
  margin-top: 6px;
  margin-bottom: 10px;
}
.my-staking-available {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.my-staking-available-label {
  font-size: 12px;
  color: var(--my-muted);
}
.my-staking-available-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--my-gold);
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(240, 180, 41, 0.4);
}
.my-input-readonly {
  color: var(--my-accent);
  background: rgba(12, 10, 6, 0.8);
  border-color: rgba(245, 213, 71, 0.1);
  font-weight: 600;
  cursor: default;
}
.my-input-editable {
  background: #ffffff;
  color: #1a1a1a;
  border-color: var(--my-accent);
}
.my-input-editable::placeholder {
  color: #888;
}
.my-input-addr {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--my-muted);
  background: rgba(8, 6, 3, 0.65);
  word-break: break-all;
}
.my-copy-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.my-copy-field .my-input { flex: 1; min-width: 0; }
.my-copy-btn {
  flex-shrink: 0;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 170, 0.5);
  background: rgba(0, 212, 170, 0.06);
  color: var(--my-accent2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.my-copy-btn:hover {
  background: rgba(0, 212, 170, 0.14);
  border-color: var(--my-accent2);
}
.my-copy-btn:active {
  background: rgba(0, 212, 170, 0.22);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.18);
}
.my-plb-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(10, 8, 5, 0.75);
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.my-plb-preview::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--my-accent2), transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
}
.my-plb-preview--accent {
  border-color: rgba(0, 212, 170, 0.22);
  background: rgba(0, 212, 170, 0.04);
}
.my-plb-preview--accent::before {
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--my-gold), transparent);
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.55);
}
.my-plb-label { font-size: 12px; color: var(--my-muted); }
.my-plb-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--my-accent2);
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(0, 212, 170, 0.28);
}
.my-plb-amount--pink {
  color: var(--my-gold);
  text-shadow: 0 0 18px rgba(240, 180, 41, 0.28);
}
.my-plb-note { font-size: 12px; color: var(--my-muted); margin-top: 4px; }

/* ── 스테이킹 보너스 박스 ── */
.staking-bonus-wrap { position: relative; margin-bottom: 16px; }
.staking-plus-btn {
  width: 38px; height: 38px; border-radius: 50%;
  margin: 0 auto -19px;
  position: relative; z-index: 5;
  background: radial-gradient(circle at 50% 40%, #1a1a1a, #0b0b0b) padding-box,
              linear-gradient(180deg, #FBE9AE, #C68F2C) border-box;
  border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(214,164,64,.4), 0 4px 10px rgba(0,0,0,.6);
}
.staking-plus-btn::before,
.staking-plus-btn::after {
  content: ""; position: absolute;
  background: linear-gradient(180deg, #FBE9AE, #E6B953); border-radius: 2px;
}
.staking-plus-btn::before { width: 14px; height: 2px; }
.staking-plus-btn::after  { width: 2px; height: 14px; }
.staking-card {
  position: relative; border-radius: 18px;
  padding: 20px 80px 20px 108px;
  border: 1.4px solid transparent; overflow: visible;
  text-align: center;
}
.staking-card--gold {
  background: linear-gradient(#0c0c0d, #0c0c0d) padding-box,
              linear-gradient(180deg, rgba(238,198,100,.8), rgba(150,110,40,.3)) border-box;
  box-shadow: 0 0 24px rgba(214,164,64,.2), 0 8px 28px rgba(0,0,0,.5);
  margin-top: 6px;
}
.staking-card--teal {
  background: linear-gradient(#0c0c0d, #0c0c0d) padding-box,
              linear-gradient(180deg, rgba(70,224,196,.7), rgba(30,120,105,.25)) border-box;
  box-shadow: 0 0 24px rgba(52,214,187,.18), 0 8px 28px rgba(0,0,0,.5);
  margin-top: 16px;
}
.staking-card-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: rgba(10,8,5,.6);
}
.staking-card-icon img { width: 49px; object-fit: contain; }
.staking-card--gold .staking-card-icon {
  border: 1.5px solid rgba(238,198,100,.6);
  box-shadow: 0 0 10px rgba(214,164,64,.3);
}
.staking-card-badge {
  position: absolute; top: -18px; right: -10px;
  width: 86px; height: 86px; z-index: 4;
}
.staking-card-badge img { width: 86px; height: 86px; object-fit: contain; }
.staking-card-label { font-size: 14px; font-weight: 600; letter-spacing: .3px; margin-bottom: 6px; }
.staking-card-label--gold { color: #CBCBD0; }
.staking-card-label--teal { color: #52E3CB; }
.staking-card-value {
  font-family: 'Inter', sans-serif;
  font-size: 30px; font-weight: 800; letter-spacing: .5px; line-height: 1.1;
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 480px) {
  .staking-card-value { font-size: 25px; }
}
.staking-card-value--gold { background-image: linear-gradient(180deg, #FBE9AE 0%, #E6B953 55%, #C68F2C 100%); }
.staking-card-value--teal { background-image: linear-gradient(180deg, #8CF6E1 0%, #37D9BD 55%, #24B49B 100%); }

.my-qr-group label { margin-bottom: 8px; }
.my-qr-wrap {
  background: #fff;
  display: inline-flex;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(245, 213, 71, 0.15), 0 6px 20px rgba(0, 0, 0, 0.35);
}
.my-qr-img { display: block; width: 140px; height: 140px; }

.my-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.my-modal-overlay.is-open { display: flex; }
.my-modal {
  background: var(--my-surface);
  border-radius: var(--my-radius);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--my-border);
}
.my-modal h3 { margin: 0 0 12px; font-size: 17px; }
.my-modal p { color: var(--my-muted); font-size: 14px; margin: 0 0 20px; }
.my-modal-actions { display: flex; gap: 10px; }
.my-modal-actions .my-btn { flex: 1; margin: 0; }

.my-terms-box {
  height: 220px;
  overflow-y: auto;
  background: var(--my-surface);
  border: 1px solid var(--my-border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--my-muted);
  margin-bottom: 12px;
}
.my-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.my-check-row input { margin-top: 3px; }
.my-check-row.is-disabled { opacity: 0.45; pointer-events: none; }

.my-wallet-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.my-stat-box {
  flex: 1;
  background: var(--my-surface);
  border: 1px solid var(--my-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.my-stat-box .label { font-size: 11px; color: var(--my-muted); }
.my-stat-box .value { font-size: 16px; font-weight: 700; margin-top: 4px; }
.my-stat-box--active {
  background: rgba(240, 180, 41, 0.35);
  border-color: rgba(240, 180, 41, 0.6);
}
.my-rate-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.my-rate-label .rate-pct { font-size: 15px; font-weight: 800; color: var(--my-accent2); line-height: 1.2; }
.my-rate-label .rate-usdt { font-size: 11px; font-weight: 600; color: var(--my-muted); margin-top: 3px; }

.my-wallet-btns {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(8, 6, 3, 0.7);
  border: 1px solid var(--my-border);
  border-radius: 12px;
}
.my-wallet-btns .my-btn {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  padding: 11px 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  color: var(--my-muted);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.my-wallet-btns .my-btn::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--my-muted);
  flex-shrink: 0;
  background: radial-gradient(circle, var(--my-accent2) 0%, var(--my-accent2) 38%, transparent 39%);
  background-size: 0% 0%;
  background-repeat: no-repeat;
  background-position: center;
  transition: border-color 0.18s, background-size 0.15s;
}
.my-wallet-btns .my-btn.is-active {
  background: rgba(0, 212, 170, 0.13);
  border-color: rgba(0, 212, 170, 0.35);
  color: var(--my-accent2);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.1) inset;
}
.my-wallet-btns .my-btn.is-active::before {
  border-color: var(--my-accent2);
  background-size: 100% 100%;
}

.my-btn-plb  {background: radial-gradient(circle, #ff9900 0%, #ff5500 75%);}
.my-btn-usdt {background: radial-gradient(circle, #007486 0%, #00423d 75%);}
.my-btn-rate {background: radial-gradient(circle, #00a33a 0%, #007e73 75%);}

.my-menu-list { list-style: none; padding: 0; margin: 0; }
.my-menu-list li { border-bottom: 1px solid var(--my-border); }
.my-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  color: var(--my-text);
  text-decoration: none;
  font-size: 15px;
}
.my-menu-list a::after { content: '›'; color: var(--my-muted); }

.my-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(0px, calc((100% - var(--my-content-max)) / 2));
  padding-right: max(0px, calc((100% - var(--my-content-max)) / 2));
  background-color: #000;
  /* background-image: linear-gradient(180deg, rgba(15, 12, 8, 0.98) 0%, rgba(10, 8, 5, 0.96) 100%); */
  -webkit-backdrop-filter: var(--my-glass-blur);
  backdrop-filter: var(--my-glass-blur);
  border-top: 1px solid var(--my-border);
  display: flex;
  z-index: 90;
}
.my-nav-item * { color: inherit; }
.my-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--my-muted);
  font-size: clamp(9px, 2.5vw, 10px);
  gap: 2px;
  min-height: 44px;
  padding: 4px 2px;
}
.my-nav-item.is-active { color: var(--my-accent2); }
.my-nav-icon { font-size: 18px; flex-shrink: 0; }
.my-nav-icon img { width: 28px; height: 28px; object-fit: contain;     
  mix-blend-mode: screen;}
.my-nav-label { line-height: 1.2; }

.my-tree-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  background: #fff;
}

.my-login-wrap {
  max-width: 400px;
  margin: 40px auto;
  padding: 24px;
}
.my-login-wrap .my-logo {
  display: block;
  text-align: center;
  font-size: 20px;
  margin-bottom: 32px;
}

/* ===== 반응형 ===== */
@media (min-width: 360px) {
  .my-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 359px) {
  .my-user-card-body {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px;
  }
  .my-user-plb { grid-column: 1 / -1; }
  .my-user-rank strong { font-size: 16px; }
  .my-deposit-tabs { flex-direction: column; }
  .my-modal-overlay { padding: 12px; }
  .my-data-table { font-size: 12px; }
  .my-data-table th,
  .my-data-table td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .my-btn,
  .my-input,
  .my-select,
  .my-textarea { font-size: 16px; }
}

@media (min-width: 481px) {
  :root {
    --my-content-max: 520px;
    --my-page-pad: 20px;
    --my-page-pad-y: 16px;
  }
}

@media (min-width: 768px) {
  :root { --my-content-max: 720px; }
  .my-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .my-header,
  .my-main,
  .my-bottom-nav {
    box-shadow: 0 0 0 1px rgba(245, 213, 71, 0.06);
  }
  .my-plb-summary .amount { font-size: 26px; }
  .my-section-title { font-size: 20px; }
}

/* ===== PC (1024px+) — 좌측 사이드바 + 넓은 콘텐츠 ===== */
@media (min-width: 1024px) {
  :root {
    --my-content-max: none;
    --my-page-pad: 10px;
    --my-page-pad-y: 10px;
    --my-sidebar-w: 220px;
    --my-nav-h: 52px;
    --my-header-h: 72px;
  }

  body.my-app:not(.no-nav) {
    padding-bottom: var(--my-page-pad-bottom);
    padding-left: var(--my-sidebar-w);
  }

  body.my-app:not(.no-nav)::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 1px 0 0 rgba(245, 213, 71, 0.08);
  }

  .my-header {
    position: sticky;
    top: 0;
    width: auto;
    max-width: none;
    margin: 0;
    border-bottom: 1px solid var(--my-border);
    box-shadow: none;
  }

  .my-header-top,
  .my-coin-tabs,
  .my-rate-bar {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .my-header-top {
    padding: 16px var(--my-page-pad) 10px var(--my-page-pad);
  }

  body.my-tree-page .my-header-top {
    padding: 1px var(--my-page-pad) 1px var(--my-page-pad);
  }

  body.my-tree-page .my-coin-tabs {
    padding: 0 var(--my-page-pad) 1px;
  }

  body.my-tree-page .my-rate-bar {
    padding: 0 var(--my-page-pad) 1px;
  }

  .my-logo { font-size: 16px; }
  .my-btn-text { font-size: 13px; }
  .my-btn-text:hover { color: var(--my-accent); }

  .my-coin-tabs { overflow: visible; }
  .my-coin-tab { max-width: 120px; }
  .my-coin-tab:hover {
    border: 1px solid rgba(245, 213, 71, 0.25);
    color: var(--my-text);
  }

  .my-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: var(--my-page-pad-y) var(--my-page-pad) var(--my-page-pad-bottom);
  }

  .my-bottom-nav {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    transform: none;
    width: var(--my-sidebar-w);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 24px 12px 20px;
    border-top: none;
    border-right: 1px solid var(--my-border);
    box-shadow: none;
  }

  /* .my-bottom-nav::before {
    content: 'PLBPLAN';
    display: block;
    padding: 8px 12px 20px;
    padding: -2px 12px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--my-accent);
    border-bottom: 1px solid var(--my-border);
    margin-bottom: 12px;
  } */


  /* .my-bottom-nav::before {
    content: "";
    display: block;

    height: 60px;

    background: url("/mall/my/img/PLBSTAKING_logo.png") center center / contain no-repeat;

    margin-bottom: 12px;
} */

  .my-nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
  }

  .my-nav-item:hover {
    background: rgba(245, 213, 71, 0.08);
    color: var(--my-text);
  }

  .my-nav-item.is-active {
    background: rgba(232, 185, 35, 0.14);
    color: var(--my-accent);
  }

  .my-nav-icon { font-size: 16px; width: 22px; text-align: center; }

  .my-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .my-product-card { transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }

  .my-btn {
    max-width: 420px;
  }

  .my-main > form .my-btn,
  .my-main > form .my-btn-primary,
  .my-main > form .my-btn-secondary,
  .my-wallet-btns .my-btn {
    max-width: none;
  }

  .my-tabs { flex-wrap: wrap; overflow: visible; }
  .my-tab:hover { color: var(--my-text); border-color: rgba(245, 213, 71, 0.35); }

  .my-menu-list a {
    padding: 18px 12px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .my-menu-list a:hover { background: rgba(245, 213, 71, 0.06); }
  .my-menu-list li { border-bottom: none; margin-bottom: 4px; }

  .my-data-table { font-size: 14px; }
  .my-data-table th,
  .my-data-table td { padding: 12px 14px; }

  .my-modal { max-width: 420px; }
}

@media (min-width: 1440px) {
  :root {
    --my-sidebar-w: 240px;
  }

  .my-bottom-nav { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 1024px) {
  body.my-app.no-nav::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body.my-app { padding-bottom: calc(var(--my-nav-h) + 8px); }
  .my-login-main { padding-top: 12px; padding-bottom: 24px; }
  .my-login-brand { margin: 8px 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .my-product-card,
  .my-btn,
  .my-login-submit,
  .my-login-signup-btn { transition: none; }
}

/* ===== 조직도 — 하단 1px, 차트 영역 자동 확장 ===== */
body.my-tree-page.my-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

body.my-tree-page.my-app:not(.no-nav) {
  padding-bottom: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px) + var(--my-page-pad-bottom));
}

@media (min-width: 1024px) {
  body.my-tree-page.my-app:not(.no-nav) {
    padding-bottom: var(--my-page-pad-bottom);
  }
}

body.my-tree-page .my-header {
  flex-shrink: 0;
}

body.my-tree-page .my-header-top {
  padding-top: 1px;
  padding-bottom: 1px;
}

body.my-tree-page .my-coin-tabs {
  padding-top: 0;
  padding-bottom: 1px;
}

body.my-tree-page .my-rate-bar {
  padding-bottom: 1px;
}

body.my-tree-page .my-main.my-tree-main {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-top: 1px;
  padding-bottom: 0;
  gap: 10px;
}

body.my-tree-page .my-main.my-tree-main > .my-section-title {
  flex-shrink: 0;
  margin: 0 0 1px;
}

body.my-tree-page .my-main.my-tree-main > .my-org-tabs,
body.my-tree-page .my-main.my-tree-main > .my-org-back-wrap {
  flex-shrink: 0;
}

body.my-tree-page .my-org-tabs {
  margin-bottom: 1px;
}

body.my-tree-page .my-org-back-wrap {
  margin: 0 0 1px;
}

body.my-tree-page .my-org-page {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px 0 0;
}

body.my-tree-page .my-org-legend,
body.my-tree-page .my-org-bar {
  flex-shrink: 0;
  margin-bottom: 5px;
}

body.my-tree-page #oc-wrap {
  flex: 0 0 auto;
  min-height: 180px;
  height: auto;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: none;
  color-scheme: dark;
}

/* gold text */
.text-gold { color: var(--my-gold); }

/* backdrop-filter 미지원 브라우저 — 불투명 배경 폴백 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .my-header {
    background: linear-gradient(180deg, #0f0c08 0%, #0a0805 100%);
  }
  .my-bottom-nav {
    background: linear-gradient(180deg, #0f0c08 0%, #0a0805 100%);
  }
  .my-user-card,
  .my-product-card {
    background: rgba(20, 16, 10, 0.98);
  }
  .my-lang-select--compact {
    background-color: rgba(15, 12, 8, 0.98);
  }
}

.my-pw-field {
  position: relative;
}
.my-pw-field .my-input {
  padding-right: 44px;
}
.my-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
