@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
::-moz-selection { background: #000000; color: #e6e6e6; text-shadow: none; }
::selection { background: #000000; color: #e6e6e6; text-shadow: none; }
html, body, div, span, object, iframe, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, strong, sub, sup, legend, caption, table, tbody, thead, tfoot, tr, th, td, summary, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, b, i, a, small, menu, nav, section, time, mark, audio, video, dl, dt, dd, ul, li, ol, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, select, textarea, p, blockquote, button { margin:0; padding:0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-family: inherit; color:inherit; }
dl, ul, ol, menu, li { list-style:none; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display:block; }
input, select, textarea, button { font-family:"Pretendard"; background:none; }
input::-moz-placeholder, textarea::-moz-placeholder { color: #bbb !important; }
img { border:0; max-width:100%; }
table { border-collapse:collapse; table-layout: fixed; }
a { text-decoration:none; }
a:hover { transition:.3s all ease; }
span { vertical-align:top; }
blockquote { font-style:italic; border-left:5px #000 solid; padding-left:20px; margin:40px 20px; }
div, p { word-break:keep-all; }
b, strong { font-weight:700; }
html { font-size:16px; scroll-behavior: smooth; }
body { color:#333; font-family:"Pretendard","Malgun Gothic","Apple SD Gothic NEO",dotum,sans-serif; background:#f8f9fa; -webkit-font-smoothing: antialiased; -webkit-overflow-scrolling: touch; }

/* --- Header Layout --- */
header { background: #fff; border-bottom: 1px solid #e9ecef; padding: 0.85rem 0; }
.header-inner { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.header-inner h1 {display: flex;}
.header-logo-link { display: inline-flex; align-items: center; }
.header-logo-img { height: 36px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #475569; transition: all 0.2s ease; }
.nav-search-btn:hover { background: #f1f5f9; color: #4f46e5; }

/* --- 서비스 개편 안내 --- */
.maintenance-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
.maintenance-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 3.5rem 2rem; max-width: 540px; width: 100%; box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02); }
.maintenance-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; background: #e0e7ff; color: #4f46e5; border-radius: 20px; margin-bottom: 1.5rem; }
.maintenance-icon svg { width: 36px; height: 36px; }
.maintenance-badge { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 9999px; background: #f1f5f9; color: #475569; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.maintenance-title { font-size: 1.75rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.3; }
.maintenance-desc { font-size: 1rem; color: #64748b; line-height: 1.65; margin-bottom: 2rem; word-break: keep-all; }
.maintenance-footer-note { font-size: 0.85rem; color: #94a3b8; border-top: 1px solid #f1f5f9; padding-top: 1.5rem; }

/* --- Container & Grid Layout --- */
.container { max-width: 900px; margin: 2.5rem auto; padding: 0 1.25rem; }
.container h2 { font-size: 1.35rem; font-weight: 700; color: #111827; margin-bottom: 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }

/* --- 통합 검색 바 --- */
.main-search-wrap { margin-bottom: 1.5rem; }
.main-search-form { display: flex; align-items: center; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 0.35rem 0.5rem 0.35rem 1rem; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }
.main-search-form:focus-within { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.main-search-form .search-icon { width: 20px; height: 20px; color: #94a3b8; flex-shrink: 0; margin-right: 0.5rem; }
.main-search-form input { flex: 1; border: none; outline: none; font-size: 0.95rem; color: #0f172a; font-weight: 500; background: transparent; }
.main-search-form button { background: #4f46e5; color: #ffffff; border: none; border-radius: 8px; padding: 0.6rem 1.1rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease; }
.main-search-form button:hover { background: #4338ca; }

/* --- 섹션 타이틀 & 헤더 --- */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-title-wrap { display: flex; gap: 0.45rem; }
.section-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; line-height: 1; margin: 0; }
.section-badge-new { display: inline-flex; align-items: center; background: #ef4444; color: #ffffff; font-size: 0.68rem; font-weight: 800; height: 20px; padding: 0 6px; border-radius: 4px; }
.section-more-link { font-size: 0.85rem; font-weight: 700; color: #64748b; text-decoration: none; transition: color 0.2s ease; }
.section-more-link:hover { color: #4f46e5; }

/* --- 가로 스크롤 카드 (신규 테스트) --- */
.horizontal-scroll-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.horizontal-scroll-wrap::-webkit-scrollbar { height: 6px; }
.horizontal-scroll-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.horizontal-cards-track { display: flex; gap: 1rem; width: max-content; }
.horizontal-card { width: 220px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.horizontal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06); }
.h-card-thumb-wrap { position: relative; width: 100%; height: 120px; background: #f1f5f9; }
.h-card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.h-card-badge { position: absolute; top: 8px; left: 8px; font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #ffffff; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px); }
.h-card-badge.type-based { background: rgba(79, 70, 229, 0.85); }
.h-card-badge.score-range { background: rgba(225, 29, 72, 0.85); }
.h-card-badge.multi-score { background: rgba(16, 185, 129, 0.85); }
.h-card-body { padding: 0.85rem; display: flex; flex-direction: column; flex: 1; }
.h-card-title { font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.35; margin-bottom: 0.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-card-desc { font-size: 0.8rem; color: #64748b; line-height: 1.4; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-card-meta { margin-top: auto; font-size: 0.75rem; font-weight: 700; color: #4f46e5; }

/* --- 검색 및 필터 페이지 --- */
.search-filter-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.filter-tabs { display: flex; gap: 0.4rem; overflow-x: auto; }
.filter-tab { padding: 0.45rem 0.85rem; border-radius: 20px; font-size: 0.85rem; font-weight: 700; color: #64748b; background: #f1f5f9; text-decoration: none; white-space: nowrap; transition: all 0.2s ease; }
.filter-tab:hover { background: #e2e8f0; color: #1e293b; }
.filter-tab.active { background: #4f46e5; color: #ffffff; }
.sort-select { padding: 0.4rem 0.65rem; font-size: 0.85rem; font-weight: 700; color: #334155; border: 1px solid #cbd5e1; border-radius: 6px; background: #ffffff; outline: none; }
.search-result-info { font-size: 0.9rem; color: #64748b; margin-bottom: 1rem; }
.search-result-info strong { color: #0f172a; }
.search-empty-box { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; background: #ffffff; border-radius: 12px; border: 1px dashed #cbd5e1; }
.search-empty-box .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.search-empty-box h3 { font-size: 1.15rem; font-weight: 800; color: #1e293b; margin-bottom: 0.4rem; }
.search-empty-box p { font-size: 0.85rem; color: #64748b; margin-bottom: 1.25rem; }
.btn-reset-search { display: inline-block; padding: 0.6rem 1.2rem; background: #4f46e5; color: #ffffff; font-size: 0.85rem; font-weight: 700; border-radius: 8px; text-decoration: none; }

/* --- 히어로 배너 슬라이더 --- */
.hero-slider-wrap { margin-bottom: 2.25rem; position: relative; }
.hero-slider { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; scrollbar-width: none; cursor: grab; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.hero-slider.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.hero-slider::-webkit-scrollbar { display: none; }
.hero-banner-item { flex: 0 0 100%; scroll-snap-align: start; border-radius: 20px; padding: 2.25rem 2rem; color: #ffffff; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08); }
.hero-banner-item.banner-safe { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.hero-banner-item.banner-gift { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%); }
.hero-banner-item.banner-share { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #fb7185 100%); }
.hero-banner-content { max-width: 65%; z-index: 2; }
.hero-banner-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); font-size: 0.78rem; font-weight: 700; margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.hero-banner-title { font-size: 1.55rem; font-weight: 900; line-height: 1.35; margin-bottom: 0.6rem; letter-spacing: -0.02em; word-break: keep-all; }
.hero-banner-desc { font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); line-height: 1.5; word-break: keep-all; }
.hero-banner-visual { width: 110px; height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.12); border-radius: 24px; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.2); z-index: 2; }
.hero-banner-visual svg { width: 64px; height: 64px; }
.hero-banner-item::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%); pointer-events: none; }
.hero-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; }
.hero-dot { width: 6px; height: 6px; border-radius: 9999px; background: #cbd5e1; transition: all 0.3s ease; cursor: pointer; }
.hero-dot.active { width: 20px; background: #4f46e5; }

/* --- 퀴즈 카드 (Grid Layout) --- */
.quiz-card { display: flex; flex-direction: column; background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03); }
.quiz-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.1); border-color: #cbd5e1; }
.quiz-thumb-wrap { position: relative; width: 100%; height: 170px; background: #f1f5f9; overflow: hidden; }
.quiz-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.quiz-card:hover .quiz-thumb { transform: scale(1.04); }
.quiz-badge { position: absolute; top: 12px; left: 12px; font-size: 0.75rem; font-weight: 800; padding: 0.35rem 0.7rem; border-radius: 8px; letter-spacing: -0.01em; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); color: #ffffff; }
.quiz-badge.type-based { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); }
.quiz-badge.score-range { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.quiz-badge.multi-score { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.quiz-badge.default { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.quiz-body { padding: 1.25rem 1.25rem 1rem; display: flex; flex-direction: column; flex: 1; }
.quiz-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; line-height: 1.4; margin-bottom: 0.5rem; word-break: keep-all; }
.quiz-desc { font-size: 0.85rem; color: #64748b; line-height: 1.5; margin-bottom: 1.25rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quiz-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; border-top: 1px solid #f1f5f9; font-size: 0.78rem; color: #94a3b8; font-weight: 600; }
.quiz-meta-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.quiz-meta-item svg { width: 14px; height: 14px; stroke: #94a3b8; }
.quiz-meta-item.participants { color: #4f46e5; font-weight: 700; }
.btn-start { display: block; width: 100%; padding: 0.85rem 0; text-align: center; background: #4F46E5; color: #fff; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.btn-start:hover { background: #4338CA; }

/* --- 공통 검사 페이지 --- */
.test-intro { text-align: center; margin-bottom: 2.5rem; }
.test-badge { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 20px; background: #EEF2FF; color: #4F46E5; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.test-intro h2 { font-size: 1.6rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.test-intro p { color: #6B7280; font-size: 0.95rem; line-height: 1.5; white-space: pre-line; }
.test-guide-box { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem auto 2rem; max-width: 520px; text-align: center; }
.guide-title { font-size: 0.85rem; font-weight: 800; color: #4f46e5; margin-bottom: 0.35rem; }
.guide-desc { font-size: 0.9rem; color: #334155; line-height: 1.5; }
.guide-sub { font-size: 0.8rem; color: #64748b; }
.scale-guide-labels { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 700; color: #94a3b8; margin-bottom: 0.6rem; padding: 0 0.5rem; }
.scale-guide-labels .lbl-left { color: #6366f1; }
.scale-guide-labels .lbl-mid { color: #94a3b8; }
.scale-guide-labels .lbl-right { color: #ec4899; }
.q-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 2rem 1.5rem; margin-bottom: 1.75rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02); transition: border-color 0.2s ease, box-shadow 0.2s ease; display: none; opacity: 0; transform: translateY(12px); }
.q-card:focus-within { border-color: #c7d2fe; box-shadow: 0 10px 20px -3px rgba(79, 70, 229, 0.08); }
.q-card.active { display: block; opacity: 1; transform: translateY(0); }
.q-step { font-size: 0.8rem; font-weight: 800; color: #4F46E5; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.q-text { font-size: 1.1rem; font-weight: 700; color: #1f2937; margin: 2rem 1.25rem; line-height: 1.5; text-align: center; }
.vs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.vs-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.1rem 1rem; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.95rem; font-weight: 700; color: #334155; min-height: 72px; }
.vs-box.left { border-left: 4px solid #6366f1; }
.vs-box.right { border-right: 4px solid #ec4899; }
.scale-track { position: relative; display: flex; justify-content: space-between; align-items: center; background: #f9fafb; border-radius: 40px; padding: 1rem 1.75rem; border: 1px solid #e5e7eb; }
.scale-track::before { content: ""; position: absolute; top: 50%; left: 2.25rem; right: 2.25rem; height: 2px; background: #e5e7eb; z-index: 1; transform: translateY(-50%); }
.scale-btn { position: relative; z-index: 2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.scale-btn input[type="radio"] { display: none; }
.circle { border-radius: 50%; background: #fff; transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.c-1 { width: 40px; height: 40px; border: 3px solid #6366f1; }
.c-2 { width: 30px; height: 30px; border: 2.5px solid #818cf8; }
.c-3 { width: 20px; height: 20px; border: 2px solid #cbd5e1; }
.c-4 { width: 30px; height: 30px; border: 2.5px solid #f472b6; }
.c-5 { width: 40px; height: 40px; border: 3px solid #ec4899; }
.scale-btn:hover .circle { transform: scale(1.15); }
.scale-btn input:checked + .c-1 { background: #6366f1; box-shadow: 0 0 12px rgba(99, 102, 241, 0.45); transform: scale(1.15); }
.scale-btn input:checked + .c-2 { background: #818cf8; box-shadow: 0 0 10px rgba(129, 140, 248, 0.45); transform: scale(1.15); }
.scale-btn input:checked + .c-3 { background: #94a3b8; box-shadow: 0 0 8px rgba(148, 163, 184, 0.45); transform: scale(1.15); }
.scale-btn input:checked + .c-4 { background: #f472b6; box-shadow: 0 0 10px rgba(244, 114, 182, 0.45); transform: scale(1.15); }
.scale-btn input:checked + .c-5 { background: #ec4899; box-shadow: 0 0 12px rgba(236, 72, 153, 0.45); transform: scale(1.15); }
.choice-list { display: flex; flex-direction: column; gap: 0.75rem; }
.choice-item { cursor: pointer; display: block; }
.choice-item input[type="radio"] { display: none; }
.choice-box { padding: 1rem 1.25rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.95rem; font-weight: 500; color: #374151; transition: all 0.2s ease; }
.choice-item:hover .choice-box { background: #f3f4f6; border-color: #d1d5db; transform: translateX(3px); }
.choice-item input:checked + .choice-box { background: #eef2ff; border-color: #6366f1; color: #4338ca; font-weight: 700; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1); }
.btn-submit { display: block; width: 100%; max-width: 320px; margin: 3rem auto 0; padding: 1rem 0; font-size: 1.05rem; font-weight: 700; color: #fff; background: #4F46E5; border-radius: 8px; cursor: pointer; text-align: center; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); transition: background 0.2s, transform 0.2s; }
.btn-submit:hover { background: #4338CA; transform: translateY(-2px); }
.progress-bar-wrap { width: 100%; height: 8px; background: #e2e8f0; border-radius: 9999px; margin-bottom: 2rem; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #4f46e5, #7c3aed); transition: width 0.3s ease; }
.step-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.btn-prev { padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 600; color: #64748b; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.btn-prev:hover { background: #f1f5f9; color: #1e293b; }

/* --- 결과 화면 --- */
.result-card { background: #ffffff; border-radius: 20px; border: 1px solid #e2e8f0; padding: 2.5rem 1.75rem; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02); text-align: center; margin-bottom: 2rem; }
.result-badge { display: inline-block; padding: 0.4rem 1rem; border-radius: 9999px; background: #e0e7ff; color: #4338ca; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; }
.result-code { font-size: 2.75rem; font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; line-height: 1.2; }
.result-title { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem; }
.result-summary { font-size: 1rem; color: #475569; background: #f8fafc; border-radius: 12px; padding: 1rem 1.25rem; line-height: 1.6; }
.result-header-img-wrap { width: 100%; max-width: 480px; margin: 1.5rem auto 2rem; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.15); background: #f1f5f9; }
.result-header-img { width: 100%; height: auto; max-height: 380px; object-fit: cover; display: block; }
.dim-analysis { margin: 2.5rem 0 2rem; text-align: left; }
.dim-analysis-title { font-size: 1.1rem; font-weight: 800; color: #1e293b; margin-bottom: 1.25rem; text-align: center; }
.dim-item { margin-bottom: 1.5rem; }
.dim-labels { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; color: #334155; }
.dim-labels .highlight { color: #4f46e5; font-weight: 800; }
.gauge-track { width: 100%; height: 14px; background: #f1f5f9; border-radius: 9999px; display: flex; overflow: hidden; border: 1px solid #e2e8f0; }
.gauge-left { height: 100%; background: #6366f1; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gauge-right { height: 100%; background: #ec4899; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.radar-chart-section { margin-top: 1.5rem; padding: 1.5rem 1rem; background: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0; text-align: center; }
.radar-chart-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 0.35rem; }
.radar-chart-sub { font-size: 0.82rem; color: #64748b; margin-bottom: 1.25rem; }
.radar-canvas-wrap { position: relative; max-width: 380px; height: 320px; margin: 0 auto; }
.multi-score-ranking { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.multi-score-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.85rem; background: #ffffff; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 0.88rem; }
.multi-score-row.is-top { border-color: #818cf8; background: #eef2ff; font-weight: 700; }
.multi-score-row .dim-name { color: #334155; font-weight: 600; }
.multi-score-row .dim-score { color: #4f46e5; font-weight: 800; }
.result-content { text-align: left; background: #ffffff; border-radius: 16px; border: 1px solid #f1f5f9; padding: 1.75rem 1.5rem; margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.7; color: #334155; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); }
.result-content h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 0.75rem; }
.btn-group { display: flex; gap: 0.75rem; justify-content: center; }
.btn-action { flex: 1; padding: 0.95rem 0; text-align: center; border-radius: 10px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.btn-primary { background: #4f46e5; color: #ffffff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-kakao { background: #FEE500; color: #000000; border: 1px solid #e5ce00; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-kakao:hover { background: #FADA0A; }
.btn-kakao svg { width: 18px; height: 18px; vertical-align: middle; }

/* --- 추천 상품 섹션 --- */
.product-section { margin-top: 3rem; margin-bottom: 2.5rem; }
.product-section-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.product-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.product-card { background: #ffffff; border-radius: 16px; border: 1.5px solid #e2e8f0; padding: 1.5rem; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03); }
.product-card:hover { border-color: #cbd5e1; transform: translateY(-3px); box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08); }
.product-card.is-ad { background: #fffafa; border: 1.5px solid #fca5a5; position: relative; }
.product-card.is-ad::after { content: "SPONSORED"; position: absolute; top: 12px; right: 14px; font-size: 0.65rem; font-weight: 800; color: #f87171; letter-spacing: 0.05em; }
.product-badge-wrap { display: flex; align-items: center; margin-bottom: 0.75rem; }
.product-badge-ad { background: #ef4444; color: #ffffff; font-size: 0.7rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 4px; letter-spacing: 0.02em; }
.product-inner { display: flex; gap: 2rem; align-items: flex-start; }
.product-img-wrap { width: 200px; height: 200px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; }
.product-title { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 0.6rem; line-height: 1.4; }
.product-reason-box { background: #f8fafc; border-radius: 8px; padding: 0.75rem 0.85rem; margin-bottom: 0.85rem; border-left: 3px solid #6366f1; display: flex; flex-direction: column; gap: 0.7rem; }
.reason-row { font-size: 0.9rem; color: #334155; line-height: 1.5; }
.reason-label { font-weight: 800; color: #4f46e5; margin-right: 0.35rem; display: inline-block; }
.point-row { font-size: 0.9rem; color: #475569; background: #eef2ff; padding: 0.35rem 0.6rem; border-radius: 6px; line-height: 1.4; }
.point-label { font-weight: 800; color: #4338ca; margin-right: 0.35rem; }
.btn-coupang { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.25rem; font-size: 0.9rem; font-weight: 700; color: #ffffff; background: #4f46e5; border-radius: 8px; text-decoration: none; transition: background 0.2s, transform 0.2s; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2); }
.btn-coupang:hover { background: #4338ca; transform: translateY(-1px); }
.affiliate-notice { font-size: 0.72rem; color: #94a3b8; margin-top: 0.85rem; text-align: right; line-height: 1.4; }

/* --- 이용약관 및 정책 페이지 --- */
.terms-wrap { max-width: 800px; margin: 1.5rem auto 3rem auto; padding: 2.5rem 2rem; background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03); }
.terms-header { border-bottom: 2px solid #f1f5f9; padding-bottom: 1.25rem; margin-bottom: 2rem; }
.terms-header h1 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; }
.terms-header p { font-size: 0.85rem; color: #64748b; }
.terms-section { margin-bottom: 2rem; }
.terms-section h2 { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin-bottom: 0.75rem; }
.terms-section p, .terms-section ul { font-size: 0.92rem; color: #475569; line-height: 1.65; margin-bottom: 0.75rem; }
.terms-section ul { list-style: none; padding-left: 0.25rem; }
.terms-section li { position: relative; padding-left: 1.1rem; margin-bottom: 0.4rem; }
.terms-section li::before { content: "•"; position: absolute; left: 0.2rem; color: #6366f1; font-weight: bold; }
.terms-highlight { background: #f8fafc; border-left: 3px solid #6366f1; padding: 0.85rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; color: #334155; margin: 0.75rem 0; line-height: 1.55; }
.btn-home-wrap { text-align: center; margin-top: 2.5rem; }
.btn-home { display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.5rem; background: #4f46e5; color: #ffffff; font-size: 0.9rem; font-weight: 700; border-radius: 8px; text-decoration: none; transition: background 0.2s ease; }
.btn-home:hover { background: #4338ca; }

/* --- Footer Layout --- */
footer { background: #fff; border-top: 1px solid #e9ecef; padding: 2.5rem 0; margin-top: 4rem; color: #6b7280; font-size: 0.875rem; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.footer-links a { color: #4b5563; margin-left: 1rem; font-size: 0.85rem; }
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { color: #111827; }
.footer-bottom { border-top: 1px solid #f3f4f6; padding-top: 1rem; font-size: 0.8rem; color: #9ca3af; line-height: 1.5; }
