/* 마이페이지(list_mypage) — GO-V 라이트 (충전·포인트 결, 1200px)
   텍스트 가독성·사이즈·가로 규격. DOM/기능 유지. */

.idx-page.idx-page--logged-in .element-mypage,
.idx-page.idx-page--logged-in .element-mypage.idx-em-surface {
  --purple: #2b7de9;
  --mp-blue: #2b7de9;
  --mp-blue-deep: #1e6ad1;
  --mp-amount: #1d7fd6;
  --mp-border: #d0d7de;
  --mp-line: #e8ecf0;
  --mp-head: #f0f3f7;
  --mp-surface: #ffffff;
  --mp-soft: #fafbfc;
  --mp-text: #1a1a1a;
  --mp-muted: #667085;
  --mp-subtle: #9aa3b2;
  width: 100%;
  max-width: var(--gov-content-w, 1200px);
  margin: 0 auto;
  padding: 12px var(--gov-content-pad, 12px) 28px;
  box-sizing: border-box;
  background: transparent;
}

.idx-page.idx-page--logged-in .idx-main-wrap:has(.element-mypage),
.idx-page.idx-page--logged-in .idx-main-wrap-full:has(.element-mypage) {
  width: min(var(--gov-content-w, 1200px), 100%);
  max-width: var(--gov-content-w, 1200px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-mypage .main-content-wrapper,
.idx-page.idx-page--logged-in .element-mypage .main-content {
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
}

.idx-page.idx-page--logged-in .element-mypage .home {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  gap: 0 !important;
  align-self: stretch;
}

.idx-page.idx-page--logged-in .element-mypage .board-list,
.idx-page.idx-page--logged-in .element-mypage .board-list-2 {
  gap: 0 !important;
  row-gap: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* 타이틀바 */
.idx-page.idx-page--logged-in .element-mypage .board-title {
  display: flex;
  align-items: center;
  height: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 16px !important;
  background: #3a4656 !important;
  border: 1px solid #3a4656 !important;
  border-bottom: 0 !important;
  border-radius: 6px 6px 0 0 !important;
  gap: 8px;
  overflow: hidden;
}

.idx-page.idx-page--logged-in .element-mypage .board-title img {
  display: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .board-title .text-wrapper-14 {
  color: #fff !important;
  font: 700 16px/1.2 "Noto Sans KR", Helvetica, sans-serif !important;
  letter-spacing: -0.02em;
  text-align: left;
  margin: 0;
  -webkit-line-clamp: unset;
}

/* 상단 요약 (롤링 + 유저정보) — 헤더와 붙임 */
.idx-page.idx-page--logged-in .element-mypage .div-5.idx-mypage-top-summary {
  gap: 12px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 14px 16px 16px !important;
  background: var(--mp-surface) !important;
  border: 1px solid var(--mp-border);
  border-top: 0 !important;
  border-radius: 0 0 6px 6px !important;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-mypage .container-wrapper {
  background: var(--mp-soft) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 12px !important;
}

/* 유저 월렛 — 밝은 회색 패널 (블루 과함 완화) */
.idx-page.idx-page--logged-in .element-mypage .user-info {
  background: #f0f3f7 !important;
  border: 1px solid #d0d7de !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 14px 10px 12px !important;
  gap: 8px !important;
  justify-content: flex-start;
}

.idx-page.idx-page--logged-in .element-mypage .user-info-2 {
  gap: 8px !important;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.idx-page.idx-page--logged-in .element-mypage .user-title {
  padding: 2px 6px 10px !important;
  border-radius: 0 !important;
}

/* 롤링 게이지 — 핑크 → 블루 */
.idx-page.idx-page--logged-in .element-mypage .rolling {
  background: conic-gradient(
    var(--mp-blue) 0deg,
    var(--mp-blue) var(--roll-angle),
    #e8ecf0 var(--roll-angle),
    #e8ecf0 360deg
  ) !important;
  background-color: #e8ecf0 !important;
}

.idx-page.idx-page--logged-in .element-mypage .rolling::before,
.idx-page.idx-page--logged-in .element-mypage .rolling::after {
  background: radial-gradient(circle at 50% 6px, var(--mp-blue) 0 6px, transparent 7px) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-15 {
  color: var(--mp-text) !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-16 {
  color: var(--mp-muted) !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-17 {
  color: var(--mp-text) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-18 {
  color: var(--mp-amount) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-19 {
  color: var(--mp-muted) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-20 {
  color: var(--mp-blue) !important;
}

/* 닉네임 · 쪽지 · 레벨 */
.idx-page.idx-page--logged-in .element-mypage .text-wrapper-21 {
  color: #1a1a1a !important;
  font: 800 16px/1.35 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-24 {
  color: #667085 !important;
  font: 500 15px/1.35 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-25 {
  color: #1d7fd6 !important;
  font: 800 15px/1.35 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .frame-wrapper {
  background: #2b7de9 !important;
  border-radius: 4px !important;
  height: auto !important;
  min-height: 20px;
  padding: 2px 7px;
  width: auto !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-22,
.idx-page.idx-page--logged-in .element-mypage .text-wrapper-23 {
  color: #fff !important;
  font: 800 12px/1.2 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .ico-profile,
.idx-page.idx-page--logged-in .element-mypage .ico-massage {
  filter: hue-rotate(-95deg) saturate(0.95) brightness(0.88);
}

/* 통계 행 */
.idx-page.idx-page--logged-in .element-mypage .user-info .div-6 {
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: 48px;
  padding: 12px 14px !important;
  box-sizing: border-box;
  box-shadow: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .user-info .group,
.idx-page.idx-page--logged-in .element-mypage .user-info .img-wrapper,
.idx-page.idx-page--logged-in .element-mypage .user-info .ico-point-wrapper,
.idx-page.idx-page--logged-in .element-mypage .user-info .ico-point-2,
.idx-page.idx-page--logged-in .element-mypage .user-info .roulette,
.idx-page.idx-page--logged-in .element-mypage .user-info .group-2 {
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
}

.idx-page.idx-page--logged-in .element-mypage .user-info .group img,
.idx-page.idx-page--logged-in .element-mypage .user-info .img-wrapper img,
.idx-page.idx-page--logged-in .element-mypage .user-info .ico-point-2 img,
.idx-page.idx-page--logged-in .element-mypage .user-info .group-2 img,
.idx-page.idx-page--logged-in .element-mypage .user-info img[src*="ico-sp-stat-won"],
.idx-page.idx-page--logged-in .element-mypage .user-info img[src*="ico-g-revol"],
.idx-page.idx-page--logged-in .element-mypage .user-info img[src*="ico-money"],
.idx-page.idx-page--logged-in .element-mypage .user-info img[src*="ico-point"],
.idx-page.idx-page--logged-in .element-mypage .user-info img[src*="ico-sp-stat-coupon"] {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: hue-rotate(-95deg) saturate(0.95) brightness(0.88);
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-26 {
  color: #222 !important;
  font: 500 14px/1.4 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-27 {
  color: var(--mp-amount) !important;
  font: 700 15px/1.4 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-28 {
  color: #333 !important;
  font: 500 14px/1.4 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .user-info .frame-8 .text-wrapper-27 {
  color: var(--mp-amount) !important;
}

/* 액션 버튼 */
.idx-page.idx-page--logged-in .element-mypage .frame-9 {
  gap: 8px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.idx-page.idx-page--logged-in .element-mypage .btn-join {
  background: #fff !important;
  border: 1px solid #cfd4dc !important;
  border-radius: 4px !important;
  max-width: 100%;
  height: 40px !important;
  box-shadow: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .btn-join:hover {
  border-color: #03a4ed !important;
}

.idx-page.idx-page--logged-in .element-mypage .btn-join .text-wrapper-29 {
  color: #333 !important;
  font: 600 14px/1.3 "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .telegram {
  background: var(--mp-blue) !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

/* AI 베팅 코치 */
.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-section {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  gap: 0 !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-section > .board-title {
  border-radius: 6px 6px 0 0 !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-period {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-list {
  gap: 10px !important;
  padding: 14px 16px 16px !important;
  background: var(--mp-surface) !important;
  border: 1px solid var(--mp-border);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .element-mypage .insight-card {
  background-color: var(--mp-soft) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 8px !important;
  padding: 16px 18px !important;
  box-shadow: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .union-wrapper {
  background-color: #eef3f9 !important;
  border-radius: 16px !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-list .idx-mypage-coach-icon-wrap--sports {
  background-color: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  box-shadow: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-list .idx-mypage-coach-icon-wrap--minigame {
  background-color: rgba(234, 179, 8, 0.12) !important;
  border-color: rgba(234, 179, 8, 0.35) !important;
  box-shadow: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-list .idx-mypage-coach-icon-wrap--casino {
  background-color: rgba(43, 125, 233, 0.12) !important;
  border-color: rgba(43, 125, 233, 0.35) !important;
  box-shadow: none !important;
}

.idx-page.idx-page--logged-in .element-mypage .idx-mypage-coach-list .idx-mypage-coach-icon-wrap--casino .idx-mypage-coach-icon {
  filter: brightness(0) saturate(100%) invert(42%) sepia(78%) saturate(1200%) hue-rotate(192deg)
    brightness(95%) contrast(92%) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-30 {
  color: var(--mp-muted) !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-31 {
  color: var(--mp-text) !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-32 {
  color: var(--mp-blue) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-33 {
  color: var(--mp-muted) !important;
}

.idx-page.idx-page--logged-in .element-mypage .text-wrapper-34 {
  color: #059669 !important;
}

/* 비밀번호 / 개인정보 팝업 — 라이트 · body 최상위 */
.idx-mypage-pass-dim {
  z-index: 100040 !important;
}

.idx-mypage-pass-popup,
.idx-mypage-profile-popup {
  z-index: 100050 !important;
  background-color: #fff !important;
  border: 1px solid var(--mp-border, #d0d7de) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18) !important;
}

.idx-mypage-pass-popup__logo,
.idx-mypage-profile-popup__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.idx-mypage-pass-popup__close-row,
.idx-mypage-profile-popup__close-row {
  background: #fff !important;
}

.idx-mypage-pass-popup__close,
.idx-mypage-profile-popup__close {
  background: #f0f3f7 !important;
  color: #1a1a1a !important;
  border-radius: 6px !important;
}

.idx-mypage-pass-popup__title,
.idx-mypage-profile-popup__title {
  color: #1a1a1a !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-mypage-pass-popup__label,
.idx-mypage-profile-popup__label,
.idx-mypage-profile-popup__label-row {
  color: #667085 !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-mypage-pass-popup__input-frame,
.idx-mypage-profile-popup__control {
  background-color: #fafbfc !important;
  border: 1px solid #d0d7de !important;
  border-radius: 6px !important;
}

.idx-mypage-pass-popup__input,
.idx-mypage-profile-popup__input,
.idx-mypage-profile-popup__select {
  color: #1a1a1a !important;
}

.idx-mypage-pass-popup__input::placeholder,
.idx-mypage-profile-popup__input::placeholder {
  color: #9aa3b2 !important;
}

.idx-mypage-pass-popup__confirm,
.idx-mypage-profile-popup__confirm {
  background: #2b7de9 !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  font-family: "Noto Sans KR", Helvetica, sans-serif !important;
}

.idx-mypage-profile-popup__subbtn {
  background: #2b7de9 !important;
  border: 1px solid #1e6ad1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* 추천현황 — 상단 카드와 간격 (상세 룩은 list_refer.css GO-V) */
.idx-page.idx-page--logged-in .element-mypage .list_refer.idx-mypage-refer {
  margin-top: 16px !important;
  width: 100%;
}

.idx-page.idx-page--logged-in .element-mypage .list_refer.idx-mypage-refer .board_list {
  min-width: 0 !important;
}

@media (max-width: 1024px) {
  .idx-page.idx-page--logged-in .element-mypage {
    padding: 8px 10px 24px;
  }

  .idx-page.idx-page--logged-in .element-mypage .div-5.idx-mypage-top-summary {
    flex-direction: column;
  }

  .idx-page.idx-page--logged-in .element-mypage .container-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .idx-page.idx-page--logged-in .element-mypage .btn-join {
    width: 100%;
    max-width: 100%;
  }
}
