: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: #8b9bb8;
  --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: 1px;
  --my-page-pad-y: 1px;
  --my-page-pad-bottom: 1px;
  --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-color: var(--my-bg-base);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255, 200, 60, 0.22) 0%, var(--my-bg-fade) 55%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(232, 160, 20, 0.55) 0%, var(--my-bg-fade) 50%),
    radial-gradient(circle at 0% 50%, rgba(180, 120, 20, 0.12) 0%, var(--my-bg-fade) 40%),
    radial-gradient(circle at 100% 40%, rgba(200, 140, 30, 0.1) 0%, var(--my-bg-fade) 38%),
    linear-gradient(165deg, var(--my-bg-mid) 0%, #000000 35%, var(--my-bg-deep) 65%, var(--my-bg-base) 100%);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.my-app-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 215, 80, 0.04) 1px, rgba(0, 0, 0, 0) 1px),
    linear-gradient(90deg, rgba(255, 215, 80, 0.04) 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 20%, rgba(0, 0, 0, 0) 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 20%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  opacity: 0.7;
}
.my-app-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    105deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 80px,
    rgba(255, 210, 80, 0.025) 80px,
    rgba(255, 210, 80, 0.06) 81px
  );
  opacity: 0.85;
}
.my-app-bg-orb {
  position: absolute;
  border-radius: 50%;
  -webkit-filter: blur(60px);
  filter: blur(60px);
  animation: my-app-float 12s ease-in-out infinite;
  will-change: transform, opacity;
}
.my-app-bg-orb--1 {
  width: 320px;
  height: 320px;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 220, 100, 0.45) 0%, rgba(232, 185, 35, 0.15) 45%, var(--my-bg-fade) 70%);
}
.my-app-bg-orb--2 {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: -5%;
  background: radial-gradient(circle, rgba(255, 180, 40, 0.35) 0%, var(--my-bg-fade) 70%);
  animation-delay: -4s;
  animation-duration: 14s;
}
.my-app-bg-orb--3 {
  width: 240px;
  height: 240px;
  bottom: 15%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 200, 70, 0.3) 0%, var(--my-bg-fade) 70%);
  animation-delay: -7s;
  animation-duration: 16s;
}
.my-app-bg-shimmer {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 200, 60, 0.16) 0%, var(--my-bg-fade) 70%);
  opacity: 0.9;
}
@supports (background: conic-gradient(from 0deg, red, blue)) {
  .my-app-bg-shimmer {
    background: conic-gradient(
      from 200deg at 50% 100%,
      rgba(0, 0, 0, 0) 0deg,
      rgba(255, 220, 120, 0.08) 40deg,
      rgba(255, 200, 60, 0.18) 90deg,
      rgba(255, 220, 120, 0.08) 140deg,
      rgba(0, 0, 0, 0) 200deg
    );
    animation: my-app-shimmer 18s linear infinite;
  }
}
.my-app-bg-rays {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55vh;
  background:
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(255, 210, 60, 0.35) 0%, var(--my-bg-fade) 55%),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 36px,
      rgba(255, 215, 80, 0.04) 36px,
      rgba(255, 215, 80, 0.1) 37px
    );
  -webkit-mask-image: linear-gradient(to top, #000 30%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, #000 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
@keyframes my-app-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  33% { transform: translate(12px, -18px) scale(1.05); opacity: 1; }
  66% { transform: translate(-10px, 10px) scale(0.98); opacity: 0.9; }
}
.my-app-bg-orb--1 {
  animation-name: my-app-float-center;
}
@keyframes my-app-float-center {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(15px) scale(1.08); }
}
@keyframes my-app-shimmer {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .my-app-bg-orb,
  .my-app-bg-shimmer { animation: 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%;
  max-width: var(--my-content-max);
  margin: 0 auto;
  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;
  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;
  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 {
  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 + .my-btn { margin-top: 10px; }

.my-form-group { margin-bottom: 14px; }
.my-form-group label {
  display: block;
  font-size: 12px;
  color: var(--my-muted);
  margin-bottom: 6px;
}
.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-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: 8px;
  margin-bottom: 16px;
}
.my-deposit-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: var(--my-surface);
  border: 1px solid var(--my-border);
  color: var(--my-muted);
  cursor: pointer;
  font-weight: 600;
}
.my-deposit-tab.is-active {
  border-color: var(--my-accent2);
  color: var(--my-accent2);
}
.my-deposit-panel { display: none; }
.my-deposit-panel.is-active { display: block; }

.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: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.my-stat-box {
  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-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: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--my-content-max);
  height: calc(var(--my-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: rgba(15, 12, 8, 0.96);
  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 {
  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-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-wallet-stats { grid-template-columns: 1fr; }
  .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;
    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-nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    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 {
    max-width: none;
  }

  .my-wallet-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .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; }
}

/* ===== 대형 PC (1280px+) — 2열 레이아웃 ===== */
@media (min-width: 1280px) {
  .my-main:has(> .my-user-card) {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 12px 36px;
    align-items: start;
  }

  .my-main:has(> .my-user-card) > .my-user-card {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--my-header-h) + 16px);
    margin-bottom: 0;
  }

  .my-main:has(> .my-user-card) > *:not(.my-user-card) {
    grid-column: 2;
  }

  .my-main.my-tree-main,
  .my-main:not(:has(> .my-user-card)) {
    display: block;
  }

  .my-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .my-wallet-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 1px;
  padding-bottom: var(--my-page-pad-bottom);
}

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: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px 0 var(--my-page-pad-bottom);
}

body.my-tree-page .my-org-legend,
body.my-tree-page .my-org-bar {
  flex-shrink: 0;
  margin-bottom: 0;
}

body.my-tree-page #oc-wrap {
  flex: 1 1 auto;
  min-height: 180px;
  height: auto;
  background-color: #4b4d52;
  background-image: none;
  color-scheme: dark;
}

/* 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);
  }
}
