.shop-layout {
  width: 100%;
}

.shop-page {
  display: grid;
  gap: 18px;
}

.shop-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border-radius: 24px;
}

.shop-kicker {
  color: #ff6476;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shop-hero h2 {
  margin: 0;
  font-size: 28px;
}

.shop-hero p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

.shop-wallet {
  min-width: 210px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.shop-wallet span {
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 800;
}

.shop-wallet strong {
  font-size: 24px;
  font-weight: 950;
}

.shop-error {
  padding: 16px 18px;
  border-radius: 18px;
  color: #ffb4bd;
  border-color: rgba(255,100,118,.35);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shop-item-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(17,22,37,.82);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 250px;
}

.shop-item-card.coming-soon {
  opacity: .72;
}

.shop-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.shop-item-category {
  color: rgba(255,255,255,.48);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.shop-item-card h3 {
  margin: 0;
  font-size: 19px;
}

.shop-item-card p {
  margin: 0;
  color: rgba(255,255,255,.64);
  line-height: 1.55;
  min-height: 48px;
}

.shop-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
  color: #fff;
  background: rgba(255,100,118,.20);
  border: 1px solid rgba(255,100,118,.35);
}

.shop-badge.owned {
  background: rgba(90,210,145,.18);
  border-color: rgba(90,210,145,.34);
}

.shop-badge.muted {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

.shop-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

.shop-item-meta strong {
  color: #fff;
  font-weight: 950;
}

.shop-item-reason {
  color: rgba(255,255,255,.48);
  font-size: 12px;
  min-height: 18px;
}

.shop-item-reason.danger {
  color: #ff6476;
  font-weight: 900;
}

.shop-buy-btn {
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #ff6476, #ff8a64);
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.shop-buy-btn:disabled {
  cursor: not-allowed;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.42);
}

.shop-history {
  padding: 18px;
  border-radius: 22px;
}

.shop-section-head h3 {
  margin: 0;
}

.shop-section-head p {
  margin: 6px 0 14px;
  color: rgba(255,255,255,.58);
}

.shop-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.70);
}

.shop-history-row strong {
  color: #fff;
}

.shop-history-row em {
  color: rgba(255,255,255,.50);
  font-style: normal;
}

.shop-empty,
.shop-history-empty {
  padding: 18px;
  border-radius: 18px;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.05);
}

@media (max-width: 980px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shop-hero {
    flex-direction: column;
  }

  .shop-wallet {
    min-width: 0;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }
}


.shop-color-picker {
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.shop-color-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.62);
  margin-bottom: 10px;
}

.shop-color-preview span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
}

.shop-color-preview strong {
  color: #f8fafc;
  font-weight: 950;
}

.shop-color-squares {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shop-color-square {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(15,23,42,.74);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 6px;
}

.shop-color-square span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--shop-color);
  box-shadow: 0 0 12px var(--shop-color);
}

.shop-color-square.selected {
  border-color: var(--shop-color);
  box-shadow: 0 0 0 1px var(--shop-color) inset;
}

.shop-color-square.owned {
  opacity: .45;
  cursor: not-allowed;
}

.shop-color-square em {
  font-style: normal;
}

.shop-color-purchase {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg,#ff6f9d,#a78bfa);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.shop-color-purchase:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* nickname color modal center fix */
.shop-color-modal-backdrop[hidden] {
  display: none !important;
}

.shop-color-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(0, 0, 0, .62) !important;
  backdrop-filter: blur(8px) !important;
}

.shop-color-modal-card {
  width: min(560px, calc(100vw - 32px)) !important;
  max-height: min(760px, calc(100vh - 48px)) !important;
  overflow: auto !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: linear-gradient(180deg, rgba(20, 24, 37, .98), rgba(13, 17, 29, .98)) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62) !important;
  padding: 22px !important;
}

.shop-color-modal-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.shop-color-modal-head h3 {
  margin: 0 0 8px !important;
  color: #f8fafc !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}

.shop-color-modal-head p {
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.shop-color-modal-close {
  flex: 0 0 auto !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .82) !important;
  color: #e2e8f0 !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
}

.shop-color-modal-close:hover {
  border-color: rgba(248, 113, 113, .45) !important;
  color: #fecaca !important;
  background: rgba(127, 29, 29, .28) !important;
}

.shop-color-preview.modal {
  margin: 0 0 16px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, .72) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
}

.shop-color-preview.modal strong {
  font-size: 20px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
}

.shop-color-squares.modal {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.shop-color-square {
  min-height: 68px !important;
}

.shop-color-purchase {
  margin-top: 16px !important;
  min-height: 48px !important;
}

@media (max-width: 560px) {
  .shop-color-modal-backdrop {
    padding: 14px !important;
    align-items: center !important;
  }

  .shop-color-modal-card {
    width: calc(100vw - 28px) !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .shop-color-modal-head {
    gap: 10px !important;
  }

  .shop-color-squares.modal {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* shop title skin picker */
.shop-title-skin-panel {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,23,42,.58);
  border-radius: 18px;
  padding: 14px;
}

.shop-title-skin-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.shop-title-skin-head strong {
  color: #f8fafc;
}

.shop-title-skin-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shop-title-skin-btn {
  border-radius: 14px;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.14);
  color: #f8fafc;
  font-weight: 950;
}

.shop-title-skin-btn em {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-style: normal;
  font-size: 12px;
}

.shop-title-skin-btn.owned {
  opacity: .5;
}

@media (max-width: 760px) {
  .shop-title-skin-options {
    grid-template-columns: 1fr;
  }
}

/* title skin shop purchase modal */
.shop-title-skin-modal-backdrop[hidden] {
  display: none !important;
}

.shop-title-skin-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1300 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background: rgba(2, 6, 23, .74) !important;
  backdrop-filter: blur(10px) !important;
}

.shop-title-skin-modal-card {
  width: min(840px, 100%) !important;
  max-height: min(840px, 90vh) !important;
  overflow: auto !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, .12), transparent 36%),
    linear-gradient(180deg, rgba(24, 31, 45, .98), rgba(15, 23, 42, .98)) !important;
  padding: 24px !important;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .50) !important;
}

.shop-title-skin-modal-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 18px !important;
  align-items: flex-start !important;
  margin-bottom: 18px !important;
}

.shop-title-skin-modal-head h3 {
  margin: 0 0 6px !important;
  color: #f8fafc !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

.shop-title-skin-modal-head p {
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.shop-title-skin-modal-close,
.shop-title-skin-cancel {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  background: rgba(15, 23, 42, .82) !important;
  color: #e5e7eb !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.shop-title-skin-preview-area {
  border: 1px solid rgba(255, 255, 255, .10) !important;
  background: rgba(15, 23, 42, .52) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  margin-bottom: 16px !important;
}

.shop-title-skin-preview {
  width: min(460px, 100%) !important;
  margin: 0 auto !important;
  min-height: 76px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  display: grid !important;
  place-items: center !important;
  gap: 3px !important;
  color: #f8fafc !important;
  text-align: center !important;
}

.shop-title-skin-preview span {
  color: rgba(255, 255, 255, .72) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.shop-title-skin-preview strong {
  font-size: 20px !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
}

.shop-title-skin-preview em {
  color: rgba(255, 255, 255, .78) !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 850 !important;
}

.shop-title-skin-choice-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 11px !important;
}

.shop-title-skin-choice {
  min-height: 78px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #f8fafc !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  transition: transform .12s ease, outline-color .12s ease, box-shadow .12s ease !important;
}

.shop-title-skin-choice:hover {
  transform: translateY(-1px) !important;
}

.shop-title-skin-choice.selected {
  outline: 2px solid rgba(96, 165, 250, .72) !important;
  outline-offset: 2px !important;
}

.shop-title-skin-choice.owned {
  opacity: .70 !important;
}

.shop-title-skin-choice span {
  display: block !important;
  font-size: 15px !important;
}

.shop-title-skin-choice em {
  display: block !important;
  margin-top: 5px !important;
  font-style: normal !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 12px !important;
}

.shop-title-skin-modal-foot {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.shop-title-skin-purchase {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6) !important;
  color: white !important;
  font-weight: 950 !important;
  box-shadow: 0 12px 28px rgba(96, 165, 250, .24) !important;
  cursor: pointer !important;
}

.shop-title-skin-purchase:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .shop-title-skin-choice-grid {
    grid-template-columns: 1fr !important;
  }

  .shop-title-skin-modal-foot {
    flex-direction: column !important;
  }
}

/* COSMETIC_PURCHASE_BUTTON_BLUE_V1 */

.shop-color-purchase,
.shop-title-skin-purchase,
.profile-frame-purchase,
[data-shop-color-submit],
[data-shop-title-skin-submit],
[data-profile-frame-purchase]{
  min-height:46px!important;
  padding:0 22px!important;
  border:0!important;
  border-radius:12px!important;
  background:
    linear-gradient(
      135deg,
      #38bdf8,
      #3b82f6
    )!important;
  color:#fff!important;
  box-shadow:
    0 8px 22px
    rgba(59,130,246,.28)!important;
  font-size:15px!important;
  font-weight:1000!important;
  cursor:pointer!important;
}

.shop-color-purchase:hover:not(:disabled),
.shop-title-skin-purchase:hover:not(:disabled),
.profile-frame-purchase:hover:not(:disabled),
[data-shop-color-submit]:hover:not(:disabled),
[data-shop-title-skin-submit]:hover:not(:disabled),
[data-profile-frame-purchase]:hover:not(:disabled){
  filter:brightness(1.08)!important;
  transform:translateY(-1px);
}

.shop-color-purchase:disabled,
.shop-title-skin-purchase:disabled,
.profile-frame-purchase:disabled,
[data-shop-color-submit]:disabled,
[data-shop-title-skin-submit]:disabled,
[data-profile-frame-purchase]:disabled{
  opacity:.52!important;
  cursor:not-allowed!important;
  transform:none!important;
}

/* COSMETIC_MAIN_PRICE_HIDE_FINAL_V4 */

.shop-item-card:has(
  [data-shop-buy="profile_frame"]
)
.shop-item-meta,
.shop-item-card:has(
  [data-shop-buy="title_skin"]
)
.shop-item-meta{
  display:none!important;
}

/* TITLE_SKIN_TABS_EXACT_FINAL_V4 */

.shop-title-skin-tabs{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:18px 0 14px!important;
}

.shop-title-skin-tab{
  min-width:96px!important;
  min-height:44px!important;
  padding:0 20px!important;
  border:
    1px solid
    rgba(148,163,184,.25)!important;
  border-radius:999px!important;
  background:
    rgba(15,23,42,.78)!important;
  color:#cbd5e1!important;
  font-weight:950!important;
  cursor:pointer!important;
}

.shop-title-skin-tab.active{
  border-color:
    rgba(56,189,248,.85)!important;
  background:
    rgba(14,116,144,.38)!important;
  color:#f8fafc!important;
  box-shadow:
    0 0 0 1px rgba(56,189,248,.14),
    0 8px 22px rgba(14,165,233,.16)!important;
}

[data-shop-title-skin-modal]
[data-shop-title-skin-family]{
  display:flex;
}

[data-shop-title-skin-modal]
[data-shop-title-skin-family-active="basic"]
[data-shop-title-skin-family="special"]{
  display:none!important;
}

[data-shop-title-skin-modal]
[data-shop-title-skin-family-active="special"]
[data-shop-title-skin-family="basic"]{
  display:none!important;
}

.shop-title-skin-choice em{
  min-height:20px;
  font-style:normal;
}

/* TITLE_SKIN_LAYOUT_CASH_V6 */

/* 카드 중앙에 이름과 가격을 두 줄로 배치 */
.shop-title-skin-choice{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:126px!important;
  padding:18px 14px!important;
  text-align:center!important;
}

.shop-title-skin-choice
> .shop-title-skin-choice-name{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  text-align:center!important;
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:950!important;
  z-index:3!important;
}

.shop-title-skin-choice
> em{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  display:block!important;
  width:100%!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  text-align:center!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-style:normal!important;
  font-weight:850!important;
  z-index:3!important;
}

.shop-title-skin-choice
> .shop-title-skin-sweep{
  position:absolute!important;
}

.shop-title-skin-choice-hidden{
  display:none!important;
}

/* 구매 버튼 밑에 현금 부족 문구 */
.shop-title-skin-modal-foot{
  align-items:flex-start!important;
}

.shop-title-skin-action{
  min-width:210px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
}

.shop-title-skin-action
.shop-title-skin-purchase{
  width:100%!important;
}

.shop-title-skin-cash-error{
  margin:0!important;
  padding:0!important;
  color:#f87171!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:900!important;
  text-align:center!important;
}

.shop-title-skin-cash-error[hidden]{
  display:none!important;
}

@media(max-width:680px){
  .shop-title-skin-choice{
    min-height:104px!important;
    padding:14px 8px!important;
  }

  .shop-title-skin-choice
  > .shop-title-skin-choice-name{
    font-size:17px!important;
  }

  .shop-title-skin-action{
    min-width:0;
    width:100%;
  }
}

/* ALL_COSMETIC_CASH_WARNING_V1 */

.cosmetic-cash-action{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
}

.shop-color-action{
  width:100%;
  margin-top:16px;
}

.shop-color-action
.shop-color-purchase{
  width:100%!important;
  margin-top:0!important;
}

.profile-frame-cash-action{
  min-width:220px;
}

.profile-frame-cash-action
.profile-frame-purchase{
  width:100%!important;
}

.cosmetic-cash-error{
  margin:0!important;
  padding:0!important;
  color:#f87171!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:900!important;
  text-align:center!important;
}

.cosmetic-cash-error[hidden]{
  display:none!important;
}

@media(max-width:680px){
  .profile-frame-cash-action{
    min-width:0;
    width:100%;
  }
}


/* TITLE_SKIN_DEFAULT_AVATAR_SAFE_V1 */

.shop-title-skin-preview-avatar.fallback{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:#ffd266!important;
  color:#111827!important;
  border:0!important;
  box-shadow:
    0 10px 24px rgba(255,210,102,.24)!important;
}

.shop-title-skin-preview-avatar.fallback
> span{
  display:block!important;
  color:#111827!important;
  font-size:28px!important;
  line-height:1!important;
  font-weight:950!important;
}


/* TITLE_SKIN_DEFAULT_AVATAR_CENTER_FIX_V2 */

.shop-title-skin-preview-avatar.fallback{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;

  flex:0 0 auto!important;
  width:82px!important;
  height:82px!important;
  min-width:82px!important;
  min-height:82px!important;
  aspect-ratio:1 / 1!important;

  margin:0!important;
  padding:0!important;

  overflow:hidden!important;
  border:0!important;
  border-radius:999px!important;

  background:#ffd266!important;
  background-color:#ffd266!important;
  background-image:none!important;

  color:#111827!important;
  font-family:inherit!important;
  font-size:34px!important;
  font-style:normal!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-align:center!important;
  text-indent:0!important;

  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}

.shop-title-skin-preview-avatar.fallback::before,
.shop-title-skin-preview-avatar.fallback::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}

.shop-title-skin-preview-avatar.fallback > *{
  display:none!important;
}
