/**
 * 인덱스 메인 · 프리미엄 계정샵 전용
 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

.index-page {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: #f8f9fc;
  color: #1a1d29;
  margin: 0;
  min-height: 100vh;
}

/* ===== 헤더: 대문은 스크롤됨, 메뉴(1·2·3행)만 스크롤 시 상단 고정 ===== */
.index-header {
  width: 100%;
}

/* ===== 배너: 프리미엄 계정판매샵 OMSHOP – 단일 배경(끊김 없음) ===== */
.index-signboard {
  position: relative;
  width: 100%;
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.5rem);
  overflow: hidden;
}

/* 한 레이어로만 처리해 선/끊김 없음: 그라데이션 + 글로우 통합 */
.index-signboard-bg {
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(255,255,255,0.4) 0%, transparent 52%),
    radial-gradient(ellipse 70% 90% at 15% 85%, rgba(255,255,255,0.22) 0%, transparent 52%),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 65%),
    linear-gradient(165deg, #e8e0f4 0%, #ddd2ea 30%, #d0c4e2 55%, #c4b5db 80%, #b8a8d4 100%);
  pointer-events: none;
}

.index-signboard-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.index-signboard-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.index-signboard-tagline {
  margin: 0 0 0.35rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 20px rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}

.index-signboard-name {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 28px rgba(255,255,255,0.4);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.index-signboard-subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ===== 메뉴 영역: 기본(스크롤 전) ===== */
.index-nav-wrap {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.06);
}

/* 스크롤 시 메뉴만 상단 고정 (JS에서 .index-nav-wrap--fixed 토글) */
.index-nav-wrap.index-nav-wrap--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 고정 시 메뉴가 빠진 자리 채움 (본문이 튀지 않도록) */
.index-nav-placeholder {
  display: block;
  margin: 0;
  padding: 0;
}

/* ===== PREMIUM ACCOUNT SHOP 히어로 – 대문 연보라와 어울리는 다른 색 ===== */
.index-hero {
  position: relative;
  width: 100%;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 4vw, 1.5rem);
  overflow: hidden;
}

/* 연보라와 조화되는 연한 그레이보라(대문과 구분) – 단일 배경 */
.index-hero-bg {
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(to bottom, rgba(248,246,252,0.97) 0%, rgba(238,234,248,0.98) 100%),
    linear-gradient(160deg, #eae6f2 0%, #e2ddec 35%, #ddd8e8 70%, #d8d2e4 100%);
  pointer-events: none;
}

.index-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.index-hero-label {
  margin: 0 0 0.75rem;
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #7c6ba8;
  text-transform: uppercase;
}

.index-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1a1d29;
}

.index-hero-desc {
  margin: 0 0 1.5rem;
  font-size: clamp(0.8rem, 1.8vw, 0.9375rem);
  line-height: 1.7;
  color: #64748b;
}

.index-hero-cta {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8b7cb8 0%, #7c6ba8 100%);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(124, 107, 168, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}

.index-hero-cta:hover {
  box-shadow: 0 4px 14px rgba(124, 107, 168, 0.45);
  transform: translateY(-1px);
}

.index-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0  clamp(1rem, 4vw, 1.5rem);
}

.index-nav-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #cbd5e1;
}

.index-nav-row:last-of-type {
  border-bottom: none;
}

.index-nav-row--secondary {
  padding: 0.5rem 0 0.4rem;
  gap: 0 0.5rem;
}

.index-nav-row--tertiary {
  padding: 0.5rem 0 0.65rem;
  gap: 0 0.5rem;
}

.index-nav-link {
  padding: 0.45rem 0.7rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.index-nav-link:hover {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

.index-nav-link.is-active {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.index-nav-link--sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.index-nav-link--sub:hover {
  color: #7c3aed;
}

/* 방문자 통계 */
.index-nav-stats-wrap {
  display: flex;
  align-items: center;
}
.index-nav-stats-box {
  display: inline-flex;
  align-items: center;
  gap: 0 0.6rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.index-nav-stats-cell {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.index-nav-stats-cell:not(:last-child) {
  padding-right: 0.6rem;
  border-right: 1px solid #e2e8f0;
}
.index-nav-stats-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}
.index-nav-stats-num {
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
}
.index-nav-stats-num.index-nav-stats-flash {
  color: #7c3aed;
}

/* 포인트충전·구매내역 강조: 아이콘 + 테두리 */
.index-nav-link--highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #c7d2fe;
  background: rgba(124, 58, 237, 0.06);
  color: #5b21b6;
}

.index-nav-link--highlight i {
  font-size: 1rem;
  opacity: 0.9;
}

.index-nav-link--highlight:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

/* 3행 전용: 포인트충전·구매내역·비밀번호·로그인 등 강조 */
.index-nav-link--action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #c7d2fe;
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  border-radius: 8px;
}

.index-nav-link--action:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}

.index-nav-link--action i {
  font-size: 1.05rem;
}

.index-btn-action {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid #c7d2fe;
}

.index-btn-action:hover {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.16);
  border-color: #7c3aed;
}

.index-nav-spacer {
  flex: 1;
  min-width: 0.5rem;
}

/* 로그인 시 사용자 요약: 아바타 + 자판기 ID · 보유포인트 · 누적구매금액 (3행, 강조·칸 확대) */
.index-user-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  margin-right: 0.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}

.index-user-avatar {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.index-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.4;
}

.index-user-id {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
}

.index-user-stat {
  font-size: 0.8125rem;
  color: #64748b;
}

.index-user-stat strong {
  color: #7c3aed;
  font-weight: 600;
}

@media (max-width: 768px) {
  .index-user-summary {
    margin-right: 0;
    margin-bottom: 0.25rem;
    width: 100%;
    justify-content: flex-start;
  }
}

.index-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

/* 관리자 버튼: DB 관리자 권한 있을 때만 노출 */
.index-btn-admin {
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.35);
}

.index-btn-admin:hover {
  color: #92400e;
  background: rgba(180, 83, 9, 0.16);
  border-color: rgba(180, 83, 9, 0.5);
}

.index-btn-admin i {
  margin-right: 0.25rem;
  font-size: 0.95rem;
}

.index-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.index-btn-ghost {
  color: #4b5563;
  background: transparent;
}

.index-btn-ghost:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.index-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.index-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.index-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ===== 대문 히어로 (프리미엄 라벤더·반짝임) ===== */
.index-hero {
  position: relative;
  width: 100%;
  padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1rem, 4vw, 1.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.index-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #e8e0f5 0%, #d4c8e8 35%, #c9b8e0 70%, #b8a5d8 100%);
}

/* 반짝임 점 (스파클) */
.index-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.9) 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.7) 1px, transparent 1px),
                    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.8) 1px, transparent 1px),
                    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.6) 1px, transparent 1px),
                    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.75) 1px, transparent 1px);
  background-size: 60px 50px, 80px 70px, 55px 65px, 70px 55px, 65px 60px;
  background-position: 0 0, 20px 10px, 10px 30px, 30px 20px, 5px 40px;
  opacity: 0.85;
  pointer-events: none;
}

/* 부드러운 빛 번들 */
.index-hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.35) 0%, transparent 65%);
  pointer-events: none;
}

.index-hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.index-hero-tagline {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 0 24px rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.index-hero-logo {
  margin: 0 0 clamp(1.25rem, 4vw, 1.75rem);
  font-size: clamp(2.25rem, 10vw, 4rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 0 32px rgba(255,255,255,0.35);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.index-hero-cta {
  display: inline-block;
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1.25rem, 4vw, 1.5rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  color: #5b4d7a;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.index-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  color: #4a3d62;
}

/* ===== 인기계정 섹션 (연보라와 어울리는 따뜻한 회색보라) ===== */
.index-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.index-section.index-section-products {
  position: relative;
  background: #f5f3f8;
}

/* 인기계정 단 배경만 전체 너비로 (내용은 기존처럼 1200px) */
.index-section.index-section-products::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  background: #f5f3f8;
  z-index: -1;
}

.index-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.index-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1d29;
  margin: 0 0 0.35rem;
}

.index-section-desc {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.index-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6366f1;
  text-decoration: none;
}

.index-section-link:hover { text-decoration: underline; }

.index-section-link i { font-size: 1.1rem; }

/* 상세/내부 페이지 공통 */
.index-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* 구매내역 등 넓은 콘텐츠: 폼 허용 한도 내 최대 가로 */
.index-section--wide {
  max-width: 1400px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.index-section--wide .index-section-inner {
  max-width: 1320px;
}

.index-breadcrumb {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.index-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.index-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  padding: 1rem 1.25rem 0;
}

.index-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.index-card-desc-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.index-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.index-option-card {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
}

.index-option-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1a1d29;
}

.index-option-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6366f1;
  margin: 0 0 0.75rem;
}

.index-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.index-alert-info {
  background: #eff6ff;
  color: #1e40af;
}

/* 구매내역 테이블: 계정정보 열 최대 가로 */
.index-buylog-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.index-buylog-table {
  table-layout: fixed;
  width: 100%;
  min-width: 100%;
}

.index-buylog-table .index-buylog-th-date,
.index-buylog-table .index-buylog-td-date {
  width: 8%;
  min-width: 82px;
  text-align: center;
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
}

.index-buylog-table .index-buylog-th-product,
.index-buylog-table .index-buylog-td-product {
  width: 12%;
  min-width: 90px;
  text-align: center;
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
}

.index-buylog-table .index-buylog-th-account,
.index-buylog-table .index-buylog-td-account {
  width: 65%;
  min-width: 220px;
  text-align: left;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  word-break: break-all;
  white-space: pre-wrap;
}

.index-buylog-table .index-buylog-th-action,
.index-buylog-table .index-buylog-td-action {
  width: 15%;
  min-width: 88px;
  text-align: center;
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
}

/* 모바일: 구매로그 테이블 → 카드형 레이아웃 (겹침 방지) */
@media (max-width: 768px) {
  .index-buylog-table-wrap {
    overflow-x: visible;
  }
  .index-buylog-table {
    display: block;
    table-layout: auto;
  }
  .index-buylog-table thead {
    display: none;
  }
  .index-buylog-table tbody {
    display: block;
  }
  .index-buylog-table tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
  }
  .index-buylog-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    border: none !important;
  }
  .index-buylog-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
  }
  .index-buylog-table .index-buylog-td-date::before { content: "구매일시"; }
  .index-buylog-table .index-buylog-td-product::before { content: "구매한 제품"; }
  .index-buylog-table .index-buylog-td-account::before { content: "구매 계정정보"; }
  .index-buylog-table .index-buylog-td-action::before { content: "문의용"; }
  .index-buylog-table .index-buylog-td-action {
    padding-top: 0.75rem !important;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0 !important;
  }
  .index-buylog-table .index-buylog-td-action::before {
    display: none;
  }
  .index-buylog-table .index-buylog-td-action .btn {
    width: 100%;
  }
}

.index-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.5rem;
}

.index-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

.index-product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.index-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.index-product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(145deg, #f0f2f5 0%, #e4e7ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s;
}

.index-product-link:hover .index-product-img {
  transform: scale(1.05);
}

.index-product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 3rem;
}

.index-product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 6px;
}

.index-product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.index-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1d29;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-product-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.index-product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6366f1;
  margin: 0 0 0.75rem;
}

.index-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6366f1;
  margin-top: auto;
}

.index-product-link:hover .index-product-cta {
  text-decoration: underline;
}

.index-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6b7280;
}

.index-empty-icon {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.index-empty .index-btn { margin-top: 1rem; }

/* ===== 계정 구매 방법 안내 (인기계정 ↔ 서비스카드 사이, 진한 보라) ===== */
.index-guide {
  width: 100%;
  padding: 3.5rem clamp(1rem, 4vw, 1.5rem);
  background: linear-gradient(180deg, #4a4268 0%, #3d3558 50%, #352d4a 100%);
}

.index-guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* 상단 라벤더톤(연한 보라) – 대문자 라벨용 */
.index-guide-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #c8c0e0;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

/* 메인 제목만 순백에 가깝게 */
.index-guide-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

/* 설명문: 조금 더 묵은 흰색(회백) */
.index-guide-desc {
  font-size: 0.9rem;
  color: #b8b0d0;
  line-height: 1.6;
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

.index-guide-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem 0.25rem;
}

.index-guide-step {
  flex: 0 1 200px;
  min-width: 140px;
  padding: 1.25rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* 단계 숫자: 연보라 배경 + 진한 보라 글자 (진한 보라와 어울리는 톤) */
.index-guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d2640;
  background: #b8a9d4;
  border-radius: 50%;
  margin-bottom: 0.6rem;
}

.index-guide-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.6rem;
  background: rgba(184, 169, 212, 0.25);
  color: #d4cce8;
  border-radius: 10px;
  font-size: 1.35rem;
}

/* 단계 제목: 연한 라벤더(흰색과 구분) */
.index-guide-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e0d8f0;
  margin: 0 0 0.2rem;
}

/* 단계 설명: 더 묵은 회보라 */
.index-guide-step-desc {
  font-size: 0.8rem;
  color: #a89cc4;
  margin: 0;
  line-height: 1.4;
}

.index-guide-arrow {
  flex: 0 0 auto;
  align-self: center;
  padding: 0 0.25rem;
  color: rgba(255,255,255,0.25);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .index-guide-arrow { display: none; }
  .index-guide-steps {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
  .index-guide-step { flex: 1 1 auto; min-width: 0; }
}

/* ===== 신뢰 포인트 ===== */
.index-trust {
  width: 100%;
  padding: 3rem 1.5rem;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.index-trust-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.index-trust-item {
  padding: 0 1rem;
}

.index-trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef2ff 0%, #f5f3ff 100%);
  color: #6366f1;
  border-radius: 14px;
  font-size: 1.75rem;
}

.index-trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1d29;
  margin: 0 0 0.25rem;
}

.index-trust-item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* ===== 푸터 ===== */
.index-footer {
  width: 100%;
  padding: 1.75rem 1.5rem;
  background: #f1f5f9;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.index-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.index-footer-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 0.25rem;
}

.index-footer-copy {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* ===== 반응형 (PC · 모바일 공통) ===== */
@media (max-width: 768px) {
  .index-signboard {
    padding: 1.25rem 1rem 1.5rem;
  }
  .index-signboard-name {
    font-size: 1.5rem;
  }
  .index-nav-inner {
    padding: 0 1rem;
  }
  .index-nav-row {
    justify-content: center;
    padding: 0.5rem 0;
  }
  .index-nav-row--secondary {
    justify-content: center;
    gap: 0.35rem;
  }
  .index-nav-row--tertiary {
    justify-content: center;
    gap: 0.4rem;
  }
  .index-nav-spacer {
    display: none;
  }
  .index-section {
    padding: 2rem 1rem;
  }
  .index-products {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .index-trust-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .index-footer {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .index-products {
    grid-template-columns: repeat(2, 1fr);
  }
}
