/* VIP UI — dual balance, gauge, level-up modal, chat LV badges */

.lobby-header .balance--dual {
  height: auto;
  min-height: 28px;
  padding-top: 2px;
  padding-bottom: 2px;
  border-radius: 16px;
}

.lobby-header .balance__rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 8px 2px 12px;
}

.lobby-header .balance__row {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
  color: #f6d797;
}

.lobby-header .balance__row--free {
  font-size: 11px;
  color: #9ed4a8;
}

.lobby-header .balance__row--free .balance__prefix {
  color: #7ec492;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.lobby-header .profile__vip {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #c9a96e;
}

/* VIP gauge — mypage */
.vip-lv-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffd76a;
  padding: 2px 10px;
  border: 1px solid rgba(255, 215, 106, 0.35);
  border-radius: 4px;
  background: rgba(255, 215, 106, 0.08);
}

.vip-gauge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-gauge__bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 169, 110, 0.2);
  overflow: hidden;
}

.vip-gauge__fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #966720 0%, #ffd76a 55%, #fff7d6 100%);
  transition: width 0.45s ease;
}

.vip-gauge__pct {
  min-width: 38px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #d4b87a;
  text-align: right;
}

.mypage-balance-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mypage-balance-dual .mypage-cell__v--free {
  color: #6dbe83;
  font-size: 20px;
}

.mp-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  background: rgba(0, 0, 0, 0.28);
}

.mp-coupon-item__code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  color: #d4b87a;
  letter-spacing: 0.04em;
}

.mp-coupon-item__desc {
  font-size: 10px;
  color: rgba(245, 239, 224, 0.45);
  margin-top: 2px;
}

.mp-coupon-item__used {
  font-size: 9px;
  color: rgba(245, 239, 224, 0.35);
}

/* Level-up modal */
.vip-lvup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vip-lvup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vip-lvup-card {
  width: min(360px, 92vw);
  padding: 28px 24px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 106, 0.35);
  background: linear-gradient(165deg, #1a0a0c 0%, #0b0405 45%, #120608 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 215, 106, 0.12);
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vip-lvup-overlay.is-open .vip-lvup-card {
  transform: scale(1) translateY(0);
}

.vip-lvup-card__burst {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
  animation: vip-lvup-pulse 1.2s ease-in-out infinite;
}

@keyframes vip-lvup-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.15); }
}

.vip-lvup-card__title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #ffd76a;
  margin: 0 0 8px;
}

.vip-lvup-card__lv {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff7d6;
  margin: 0 0 6px;
  text-shadow: 0 0 20px rgba(255, 215, 106, 0.45);
}

.vip-lvup-card__bonus {
  font-size: 13px;
  color: rgba(245, 239, 224, 0.72);
  margin: 0 0 18px;
  line-height: 1.45;
}

.vip-lvup-card__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.vip-lvup-card__actions .btn-ornate {
  min-width: 120px;
}

/* Chat LV badge */
.chat-lv {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5efe0;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #5a5a5a;
}

.chat-lv.lv-0 { border-color: #4a4a4a; color: rgba(245, 239, 224, 0.5); }
.chat-lv.lv-1, .chat-lv.lv-2 { border-color: #8a8a8a; }
.chat-lv.lv-3, .chat-lv.lv-4 { border-color: #c9a96e; color: #ffd76a; }
.chat-lv.lv-5, .chat-lv.lv-6 { border-color: #6dbe83; color: #9ee8b0; }
.chat-lv.lv-7, .chat-lv.lv-8 { border-color: #7ab4ff; color: #b8d4ff; }
.chat-lv.lv-9, .chat-lv.lv-10 { border-color: #ffd76a; color: #fff7d6; box-shadow: 0 0 8px rgba(255, 215, 106, 0.25); }

.chat-msg .chat-lv { margin-right: 6px; vertical-align: middle; }

.wallet-balance-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.wallet-balance-dual__cell {
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 169, 110, 0.12);
}

.wallet-balance-dual__k {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(201, 169, 110, 0.5);
}

.wallet-balance-dual__v {
  margin-top: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  color: #d4b87a;
}

.wallet-balance-dual__v--free {
  color: #6dbe83;
}
