/* ==========================================
   RQMM WEBMALL - Design System & Styles
   Reference: rqmm.gnjoy.com/PreRegister
   ========================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors — Post-Apocalypse RPG: Red / Black / White */
  --bg-body: #030303;
  --bg-section: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-card-hover: #161616;
  --bg-input: #121212;
  --gnb-height: 80px;
  --max-width: 1920px;
  --bg-header: rgba(0, 0, 0, 0.9);
  --bg-sidebar: #0d0d0d;

  --color-primary: #8b0000;
  --color-primary-hover: #a10000;
  --color-primary-dark: #5e0000;
  --color-accent: #8b0000;
  --color-accent-glow: rgba(139, 0, 0, 0.5);
  --color-success: #e8e8e8;

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-highlight: #ffffff;

  --border-default: #1a1a1a;
  --border-focus: #8b0000;
  --border-card: #1f1f1f;

  /* Typography */
  --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing & Sizing */
  --max-width: 1920px;
  --gnb-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 1px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.popup-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hidden {
  display: none !important;
}


/* ================================================================================================== */
/* pc header */
.pc-header-wrap .header {
  background-color: rgba(0, 0, 0, 0.9);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 200;
}

.pc-header-wrap .header_inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  max-width: 1780px;
  height: 100%;
  margin: 0 auto;
  padding: 0 15px;
  gap: 25px;
}

.pc-header-wrap .header_l {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.pc-header-wrap .header_logo_wrap {
  width: 100%;
  max-width: 66px;
  padding: 10px 0;
}

.pc-header-wrap .header .nav {
  width: 100%;
  max-width: 87%;
  height: 100%;
}

.pc-header-wrap .header .nav_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100%;
}

.pc-header-wrap .header .nav_list .nav_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 150px;
  cursor: pointer;
  position: relative;
}

.pc-header-wrap .header .nav_list .nav_content .link-down span {
  position: relative;
}

.pc-header-wrap .header .nav_list .nav_content .link-down span::after {
  content: "";
  display: block;
  width: 8px;
  height: 7px;
  background: url(../images/header/pc/i-header-toggle.webp) no-repeat 50% 50%;
  position: absolute;
  right: -19px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.pc-header-wrap .header .link-out span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-header-wrap .header .link-out span::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background: url(../images/header/pc/i-header-outlink.webp) no-repeat 50% 50%;
}

.pc-header-wrap .header .nav_list .nav_content a,
.pc-header-wrap .header .nav_list .nav_content button {
  color: #cccccc;
  font-weight: 600;
  font-size: 16px;
  /* font-size: 18px 런칭 사이트 css */
  text-align: center;
  width: 100%;
  padding: 20px 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
}

.pc-header-wrap .header .nav_list .nav_content:hover>a,
.pc-header-wrap .header .nav_list .nav_content:hover button {
  color: #FFF;
  text-shadow: 0 0 10px rgba(255, 71, 71, 0.5), 0 0 20px rgba(255, 71, 71, 0.5);
}

.pc-header-wrap .header .nav_list .nav_content:hover::after {
  content: "";
  display: block;
  background-color: #c60404;
  width: 100%;
  max-width: 46px;
  height: 3px;
  position: absolute;
  left: 50%;
  bottom: 0;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.pc-header-wrap .header .nav_list .nav_content:hover>.sub_nav_list {
  display: block;
}

.pc-header-wrap .header .nav .sub_nav_list {
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 100%;
  width: 100%;
  min-width: 160px;
  /* min-width: 180px; 런칭 사이트 css */
  padding: 5px 15px;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content {
  display: block;
  text-align: center;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content:last-child {
  margin-bottom: 0;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content:last-child a {
  border-bottom: none;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 5px;
  font-family: "NamooGothicR", sans-serif;
  font-size: 16px;
  /* font-size: 18px; 런칭 사이트 css */
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.5;
  position: relative;
  border-bottom: 1px solid #333;
  padding: 10px 0;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content a span {
  width: 100%;
  text-align: left;
  position: relative;
  padding-left: 22px;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content a span::before {
  content: "";
  display: block;
  width: 18px;
  height: 17px;
  background: url(../images/header/pc/header-i-active.webp) no-repeat;
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content a:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 71, 71, 0.5), 0 0 20px rgba(255, 71, 71, 0.5);
  /* 크기 확장 */
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content a:hover::after,
.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content a:hover::before {
  opacity: 1;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content.active a {
  opacity: 1;
}

.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content.active a::before,
.pc-header-wrap .header .nav .sub_nav_list .sub_nav_content.active a::after {
  opacity: 1;
}

.pc-header-wrap .header_r {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  position: relative;
  padding: 0;
}

.pc-header-wrap .header_sns_wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.pc-header-wrap .header_sns_wrap a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pc-header-wrap .header_sns_wrap .lounge-link {
  width: 47px;
  height: 47px;
  border: 1px solid #6c6c6c;
  border-radius: 50%;
  margin-left: 7px;
}

.pc-header-wrap .header_sns_wrap .lounge-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.pc-header-wrap .header_store_wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
}

.mo-header-wrap {
  display: none;
  position: fixed;
  z-index: 901;
}

.mo-header-wrap .header {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 5px 15px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 200;
}

.mo-header-wrap .header .mo-header-logo {
  display: block;
  max-width: 50px;
}

.mo-header-wrap .header .nav {
  z-index: 100;
  position: fixed;
  top: 0;
  right: -100%;
  -webkit-transition: 300ms right;
  transition: 300ms right;
  width: 100%;
}

.mo-header-wrap .header .nav.active {
  left: 0;
}

.mo-header-wrap .header .nav__toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 200;
  max-width: 25px;
  width: 30%;
  aspect-ratio: 1/1;
  background: url(../images/header/mobile/nav-open.png) no-repeat;
  background-position: 50% 50%;
  background-size: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: 300ms all;
  transition: 300ms all;
}

.mo-header-wrap .header .nav__toggle.on {
  background-color: transparent;
  background-image: url(../images/header/mobile/nav-close.png);
}

.mo-header-wrap .header .nav .logo {
  display: block;
  max-width: 45%;
  margin: 0 auto;
}

.mo-header-wrap .header .nav__wrap {
  background: url(../images/header/mobile/mo-nav-bg.png);
  padding: 0 20px 25px;
  text-align: center;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.mo-header-wrap .header .nav__wrap::-webkit-scrollbar {
  width: 2px;
}

.mo-header-wrap .header .nav__wrap::-webkit-scrollbar-track {
  background-color: transparent;
}

.mo-header-wrap .header .nav__wrap::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.3);
}

.mo-header-wrap .header .nav__wrap::-webkit-scrollbar-button {
  width: 0;
  height: 0;
}

.mo-header-wrap .header .nav__wrap .nav-top-area::after {
  content: "";
  display: block;
  margin: 0 auto;
  aspect-ratio: 456/113;
  background: url(../images/header/mobile/nav-line.png) no-repeat 50% 50%;
  background-size: 100%;
  max-width: 45%;
  margin: 15px auto 0;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-sns a {
  display: block;
  margin: 0 auto;
  background: url(../images/header/mobile/nav-rounge-link.png) no-repeat 50% 50%;
  background-size: 100%;
  aspect-ratio: 929/254;
  max-width: 87%;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-market {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 5px;
  max-width: 91%;
  margin: 15px auto 0;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-market a {
  display: block;
  aspect-ratio: 475/157;
  background-size: 100%;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-market__aos {
  background: url(../images/header/mobile/nav-link-aos.webp) no-repeat 50% 50%;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-market__ios {
  background: url(../images/header/mobile/nav-link-ios.webp) no-repeat 50% 50%;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-market__onestore {
  background: url(../images/header/mobile/nav-link-onestore.webp) no-repeat 50% 50%;
}

.mo-header-wrap .header .nav__wrap .nav-top-area .nav-link-market__galaxystore {
  background: url(../images/header/mobile/nav-link-galaxystore.webp) no-repeat 50% 50%;
}

.mo-header-wrap .header .nav__wrap .nav-bottom-area::before {
  content: "";
  display: block;
  margin: 0 auto;
  aspect-ratio: 456/113;
  background: url(../images/header/mobile/nav-line.png) no-repeat 50% 50%;
  background-size: 100%;
  max-width: 45%;
}

.mo-header-wrap .header .nav__wrap .nav-bottom-area .nav-logo {
  margin-top: 20px;
}

.mo-header-wrap .header .nav__wrap .nav-bottom-area .nav-logo img {
  max-width: 60%;
  display: block;
  margin: 0 auto;
}

.mo-header-wrap .header .nav__wrap .nav-bottom-area .nav-logo span {
  display: block;
  color: #7c7c7c;
  font-size: 11px;
  text-align: center;
  margin: 10px 0 0;
}

.mo-header-wrap .header .nav__list {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

.mo-header-wrap .header .nav__list.sub_nav_list {
  max-width: 100%;
}

.mo-header-wrap .header .nav .nav-item {
  position: relative;
  margin-bottom: 31px;
}

.mo-header-wrap .header .nav .nav-item>.link {
  display: block;
  width: 100%;
  text-align: left;
}

.mo-header-wrap .header .nav .nav-item>.link>span {
  color: #fff;
  font-size: clamp(18px, 8vw, 21px);
  color: #FFF;
  font-weight: bold;
  text-shadow: 0 0 30px rgba(255, 71, 71, 0.8), 0 0 50px rgba(255, 71, 71, 0.8);
}

.mo-header-wrap .header .nav .nav-item>.link-down span {
  position: relative;
}

.mo-header-wrap .header .nav .nav-item>.link-down span::after {
  content: "";
  display: block;
  width: 38px;
  height: 31px;
  background: url(../images/header/mobile/i-header-toggle.webp) no-repeat 50% 50%;
  position: absolute;
  right: -60px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.mo-header-wrap .header .nav .nav-item .link-out span {
  position: relative;
}

.mo-header-wrap .header .nav .nav-item .link-out span::after {
  content: "";
  display: block;
  width: 20px;
  height: 21px;
  background: url(../images/header/mobile/i-header-outlink.webp) no-repeat 50% 50%;
  background-size: 100%;
  margin-top: 4px;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list {
  padding: 0;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content {
  display: block;
  text-align: left;
  margin: 20px 0;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content:first-child {
  margin-top: 15px;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content a {
  position: relative;
  padding: 10px 0;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content a span {
  color: #e7e7e7;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-left: 26px;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content a span::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: url(../images/header/mobile/header-i-active.png) no-repeat;
  background-size: cover;
  position: absolute;
  left: 0;
  top: calc(50% + 1px);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content a:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 71, 71, 0.5), 0 0 20px rgba(255, 71, 71, 0.5);
  /* 크기 확장 */
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content a:hover::after,
.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content a:hover::before {
  opacity: 1;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content.active a {
  opacity: 1;
}

.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content.active a::before,
.mo-header-wrap .header .nav .nav-item .sub_nav_list .sub_nav_content.active a::after {
  opacity: 1;
}

.mo-header-wrap .header .nav__app-download {
  width: 546px;
  margin-top: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.mo-header-wrap .header .nav__app-download .link {
  display: inline-block;
  margin: 0 11px;
}

@media screen and (max-width: 1024px) {
  .pc-header-wrap {
    display: none;
  }

  .mo-header-wrap {
    display: block;
  }
}

/* ===== MAIN BANNER (v2 Sync) ===== */
#main-banner {
  position: relative;
  width: 100%;
  height: 340px;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--gnb-height);
}

#main-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner.jpg') center center / cover no-repeat;
  z-index: 0;
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, #030303 100%);
  z-index: 2;
}

/* 좌우 어둡게 (Vignette) */
.banner-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-title {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 5px;
  margin-bottom: 0px;
  /* 글자에만 집중된 강력한 레드 글로우 효과 */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(139, 0, 0, 1),
    0 0 40px rgba(94, 0, 0, 0.8),
    0 0 60px rgba(40, 0, 0, 0.6);
  position: relative;
}

.title-break {
  display: inline;
}

.banner-subtitle {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* 중앙 레드 광채 제거 (유저 요청) */
.banner-glow {
  display: none;
}

@media (max-width: 1024px) {
  #main-banner {
    height: 260px;
  }

  .banner-title {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .banner-subtitle {
    font-size: 15px;
  }

  .banner-glow {
    width: 300px;
    height: 150px;
  }
}



/* ===== TAB NAVIGATION ===== */
#webmall-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 0;
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  padding: 16px 0;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--text-highlight);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== SHOP TAB LAYOUT ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.section-title {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-highlight);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}


/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.product-card:hover {
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(192, 32, 32, 0.15);
}

.product-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 4px 20px var(--color-accent-glow);
}

/* selected 카드에 체크마크 없음 */
.product-card.selected::after {
  display: none;
}

.product-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast);
}

.product-card:hover .product-img {
  transform: scale(1.1);
}

.product-name {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  display: block;
  text-align: center;
  padding-top: 2px;
}

.bonus-highlight {
  color: #ff4141;
  /* Even brighter red for bonus */
  font-weight: var(--font-weight-bold);
  margin-left: 0;
  display: inline;
  vertical-align: baseline;
  line-height: inherit;
  text-shadow: 0 0 8px rgba(255, 65, 65, 0.6); /* Brighter matching glow */
}

.unit-white {
  color: #FFFFFF;
  display: inline;
  vertical-align: baseline;
}

.product-price {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--text-highlight);
}

/* 가격 영역 (원가 + 할인율 + 할인가) */
.product-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.product-original-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.product-discount {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* 패키지 '+' 버튼 */
.btn-package-detail {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
  cursor: pointer;
  z-index: 2;
  line-height: 0;
  padding-bottom: 2px;
  /* 기본 폰트의 하단 여백 보정 보수 */
}

.btn-package-detail:hover {
  color: var(--text-highlight);
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
}

/* 구매 제한 카운트 (0/3) */
.product-purchase-limit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* ONLY 뱃지 스타일 */
.badge-only {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  z-index: 10;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.6); /* Red glow to match primary color */
  border-radius: 4px 0 4px 0;
  /* 세련된 비대칭 엣지 */
  pointer-events: none;
  /* 클릭 방해 금지 */
  animation: pulse-hot 2s infinite;
}

@keyframes pulse-hot {
  0% { 
    filter: brightness(1);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
  }
  50% { 
    filter: brightness(1.4);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.9);
  }
  100% { 
    filter: brightness(1);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
  }
}


/* ===== SIDEBAR ===== */
.shop-sidebar {
  position: sticky;
  top: calc(var(--gnb-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ===== AUTH BOX ===== */
.auth-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.auth-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.auth-title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-highlight);
}

.cloudflare-img {
  display: block;
  max-width: 100%;
  margin: 0 0 14px 0;
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

.btn-mini {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  transition: all var(--transition-fast);
}

.btn-mini:hover {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.auth-step {
  margin-bottom: 6px;
}

.auth-step label {
  display: block;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  flex: 1;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.input-row input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

.btn-auth {
  width: 82px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-highlight);
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.btn-auth:hover {
  background: var(--color-primary-hover);
}

.btn-auth:disabled {
  background: #444;
  color: var(--text-muted);
  cursor: not-allowed;
}

.auth-msg {
  font-size: 12px;
  margin-top: 4px;
  min-height: 0;
}

.auth-msg.error {
  color: #e74c3c;
}

.auth-msg.success {
  color: var(--color-success);
}

/* Auth Complete - 컴팩트 인라인 */
.auth-complete {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 2px;
  flex-wrap: wrap;
}

.auth-check {
  font-size: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.auth-complete-text {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.auth-complete .auth-account {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-left: auto;
}


/* ===== CHECKOUT BOX (선택상품 + 결제 + 주의사항 통합) ===== */
.checkout-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}

.checkout-label {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.checkout-box .selected-item-name {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-align: right;
}

.selected-item-name.has-item {
  color: var(--text-highlight) !important;
}

.notice-inner {
  padding-top: 4px;
  border-top: 1px solid var(--border-default);
}

.notice-inner .sidebar-label {
  margin-bottom: 8px;
}


/* ===== SELECTED ITEM & PAY BUTTON ===== */
.selected-item-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.sidebar-label {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.selected-item-name {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
}

.selected-item-name.has-item {
  color: var(--text-highlight);
}

.btn-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-hover) 100%);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(192, 32, 32, 0.3);
}

.btn-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(192, 32, 32, 0.5);
}

.pay-price {
  font-weight: var(--font-weight-bold);
}

.pay-text {
  font-weight: var(--font-weight-medium);
}


/* ===== NOTICE ===== */
.notice-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.notice-list li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
  padding-left: 12px;
}

.notice-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}


/* ===== HISTORY TAB ===== */
.history-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}


/* ===== HISTORY AUTH LOCK ===== */
.history-auth-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.history-lock-inner {
  text-align: center;
}

.lock-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.5;
}

.lock-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ===== HISTORY TABLE ===== */
.history-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: right;
}

.icon-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  color: var(--bg-body);
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  margin-right: 4px;
}

.history-table-wrap {
  overflow-x: auto;
}

.mobile-br {
  display: inline;
}

.mobile-br::after {
  content: " ";
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* For precise width control */
}

.history-table th {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.history-table td {
  font-size: 13px;
  color: var(--text-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PC Column Widths */
.history-table th:nth-child(1),
.history-table td:nth-child(1) {
  width: 60px;
}

/* No */
.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  width: 160px;
}

/* Date */
.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: auto;
  min-width: 250px;
}

/* Product */
.history-table th:nth-child(4),
.history-table td:nth-child(4) {
  width: 140px;
}

/* Amount */
.history-table th:nth-child(5),
.history-table td:nth-child(5) {
  width: 110px;
}

/* Status */

.history-table tbody tr:hover {
  background: var(--bg-card);
}

/* Status badges — 텍스트 전용 */
.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}

.status-badge.purchased {
  color: var(--text-secondary);
}

.status-badge.refunded {
  color: var(--text-muted);
}

.status-badge.cancelled {
  color: var(--color-primary);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  border: 1px solid var(--border-default);
  text-align: center;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 14px;
}


/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--color-primary);
  color: var(--text-highlight);
}

.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.page-nav {
  padding: 0 6px;
}

.page-nav svg {
  display: block;
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}


/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  background: var(--bg-card);
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-question .faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  background: var(--bg-section);
  border-top: 1px solid var(--border-default);
}

.faq-q-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background: rgba(192, 32, 32, 0.15);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}


/* ===== MOBILE BOTTOM PAY BAR ===== */
.mobile-pay-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 0;
  background: transparent;
  border-top: none;
}

.btn-pay-mobile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-hover));
  border-radius: 0;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  box-shadow: none;
}

.auth-complete-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 56px;
  background: var(--bg-card);
  border: none;
  border-top: 1px solid var(--border-default);
  border-radius: 0;
  padding: 0 20px;
  width: 100%;
}

.auth-complete-bar .auth-check {
  font-size: 14px;
  color: var(--color-accent);
}

.auth-complete-bar .auth-complete-text {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.auth-complete-bar .auth-account {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}


/* ===== BOTTOM SHEET ===== */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 950;
  opacity: 0;
  animation: fadeOverlay 0.3s ease forwards;
}

@keyframes fadeOverlay {
  to {
    opacity: 1;
  }
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-section);
  border-radius: 16px 16px 0 0;
  z-index: 960;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bottom-sheet.show {
  transform: translateY(0);
}

.bottom-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bottom-sheet-content {
  padding: 8px 24px 32px;
}

.bottom-sheet-footer {
  flex-shrink: 0;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-section);
  border-top: 1px solid var(--border-default);
}

.bottom-sheet-footer .btn-pay-sheet {
  margin-top: 0;
  width: 100%;
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 12px auto;
}

.mobile-only-notice {
  display: none !important;
}


/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  background: var(--bg-section);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-default);
}

.modal-header h3 {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-highlight);
}

.modal-close {
  font-size: 24px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-body ol {
  list-style: decimal;
  padding-left: 20px;
}

.modal-body li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
}

.howto-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.howto-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.howto-section h4 {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: 4px;
  border-left: 2px solid var(--color-accent);
  padding-left: 8px;
}

.howto-screenshot {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  margin-top: 4px;
}


/* 팝업 열림 시 배경 스크롤·액션 차단 */
body.popup-open {
  overflow: hidden;
  pointer-events: none;
}

body.popup-open .pkg-popup,
body.popup-open .pkg-popup-overlay,
body.popup-open .legal-modal,
body.popup-open .legal-modal-overlay,
body.popup-open .modal,
body.popup-open .modal-overlay,
body.popup-open .bikini-modal,
body.popup-open .bikini-modal-overlay {
  pointer-events: auto;
}

/* ===== PACKAGE DETAIL POPUP ===== */
.pkg-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1100;
  backdrop-filter: blur(4px);
  animation: fadeOverlay 0.25s ease forwards;
}

.pkg-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  background: var(--bg-section);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popupIn 0.25s ease forwards;
}

.pkg-popup.wide {
  max-width: 680px;
  max-height: 85vh;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pkg-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

.pkg-popup-title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-highlight);
}

.pkg-popup-close {
  font-size: 22px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  line-height: 1;
}

.pkg-popup-close:hover {
  color: var(--text-primary);
}

.pkg-popup-list {
  list-style: none;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-popup-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.popup-item-bullet {
  color: var(--color-accent);
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}


/* ===== LEGAL BAR ===== */
.legal-bar {
  background: #010101;
  /* 게임 분위기에 맞춘 딥 그레이 배경 */
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  height: 48px;
  /* 요청하신 높이값 48px 고정 */
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.legal-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  /* GNB와 동일한 좌측 여백 적용 */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 좌측 정렬로 변경 */
  gap: 10px;
  flex-wrap: wrap;
}

.legal-link {
  font-size: 13px;
  color: #999;
  text-decoration: none;
  padding: 6px 12px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.legal-link:hover {
  color: #fff;
}

.legal-link--outlink {
  color: #888;
}

.legal-sep {
  color: #333;
  font-size: 11px;
}

.outlink-icon {
  width: 9px;
  height: 9px;
  opacity: 0.7;
  flex-shrink: 0;
  vertical-align: middle;
}


/* ===== FOOTER (v2 스타일) ===== */
.common-footer.common-footer--darkmode {
  background-color: #010101;
}

/* ===== LEGAL MODAL (구매 유의사항 / 청약 철회) ===== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
}

.legal-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-top: 2px solid #8b0000;
  width: min(560px, 92vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.legal-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.legal-modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}

.legal-modal-close:hover {
  color: #fff;
}

.legal-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.legal-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-list li {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}

.legal-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #8b0000;
  font-weight: 900;
}

.legal-list li strong {
  color: #e0e0e0;
  font-weight: 600;
}

/* ===== BIKINI PREVIEW STYLES IN POPUP ===== */
.bikini-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bikini-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bikini-preview-img-container {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 250px;
}

.bikini-preview-avatar {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: scale(1.2);
  transition: transform 0.2s;
}

.bikini-preview-label {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 6px;
}

/* ===== RESPONSIVE: MOBILE <= 1100px ===== */
@media (max-width: 1100px) {
  :root {
    --gnb-height: 54px;
  }

  /* ── GNB Header ── */
  /* PC 네비게이션 숨김 (nav 태그 + id 모두 커버) */
  #gnb-nav,
  .nav.hidden-mo {
    display: none !important;
  }

  /* PC 마켓 버튼 + 라운지 숨김 */
  .header_store_wrap,
  .header_sns_wrap {
    display: none !important;
  }

  /* 햄버거 메뉴 노출 */
  .gnb-hamburger {
    display: flex;
  }

  /* 헤더 내부 좌우 여백 축소 */
  .header_inner {
    padding: 0 16px;
  }

  .header_l {
    gap: 0;
  }

  .header_logo_wrap img {
    height: 32px;
  }

  /* ── Banner ── */
  #main-banner {
    height: 200px;
  }

  .banner-title {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .banner-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .title-break {
    display: block;
  }

  /* ── Tab Navigation ── */
  .tab-btn {
    font-size: 14px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .tab-btn .tab-chip {
    margin-right: 0;
    margin-bottom: 2px;
  }

  /* ── Main Content ── */
  #webmall-main {
    padding: 0 16px 0;
  }

  #tab-shop,
  #tab-history {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .tab-navigation {
    margin-bottom: 20px;
  }

  /* ── Shop Layout ── */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shop-sidebar {
    position: static;
  }

  /* PC sidebar 숨김 (모바일엔 바텀바 사용) */
  #shop-sidebar {
    display: none;
  }

  /* 섹션 타이틀 축소 */
  .section-title {
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 10px;
  }

  /* ── Product Grid ── */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    padding: 14px 10px;
  }

  .product-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .product-img {
    width: 40px;
    height: 40px;
  }

  .product-name {
    font-size: 12px;
    min-height: 28px;
    margin-bottom: 4px;
  }

  .product-price {
    font-size: 13px;
  }

  .product-original-price {
    font-size: 10px;
  }

  .product-discount {
    font-size: 11px;
  }

  .badge-only {
    font-size: 9px;
    padding: 2px 6px;
  }

  /* ── Mobile Pay Bar ── */
  .mobile-pay-bar {
    display: block;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* ── History Layout ── */
  .history-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #history-sidebar {
    display: none;
  }

  .history-stats {
    padding: 16px;
    margin-bottom: 16px;
  }

  .stats-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .stats-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 10px 4px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 14px;
  }

  /* 히스토리 테이블 - 모바일 가로 리스트 최적화 */
  .history-table-wrap {
    overflow-x: hidden;
  }

  .history-table {
    table-layout: fixed;
    width: 100%;
  }

  .history-table th,
  .history-table td {
    padding: 8px 1px !important;
    font-size: 11px !important;
    text-align: center;
    word-break: keep-all;
    vertical-align: middle;
  }

  /* 열 너비 강제 조정 (합=100%) */
  /* No */
  .history-table th:nth-child(1),
  .history-table td:nth-child(1) {
    width: 8%;
  }

  /* 날짜 */
  .history-table th:nth-child(2),
  .history-table td:nth-child(2) {
    width: 22%;
    font-size: 9.5px !important;
    line-height: 1.2;
  }

  /* 상품명 */
  .history-table th:nth-child(3),
  .history-table td:nth-child(3) {
    width: 22%;
  }

  /* 쿠폰 코드 */
  .history-table th:nth-child(4),
  .history-table td:nth-child(4) {
    width: 20%;
  }

  /* 금액 */
  .history-table th:nth-child(5),
  .history-table td:nth-child(5) {
    width: 14%;
    font-size: 10px !important;
  }

  /* 현황 */
  .history-table th:nth-child(6),
  .history-table td:nth-child(6) {
    width: 14%;
  }

  /* 현황 */

  .history-table .status-badge {
    padding: 3px 2px;
    font-size: 9px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .history-table .product-name-cell {
    white-space: normal !important;
    word-break: break-all;
  }

  .mobile-br {
    display: block;
  }

  .mobile-br::after {
    content: "";
    /* 모바일에서는 공백 없이 줄바꿈만 수행 */
  }

  .history-notice {
    font-size: 11px;
  }

  /* 히스토리 마스크 클릭 유도 */
  #history-auth-lock {
    cursor: pointer;
  }

  #history-auth-lock .history-lock-inner::after {
    content: "터치하여 인증하기";
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: underline;
  }

  .empty-state {
    height: 200px;
    font-size: 13px;
  }

  .pagination {
    margin-top: 16px;
    gap: 4px;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* ── FAQ ── */
  .faq-list {
    max-width: 100%;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 13px;
  }

  .faq-answer-inner {
    font-size: 13px;
    padding: 12px 16px;
  }

  /* ── Legal Bar ── */
  .legal-bar {
    height: auto;
    min-height: 40px;
    padding: 8px 0;
    margin-top: 20px;
  }

  .legal-bar-inner {
    padding: 0 16px;
    gap: 4px;
    justify-content: flex-start;
  }

  .legal-link {
    font-size: 11px;
    padding: 4px 6px;
  }

  .legal-sep {
    font-size: 10px;
  }

  /* ── Footer ── */
  #site-footer {
    padding: 30px 16px;
  }

  .footer-container {
    padding: 0;
  }

  .footer-nav {
    font-size: 12px;
    gap: 0;
  }

  .footer-nav span {
    margin: 0 6px;
  }

  .footer-info p {
    font-size: 11px;
    line-height: 1.7;
  }

  .copyright {
    font-size: 11px;
  }

  .bottom-sheet {
    height: auto;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 24px;
    -webkit-overflow-scrolling: touch;
  }

  .bottom-sheet-footer {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: none;
    background: transparent;
  }

  .bottom-sheet-footer .btn-pay-sheet {
    height: 56px;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-sheet-section {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    margin-bottom: 20px;
    text-align: left;
  }

  .section-title-mobile {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-highlight);
    margin-bottom: 14px;
    margin-top: 0;
    text-align: left;
  }

  .shop-pay-method-grid-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0;
  }

  /* ── Mobile-Only Notice ── */
  .mobile-only-notice {
    display: block !important;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: left;
  }

  /* ── Legal Modal ── */
  .legal-modal {
    width: min(92vw, 400px);
  }

  .legal-modal-header {
    padding: 14px 16px 12px;
  }

  .legal-modal-body {
    padding: 16px;
  }

  .legal-list li {
    font-size: 12px;
  }

  /* ── Package Popup ── */
  .pkg-popup {
    width: min(92vw, 380px);
  }
  .pkg-popup.wide {
    width: 95%;
  }
  .bikini-preview-img-container {
    height: 140px;
  }

  /* ── How-to Modal ── */
  .modal {
    width: min(92vw, 380px);
  }


  /* ── Payment Overlay ── */


  .pay-spinner {
    width: 40px;
    height: 40px;
  }

  .pay-processing-text {
    font-size: 14px;
  }
}

/* ===== PC WIDE: > 1920px ===== */
@media (min-width: 1920px) {
  :root {
    --max-width: 1400px;
  }

  .banner-title {
    font-size: 36px;
  }

  .product-card {
    padding: 20px 16px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 15px;
  }
}

}

@media (min-width: 2560px) {
  :root {
    --max-width: 1600px;
  }
}

/* ===== PAYMENT PROCESSING OVERLAY & STATE ===== */
/* 결제 진행 중 상태: 바디 스크롤 차단 및 플렉스 레이아웃 */
body.is-paying {
  overflow: hidden !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 결제 진행 중 상태: GNB(로고 제외), 푸터, 메인 컨텐츠 및 모바일 결제바 숨김 */
body.is-paying .pc-header-wrap .nav,
body.is-paying .pc-header-wrap .header_r,
body.is-paying .mo-header-wrap .nav__toggle,
body.is-paying .mo-header-wrap .nav,
body.is-paying #webmall-main,
body.is-paying .common-footer,
body.is-paying .legal-bar,
body.is-paying #mobile-pay-bar {
  display: none !important;
}

/* 결제 진행 중 섹션 (배너 하단 영역을 꽉 채우도록 flex: 1 설정) */
#pay-processing-overlay {
  flex: 1 !important;
  width: 100%;
  background-color: #030303;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pay-processing-overlay.hidden {
  display: none !important;
}

/* 중앙 박스 디자인 (가로/세로 중앙 배치 및 반응형 대응) */
.pay-processing-box {
  width: min(90vw, 450px);
  padding: 40px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  border-radius: 12px;
}

.pay-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 25px;
}

.pay-processing-text {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== PRE-PURCHASE EVENT STYLES ===== */
.pre-event-intro {
  text-align: left;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.pre-event-intro h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
  background: linear-gradient(135deg, #fff, #bbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pre-event-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.auth-input-group {
  margin-bottom: 12px;
}

.auth-input-group label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.pre-purchase-history {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 20px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.pre-purchase-history:hover {
  opacity: 1;
}

.pre-purchase-history h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pre-purchase-history-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 15px 6px 15px 0; /* Vertical padding to prevent tooltip clipping */
}

/* Customized Premium Webkit Scrollbar */
.pre-purchase-history-list::-webkit-scrollbar {
  width: 4px;
}

.pre-purchase-history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
}

.pre-purchase-history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

.pre-purchase-history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: transparent;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.pre-purchase-history-list li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pre-purchase-history-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.pre-purchase-history-list .hist-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 40%;
}

.pre-purchase-history-list .hist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pre-purchase-history-list .hist-right {
  text-align: right;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  width: 25%;
}

.pre-purchase-history-list .hist-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 11.5px;
  word-break: break-all;
  white-space: normal;
}

.pre-purchase-history-list .hist-num {
  color: var(--text-primary);
  opacity: 0.5;
  font-weight: 500;
  font-size: 10px;
  font-family: monospace, var(--font-primary);
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 1px;
}

.pre-purchase-history-list .hist-date {
  font-size: 9.5px;
  color: var(--text-secondary);
}

.pre-purchase-history-list .hist-price {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 11px;
}

.pre-purchase-history-list .hist-status {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 9.5px;
}

.pre-purchase-history-list .hist-mid {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  white-space: normal;
}

.hist-coupon-code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  word-break: break-all;
  white-space: normal;
  text-align: center;
}

.hist-coupon-code:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--color-primary);
  color: #f2a1a1;
  transform: translateY(-1px);
}

.hist-coupon-code::after {
  content: '클릭 시 복사';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  pointer-events: none;
  font-family: var(--font-primary);
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

/* For the first item, show tooltip below if it's at the very top */
.pre-purchase-history-list li:first-child .hist-coupon-code::after {
  bottom: auto;
  top: 100%;
  transform: translateX(-50%) translateY(5px);
}

.hist-coupon-code:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

.pre-purchase-history-list li:first-child .hist-coupon-code:hover::after {
  transform: translateX(-50%) translateY(10px);
}

/* Reduce pre-purchase item name font size */
.pre-purchase-grid .product-name {
  font-size: 11.5px !important;
  min-height: 30px !important;
}

.email-box {
  margin-top: 12px;
}

.email-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.email-box input {
  width: 100%;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.email-box input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

/* ===== VIP 특권 BLOCK ===== */
.pre-vip-block {
  background: rgba(40, 90, 30, 0.14);
  border: 1px solid rgba(74, 122, 53, 0.50);
  border-left: 3px solid #5a9b40;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.pre-vip-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pre-vip-label {
  background: linear-gradient(135deg, #2a5220, #4a8035);
  color: #b8e898;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(122, 184, 85, 0.55);
  box-shadow: 0 0 8px rgba(90, 155, 64, 0.25);
}

.pre-vip-condition {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  opacity: 0.95;
}

.pre-vip-condition strong {
  color: #8ecb68;
  font-weight: 700;
}

.pre-vip-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pre-vip-list li {
  font-size: 12px;
  color: var(--text-primary);
  opacity: 0.85;
  padding-left: 12px;
  position: relative;
}

.pre-vip-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #7ab855;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

/* ===== PRE-EVENT INTRO TITLE — RPG Font Stack ===== */
/* Cinzel handles latin 'M' / branding marks; Noto Serif KR covers Korean characters */
.pre-event-intro h3 {
  font-family: 'Cinzel', 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  /* Pure white — untouched by glow */
  letter-spacing: 1px;
  line-height: 1.35;
  /* Outer-only ambient glow: large blur keeps light outside the letterforms */
  text-shadow:
    0 0 35px rgba(139, 0, 0, 0.22),
    0 0 70px rgba(94, 0, 0, 0.14),
    0 0 120px rgba(50, 0, 0, 0.08);
  animation: pre-title-breathe 4s ease-in-out infinite;
}

/* Slow, organic breathing glow — intensity shifts, text color never changes */
@keyframes pre-title-breathe {

  0%,
  100% {
    text-shadow:
      0 0 30px rgba(139, 0, 0, 0.18),
      0 0 60px rgba(94, 0, 0, 0.10),
      0 0 100px rgba(50, 0, 0, 0.06);
  }

  50% {
    text-shadow:
      0 0 45px rgba(155, 0, 0, 0.32),
      0 0 90px rgba(100, 0, 0, 0.18),
      0 0 140px rgba(60, 0, 0, 0.10);
  }
}

.pre-event-intro p {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  line-height: 1.7;
  margin-top: 8px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .pre-event-intro h3 {
    font-size: 20px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .pre-event-intro h3 {
    font-size: 17px;
  }
}

#tab-pre-purchase {
  background-image: radial-gradient(circle at 50% 50%, rgba(3, 3, 3, 0.35) 0%, rgba(3, 3, 3, 0.95) 100%);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding-top: 0;
  padding-bottom: 60px;
  border-radius: var(--radius-md);
}

/* ===== PRE-PURCHASE VERTICAL FLOW ===== */
.pre-section-card {
  background: rgba(15, 15, 15, 0.78) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-medium), border-color var(--transition-medium);
}

.pre-section-card:hover {
  border-color: rgba(139, 0, 0, 0.3);
}

.pre-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.pre-step-badge {
  background: rgba(211, 47, 47, 0.12);
  /* Subtle premium dark red tint */
  border: 1px solid rgba(211, 47, 47, 0.35);
  /* High-contrast blood-red metallic border */
  color: #f2a1a1;
  /* Light pastel red-rose text for premium aesthetic */
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.pre-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.pre-auth-trigger-wrap {
  text-align: center;
  padding: 20px 0;
}

.pre-auth-notice-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-auth-trigger {
  background: linear-gradient(135deg, #a81c1c, #d32f2f);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-auth-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-auth-trigger:active {
  transform: translateY(0);
}

/* Auth Modal Styles */
.pre-auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2500;
  transition: opacity var(--transition-medium);
}

.pre-auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90%;
  max-width: 440px;
  background: #111;
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 0, 0, 0.15);
  z-index: 2600;
  padding: 24px;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.pre-auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.pre-auth-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.pre-auth-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.pre-auth-modal-close:hover {
  color: #fff;
}

.pre-auth-success-wrap {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pre-verified-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(211, 47, 47, 0.08);
  /* Brand red-tinted background */
  border-left: 3px solid var(--color-primary);
  /* Bold red left line */
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

/* Custom targeted overrides for pre-purchase layout spacings */

.pre-step-block {
  margin-bottom: 0 !important;
}

/* ===== TAB CHIP BADGE ===== */
.tab-chip {
  background: var(--color-primary);
  /* Brand Solid Red */
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 6px;
  margin-left: 0;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.2;
  box-shadow: 0 0 10px rgba(192, 32, 32, 0.4);
  font-family: sans-serif;
}

/* ===== PRE-PURCHASE CUSTOM GRID & PREMIUM INTERACTIONS ===== */
#pre-purchase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

#pre-purchase-grid .product-card {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Stunning Shimmer Glint Effect on Hover */
#pre-purchase-grid .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transform: skewX(-25deg);
  transition: none;
  z-index: 1;
}

#pre-purchase-grid .product-card:hover::before {
  left: 150%;
  transition: left 0.85s ease-in-out;
}

/* Luxurious Hover State - Smooth Scale & Crimson Glow */
#pre-purchase-grid .product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 47, 47, 0.5);
  background: linear-gradient(180deg, rgba(35, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.9) 100%);
  box-shadow: 0 12px 30px rgba(211, 47, 47, 0.22), 0 0 15px rgba(211, 47, 47, 0.08);
}

/* Radiant Red Selected State with Elegant Breathing Glow Pulse */
#pre-purchase-grid .product-card.selected {
  background: linear-gradient(180deg, rgba(211, 47, 47, 0.08) 0%, rgba(15, 15, 15, 0.95) 100%);
  border-color: var(--color-primary);
  animation: pre-red-pulse 2.2s infinite ease-in-out;
  transform: translateY(-4px) scale(1.01);
}

@keyframes pre-red-pulse {
  0% {
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.15), 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 10px rgba(211, 47, 47, 0.05);
    border-color: rgba(211, 47, 47, 0.50);
  }

  50% {
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.40), 0 8px 25px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(211, 47, 47, 0.15);
    border-color: rgba(211, 47, 47, 0.95);
  }

  100% {
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.15), 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 10px rgba(211, 47, 47, 0.05);
    border-color: rgba(211, 47, 47, 0.50);
  }
}



/* Premium LTD Badge style for Pre-purchase page */
#pre-purchase-grid .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #a81c1c, #d32f2f);
  /* Premium Crimson-Red Gradient */
  color: #fff;
  /* White text on red */
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.45);
  z-index: 5;
  font-family: sans-serif;
  /* For high-readability on '한정' text */
}

/* Icon Container (Raw transparent container, image-focused) */
#pre-purchase-grid .product-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#pre-purchase-grid .product-card:hover .product-icon {
  background: none;
  border-color: transparent;
}

#pre-purchase-grid .product-card.selected .product-icon {
  background: none;
  border-color: transparent;
}

/* Product Image exactly 48x48 */
#pre-purchase-grid .product-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.35s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

#pre-purchase-grid .product-card:hover .product-img {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(211, 47, 47, 0.45));
}

#pre-purchase-grid .product-card.selected .product-img {
  transform: scale(1.1) translateY(-1px);
  filter: drop-shadow(0 4px 10px rgba(211, 47, 47, 0.35));
}

/* Enlarged Font for Item Title */
#pre-purchase-grid .product-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  word-break: keep-all;
}

/* Enlarged Font for Item Description (From 11px to 13px) */
#pre-purchase-grid .product-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 0 8px;
  margin-top: 8px;
  line-height: 1.6;
  text-align: center;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Pricing Section Sizing & Highlighting */
#pre-purchase-grid .product-price-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#pre-purchase-grid .product-original-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

#pre-purchase-grid .product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#pre-purchase-grid .product-discount {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

#pre-purchase-grid .product-price {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#pre-purchase-grid .product-card.selected .product-price {
  color: #fff;
  text-shadow: 0 0 12px rgba(211, 47, 47, 0.35);
}


/* ================================================================
   MOBILE OPTIMIZATION — Pre-purchase Page
   Breakpoints: 768px (tablet), 480px (mobile), 360px (small)
   ================================================================ */

/* ── 768px: Tablet / Large Mobile ── */
@media (max-width: 768px) {

  /* Banner */
  #main-banner {
    height: 200px;
  }

  .banner-title {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .banner-subtitle {
    font-size: 13px;
    letter-spacing: 0;
  }

  /* Main content wrapper padding */
  #webmall-main {
    padding: 0 16px;
  }

  /* Tab navigation */
  .tab-navigation {
    margin-bottom: 20px;
  }

  .tab-btn {
    padding: 10px 2px;
    font-size: 13px;
  }

  /* ── Pre-purchase 2-column → 1-column stacked layout ── */
  .pre-split-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    max-width: 100% !important;
    margin: 20px 0 0 0 !important;
  }

  /* Both columns become full-width */
  .pre-left-column,
  .pre-right-column {
    padding: 20px 16px !important;
  }

  .pre-left-column {
    gap: 32px !important;
    position: static !important;
    align-self: stretch !important;
  }

  .pre-right-column {
    gap: 20px !important;
  }

  /* Event intro */
  .pre-event-intro h3 {
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .pre-event-intro p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* VIP privilege mobile styling */
  .pre-vip-block {
    padding: 12px 14px !important;
  }

  .pre-vip-label {
    font-size: 11px !important;
    padding: 2px 8px !important;
  }

  .pre-vip-condition {
    font-size: 12px !important;
  }

  .pre-vip-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 12px !important;
  }

  .pre-vip-list li {
    font-size: 11.5px !important;
  }

  /* Section title (아이템 선택, 본인 인증 etc.) */
  .section-title {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .pre-step-title {
    font-size: 14px;
  }

  /* ── Product Grid: 3col → 2col on tablet ── */
  #pre-purchase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Product card padding reduction */
  #pre-purchase-grid .product-card {
    padding: 18px 12px !important;
  }

  #pre-purchase-grid .product-name {
    font-size: 13px !important;
    min-height: 36px !important;
    font-weight: 700;
  }

  #pre-purchase-grid .product-desc {
    font-size: 11px !important;
    min-height: auto !important;
  }

  #pre-purchase-grid .product-price {
    font-size: 15px !important;
  }

  #pre-purchase-grid .product-discount {
    font-size: 12px !important;
  }

  #pre-purchase-grid .product-original-price {
    font-size: 10px !important;
  }

  /* Auth section */
  .pre-auth-notice-text {
    font-size: 12px;
  }

  .btn-auth-trigger {
    padding: 14px 32px;
    font-size: 14px;
    width: 100%;
  }

  /* Verified badge row */
  .pre-verified-badge-row {
    padding: 10px 14px;
  }

  /* Purchase history */
  .pre-purchase-history {
    margin-top: 16px !important;
  }

  .mobile-history-guide {
    display: inline-block !important;
  }

  .pre-purchase-history-list {
    max-height: 200px;
  }

  .pre-purchase-history-list li {
    padding: 8px 10px;
  }

  /* Email input */
  .email-box input {
    height: 44px;
    font-size: 14px;
  }

  /* Pay button — make it large and thumb-friendly */
  .btn-pay {
    height: 56px !important;
    font-size: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-sm) !important;
  }

  #btn-pay-pre {
    max-width: 100% !important;
  }

  /* Notice box */
  .notice-inner {
    padding: 14px !important;
  }

  .notice-list li {
    font-size: 11px;
    line-height: 1.7;
  }

  /* FAQ list */
  .faq-list {
    gap: 8px;
  }

  /* Legal bar */
  .legal-bar-inner {
    gap: 8px;
    font-size: 12px;
  }
}


/* ── 480px: Mobile ── */
@media (max-width: 480px) {

  /* Banner */
  #main-banner {
    height: 170px;
  }

  .banner-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .banner-subtitle {
    font-size: 12px;
  }

  /* Main padding tighter */
  #webmall-main {
    padding: 0 12px;
  }

  /* Left / right card padding */
  .pre-left-column,
  .pre-right-column {
    padding: 18px 15px !important;
    border-radius: var(--radius-md) !important;
  }

  .pre-left-column {
    gap: 24px !important;
  }

  .pre-right-column {
    gap: 16px !important;
  }

  /* Event intro */
  .pre-event-intro h3 {
    font-size: 16px;
  }

  /* ── Product Grid: 2col → single wide on very small screens ── */
  /* Keep 2-col but reduce gaps for 480px */
  #pre-purchase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  #pre-purchase-grid .product-card {
    padding: 14px 10px !important;
  }

  #pre-purchase-grid .product-icon,
  #pre-purchase-grid .product-img {
    width: 40px !important;
    height: 40px !important;
  }

  #pre-purchase-grid .product-name {
    font-size: 12px !important;
    min-height: 32px !important;
    font-weight: 700;
  }

  #pre-purchase-grid .product-desc {
    font-size: 10px !important;
    padding: 0 4px !important;
    min-height: auto !important;
  }

  #pre-purchase-grid .product-price {
    font-size: 14px !important;
  }

  #pre-purchase-grid .product-price-wrap {
    margin-top: 10px !important;
  }

  /* Badge positioning on small cards */
  #pre-purchase-grid .product-badge {
    font-size: 9px;
    padding: 2px 7px;
    top: 8px;
    left: 8px;
  }

  /* Auth button full-width */
  .btn-auth-trigger {
    padding: 13px 20px;
    font-size: 13px;
  }

  /* Step header */
  .pre-step-header {
    margin-bottom: 16px !important;
    padding-bottom: 10px;
  }

  /* Pay button */
  .btn-pay {
    height: 52px !important;
    font-size: 14px !important;
    gap: 8px !important;
  }

  #pay-price-pre {
    font-size: 16px !important;
  }

  /* Section title */
  .section-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left-width: 2px;
  }

  /* VIP List 1-column on small mobile */
  .pre-vip-list {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  /* Pre-purchase history — compact */
  .pre-purchase-history-list .hist-name {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }

  .pre-purchase-history-list .hist-price {
    font-size: 10px;
  }

  .pre-purchase-history-list .hist-num {
    font-size: 9px;
    margin-right: 4px;
    display: none;
    /* Hide number on small mobile to save space */
  }

  .pre-purchase-history-header span:nth-child(2) {
    flex: 0 0 85px !important;
    padding-left: 5px;
  }

  .pre-purchase-history-list .hist-mid {
    flex: 0 0 85px !important;
    padding: 0 0 0 5px !important;
  }

  .hist-coupon-code {
    font-size: 9.5px;
    padding: 1px 3px;
  }

  .pre-purchase-history-header {
    display: flex !important;
    padding: 0 8px 6px !important;
    margin-bottom: 8px !important;
  }

  .pre-purchase-history-header span:nth-child(1) {
    width: auto !important;
    flex: 1;
  }

  .pre-purchase-history-header span:nth-child(2) {
    flex: 0 0 100px !important;
    text-align: left !important;
    padding-left: 10px;
  }

  .pre-purchase-history-header span:nth-child(3) {
    width: auto !important;
    text-align: right !important;
  }

  .pre-purchase-history-list .hist-left {
    width: auto;
    flex: 1;
  }

  .pre-purchase-history-list .hist-mid {
    flex: 0 0 100px !important;
    padding: 0 0 0 10px !important;
    justify-content: flex-start !important;
  }

  .pre-purchase-history-list .hist-right {
    width: auto;
  }

  .pre-purchase-history-list .hist-mid {
    padding: 0 8px;
    gap: 4px;
    justify-content: flex-start;
  }

  .hist-coupon-code {
    font-size: 10px;
    padding: 1px 4px;
  }

  .hist-coupon-code:hover::after {
    display: none;
    /* Mobile space is tight, skip tooltip or simplify */
  }

  /* Modal full-width on mobile */
  .pre-auth-modal {
    width: 95% !important;
    padding: 20px 16px !important;
  }

  .legal-modal {
    width: 95% !important;
    padding: 20px 16px !important;
  }

  /* Notice section */
  .notice-inner {
    padding: 12px !important;
  }

  .notice-list li {
    font-size: 10.5px;
  }

  /* Tab btn */
  .tab-btn {
    font-size: 12px;
    padding: 8px 1px;
  }

  .tab-chip {
    font-size: 9px;
    padding: 1px 5px;
    margin-right: 0;
  }
}


/* ── 360px: Small mobile ── */
@media (max-width: 360px) {

  #main-banner {
    height: 150px;
  }

  .banner-title {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  /* Product grid: 1 column for tiny screens */
  #pre-purchase-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: 280px;
    margin: 0 auto !important;
  }

  #pre-purchase-grid .product-card {
    padding: 16px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
  }

  #pre-purchase-grid .product-icon {
    flex-shrink: 0;
    margin: 0 !important;
  }

  #pre-purchase-grid .product-price-wrap {
    align-items: flex-start;
    margin-top: 6px !important;
  }

  #pre-purchase-grid .product-name {
    text-align: left;
    justify-content: flex-start !important;
    min-height: auto !important;
  }

  #pre-purchase-grid .product-desc {
    text-align: left;
    justify-content: flex-start !important;
  }

  #pre-purchase-grid .product-price-row {
    justify-content: flex-start;
  }

  /* Left/right column padding */
  .pre-left-column,
  .pre-right-column {
    padding: 14px 12px !important;
  }

  #webmall-main {
    padding: 0 10px;
  }
}

/* ===== BIKINI PREVIEW MODAL ===== */
.bikini-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2500;
  transition: opacity var(--transition-medium);
}

.bikini-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 95%;
  max-width: 850px;
  max-height: 90vh;
  background: #111;
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 0, 0, 0.15);
  z-index: 2600;
  padding: 24px;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.bikini-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.bikini-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: 'Cinzel', 'Noto Serif KR', serif;
}

.bikini-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.bikini-modal-close:hover {
  color: #fff;
}

.bikini-modal-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
  padding: 0;
  border: none;
}

.bikini-character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bikini-character-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.15);
}

.bikini-character-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #151515;
  padding: 8px;
}

.bikini-preview-img {
  max-width: 100%;
  max-height: 48vh;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.bikini-character-card:hover .bikini-preview-img {
  transform: scale(1.05);
}

.bikini-character-name {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  font-family: 'Cinzel', 'Noto Serif KR', serif;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .bikini-modal {
    max-width: 450px;
    padding: 16px;
  }

  .bikini-modal-title {
    font-size: 16px;
  }

  .bikini-modal-body {
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
  }

  .bikini-preview-img {
    max-height: 35vh;
  }
}

/* ===== PRE-PURCHASE PAYMENT METHOD SELECTION STYLES ===== */
.pre-pay-method-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  background: #0f0f0f;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  user-select: none;
}

.pre-pay-method-option:hover {
  border-color: #5e0000;
  color: var(--text-highlight);
  background: #141414;
}

.pre-pay-method-option.active {
  border-color: var(--color-primary) !important;
  background-color: rgba(139, 0, 0, 0.12) !important;
  color: var(--text-highlight) !important;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
  font-weight: 600;
}

.pre-pay-etc-dropdown-wrap select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  background: #121212;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pre-pay-etc-dropdown-wrap select:focus {
  border-color: var(--border-focus);
}

/* ===== SERVER SELECT DROPDOWN ===== */
.server-select-wrap {
  margin-bottom: 12px;
}

.server-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.server-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

.bottom-text {
  color: #666;
  position: fixed;
  right: 10px;
  bottom: 20px;
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 800;
  z-index: 2;
}