﻿/* ============================================================
   EVERYSHARE 대시보드 — 개선된 네오 브루탈리즘 스타일시트
   기존 .v3-dash- 클래스명 100% 유지, 디자인 토큰 경량화
   NANO-3 대비 핵심 변경: 보더 2px 기본화, 쉐도우 경량화,
   활성 탭 라임 배경, focus-visible 통일
   의존성 없음 (design-system.css, v3-theme.css 불필요)
   ============================================================ */

/* ===== 개선된 네오 브루탈리즘 토큰 ===== */
:root {
  /* 색상 팔레트 */
  --nb-cream: #F0FFF4;
  --nb-black: #191F28;
  --nb-orange: #0D9488;
  --nb-lime: #99F6E4;
  --nb-lime-bg: #CCFBF1;
  --nb-lavender: #C4B5FD;
  --nb-yellow: #FDE68A;
  --nb-pink: #FECDD3;
  --nb-sky: #DDD6FE;
  --nb-peach: #FDE68A;

  /* 텍스트 계층 */
  --nb-text: #191F28;
  --nb-text-sub: #555;
  --nb-text-muted: #888;

  /* 보더 위계 — 소프트 카드 스타일 */
  --nb-border: 1.5px solid #D1D5DB;
  /* 기본: 부드러운 회색 */
  --nb-border-thick: 2px solid #191F28;
  /* CTA/강조 전용 */

  /* 쉐도우 — 자연스러운 소프트 쉐도우 */
  --nb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --nb-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --nb-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --nb-shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* 라운딩 */
  --nb-radius: 8px;
  --nb-radius-lg: 12px;
}


/* ===== 리셋 & 전역 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 탭별 콘텐츠 양 차이로 스크롤바 변동 시 레이아웃 밀림 방지 */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: 'Pretendard Variable', -apple-system, sans-serif;
  color: var(--nb-text);
  background: var(--nb-cream);
  -webkit-font-smoothing: antialiased;
}


/* ===== 레이아웃 ===== */
.v3-dash-main {
  padding-top: 56px;
  padding-bottom: 72px;
  min-height: 100vh;
}

.v3-dash-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px;
}


/* ============================================================
   상단 헤더 (56px 고정) — 크림 배경, 2px 하단 보더 (경량화)
   ============================================================ */
.v3-dash-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--nb-cream);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.v3-dash-header-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--nb-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.v3-dash-header-action {
  position: absolute;
  right: 16px;
  padding: 8px 16px;
  background: var(--nb-orange);
  color: white;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s ease;
}

.v3-dash-header-action:hover {
  background: #0B7E74;
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-header-action:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}


/* ============================================================
   탭패널 전환 애니메이션
   ============================================================ */
.v3-dash-panel {
  display: none;
}

.v3-dash-panel[aria-hidden="false"],
.v3-dash-panel.active {
  display: block;
  animation: v3DashFadeUp 0.3s ease forwards;
}

@keyframes v3DashFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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


/* ============================================================
   [홈 탭] 환영 + 스탯 + 퀵액션 + 절약배너
   ============================================================ */
/* 환영 헤더 */
.v3-dash-welcome {
  margin-bottom: 24px;
}

.v3-dash-welcome-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 4px;
}

.v3-dash-welcome-sub {
  font-size: 14px;
  color: var(--nb-text-sub);
  font-weight: 500;
}

/* 스탯 그리드 (2x2) — 2px 보더, 2px 쉐도우 (경량화) */
.v3-dash-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.v3-dash-stat-card {
  padding: 18px 16px;
  border-radius: var(--nb-radius-lg);
  min-height: 90px;
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s ease;
}

.v3-dash-stat-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-stat-card .label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--nb-text);
}

.v3-dash-stat-card .label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--nb-black);
}

.v3-dash-stat-card .value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--nb-text);
}

.v3-dash-stat-card .sub {
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  color: var(--nb-text);
}

/* 스탯 카드 색상 변형 — sky/lime/lavender/peach 파스텔 */
.v3-dash-stat-card.blue {
  background: var(--nb-sky);
}

.v3-dash-stat-card.blue .label .dot {
  background: #0284C7;
}

.v3-dash-stat-card.green {
  background: var(--nb-lime-bg);
}

.v3-dash-stat-card.green .label .dot {
  background: #16A34A;
}

.v3-dash-stat-card.purple {
  background: var(--nb-lavender);
}

.v3-dash-stat-card.purple .label .dot {
  background: #7C3AED;
}

.v3-dash-stat-card.orange {
  background: var(--nb-peach);
}

.v3-dash-stat-card.orange .label .dot {
  background: #EA580C;
}

/* 퀵액션 (3열 그리드) */
.v3-dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.v3-dash-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  cursor: pointer;
  box-shadow: var(--nb-shadow-sm);
  font-family: 'Pretendard Variable', sans-serif;
  transition: all 0.15s ease;
}

.v3-dash-quick-btn:hover {
  box-shadow: var(--nb-shadow);
  transform: translate(-2px, -2px);
  background: var(--nb-yellow);
}

.v3-dash-quick-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-quick-btn-icon {
  font-size: 24px;
}

.v3-dash-quick-btn-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-text);
}

/* 구독 요약 카드 (홈 탭용) */
.v3-dash-sub-summary {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.v3-dash-sub-summary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-sub-summary-icon {
  width: 44px;
  height: 44px;
  background: var(--nb-sky);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.v3-dash-sub-summary-info {
  flex: 1;
  min-width: 0;
}

.v3-dash-sub-summary-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--nb-text);
  margin-bottom: 2px;
}

.v3-dash-sub-summary-meta {
  font-size: 12px;
  color: var(--nb-text-sub);
}

.v3-dash-sub-summary-arrow {
  font-size: 18px;
  color: var(--nb-text);
  font-weight: 900;
}

/* 절약 배너 — 라임 배경, 2px 보더 */
.v3-dash-saving-banner {
  background: var(--nb-lime);
  border-radius: var(--nb-radius-lg);
  padding: 20px;
  color: var(--nb-text);
  display: flex;
  align-items: center;
  gap: 14px;
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-saving-banner-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.v3-dash-saving-banner-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 2px;
}

.v3-dash-saving-banner-desc {
  font-size: 13px;
  font-weight: 500;
}


/* ============================================================
   [내 구독 탭] 필터 + 구독카드 아코디언 + Empty State
   ============================================================ */
/* 필터 행 */
.v3-dash-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* 필터 버튼 — 2px 보더, 활성 시 옐로 + 2px 쉐도우 */
.v3-dash-filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: var(--nb-border);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--nb-text);
  background: var(--nb-cream);
}

.v3-dash-filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-filter-btn[aria-pressed="true"],
.v3-dash-filter-btn.active {
  background: var(--nb-yellow);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-filter-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 구독 카드 — 흰 배경, 2px 보더, 2px 쉐도우 */
.v3-dash-sub-card {
  background: white;
  border-radius: var(--nb-radius-lg);
  margin-bottom: 14px;
  border: 1.5px solid #D1D5DB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.15s ease;
}

.v3-dash-sub-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #9CA3AF;
}

.v3-dash-sub-card[data-status="active"] {
  border-color: var(--nb-orange);
  border-left: 3px solid var(--nb-orange);
}

.v3-dash-sub-card[data-status="expired"] {
  opacity: 1;
}

.v3-dash-sub-card[data-status="expired"] .v3-dash-sub-card-header,
.v3-dash-sub-card[data-status="expired"] .v3-dash-sub-detail-title,
.v3-dash-sub-card[data-status="expired"] .v3-dash-account-row,
.v3-dash-sub-card[data-status="expired"] .v3-dash-detail-table,
.v3-dash-sub-card[data-status="expired"] .v3-dash-action-btn.report {
  opacity: 0.6;
}

.v3-dash-sub-card[data-status="expired"] .v3-dash-resubscribe-box {
  background: var(--nb-peach);
  border-color: #F59E0B;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.v3-dash-sub-card[data-status="expired"] .v3-dash-resubscribe-btn,
.v3-dash-sub-card[data-status="expired"] .v3-dash-action-btn.extend {
  opacity: 1;
}

.v3-dash-sub-card[data-status="cancelled"] {
  border-color: #D1D5DB;
}

/* 카드 헤더 (아코디언 트리거) */
.v3-dash-sub-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: background 0.15s;
  background: none;
  border: none;
  width: 100%;
  font-family: 'Pretendard Variable', sans-serif;
  text-align: left;
}

.v3-dash-sub-card-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

.v3-dash-sub-card-header:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: -3px;
  border-radius: var(--nb-radius);
}

.v3-dash-sub-card-icon {
  width: 44px;
  height: 44px;
  background: var(--nb-sky);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.v3-dash-sub-card-info {
  flex: 1;
  min-width: 0;
}

.v3-dash-sub-card-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 2px;
}

.v3-dash-sub-card-email {
  font-size: 12px;
  color: var(--nb-text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-dash-sub-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.v3-dash-sub-card-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.v3-dash-sub-card-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--nb-text);
}

.v3-dash-sub-card-original {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.v3-dash-sub-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 펼침 화살표 아이콘 */
.v3-dash-sub-card-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--nb-text);
  flex-shrink: 0;
}

.v3-dash-sub-card[aria-expanded="true"] .v3-dash-sub-card-arrow {
  transform: rotate(180deg);
}

/* 뱃지 공통 — 2px 보더, 쉐도우 없음 (경량화) */
.v3-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.v3-dash-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
}

/* active 뱃지: 라임 배경 */
.v3-dash-badge-active {
  background: var(--nb-lime);
  color: var(--nb-text);
}

.v3-dash-badge-active::before {
  background: #16A34A;
}

/* cancelled 뱃지: 옐로 배경 */
.v3-dash-badge-cancelled {
  background: var(--nb-yellow);
  color: var(--nb-text);
}

.v3-dash-badge-cancelled::before {
  background: #EA580C;
}

/* expired 뱃지 (만료 - 72시간 경과): 레드 배경 */
.v3-dash-badge-expired {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.v3-dash-badge-expired::before {
  background: #DC2626;
}

/* expiring 뱃지 (만료예정 - 72시간 이내): 오렌지 배경 */
.v3-dash-badge-expiring {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FDBA74;
}

.v3-dash-badge-expiring::before {
  background: #EA580C;
}

.v3-dash-badge-days {
  background: var(--nb-sky);
  color: var(--nb-text);
}

.v3-dash-badge-days::before {
  display: none;
}

.v3-dash-badge-days.expired {
  background: var(--nb-pink);
  color: var(--nb-text);
}


/* 아코디언 상세 (scrollHeight 기반) — 2px 상단 dashed 보더 */
.v3-dash-sub-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.v3-dash-sub-detail-inner {
  padding: 0 16px 28px;
  border-top: 1px solid #E5E7EB;
}

.v3-dash-sub-detail-section {
  margin-bottom: 18px;
}

.v3-dash-sub-detail-section:last-child {
  margin-bottom: 0;
}

.v3-dash-sub-detail-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 10px;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 연동 계정 */
.v3-dash-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F9FAFB;
  border-radius: var(--nb-radius);
  border: 1px solid #E5E7EB;
  padding: 12px 14px;
}

.v3-dash-account-email {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text);
}

.v3-dash-copy-icon-btn {
  background: var(--nb-yellow);
  border: 1.5px solid #D1D5DB;
  cursor: pointer;
  color: var(--nb-text);
  padding: 6px;
  border-radius: var(--nb-radius);
  transition: all 0.15s;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-copy-icon-btn:hover {
  background: var(--nb-lime);
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-copy-icon-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-copy-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* 상세 테이블 (키-값 쌍) */
.v3-dash-detail-table {
  background: #F9FAFB;
  border-radius: var(--nb-radius);
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

.v3-dash-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #E5E7EB;
}

.v3-dash-detail-row:last-child {
  border-bottom: none;
}

.v3-dash-detail-row-label {
  font-size: 13px;
  color: var(--nb-text-sub);
  font-weight: 500;
}

.v3-dash-detail-row-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text);
}

.v3-dash-detail-row-value.highlight {
  color: var(--nb-orange);
  font-weight: 900;
}

.v3-dash-detail-row-value.danger {
  color: #E03131;
  font-weight: 900;
}

/* 포인트 자동사용 토글 */
.v3-dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 12px 14px;
  margin-top: 10px;
}

.v3-dash-toggle-info {
  flex: 1;
}

.v3-dash-toggle-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text);
}

.v3-dash-toggle-desc {
  font-size: 12px;
  color: var(--nb-text-sub);
  margin-top: 2px;
}

.v3-dash-toggle-balance {
  font-size: 12px;
  color: var(--nb-orange);
  font-weight: 700;
  margin-top: 2px;
}

/* 토글 스위치 — 2px 보더 */
.v3-dash-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.v3-dash-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.v3-dash-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #CED4DA;
  border-radius: 26px;
  border: var(--nb-border);
  transition: 0.3s;
}

.v3-dash-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  border: 2px solid var(--nb-black);
  transition: 0.3s;
}

/* ON 시 라임 배경 */
.v3-dash-toggle-switch input:checked+.v3-dash-toggle-slider {
  background: var(--nb-lime);
}

.v3-dash-toggle-switch input:checked+.v3-dash-toggle-slider::before {
  transform: translateX(22px);
}

.v3-dash-toggle-switch input:focus-visible+.v3-dash-toggle-slider {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 구독 취소 링크 */
.v3-dash-cancel-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #9CA3AF;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: 'Pretendard Variable', sans-serif;
  transition: color 0.2s;
}

.v3-dash-cancel-link:hover {
  color: #DC2626;
}

.v3-dash-cancel-link:focus-visible {
  outline: 3px solid #DC2626;
  outline-offset: 2px;
}

/* 재구독 안내 박스 */
.v3-dash-resubscribe-box {
  background: var(--nb-peach);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 16px;
  margin-top: 10px;
  text-align: center;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-resubscribe-box p {
  font-size: 13px;
  color: var(--nb-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.v3-dash-resubscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--nb-orange);
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Pretendard Variable', sans-serif;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  cursor: pointer;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-resubscribe-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-resubscribe-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 완전 만료 안내 박스 */
.v3-dash-completed-box {
  background: var(--nb-pink);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 16px;
  margin-top: 10px;
  text-align: center;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-completed-box p {
  font-size: 13px;
  color: var(--nb-text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.v3-dash-completed-hint {
  font-size: 12px;
  color: var(--nb-text-sub) !important;
}

/* 삭제 모달 확인 버튼 */
.v3-dash-modal-confirm.delete {
  background: #DC2626;
  color: white;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  font-weight: 700;
  padding: 10px 20px;
}

.v3-dash-modal-confirm.delete:hover {
  background: #B91C1C;
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow);
}

/* 완전 만료 카드 좌측 보더 */
.v3-dash-sub-card[data-expired-type="completed"] {
  border-left: 5px solid #9CA3AF;
  opacity: 0.85;
}

/* 삭제 애니메이션 */
.v3-dash-sub-card.deleting {
  animation: v3DashCardDelete 0.4s ease forwards;
}

@keyframes v3DashCardDelete {
  0% {
    opacity: 1;
    max-height: 200px;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    max-height: 0;
    transform: scale(0.95);
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* 초대링크 (구독 상세 내부) */
.v3-dash-invite-box {
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 12px 14px;
}

.v3-dash-invite-label {
  font-size: 12px;
  color: var(--nb-text-sub);
  margin-bottom: 4px;
}

.v3-dash-invite-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-orange);
  word-break: break-all;
  margin-bottom: 10px;
}

.v3-dash-invite-btns {
  display: flex;
  gap: 8px;
}

.v3-dash-invite-action-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: var(--nb-radius);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  border: var(--nb-border);
  transition: all 0.15s;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-invite-action-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-invite-action-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-invite-action-btn.primary {
  background: var(--nb-orange);
  color: white;
}

.v3-dash-invite-action-btn.secondary {
  background: var(--nb-cream);
  color: var(--nb-text);
}

.v3-dash-invite-action-btn.warning {
  background: var(--nb-yellow);
  color: var(--nb-text);
}

/* 상세 액션 버튼 */
.v3-dash-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.v3-dash-action-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: var(--nb-radius);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-action-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-action-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-action-btn.extend {
  background: var(--nb-orange);
  color: white;
}

/* 삭제 버튼 — danger 스타일 */
.v3-dash-action-btn.delete {
  background: #FF4757;
  color: white;
}

.v3-dash-action-btn.delete:hover {
  background: #E03E4E;
}

.v3-dash-action-btn.report {
  background: var(--nb-cream);
  color: var(--nb-text);
}

/* 구독 추가 빈 카드 (CTA) */
.v3-dash-add-card {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  padding: 32px 20px;
  text-align: center;
  border: 2px dashed var(--nb-black);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-add-card-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.v3-dash-add-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text-sub);
  margin-bottom: 14px;
}

.v3-dash-add-card-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--nb-orange);
  color: white;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-add-card-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-add-card-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 가족그룹 튜토리얼 버튼 */
.v3-dash-tutorial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 12px;
  background: var(--nb-lime-bg);
  color: var(--nb-text);
  border: 1.5px solid #D1D5DB;
  border-radius: var(--nb-radius);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-tutorial-btn:hover {
  background: var(--nb-lime);
  box-shadow: var(--nb-shadow);
  transform: translate(-1px, -1px);
}

.v3-dash-tutorial-btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.v3-dash-tutorial-btn svg {
  flex-shrink: 0;
  color: var(--nb-orange);
}

/* Empty State (구독 0건) */
.v3-dash-empty {
  text-align: center;
  padding: 80px 20px;
}

.v3-dash-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: #9CA3AF;
}

.v3-dash-empty-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 8px;
}

.v3-dash-empty-desc {
  font-size: 14px;
  color: var(--nb-text-sub);
  margin-bottom: 24px;
  line-height: 1.5;
}

.v3-dash-empty-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--nb-orange);
  color: white;
  border: var(--nb-border);
  border-radius: var(--nb-radius-lg);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--nb-shadow);
  transition: all 0.15s;
}

.v3-dash-empty-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow-hover);
}

.v3-dash-empty-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}


/* ============================================================
   [구매하기 탭] 안전결제배너 + 상품카드 + Coming Soon
   ============================================================ */
.v3-dash-safety-banner {
  background: var(--nb-lime);
  border-radius: var(--nb-radius-lg);
  padding: 24px;
  color: var(--nb-text);
  margin-bottom: 28px;
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-safety-banner-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.v3-dash-safety-banner-icon {
  font-size: 28px;
}

.v3-dash-safety-banner h2 {
  font-size: 19px;
  font-weight: 900;
}

.v3-dash-safety-banner p {
  font-size: 14px;
  margin-top: 4px;
  font-weight: 500;
}

.v3-dash-safety-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v3-dash-safety-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.v3-dash-safety-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nb-black);
  border: 2px solid var(--nb-black);
  flex-shrink: 0;
}

.v3-dash-cart-title {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
}

/* 상품 카드 — 2px 보더 */
.v3-dash-product-item {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 14px;
}

.v3-dash-product-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
  background: var(--nb-lime-bg);
}

.v3-dash-product-emoji {
  font-size: 28px;
  width: 48px;
  height: 48px;
  background: var(--nb-sky);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-dash-product-info {
  flex: 1;
}

.v3-dash-product-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--nb-text);
}

.v3-dash-product-period {
  font-size: 13px;
  color: var(--nb-text-sub);
  font-weight: 500;
}

.v3-dash-product-prices {
  text-align: right;
}

.v3-dash-product-original {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.v3-dash-product-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--nb-orange);
}

/* Coming Soon 플레이스홀더 */
.v3-dash-coming-soon {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.5;
  border: 2px dashed var(--nb-black);
  margin-bottom: 14px;
}

.v3-dash-coming-soon-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 700;
  margin-top: 4px;
}


/* ============================================================
   [친구초대 탭] 스탯 + 코드/링크 + 적립방법 + 현금화
   ============================================================ */
.v3-dash-invite-title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
}

/* 초대 스탯 (2x2) — 2px 보더 */
.v3-dash-invite-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.v3-dash-invite-stat {
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-invite-stat:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-invite-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-dash-invite-stat-icon.blue {
  background: var(--nb-sky);
  color: #0284C7;
}

.v3-dash-invite-stat-icon.green {
  background: var(--nb-lime-bg);
  color: #16A34A;
}

.v3-dash-invite-stat-icon.purple {
  background: var(--nb-lavender);
  color: #7C3AED;
}

.v3-dash-invite-stat-icon.teal {
  background: var(--nb-peach);
  color: #0D9488;
}

.v3-dash-invite-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.v3-dash-invite-stat-label {
  font-size: 12px;
  color: var(--nb-text-sub);
  font-weight: 500;
}

.v3-dash-invite-stat-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-text);
}

/* 섹션 제목 */
.v3-dash-section-heading {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--nb-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* 접이식 섹션 (적립방법/현금화) */
.v3-dash-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Pretendard Variable', sans-serif;
}

/* 접이식 섹션 사이 여유 공간 */
.v3-dash-collapsible-body+.v3-dash-collapsible-header {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #CBD5E1;
}

.v3-dash-collapsible-header:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.v3-dash-collapsible-arrow {
  width: 20px;
  height: 20px;
  color: var(--nb-text);
  transition: transform 0.3s;
}

.v3-dash-collapsible-header[aria-expanded="true"] .v3-dash-collapsible-arrow {
  transform: rotate(180deg);
}

.v3-dash-collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* 코드/링크 카드 — 피치 배경, 2px 보더 */
.v3-dash-code-card {
  background: var(--nb-peach);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-code-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.v3-dash-code-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--nb-radius);
  background: var(--nb-cream);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.v3-dash-code-card-title {
  font-size: 15px;
  font-weight: 900;
}

.v3-dash-code-card-desc {
  font-size: 13px;
  color: var(--nb-text-sub);
}

.v3-dash-code-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 12px 16px;
}

.v3-dash-code-label {
  font-size: 12px;
  color: var(--nb-text-sub);
}

.v3-dash-code-value {
  font-size: 17px;
  font-weight: 900;
  color: var(--nb-text);
  flex: 1;
}

.v3-dash-code-link-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-orange);
  flex: 1;
  word-break: break-all;
}

.v3-dash-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--nb-radius);
  background: var(--nb-orange);
  border: var(--nb-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-copy-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-copy-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-copy-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

/* 포인트 적립 방법 카드 — 2px 보더, 라임/스카이 배경 */
.v3-dash-earn-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.v3-dash-earn-card {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-earn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.v3-dash-earn-icon.green {
  background: var(--nb-lime-bg);
}

.v3-dash-earn-icon.blue {
  background: var(--nb-sky);
}

.v3-dash-earn-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}

.v3-dash-earn-desc {
  font-size: 13px;
  color: var(--nb-text-sub);
  line-height: 1.5;
}

.v3-dash-earn-highlight {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: var(--nb-yellow);
  border-radius: var(--nb-radius);
  border: 2px solid var(--nb-black);
  font-size: 14px;
  font-weight: 900;
  color: var(--nb-text);
  box-shadow: 1px 1px 0px var(--nb-black);
}

.v3-dash-earn-banner {
  background: var(--nb-peach);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-earn-banner-emoji {
  font-size: 20px;
}

.v3-dash-earn-banner-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--nb-text);
}

.v3-dash-earn-banner-desc {
  font-size: 12px;
  color: var(--nb-text-sub);
}

/* 포인트 현금화 */
.v3-dash-withdraw-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.v3-dash-withdraw-card {
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 18px;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-withdraw-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.v3-dash-withdraw-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.v3-dash-withdraw-card-icon.gold {
  background: var(--nb-yellow);
}

.v3-dash-withdraw-card-icon.red {
  background: var(--nb-pink);
}

.v3-dash-withdraw-card h3 {
  font-size: 15px;
  font-weight: 900;
}

.v3-dash-withdraw-info {
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.v3-dash-withdraw-info strong {
  color: var(--nb-orange);
  font-weight: 900;
}

.v3-dash-withdraw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--nb-cream);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--nb-text);
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
}

.v3-dash-withdraw-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
  background: var(--nb-yellow);
}

.v3-dash-withdraw-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 프로그레스 바 — 2px 보더, 오렌지 fill */
.v3-dash-progress-wrap {
  text-align: center;
  font-size: 13px;
  color: var(--nb-text-sub);
}

.v3-dash-progress-wrap strong {
  color: var(--nb-orange);
  font-weight: 900;
}

.v3-dash-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--nb-lime-bg);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
  border: var(--nb-border);
}

.v3-dash-progress-fill {
  height: 100%;
  background: var(--nb-orange);
  border-radius: 100px;
  transition: width 1s ease;
}


/* ============================================================
   [전체메뉴 탭] 프로필 + 메뉴그룹 + 로그아웃
   ============================================================ */
/* 프로필 카드 — 라벤더 배경, 2px 보더 */
.v3-dash-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--nb-lavender);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--nb-orange);
  border: var(--nb-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-profile-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--nb-text);
}

.v3-dash-profile-email {
  font-size: 13px;
  color: #4B5563;
  font-weight: 500;
}

/* 메뉴 그룹 */
.v3-dash-menu-group {
  margin-bottom: 20px;
}

.v3-dash-menu-group-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--nb-text-sub);
  margin-bottom: 8px;
  padding-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v3-dash-menu-list {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  overflow: hidden;
  box-shadow: var(--nb-shadow-sm);
}

/* 메뉴 아이템 */
.v3-dash-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.1s;
  border-left: none;
  border-right: none;
  border-top: none;
  background: none;
  width: 100%;
  font-family: 'Pretendard Variable', sans-serif;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.v3-dash-menu-item:last-child {
  border-bottom: none;
}

.v3-dash-menu-item:hover {
  background: var(--nb-yellow);
}

.v3-dash-menu-item:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: -3px;
}

.v3-dash-menu-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--nb-radius);
  border: 1.5px solid #D1D5DB;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-dash-menu-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--nb-text);
  fill: none;
  stroke-width: 2;
}

.v3-dash-menu-item-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--nb-text);
  flex: 1;
}

.v3-dash-menu-item-arrow {
  font-size: 16px;
  color: var(--nb-text);
  font-weight: 900;
}

.v3-dash-menu-item.danger .v3-dash-menu-item-text {
  color: #DC2626;
}

.v3-dash-menu-version {
  text-align: center;
  font-size: 13px;
  color: #9CA3AF;
  padding: 16px;
  font-weight: 500;
}


/* ============================================================
   모달 — 크림 배경, 3px 보더, 8px 쉐도우 (강조)
   ============================================================ */
.v3-dash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.v3-dash-modal-overlay.show {
  display: flex;
  animation: v3FadeIn 0.2s;
}

@keyframes v3FadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.v3-dash-modal {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border-thick);
  max-width: 380px;
  width: 100%;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: var(--nb-shadow-xl);
  animation: v3FadeUp 0.3s ease;
}

@keyframes v3FadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.v3-dash-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.v3-dash-modal h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 8px;
}

.v3-dash-modal-date {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 20px;
  line-height: 1.6;
}

.v3-dash-modal-date strong {
  color: var(--nb-orange);
  font-weight: 900;
}

.v3-dash-modal-losses {
  background: var(--nb-pink);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.v3-dash-modal-loss-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nb-text);
  padding: 6px 0;
  font-weight: 500;
}

.v3-dash-modal-loss-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #DC2626;
}

.v3-dash-modal-keep {
  width: 100%;
  padding: 14px;
  background: var(--nb-orange);
  color: white;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: var(--nb-border-thick);
  border-radius: var(--nb-radius);
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: var(--nb-shadow);
  transition: all 0.15s;
}

.v3-dash-modal-keep:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow-hover);
}

.v3-dash-modal-keep:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-modal-confirm {
  border: none;
  background: none;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  font-weight: 500;
}

.v3-dash-modal-confirm:hover {
  color: #DC2626;
}

.v3-dash-modal-confirm:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}


/* ============================================================
   하단 네비게이션 (5탭) — 크림 배경, 2px 상단 보더
   활성 탭: 라임 배경, 2px 보더 원형, 2px 쉐도우
   ============================================================ */
.v3-dash-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 680px;
  background: var(--nb-cream);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
  z-index: 100;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

.v3-dash-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Pretendard Variable', sans-serif;
  transition: all 0.15s;
  border-radius: var(--nb-radius);
  margin: 2px 4px;
}

/* 활성 탭: 라임 배경 + 2px 보더 원형 + 2px 쉐도우 */
.v3-dash-nav-item[aria-selected="true"] {
  color: var(--nb-text);
  background: var(--nb-lime);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  font-weight: 900;
}

.v3-dash-nav-item:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: -3px;
  border-radius: var(--nb-radius);
}

.v3-dash-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}


/* ============================================================
   토스트 알림 — 라임 배경, 2px 보더, 2px 쉐도우
   ============================================================ */
.v3-dash-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: var(--nb-lime);
  color: var(--nb-text);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.v3-dash-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   스켈레톤 로딩
   ============================================================ */
.v3-dash-skeleton {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  overflow: hidden;
  position: relative;
}

.v3-dash-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 100%);
  animation: v3DashShimmer 1.5s infinite;
}

@keyframes v3DashShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.v3-dash-skeleton-stat {
  height: 90px;
  background: #E5E7EB;
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
}

.v3-dash-skeleton-card {
  height: 80px;
  background: #E5E7EB;
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  margin-bottom: 12px;
}

.v3-dash-skeleton-bar {
  height: 40px;
  background: #E5E7EB;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  margin-bottom: 10px;
}


/* ============================================================
   반응형 — 360px (초소형 모바일)
   ============================================================ */
@media (max-width: 360px) {
  .v3-dash-content {
    padding: 16px 12px;
  }

  .v3-dash-stat-grid,
  .v3-dash-invite-stat-grid {
    gap: 8px;
  }

  .v3-dash-stat-card {
    padding: 14px 12px;
    min-height: 80px;
  }

  .v3-dash-stat-card .value {
    font-size: 20px;
  }

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

  .v3-dash-welcome-name {
    font-size: 18px;
  }

  .v3-dash-quick-actions {
    gap: 8px;
  }

  .v3-dash-quick-btn {
    padding: 14px 4px;
  }

  .v3-dash-quick-btn-icon {
    font-size: 20px;
  }

  .v3-dash-quick-btn-label {
    font-size: 11px;
  }

  .v3-dash-filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .v3-dash-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}


/* ============================================================
   반응형 — 480px (소형 모바일)
   ============================================================ */
@media (max-width: 480px) {

  /* 구독 카드 헤더 2행 구조 */
  .v3-dash-sub-card-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    position: relative;
  }

  .v3-dash-sub-card-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: var(--nb-radius);
  }

  .v3-dash-sub-card-name {
    font-size: 14px;
  }

  .v3-dash-sub-card-right {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 48px;
  }

  .v3-dash-sub-card-price {
    font-size: 16px;
  }

  .v3-dash-sub-card-original {
    font-size: 11px;
  }

  .v3-dash-sub-card-arrow {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 14px;
    top: 20px;
  }

  .v3-dash-sub-detail-inner {
    padding: 0 14px 16px;
  }

  .v3-dash-sub-detail-title {
    font-size: 12px;
  }

  .v3-dash-detail-row {
    padding: 8px 12px;
  }

  .v3-dash-detail-row-label {
    font-size: 12px;
  }

  .v3-dash-detail-row-value {
    font-size: 13px;
  }

  .v3-dash-invite-action-btn {
    font-size: 12px;
    padding: 7px 0;
  }

  .v3-dash-action-btn {
    font-size: 13px;
    padding: 11px 0;
  }

  /* 상품 카드 */
  .v3-dash-product-item {
    padding: 16px;
    gap: 12px;
  }

  .v3-dash-product-emoji {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

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

  .v3-dash-product-period {
    font-size: 12px;
  }

  .v3-dash-product-price {
    font-size: 18px;
  }

  .v3-dash-product-original {
    font-size: 11px;
  }

  .v3-dash-safety-banner {
    padding: 20px;
    border-radius: var(--nb-radius-lg);
  }

  .v3-dash-safety-banner h2 {
    font-size: 17px;
  }

  .v3-dash-safety-banner p {
    font-size: 13px;
  }

  .v3-dash-safety-item {
    font-size: 13px;
  }

  .v3-dash-cart-title {
    font-size: 18px;
  }

  .v3-dash-add-card {
    padding: 24px 16px;
  }

  .v3-dash-add-card-icon {
    font-size: 28px;
  }

  .v3-dash-add-card-title {
    font-size: 13px;
  }
}


/* ============================================================
   반응형 — 768px (태블릿)
   ============================================================ */
@media (min-width: 768px) {
  .v3-dash-content {
    padding: 24px 24px;
  }

  .v3-dash-stat-grid,
  .v3-dash-invite-stat-grid {
    gap: 14px;
  }

  .v3-dash-stat-card {
    padding: 20px 18px;
  }

  .v3-dash-quick-actions {
    gap: 14px;
  }

  .v3-dash-quick-btn {
    padding: 22px 12px;
  }

  .v3-dash-earn-grid {
    flex-direction: row;
  }

  .v3-dash-earn-card {
    flex: 1;
  }

  .v3-dash-withdraw-grid {
    flex-direction: row;
  }

  .v3-dash-withdraw-card {
    flex: 1;
  }
}


/* ============================================================
   반응형 — 1024px (데스크탑)
   ============================================================ */
@media (min-width: 1024px) {
  .v3-dash-content {
    padding: 32px 24px;
  }

  .v3-dash-stat-card .value {
    font-size: 28px;
  }

  .v3-dash-sub-card-header {
    padding: 20px;
  }

  .v3-dash-sub-detail-inner {
    padding: 0 20px 24px;
  }
}


/* ============================================================
   prefers-reduced-motion — 모션 감소 설정 대응
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  .v3-dash-panel[aria-hidden="false"],
  .v3-dash-panel.active {
    animation: none;
  }

  .v3-dash-sub-card-detail {
    transition: none;
  }

  .v3-dash-collapsible-body {
    transition: none;
  }

  .v3-dash-sub-card-arrow,
  .v3-dash-collapsible-arrow {
    transition: none;
  }

  .v3-dash-skeleton::after {
    animation: none;
  }

  .v3-dash-quick-btn:hover {
    transform: none;
  }

  .v3-dash-toast {
    transition: opacity 0.1s;
  }

  .v3-dash-progress-fill {
    transition: none;
  }
}


/* ============================================================
   구매 플로우 — 6단계 미션 클리어 방식 (개선된 네오 브루탈리즘)
   ============================================================ */

/* ===== 구매 헤더 ===== */
.v3-dash-purchase-header {
  margin-bottom: 24px;
}

.v3-dash-purchase-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 4px;
}

.v3-dash-purchase-subtitle {
  font-size: 14px;
  color: var(--nb-text-sub);
  font-weight: 500;
}


/* ===== 스텝 인디케이터 (6단계) — 2px 보더 ===== */
.v3-dash-purchase-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0 4px;
}

.v3-dash-purchase-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

/* 스텝 간 연결선 */
.v3-dash-purchase-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #D1D5DB;
  margin: 0 6px;
  transition: background 0.5s ease;
  border-radius: 0;
}

.v3-dash-purchase-step.done:not(:last-child)::after {
  background: var(--nb-lime);
}

/* 스텝 원형 숫자 — 2px 보더 */
.v3-dash-purchase-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  border: var(--nb-border);
  color: #9CA3AF;
  background: var(--nb-cream);
  transition: border-color 0.4s ease, background 0.4s ease;
  flex-shrink: 0;
}

/* 활성: 오렌지 배경 */
.v3-dash-purchase-step.active .v3-dash-purchase-step-circle {
  border-color: var(--nb-black);
  color: white;
  background: var(--nb-orange);
  box-shadow: var(--nb-shadow-sm);
}

/* 완료: 라임 배경 */
.v3-dash-purchase-step.done .v3-dash-purchase-step-circle {
  border-color: var(--nb-black);
  color: transparent;
  background: var(--nb-lime);
  position: relative;
}

.v3-dash-purchase-step.done .v3-dash-purchase-step-circle::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--nb-text);
  font-weight: 900;
}

/* 스텝 라벨 */
.v3-dash-purchase-step-label {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.v3-dash-purchase-step.active .v3-dash-purchase-step-label {
  color: var(--nb-orange);
}

.v3-dash-purchase-step.done .v3-dash-purchase-step-label {
  color: #16A34A;
}


/* ===== 섹션 카드 (각 단계) — 2px 보더 ===== */
.v3-dash-purchase-section {
  background: var(--nb-cream);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.v3-dash-purchase-section.active {
  border-color: var(--nb-orange);
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-section.completed {
  border-color: var(--nb-black);
}

.v3-dash-purchase-section.locked {
  opacity: 0.5;
  pointer-events: none;
}

.v3-dash-purchase-section.hidden {
  display: none;
}

/* 섹션 헤더 */
.v3-dash-purchase-section-head {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v3-dash-purchase-section-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.v3-dash-purchase-section-head-left>div {
  min-width: 0;
}

.v3-dash-purchase-section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--nb-cream);
  transition: all 0.3s ease;
}

.v3-dash-purchase-section.active .v3-dash-purchase-section-icon {
  background: var(--nb-peach);
}

.v3-dash-purchase-section.completed .v3-dash-purchase-section-icon {
  background: var(--nb-lime);
}

.v3-dash-purchase-section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--nb-text);
}

.v3-dash-purchase-section-subtitle {
  font-size: 12px;
  color: var(--nb-text-sub);
  margin-top: 2px;
  font-weight: 500;
}

/* 섹션 상태 배지 — 2px 보더 */
.v3-dash-purchase-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  border: 2px solid var(--nb-black);
}

.v3-dash-purchase-badge.pending {
  background: var(--nb-cream);
  color: #9CA3AF;
}

.v3-dash-purchase-badge.active {
  background: var(--nb-peach);
  color: var(--nb-text);
}

.v3-dash-purchase-badge.done {
  background: var(--nb-lime);
  color: var(--nb-text);
}

/* 섹션 본문 */
.v3-dash-purchase-section-body {
  padding: 0 20px 20px;
  display: none;
}

.v3-dash-purchase-section.active .v3-dash-purchase-section-body,
.v3-dash-purchase-section.completed .v3-dash-purchase-section-body {
  display: block;
}

.v3-dash-purchase-section.completed .v3-dash-purchase-section-body {
  opacity: 0.55;
  pointer-events: none;
}

/* ===== 완료 섹션 수정 버튼 ===== */
.v3-dash-purchase-edit-btn {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  background: var(--nb-cream);
  color: var(--nb-text);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 1px 1px 0px var(--nb-black);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.v3-dash-purchase-section.completed .v3-dash-purchase-edit-btn {
  display: inline-flex;
}

.v3-dash-purchase-edit-btn:hover {
  background: var(--nb-yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-edit-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 완료 헤더에 hover 커서 표시 */
.v3-dash-purchase-section.completed .v3-dash-purchase-section-head {
  cursor: pointer;
  transition: background 0.15s ease;
}

.v3-dash-purchase-section.completed .v3-dash-purchase-section-head:hover {
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--nb-radius) var(--nb-radius) 0 0;
}

/* ===== 포인트 자동 전액 사용 토글 ===== */
.v3-dash-purchase-auto-point-toggle {
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  margin-top: 10px;
}


/* ===== STEP 1: 서비스 카드 그리드 ===== */
.v3-dash-purchase-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* 서비스 카드 — 2px 보더, 선택 시 라임 + 4px 쉐도우 */
.v3-dash-purchase-service-card {
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  background: var(--nb-cream);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-service-card:hover:not(.disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
  background: var(--nb-yellow);
}

.v3-dash-purchase-service-card.selected {
  background: var(--nb-lime);
  box-shadow: var(--nb-shadow);
  transform: translate(-2px, -2px);
}

.v3-dash-purchase-service-card.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.v3-dash-purchase-service-card:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 체크 아이콘 */
.v3-dash-purchase-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-size: 11px;
  color: transparent;
  background: var(--nb-cream);
}

.v3-dash-purchase-service-card.selected .v3-dash-purchase-card-check,
.v3-dash-purchase-duration-card.selected .v3-dash-purchase-card-check {
  background: var(--nb-orange);
  border-color: var(--nb-black);
  color: white;
}

/* 서비스 아이콘 */
.v3-dash-purchase-service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.v3-dash-purchase-service-icon.youtube {
  background: #FF0000;
}

.v3-dash-purchase-service-icon.netflix {
  background: #E50914;
}

.v3-dash-purchase-service-icon.spotify {
  background: #1DB954;
}

.v3-dash-purchase-service-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.v3-dash-purchase-service-card h3 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--nb-text);
}

.v3-dash-purchase-original {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.v3-dash-purchase-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-orange);
}

.v3-dash-purchase-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--nb-text-sub);
}

.v3-dash-purchase-discount {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background: var(--nb-yellow);
  color: var(--nb-text);
  border-radius: var(--nb-radius);
  border: 2px solid var(--nb-black);
  font-size: 11px;
  font-weight: 900;
}

.v3-dash-purchase-soon {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 700;
  margin-top: 8px;
}


/* ===== STEP 2: 이용 기간 카드 — 2px 보더, 선택 시 오렌지 보더 ===== */
.v3-dash-purchase-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.v3-dash-purchase-duration-card {
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  background: var(--nb-cream);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-duration-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow);
  background: var(--nb-yellow);
}

.v3-dash-purchase-duration-card.selected {
  border-color: var(--nb-orange);
  background: var(--nb-cream);
  box-shadow: var(--nb-shadow);
  transform: translate(-2px, -2px);
}

.v3-dash-purchase-duration-card:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 인기/최장기 배지 */
.v3-dash-purchase-duration-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  border: 2px solid var(--nb-black);
}

.v3-dash-purchase-duration-badge.best {
  background: var(--nb-orange);
  color: white;
}

.v3-dash-purchase-duration-badge.popular {
  background: var(--nb-lime);
  color: var(--nb-text);
}

.v3-dash-purchase-duration-months {
  font-size: 36px;
  font-weight: 900;
  color: var(--nb-text);
  line-height: 1;
  margin-bottom: 2px;
}

.v3-dash-purchase-duration-months small {
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text-sub);
}

.v3-dash-purchase-duration-label {
  font-size: 13px;
  color: var(--nb-text-sub);
  font-weight: 700;
  margin-bottom: 10px;
}

.v3-dash-purchase-duration-price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid #E5E7EB;
}

.v3-dash-purchase-duration-total {
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-orange);
}

.v3-dash-purchase-duration-total small {
  font-size: 12px;
  font-weight: 500;
  color: var(--nb-text-sub);
}

.v3-dash-purchase-duration-monthly {
  font-size: 12px;
  color: var(--nb-text-sub);
  font-weight: 500;
}

.v3-dash-purchase-duration-original {
  font-size: 11px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.v3-dash-purchase-duration-save {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  background: var(--nb-lime);
  color: var(--nb-text);
  border-radius: var(--nb-radius);
  border: 2px solid var(--nb-black);
  font-size: 11px;
  font-weight: 900;
}


/* ===== STEP 3: 약관 동의 — 2px 보더, 체크 시 라임 ===== */
.v3-dash-purchase-all-agree {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  cursor: pointer;
  margin-bottom: 12px;
  user-select: none;
  transition: all 0.15s ease;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-all-agree:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-all-agree.checked {
  background: var(--nb-lime);
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-all-agree:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-purchase-all-agree-text {
  font-size: 15px;
  font-weight: 900;
  color: var(--nb-text);
}

/* 체크박스 — 2px 보더, 체크 시 라임 배경 */
.v3-dash-purchase-term-check {
  width: 22px;
  height: 22px;
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-size: 11px;
  color: transparent;
  background: var(--nb-cream);
}

.v3-dash-purchase-all-agree .v3-dash-purchase-term-check {
  width: 24px;
  height: 24px;
  border-radius: var(--nb-radius);
}

.v3-dash-purchase-all-agree.checked .v3-dash-purchase-term-check,
.v3-dash-purchase-term-item.checked .v3-dash-purchase-term-check {
  background: var(--nb-lime);
  border-color: var(--nb-black);
  color: var(--nb-text);
  font-weight: 900;
}

/* 약관 목록 */
.v3-dash-purchase-terms-list {
  display: flex;
  flex-direction: column;
}

.v3-dash-purchase-term-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 2px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.v3-dash-purchase-term-item:last-child {
  border-bottom: none;
}

.v3-dash-purchase-term-item:hover {
  background: var(--nb-yellow);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: var(--nb-radius);
}

.v3-dash-purchase-term-item:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-purchase-term-text {
  flex: 1;
  font-size: 13px;
  color: var(--nb-text);
  font-weight: 500;
}

.v3-dash-purchase-required {
  color: #EF4444;
  font-weight: 900;
  font-size: 11px;
  margin-left: 4px;
}

.v3-dash-purchase-term-view {
  font-size: 12px;
  color: var(--nb-orange);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--nb-radius);
  transition: background 0.15s ease;
}

.v3-dash-purchase-term-view:hover {
  background: var(--nb-peach);
}

.v3-dash-purchase-term-view:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}


/* ===== STEP 4: 결제 수단 — 2px 보더, 선택 시 옐로 ===== */
.v3-dash-purchase-payment-label {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--nb-text);
}

.v3-dash-purchase-payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v3-dash-purchase-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--nb-cream);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-payment-option:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow);
  background: var(--nb-peach);
}

/* 선택 시 옐로 배경 */
.v3-dash-purchase-payment-option.selected {
  background: var(--nb-yellow);
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-payment-option:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* 라디오 버튼 — 2px 보더 */
.v3-dash-purchase-payment-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: var(--nb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  background: var(--nb-cream);
}

.v3-dash-purchase-payment-option.selected .v3-dash-purchase-payment-radio {
  border-color: var(--nb-black);
}

.v3-dash-purchase-payment-option.selected .v3-dash-purchase-payment-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nb-orange);
}

.v3-dash-purchase-payment-icon {
  font-size: 22px;
}

.v3-dash-purchase-payment-info h4 {
  font-size: 14px;
  font-weight: 900;
  color: var(--nb-text);
}

.v3-dash-purchase-payment-info p {
  font-size: 12px;
  color: var(--nb-text-sub);
  margin-top: 2px;
}

/* 포인트 사용 영역 */
.v3-dash-purchase-points-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--nb-cream);
  border-radius: var(--nb-radius);
  border: var(--nb-border);
  margin-top: 14px;
  flex-wrap: wrap;
}

.v3-dash-purchase-points-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-text);
  white-space: nowrap;
}

.v3-dash-purchase-points-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

/* 인풋 필드 — 2px 보더, 포커스 시 오렌지 + 2px 쉐도우 */
.v3-dash-purchase-points-input input {
  flex: 1;
  padding: 10px 12px;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Pretendard Variable', sans-serif;
  transition: all 0.15s ease;
  outline: none;
  min-width: 70px;
  background: white;
}

.v3-dash-purchase-points-input input:focus {
  border-color: var(--nb-orange);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-points-available {
  font-size: 12px;
  color: var(--nb-text-sub);
  white-space: nowrap;
}

.v3-dash-purchase-points-available strong {
  color: var(--nb-orange);
  font-weight: 900;
}

.v3-dash-purchase-points-apply {
  padding: 10px 14px;
  background: var(--nb-cream);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-size: 12px;
  font-weight: 900;
  color: var(--nb-orange);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Pretendard Variable', sans-serif;
  box-shadow: 1px 1px 0px var(--nb-black);
}

.v3-dash-purchase-points-apply:hover {
  background: var(--nb-yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-points-apply:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

/* Reissue panel points apply button (same style, separate class to avoid JS conflict) */
.v3-dash-reissue-points-apply {
  padding: 10px 14px;
  background: var(--nb-cream);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-size: 12px;
  font-weight: 900;
  color: var(--nb-orange);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Pretendard Variable', sans-serif;
  box-shadow: 1px 1px 0px var(--nb-black);
}

.v3-dash-reissue-points-apply:hover {
  background: var(--nb-yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--nb-shadow-sm);
}


/* ===== STEP 5: 정보 입력 — 2px 보더, 포커스 시 오렌지 + 2px 쉐도우 ===== */
.v3-dash-purchase-input-group {
  margin-bottom: 18px;
}

.v3-dash-purchase-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 8px;
}

.v3-dash-purchase-req {
  color: #EF4444;
  margin-left: 2px;
}

.v3-dash-purchase-input-wrapper {
  position: relative;
}

/* 인풋 — 2px 보더, 포커스 시 오렌지 + 2px 쉐도우 */
.v3-dash-purchase-input-wrapper input {
  width: 100%;
  padding: 13px 14px;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-size: 14px;
  font-family: 'Pretendard Variable', sans-serif;
  transition: all 0.15s ease;
  outline: none;
  background: white;
  font-weight: 500;
}

.v3-dash-purchase-input-wrapper input:focus {
  border-color: var(--nb-orange);
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-input-wrapper input.valid {
  border-color: #16A34A;
  background: #F0FFF4;
}

.v3-dash-purchase-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.v3-dash-purchase-helper {
  font-size: 11px;
  color: var(--nb-text-sub);
  margin-top: 6px;
  font-weight: 500;
}

.v3-dash-purchase-error-msg {
  font-size: 11px;
  color: #EF4444;
  margin-top: 6px;
  display: none;
  font-weight: 700;
}

.v3-dash-purchase-input-group.error .v3-dash-purchase-error-msg {
  display: block;
}

.v3-dash-purchase-input-group.error .v3-dash-purchase-input-wrapper input {
  border-color: #EF4444;
}

/* 안내 노트 */
.v3-dash-purchase-input-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: var(--nb-yellow);
  border-radius: var(--nb-radius);
  border: 2px solid var(--nb-black);
  margin-top: 14px;
  font-size: 12px;
  color: var(--nb-text);
  line-height: 1.5;
  font-weight: 500;
}

.v3-dash-purchase-note-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ===== STEP 6: 주문 요약 & 결제 ===== */
.v3-dash-purchase-summary-card {
  background: var(--nb-black);
  border-radius: var(--nb-radius-lg);
  border: var(--nb-border);
  padding: 24px;
  color: white;
  margin-bottom: 16px;
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-summary-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v3-dash-purchase-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.v3-dash-purchase-summary-row .label {
  color: #9CA3AF;
  font-weight: 500;
}

.v3-dash-purchase-summary-row .value {
  font-weight: 700;
}

.v3-dash-purchase-summary-row .value.original {
  text-decoration: line-through;
  color: #9CA3AF;
}

.v3-dash-purchase-summary-row .value.discount {
  color: var(--nb-lime);
}

.v3-dash-purchase-summary-row .value.email {
  font-size: 13px;
}

.v3-dash-purchase-summary-row.total {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  margin-top: 8px;
  padding-top: 14px;
}

.v3-dash-purchase-summary-row.total .label {
  color: white;
  font-weight: 900;
  font-size: 15px;
}

.v3-dash-purchase-summary-row.total .value {
  color: var(--nb-lime);
  font-size: 22px;
  font-weight: 900;
}

.v3-dash-purchase-summary-savings {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(197, 255, 50, 0.15);
  border-radius: var(--nb-radius);
  border: 2px solid rgba(197, 255, 50, 0.3);
  font-size: 13px;
  color: var(--nb-lime);
  font-weight: 700;
  margin-top: 10px;
}

/* 결제 버튼 — 3px 보더 (주요 CTA), 4px 쉐도우 */
.v3-dash-purchase-pay-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--nb-radius-lg);
  background: var(--nb-orange);
  color: white;
  font-size: 17px;
  font-weight: 900;
  border: var(--nb-border-thick);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--nb-shadow);
  font-family: 'Pretendard Variable', sans-serif;
}

.v3-dash-purchase-pay-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--nb-shadow-hover);
}

.v3-dash-purchase-pay-btn:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0px var(--nb-black);
}

.v3-dash-purchase-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-purchase-pay-btn:focus-visible {
  outline: 3px solid var(--nb-orange);
  outline-offset: 2px;
}

.v3-dash-purchase-pay-sub {
  text-align: center;
  font-size: 12px;
  color: var(--nb-text-sub);
  margin-top: 10px;
  font-weight: 500;
}

.v3-dash-purchase-pay-sub svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 3px;
}


/* ===== 결제 완료 메시지 — 라임 배경, 3px 보더, 4px 쉐도우 ===== */
.v3-dash-purchase-complete-message {
  background: var(--nb-lime);
  border: var(--nb-border-thick);
  border-radius: var(--nb-radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-complete-message h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-text);
  margin-bottom: 8px;
}

.v3-dash-purchase-complete-message p {
  font-size: 14px;
  color: var(--nb-text);
  line-height: 1.6;
}


/* ===== 구매 플로우 애니메이션 ===== */
.v3-dash-purchase-slide-in {
  animation: v3DashPurchaseSlideIn 0.5s ease forwards;
}

@keyframes v3DashPurchaseSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* 결제 처리 중 로딩 스피너 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ===== 구매 플로우 반응형 — 모바일 ===== */
@media (max-width: 480px) {

  .v3-dash-purchase-service-grid,
  .v3-dash-purchase-duration-grid {
    grid-template-columns: 1fr;
  }

  .v3-dash-purchase-step-label {
    display: none;
  }

  .v3-dash-purchase-step:not(:last-child)::after {
    margin: 0 3px;
  }

  .v3-dash-purchase-title {
    font-size: 20px;
  }

  .v3-dash-purchase-section-head {
    padding: 16px;
  }

  .v3-dash-purchase-section-body {
    padding: 0 16px 16px;
  }

  .v3-dash-purchase-summary-row.total .value {
    font-size: 18px;
  }

  .v3-dash-purchase-duration-months {
    font-size: 28px;
  }

  .v3-dash-purchase-points-row {
    flex-direction: column;
    align-items: stretch;
  }

  .v3-dash-purchase-points-input {
    min-width: unset;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .v3-dash-purchase-service-grid {
    grid-template-columns: 1fr;
  }

  .v3-dash-purchase-duration-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 모션 감소 설정 대응 */
@media (prefers-reduced-motion: reduce) {
  .v3-dash-purchase-slide-in {
    animation: none;
  }

  .v3-dash-purchase-section,
  .v3-dash-purchase-step-circle,
  .v3-dash-purchase-service-card,
  .v3-dash-purchase-duration-card,
  .v3-dash-purchase-payment-option,
  .v3-dash-purchase-pay-btn {
    transition: none;
  }
}


/* ============================================================
   계정관리 오버레이 패널
   ============================================================ */
.v3-dash-account-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nb-cream);
  z-index: 1000;
  overflow-y: auto;
}

.v3-dash-account-header {
  position: sticky;
  top: 0;
  height: 56px;
  background: var(--nb-cream);
  border-bottom: var(--nb-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 10;
}

.v3-dash-account-back {
  width: 36px;
  height: 36px;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
  flex-shrink: 0;
}

.v3-dash-account-back svg {
  width: 20px;
  height: 20px;
}

.v3-dash-account-back:hover {
  box-shadow: var(--nb-shadow);
  transform: translate(-1px, -1px);
}

.v3-dash-account-back:active {
  box-shadow: none;
  transform: translate(1px, 1px);
}

.v3-dash-account-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.v3-dash-account-body {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.v3-dash-account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.v3-dash-account-avatar {
  width: 56px;
  height: 56px;
  background: var(--nb-orange);
  color: #fff;
  border: var(--nb-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--nb-shadow-sm);
  flex-shrink: 0;
}

.v3-dash-account-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.v3-dash-account-date {
  font-size: 13px;
  color: var(--nb-text-muted);
  margin-top: 2px;
}

.v3-dash-account-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 16px;
}

.v3-dash-account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid #E5E7EB;
}

.v3-dash-account-row:last-child {
  border-bottom: none;
}

.v3-dash-account-row-icon {
  width: 36px;
  height: 36px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.v3-dash-account-row-info {
  flex: 1;
  min-width: 0;
}

.v3-dash-account-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--nb-text-muted);
}

.v3-dash-account-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--nb-text);
  margin-top: 1px;
}

.v3-dash-account-change-btn,
.v3-dash-account-delete-btn {
  padding: 6px 14px;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--nb-shadow-sm);
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.v3-dash-account-change-btn {
  background: var(--nb-lime-bg);
  color: var(--nb-text);
}

.v3-dash-account-change-btn:hover {
  background: var(--nb-lime);
  box-shadow: var(--nb-shadow);
  transform: translate(-1px, -1px);
}

.v3-dash-account-delete-btn {
  background: var(--nb-pink);
  color: #B91C1C;
}

.v3-dash-account-delete-btn:hover {
  box-shadow: var(--nb-shadow);
  transform: translate(-1px, -1px);
}

.v3-dash-account-security {
  display: flex;
  gap: 12px;
  background: var(--nb-lime-bg);
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  padding: 16px;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-account-security-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.v3-dash-account-security-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.v3-dash-account-security-desc {
  font-size: 13px;
  color: var(--nb-text-sub);
  line-height: 1.5;
}

/* 안내 메시지 */
.v3-dash-account-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: var(--nb-yellow);
  border-radius: var(--nb-radius);
  margin-bottom: 16px;
}

.v3-dash-account-notice-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.v3-dash-account-notice-text {
  font-size: 12px;
  color: var(--nb-text-sub);
  line-height: 1.5;
  font-weight: 500;
}

/* 은행정보 변경 서브패널 */
.v3-dash-bank-edit-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nb-cream);
  z-index: 1001;
  overflow-y: auto;
}

.v3-dash-bank-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v3-dash-bank-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v3-dash-bank-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-text-sub);
}

.v3-dash-bank-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--nb-text);
  background: #fff;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.v3-dash-bank-input:focus {
  border-color: var(--nb-orange);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

select.v3-dash-bank-input {
  cursor: pointer;
}

.v3-dash-bank-save-btn {
  width: 100%;
  height: 52px;
  border: var(--nb-border-thick);
  border-radius: var(--nb-radius);
  background: var(--nb-orange);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--nb-shadow);
  transition: all 0.15s;
  margin-top: 8px;
}

.v3-dash-bank-save-btn:hover {
  box-shadow: var(--nb-shadow-hover);
  transform: translate(-1px, -1px);
}

.v3-dash-bank-save-btn:active {
  box-shadow: var(--nb-shadow-sm);
  transform: translate(1px, 1px);
}


/* ============================================================
   재발급 결제 화면
   ============================================================ */
.v3-dash-reissue-body {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.v3-dash-reissue-section {
  margin-bottom: 24px;
}

.v3-dash-reissue-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.v3-dash-reissue-section-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.v3-dash-reissue-section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.v3-dash-reissue-section-sub {
  font-size: 12px;
  color: var(--nb-text-muted);
  margin-top: 1px;
}

/* 서비스 카드 */
.v3-dash-reissue-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  padding: 16px;
}

.v3-dash-reissue-service-emoji {
  width: 44px;
  height: 44px;
  background: var(--nb-lime-bg);
  border: 1px solid #E5E7EB;
  border-radius: var(--nb-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.v3-dash-reissue-service-info {
  flex: 1;
  min-width: 0;
}

.v3-dash-reissue-service-name {
  font-size: 15px;
  font-weight: 800;
}

.v3-dash-reissue-service-desc {
  font-size: 12px;
  color: var(--nb-text-muted);
  margin-top: 2px;
}

.v3-dash-reissue-service-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--nb-orange);
  flex-shrink: 0;
}

/* 약관 */
.v3-dash-reissue-terms {
  background: #fff;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--nb-radius);
  padding: 4px 0;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-reissue-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
}

.v3-dash-reissue-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--nb-orange);
  flex-shrink: 0;
  cursor: pointer;
}

.v3-dash-reissue-check-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--nb-text);
}

.v3-dash-reissue-check-text.all {
  font-size: 14px;
  font-weight: 800;
}

.v3-dash-reissue-check-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 0 16px;
}

#reissuePolicyList,
#extendPolicyList {
  max-height: 228px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 결제수단 */
.v3-dash-reissue-payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.v3-dash-reissue-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--nb-radius);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 700;
}

.v3-dash-reissue-payment-option:hover {
  border-color: #9CA3AF;
  box-shadow: var(--nb-shadow-sm);
}

.v3-dash-reissue-payment-option.selected {
  border-color: var(--nb-orange);
  background: var(--nb-lime-bg);
}

.v3-dash-reissue-pay-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid #D1D5DB;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.v3-dash-reissue-payment-option.selected .v3-dash-reissue-pay-radio {
  border-color: var(--nb-orange);
}

.v3-dash-reissue-payment-option.selected .v3-dash-reissue-pay-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--nb-orange);
  border-radius: 50%;
}

/* 포인트 */
.v3-dash-reissue-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v3-dash-reissue-points-row label {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.v3-dash-reissue-points-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.v3-dash-reissue-points-input-wrap input {
  width: 100px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--nb-radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  text-align: right;
}

.v3-dash-reissue-points-input-wrap input:focus {
  border-color: var(--nb-orange);
}

.v3-dash-reissue-points-avail {
  font-size: 12px;
  color: var(--nb-text-muted);
  white-space: nowrap;
}

/* 이용정보 */
.v3-dash-reissue-info-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 결제 버튼 */
.v3-dash-reissue-pay-btn {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 32px;
  border: var(--nb-border-thick);
  border-radius: var(--nb-radius);
  background: var(--nb-orange);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--nb-shadow);
  transition: all 0.15s;
  letter-spacing: -0.02em;
}

.v3-dash-reissue-pay-btn:hover {
  box-shadow: var(--nb-shadow-hover);
  transform: translate(-1px, -1px);
}

.v3-dash-reissue-pay-btn:active {
  box-shadow: var(--nb-shadow-sm);
  transform: translate(1px, 1px);
}


/* ============================================================
   친구초대 — 친구 상세 + ��인트 내역
   ============================================================ */
/* 친구 상세 — 포인트 내역과 동일한 통합 카드 스타일 */
.v3-dash-friend-detail-list {
  background: #fff;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  overflow: hidden;
}

.v3-dash-friend-detail-card {
  padding: 14px 16px;
}

.v3-dash-friend-detail-card+.v3-dash-friend-detail-card {
  border-top: 1px solid #E5E7EB;
}

.v3-dash-friend-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.v3-dash-friend-detail-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.v3-dash-friend-detail-badge {
  padding: 2px 10px;
  border: 1.5px solid var(--nb-black);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.v3-dash-friend-detail-badge.active {
  background: var(--nb-lime);
}

.v3-dash-friend-detail-badge.inactive {
  background: var(--nb-pink);
}

.v3-dash-friend-detail-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v3-dash-friend-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.v3-dash-friend-detail-row span:first-child {
  color: var(--nb-text-muted);
  font-weight: 500;
}

.v3-dash-friend-detail-row span:last-child {
  font-weight: 700;
}

/* 포인트 내역 — 테이블 스타일 (답답하지 않게) */
.v3-dash-point-history-list {
  background: #fff;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  overflow: hidden;
}

.v3-dash-point-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
}

.v3-dash-point-history-item+.v3-dash-point-history-item {
  border-top: 1px solid #E5E7EB;
}

.v3-dash-point-history-left {
  flex: 1;
  min-width: 0;
}

.v3-dash-point-history-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.v3-dash-point-history-date {
  font-size: 11px;
  color: var(--nb-text-muted);
  margin-top: 2px;
}

.v3-dash-point-history-amount {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 12px;
}

.v3-dash-point-history-amount.plus {
  color: var(--nb-orange);
}

.v3-dash-point-history-amount.minus {
  color: #B91C1C;
}


/* ============================================================
   구매하기 — 등록 카드 목록
   ============================================================ */
.v3-dash-purchase-card-list {
  margin-top: 12px;
  padding: 14px;
  background: #f9fafb;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
}

.v3-dash-purchase-card-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-text-sub);
  margin-bottom: 10px;
}

.v3-dash-purchase-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 8px;
}

.v3-dash-purchase-card-item:hover {
  box-shadow: var(--nb-shadow);
  transform: translate(-1px, -1px);
}

.v3-dash-purchase-card-item.selected {
  background: var(--nb-lime);
  box-shadow: var(--nb-shadow);
}

.v3-dash-purchase-card-radio {
  width: 18px;
  height: 18px;
  border: var(--nb-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.v3-dash-purchase-card-item.selected .v3-dash-purchase-card-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--nb-black);
  border-radius: 50%;
}

.v3-dash-purchase-card-info {
  flex: 1;
}

.v3-dash-purchase-card-name {
  font-size: 14px;
  font-weight: 700;
}

.v3-dash-purchase-card-number {
  font-size: 12px;
  color: var(--nb-text-muted);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.v3-dash-purchase-add-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 2px dashed var(--nb-black);
  border-radius: var(--nb-radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text-sub);
  cursor: pointer;
  transition: all 0.15s;
}

.v3-dash-purchase-add-card-btn:hover {
  background: var(--nb-cream);
  color: var(--nb-text);
}

.v3-dash-purchase-add-card-plus {
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-orange);
}

/* ===== Empty State (친구/포인트 내역 없을 때) ===== */
.v3-dash-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  border-radius: var(--nb-radius);
  background: var(--nb-cream);
}

.v3-dash-detail-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-text);
  margin-bottom: 4px;
}

.v3-dash-detail-empty-desc {
  font-size: 13px;
  color: var(--nb-text-muted);
  line-height: 1.5;
}

/* Policy Modal Overlay */
.policy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Policy Modal Box */
.policy-modal-box {
  background: #FFFDF5;
  border: 3px solid #191F28;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #191F28;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: policyModalShow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes policyModalShow {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Policy Modal Header */
.policy-modal-header {
  padding: 16px 20px;
  border-bottom: 3px solid #191F28;
  background: #FDE68A;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.policy-modal-title {
  font-size: 16px;
  font-weight: 900;
  color: #191F28;
  margin: 0;
}

.policy-modal-close {
  background: #fff;
  border: 2.5px solid #191F28;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #191F28;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  color: #191F28;
  transition: transform 0.1s, box-shadow 0.1s;
}

.policy-modal-close:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #191F28;
}

/* Policy Modal Body */
.policy-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: #191F28;
  white-space: pre-wrap;
  font-weight: 500;
  background: #FFFDF5;
}

/* Policy Modal Footer */
.policy-modal-footer {
  padding: 14px 20px;
  border-top: 3px solid #191F28;
  background: #FFFDF5;
  display: flex;
  justify-content: flex-end;
}

.policy-modal-btn {
  padding: 10px 24px;
  background: #191F28;
  color: #fff;
  border: 3px solid #191F28;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.policy-modal-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}
