/* MY 화면 (2026-12-01). 예약 사이트 공통 기준(spomotive-ui.css --sp-*) 위에 새 부품만 더한다. */
#my .myh-hub { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; }
#my .myh-side { position: sticky; top: 96px; display: grid; gap: 14px; }
#my .myh-main { display: grid; gap: 14px; min-width: 0; }
#my .myh-box { background: var(--sp-surface, #fff); border: 1px solid var(--sp-line, #e1e5e0); border-radius: 14px; padding: 18px 20px; }
#my .myh-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
#my .myh-head-btns { display: flex; gap: 6px; flex: none; }
#my .myh-box-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
#my .myh-muted { color: var(--sp-text-3, #5f6970); font-size: 13.5px; }
#my .myh-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
#my .myh-chip.ok { background: var(--sp-ok-bg, #e2f0e7); color: var(--sp-ok, #12704a); }
#my .myh-chip.todo { background: var(--sp-todo-bg, #fff4cf); color: var(--sp-todo, #8a6400); }
#my .myh-chip.wait { background: var(--sp-wait-bg, #e6ecf2); color: var(--sp-wait, #36536f); }

/* 회원 카드 — 금속 카드(Kith 참고). 앞: 내 상태, 뒤: 다른 상태 카드가 살짝 비켜 보인다. */
#my .myh-cards { position: relative; padding: 26px 0 4px; }
#my .myh-card { position: relative; aspect-ratio: 1.586 / 1; border-radius: 16px; overflow: hidden; isolation: isolate; }
#my .myh-card.myh-is-back { position: absolute; top: 4px; left: 5%; right: 5%; height: auto; transform: rotate(-4deg); transform-origin: 50% 100%; filter: saturate(.9) brightness(.97); }
#my .myh-card.myh-is-back .myh-emblem { opacity: .55; }
#my .myh-card.myh-is-front { z-index: 1; transition: transform .25s ease, box-shadow .25s ease; }
#my .myh-is-graphite { color: #eef1f3; background:
    radial-gradient(130% 90% at 12% -10%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(125deg, #262b2f 0%, #40484e 26%, #1b1f22 50%, #353c41 74%, #131619 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 1px 0 rgba(255,255,255,.24), 0 22px 40px -14px rgba(8,12,16,.6), 0 4px 10px rgba(8,12,16,.16); }
#my .myh-is-silver { color: #1a2025; background:
    radial-gradient(130% 90% at 12% -10%, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(125deg, #c3c9cd 0%, #eceff0 25%, #a7aeb3 50%, #dde1e3 74%, #9aa2a7 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.14), 0 22px 40px -16px rgba(8,12,16,.45), 0 4px 10px rgba(8,12,16,.10); }
#my .myh-grain { position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='300'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.85' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.1 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E") center / 100% 100%; mix-blend-mode: overlay; opacity: .5; pointer-events: none; }
#my .myh-is-silver .myh-grain { opacity: .9; mix-blend-mode: soft-light; }
#my .myh-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 48%, transparent 58%) 120% 0 / 260% 100% no-repeat; }
#my .myh-tier { position: absolute; left: 20px; top: 17px; display: grid; gap: 2px; line-height: 1.1; }
#my .myh-tier b { font-size: 14px; font-weight: 800; letter-spacing: .22em; }
#my .myh-tier span { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; opacity: .72; }
#my .myh-is-graphite :is(.myh-tier, .myh-name, .myh-lv b) { text-shadow: 0 -1px 0 rgba(0,0,0,.55); }
#my .myh-is-silver :is(.myh-tier, .myh-name, .myh-lv b) { text-shadow: 0 1px 0 rgba(255,255,255,.75); }
#my .myh-card .myh-emv { position: absolute; right: 20px; top: 18px; width: 40px; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
/* 로고: 투명 원본(spomotive-logo-extracted)을 모양 틀로 써서 금속에 새긴 것처럼 */
#my .myh-emblem { position: absolute; left: 50%; top: 47%; width: 50%; aspect-ratio: 792 / 401; transform: translate(-50%, -50%); }
#my .myh-emblem i { display: block; width: 100%; height: 100%;
  -webkit-mask: url(/assets/spomotive-logo-extracted.webp) center / contain no-repeat; mask: url(/assets/spomotive-logo-extracted.webp) center / contain no-repeat; }
#my .myh-is-graphite .myh-emblem { filter: drop-shadow(0 -1px 0 rgba(0,0,0,.6)) drop-shadow(0 1px 0 rgba(255,255,255,.16)) drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
#my .myh-is-graphite .myh-emblem i { background: linear-gradient(168deg, #fff2b3 0%, #ffd21e 30%, #c39812 54%, #ffe489 72%, #b0860f 100%); }
#my .myh-is-silver .myh-emblem { filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 -1px 0 rgba(0,0,0,.28)); }
#my .myh-is-silver .myh-emblem i { background: linear-gradient(168deg, #7d868c 0%, #4b545a 50%, #8a9399 100%); }
#my .myh-foot { position: absolute; left: 20px; right: 14px; bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 14px; }
#my .myh-holder { min-width: 0; }
#my .myh-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#my .myh-since { margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
#my .myh-lv { display: grid; justify-items: center; line-height: 1.05; padding-bottom: 1px; }
#my .myh-lv b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
#my .myh-lv span { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
#my .myh-card .myh-qr { width: 54px; height: 54px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0; border-radius: 11px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.07); color: inherit; font: inherit; cursor: pointer; }
#my .myh-is-silver .myh-qr { border-color: rgba(20,26,31,.28); background: rgba(255,255,255,.32); }
#my .myh-card .myh-qr svg { width: 24px; height: 24px; }
#my .myh-card .myh-qr span { font-size: 10.5px; font-weight: 700; }
#my .myh-card .myh-qr:focus-visible { outline: 3px solid var(--sp-focus-on-dark, #ffd21e); outline-offset: 2px; }
#my .myh-is-silver .myh-qr:focus-visible { outline-color: var(--sp-focus, #1467d6); }
@media (hover: hover) {
  #my .myh-card.myh-is-front:hover { transform: translateY(-3px); }
  #my .myh-card.myh-is-front:hover .myh-sheen { background-position: -20% 0; transition: background-position .9s ease; }
}
@media (prefers-reduced-motion: reduce) {
  #my .myh-card.myh-is-front, #my .myh-card.myh-is-front:hover .myh-sheen { transition: none; }
}

/* 큰 숫자 두 개 */
#my .myh-duo { display: grid; grid-template-columns: 1fr 1fr; background: var(--sp-surface, #fff); border: 1px solid var(--sp-line, #e1e5e0); border-radius: 14px; overflow: hidden; }
#my .myh-duo > div { padding: 16px 18px; }
#my .myh-duo > div + div { border-left: 1px solid var(--sp-line, #e1e5e0); }
#my .myh-duo b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
#my .myh-duo span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--sp-text-3, #5f6970); }
#my .myh-duo .myh-is-soon b { color: var(--sp-danger, #a8322a); }

/* 시작하기 */
#my .myh-start-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
#my .myh-start-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
#my .myh-start-head p { margin: 4px 0 0; }
#my .myh-steps { display: grid; justify-items: end; gap: 7px; flex: none; }
#my .myh-steps > span { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
#my .myh-steps small { font-size: 14px; font-weight: 700; color: var(--sp-text-3, #5f6970); }
#my .myh-steps > div { display: flex; gap: 4px; }
#my .myh-steps i { width: 16px; height: 5px; border-radius: 3px; background: var(--sp-line, #e1e5e0); }
#my .myh-steps i.on { background: var(--sp-ok, #12704a); }
#my .myh-start { container-type: inline-size; }
#my .myh-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
#my .myh-tcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 172px; padding: 16px; border: 1px solid var(--sp-line, #e1e5e0); border-radius: 14px; background: var(--sp-surface, #fff); color: var(--sp-ink, #0d1217); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
#my .myh-tcard:focus-visible { outline: 3px solid var(--sp-focus, #1467d6); outline-offset: 2px; }
#my .myh-tic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--sp-surface-2, #f8faf7); border: 1px solid var(--sp-line, #e1e5e0); color: var(--sp-ink, #0d1217); }
#my .myh-tic svg { width: 22px; height: 22px; }
#my .myh-ttx { display: grid; gap: 3px; flex: 1; align-content: start; }
#my .myh-ttx em { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--sp-text-3, #5f6970); }
#my .myh-ttx strong { font-size: 16px; line-height: 1.3; }
#my .myh-ttx small { font-size: 13.5px; line-height: 1.4; color: var(--sp-text-3, #5f6970); }
#my .myh-tgo { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
#my .myh-tgo svg { width: 16px; height: 16px; transition: transform .15s ease; }
#my .myh-tcard.myh-is-next { background: var(--sp-ink, #0d1217); border-color: var(--sp-ink, #0d1217); color: #fff; }
#my .myh-is-next .myh-tic { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--sp-brand, #ffd21e); }
#my .myh-is-next .myh-ttx small { color: rgba(255,255,255,.72); }
#my .myh-is-next .myh-ttx em { background: rgba(255,255,255,.12); color: #fff; }
#my .myh-is-next:focus-visible { outline-color: var(--sp-focus, #1467d6); }
@media (hover: hover) {
  #my .myh-tcard:hover { border-color: var(--sp-ink, #0d1217); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(13,18,23,.45); }
  #my .myh-tcard:hover .myh-tgo svg { transform: translateX(3px); }
}
#my .myh-dones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sp-line, #e1e5e0); }
#my .myh-dones > .myh-muted { margin-right: 2px; font-weight: 700; }
#my .myh-dchip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--sp-ok-bg, #e2f0e7); color: var(--sp-ok, #12704a); font-size: 13.5px; font-weight: 700; }
#my .myh-dchip svg { width: 16px; height: 16px; }

/* PKLE 묶음 */
#my .myh-lot { padding: 14px 0; border-top: 1px solid var(--sp-line, #e1e5e0); }
#my .myh-lot:first-of-type { border-top: 0; padding-top: 2px; }
#my .myh-lot .myh-lotrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#my .myh-lot .myh-lotrow b { font-size: 15.5px; }
#my .myh-lot .myh-lotrow strong { font-size: 17px; font-variant-numeric: tabular-nums; }
#my .myh-lot .myh-track { height: 10px; border-radius: 10px; background: var(--sp-line, #e1e5e0); margin: 10px 0 6px; overflow: hidden; }
#my .myh-lot .myh-track i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--sp-ink, #0d1217), #3b4650); }

/* 탭 */
#my .myh-tabs { display: flex; gap: 4px; margin: -4px -20px 14px; padding: 0 20px; border-bottom: 1px solid var(--sp-line, #e1e5e0); }
#my .myh-tabs button { min-height: 48px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--sp-text-3, #5f6970); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
#my .myh-tabs button[aria-selected="true"] { color: var(--sp-ink, #0d1217); border-bottom-color: var(--sp-ink, #0d1217); }
#my .myh-list { border-top: 1px solid var(--sp-line, #e1e5e0); }
#my .myh-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--sp-line, #e1e5e0); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
#my .myh-row .myh-d { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--sp-text-3, #5f6970); line-height: 1.2; }
#my .myh-row .myh-d b { display: block; font-size: 19px; color: var(--sp-ink, #0d1217); font-variant-numeric: tabular-nums; }
#my .myh-row strong { display: block; font-size: 15.5px; }
#my .myh-row em { font-style: normal; font-size: 13.5px; color: var(--sp-text-3, #5f6970); }
#my .myh-row .myh-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
#my .myh-empty { padding: 18px 0 4px; }
#my .myh-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#my .myh-levels div { padding: 12px 14px; border: 1px solid var(--sp-line, #e1e5e0); border-radius: 12px; }
#my .myh-levels b { display: block; font-size: 19px; margin-top: 2px; }
#my .myh-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#my .myh-sample { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--sp-brand-soft, #fff4cf); color: var(--sp-todo, #8a6400); font-size: 12px; font-weight: 700; vertical-align: middle; }

/* 체크인: 지금 체크인할 예약이 있으면 카드 버튼에 초록 점, 신청 줄에 'QR 열기' */
#my .myh-card .myh-qr.myh-is-live { position: relative; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.14); }
#my .myh-is-silver .myh-qr.myh-is-live { border-color: rgba(20,26,31,.55); background: rgba(255,255,255,.5); }
#my .myh-card .myh-qr.myh-is-live i { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: no-preference) {
  #my .myh-card .myh-qr.myh-is-live i { animation: myh-pulse 1.8s ease-out infinite; }
  @keyframes myh-pulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(47,191,113,.55); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 12px rgba(47,191,113,0); } }
}
#my .myh-chip.myh-chip-qr { gap: 5px; background: var(--sp-ink, #0d1217); color: #fff; }
#my .myh-chip.myh-chip-qr svg { width: 14px; height: 14px; }

/* 내 정보 탭 (회원정보 수정 탑재) */
#my .myh-me { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 4px 0 16px; }
#my .myh-me-pic { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sp-surface-2, #f8faf7); border: 1px solid var(--sp-line, #e1e5e0); font-size: 20px; font-weight: 800; }
#my .myh-me-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#my .myh-me-who { display: grid; gap: 2px; min-width: 0; }
#my .myh-me-who strong { font-size: 18px; }
#my .myh-me-who span { font-size: 13.5px; color: var(--sp-text-3, #5f6970); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#my .myh-info .myh-ic { display: grid; place-items: center; }
#my .myh-info .myh-ic svg { width: 22px; height: 22px; color: var(--sp-ink, #0d1217); }
#my .myh-info .myh-go { display: grid; place-items: center; color: var(--sp-text-3, #5f6970); }
#my .myh-info .myh-go svg { width: 16px; height: 16px; }
#my .myh-info [data-myh-delete] strong, #my .myh-info [data-myh-delete] .myh-ic svg { color: var(--sp-danger, #a8322a); }
#my .myh-note { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 560px) {
  #my .myh-me { grid-template-columns: auto minmax(0, 1fr); }
  #my .myh-me .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 980px) {
  #my .myh-hub { grid-template-columns: 1fr; }
  #my .myh-side { position: static; }
  #my .myh-levels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) and (min-width: 760px) {
  #my .myh-side { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; }
  #my .myh-cards { grid-row: span 2; }
}
/* 카드 3장이 한 줄에 안 들어가면(상자 안쪽 600px 미만) 한 줄 목록으로 */
@container (max-width: 599px) {
  #my .myh-todo { grid-template-columns: 1fr; }
  #my .myh-tcard { flex-direction: row; align-items: center; min-height: 0; padding: 14px; gap: 12px; }
  #my .myh-ttx em { position: static; justify-self: start; min-height: 20px; padding: 0 8px; margin-bottom: 2px; font-size: 11.5px; }
}
@container (max-width: 439px) {
  #my .myh-tgo > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #my .myh-tgo svg { width: 20px; height: 20px; }
}
/* 카드 옆에 숫자 칸을 둘 자리가 없으면 위아래로 쌓고, 카드는 너무 커지지 않게 */
@media (max-width: 759px) {
  #my .myh-cards { width: 100%; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 560px) {
  #my .myh-duo b { font-size: 24px; }
  #my .myh-steps > div { display: none; }
  #my .myh-tier { left: 18px; top: 15px; }
  #my .myh-foot { left: 18px; right: 12px; bottom: 12px; gap: 12px; }
  #my .myh-name { font-size: 17px; }
}

