/* ============================================================
   아신피디아 (Asinpedia) - 공용 스타일시트
   컬러: 시안(#00BCD4) 계열 유지, 폰트: Nanum Square Round
   ============================================================ */

:root {
  --primary-color: #00BCD4;
  --primary-dark: #0097A7;
  --primary-light: #4DD0E1;
  --secondary-color: #9E9E9E;
  --secondary-dark: #616161;
  --accent-color: #00ACC1;
  --text-primary: #212121;
  --text-secondary: #666666;
  --bg-light: #F5F7F8;
  --border-color: #E0E0E0;
  --danger-color: #F44336;
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --header-height: 76px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'NanumSquareRound', 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--text-primary);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
ul, ol { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}
.header-content { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-image { height: 40px; width: 40px; border-radius: 8px; object-fit: cover; }
.logo h1 { font-size: 20px; font-weight: 800; color: var(--primary-dark); }

.nav { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.nav-list { display: flex; gap: 16px; justify-content: center; flex-wrap: nowrap; }
.nav-list li a {
  font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap;
  padding: 4px 2px; border-bottom: 2px solid transparent; transition: all .2s;
}
.nav-list li a:hover, .nav a.active {
  color: var(--primary-color); border-bottom-color: var(--primary-color);
}

.header-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.auth-btn {
  padding: 8px 14px; border-radius: 20px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); white-space: nowrap; transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.auth-btn:hover { background: var(--bg-light); }
.auth-btn.primary { background: var(--primary-color); color: #fff; }
.auth-btn.primary:hover { background: var(--primary-dark); }
.auth-btn.pricing { color: var(--accent-color); }
.user-greeting { font-size: 14px; font-weight: 600; padding: 0 6px; }

.search-toggle-btn { font-size: 18px; color: var(--text-secondary); padding: 8px; }
.mobile-menu-toggle { display: none; font-size: 22px; color: var(--text-primary); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .header-actions #authButtons .auth-btn.pricing,
  .header-actions #authButtons .auth-btn:not(.primary):not(:last-child),
  .header-actions #userProfile .auth-btn.pricing { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: #fff; z-index: 2000; transition: right .3s; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); }
.mobile-menu-close { font-size: 20px; }
.mobile-nav li a { display: block; padding: 14px 20px; font-weight: 600; border-bottom: 1px solid #f5f5f5; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1999; display: none; }
.mobile-menu-overlay.open { display: block; }

/* ---------- Search Modal ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 3000; display: none; align-items: flex-start; justify-content: center; padding-top: 100px; }
.search-modal.open { display: flex; }
.search-modal-content { background: #fff; border-radius: var(--radius-md); width: 90%; max-width: 640px; padding: 24px; position: relative; }
.search-modal-close { position: absolute; top: 16px; right: 16px; font-size: 18px; }
.search-input-wrapper { display: flex; align-items: center; gap: 10px; border: 2px solid var(--primary-color); border-radius: 30px; padding: 10px 20px; }
.search-input-wrapper input { flex: 1; border: none; outline: none; font-size: 16px; }
.search-results { margin-top: 16px; max-height: 400px; overflow-y: auto; }
.search-placeholder { color: var(--text-secondary); text-align: center; padding: 30px 0; }
.search-result-item { padding: 12px; border-bottom: 1px solid #f0f0f0; }
.search-result-item:hover { background: var(--bg-light); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 15px; transition: all .2s; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-secondary { background: var(--secondary-color); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Cards / Sections ---------- */
main { padding-top: var(--header-height); min-height: 60vh; }
.section-title-center { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.section-subtitle-center { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }

.hero-section { padding: 80px 20px 60px; text-align: center; background: linear-gradient(135deg, #E0F7FA 0%, #ffffff 100%); }
.hero-title { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.gradient-text { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 34px; }
.ai-search-box { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--primary-color); border-radius: 30px; padding: 8px 8px 8px 22px; box-shadow: var(--shadow-md); }
.ai-search-box input { flex: 1; border: none; outline: none; font-size: 16px; }
.ai-search-btn { background: var(--primary-color); color: #fff; padding: 12px 22px; border-radius: 24px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.ai-search-suggestions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.suggestion-chip { padding: 6px 16px; background: #fff; border: 1px solid var(--border-color); border-radius: 20px; font-size: 13px; color: var(--text-secondary); }
.suggestion-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.suggestion-label { color: var(--text-secondary); font-size: 13px; }

.category-section { padding: 60px 20px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: repeat(2,1fr); } }
.category-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 26px 18px; text-align: center; transition: all .25s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.category-icon i { color: #fff; font-size: 24px; }
.category-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.category-card p { font-size: 13px; color: var(--text-secondary); }

.service-menu-section { padding: 40px 20px 60px; background: var(--bg-light); }
.service-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .service-menu-grid { grid-template-columns: 1fr; } }
.service-card { background: #fff; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); position: relative; transition: all .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-icon i { color: #fff; font-size: 20px; }
.service-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--text-secondary); }
.service-arrow { position: absolute; bottom: 20px; right: 20px; color: var(--primary-color); }
.login-required-badge { display: inline-flex; gap: 4px; align-items: center; background: #FFF3E0; color: var(--warning-color); font-size: 11px; padding: 3px 8px; border-radius: 10px; margin-top: 8px; }

.pricing-cta-section { padding: 60px 20px; text-align: center; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #fff; }
.pricing-cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.pricing-cta-section p { margin-bottom: 24px; opacity: .9; }
.pricing-cta-section .btn-primary { background: #fff; color: var(--primary-dark); }

/* ---------- Footer ---------- */
.footer-premium { background: #1a2530; color: #cfd8dc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.footer-slogan { font-size: 13px; opacity: .8; margin-bottom: 20px; }
.company-info-grid { display: flex; flex-direction: column; gap: 8px; font-size: 13px; margin-bottom: 20px; }
.company-info-item { display: flex; align-items: center; gap: 8px; }
.family-sites-toggle { display: flex; align-items: center; gap: 8px; color: #cfd8dc; font-size: 13px; }
.family-sites-dropdown { display: none; margin-top: 10px; padding-left: 4px; }
.family-sites-dropdown.open { display: block; }
.family-sites-dropdown li { margin-bottom: 6px; }
.family-sites-dropdown a { font-size: 13px; opacity: .8; }
.footer-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #fff; font-weight: 700; }
.footer-links-list li { margin-bottom: 10px; font-size: 13px; }
.footer-social h4 { font-size: 13px; margin: 16px 0 10px; color: #fff; }
.social-icons-grid { display: flex; gap: 10px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.footer-form .form-group { margin-bottom: 10px; }
.footer-form input, .footer-form select, .footer-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 13px;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.footer-submit-btn { width: 100%; padding: 10px; background: var(--primary-color); color: #fff; border-radius: 8px; font-weight: 700; font-size: 13px; }
.footer-desc { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; }
.footer-bottom-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; opacity: .7; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }
.page-loader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.page-loader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--bg-light); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Generic Modal ---------- */
.modal-overlay, .form-modal, .calculator-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 4000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open, .form-modal.open, .calculator-modal.open { display: flex; }
.modal-box, .form-modal-content, .calculator-modal-content {
  background: #fff; border-radius: var(--radius-md); max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 30px; position: relative;
}
.form-modal-content.large { max-width: 780px; }
.modal-close, .form-modal-close, .calculator-modal-close {
  position: absolute; top: 16px; right: 16px; font-size: 18px; color: var(--text-secondary);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover, .form-modal-close:hover, .calculator-modal-close:hover { background: var(--bg-light); }
.form-modal-header, .calculator-modal-header { text-align: center; margin-bottom: 20px; }
.form-modal-header i, .calculator-modal-header i { font-size: 30px; color: var(--primary-color); margin-bottom: 8px; }
.form-modal-header h2, .calculator-modal-header h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.form-modal-header p, .calculator-modal-header p { font-size: 13px; color: var(--text-secondary); }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.form-col { flex: 1; }
.form-col.full { flex: 1 1 100%; }
.form-row label, .form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }
.form-row input, .form-row select, .form-row textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px;
}
.form-row input:focus, .form-group input:focus { outline: none; border-color: var(--primary-color); }
.form-input-section h3 { font-size: 15px; font-weight: 800; margin: 18px 0 10px; color: var(--primary-dark); }
.form-input-section h3:first-child { margin-top: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.calculator-submit-btn { width: 100%; padding: 12px; background: var(--primary-color); color: #fff; border-radius: 10px; font-weight: 700; margin-top: 6px; }
.calculator-result { margin-top: 18px; padding: 18px; background: var(--bg-light); border-radius: 10px; }
.result-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.result-value { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.result-info { font-size: 12px; color: var(--text-secondary); margin-top: 8px; display: flex; gap: 6px; }
.breakdown-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.breakdown-item.deduction span:last-child { color: var(--danger-color); }
.breakdown-item.total { font-weight: 800; font-size: 16px; padding-top: 10px; }
.breakdown-divider { border-top: 1px dashed var(--border-color); margin: 8px 0; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; }

/* Page header used across sub-pages */
.page-header-simple { max-width: 900px; margin: 60px auto 0; padding: 0 20px; text-align: center; }
.page-header-simple h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: var(--primary-dark); }
.page-header-simple p { color: var(--text-secondary); }
.back-btn { display: inline-flex; gap: 8px; align-items: center; padding: 10px 20px; background: var(--secondary-color); color: #fff; border-radius: 30px; font-weight: 600; font-size: 13px; margin: 20px; }
.back-btn:hover { background: var(--secondary-dark); }

/* Grid card list (checklist/dictionary/tools) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 30px auto 60px; padding: 0 20px; }
.item-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); transition: all .2s; cursor: pointer; }
.item-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.item-card-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--primary-color); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; margin-bottom: 14px; }
.item-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.item-card p { font-size: 13px; color: var(--text-secondary); }

/* Simple table (admin/mypage lists) */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
.data-table th { background: var(--bg-light); font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-primary { background: #E0F7FA; color: var(--primary-dark); }
.badge-success { background: #E8F5E9; color: var(--success-color); }
.badge-warning { background: #FFF3E0; color: var(--warning-color); }
.badge-danger { background: #FFEBEE; color: var(--danger-color); }

.toast { position: fixed; bottom: 30px; right: 30px; background: #212121; color: #fff; padding: 14px 22px; border-radius: 10px; z-index: 9999; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .3s; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   카테고리 페이지 - 히어로 + 탭
   ============================================================ */
.category-hero { padding: 70px 20px 30px; text-align: center; }
.category-hero-icon { width: 70px; height: 70px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.category-hero-icon i { color: #fff; font-size: 30px; }
.category-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.category-hero p { color: var(--text-secondary); }

.category-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0 20px 30px; position: sticky; top: var(--header-height); background: #fff; z-index: 90; padding-top: 16px; }
.category-tab-btn {
  padding: 10px 20px; border-radius: 24px; font-size: 14px; font-weight: 700;
  color: var(--text-secondary); background: var(--bg-light); transition: all .2s; display: inline-flex; gap: 6px; align-items: center;
}
.category-tab-btn:hover { background: #e8eef0; }
.category-tab-btn.active { background: var(--primary-color); color: #fff; }
.category-tab-panel { display: none; max-width: 1200px; margin: 0 auto; padding: 10px 20px 70px; }
.category-tab-panel.active { display: block; }
.tab-section-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.subcategory-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.subcategory-chip { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--bg-light); color: var(--text-secondary); }
.subcategory-chip.active { background: var(--primary-color); color: #fff; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state i { font-size: 40px; margin-bottom: 14px; opacity: .4; }

/* 계산기/양식/진단 카드 그리드 (카테고리 탭 내부) */
.tool-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tool-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 22px; cursor: pointer; transition: all .2s; text-align: center;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.tool-card-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px; }
.tool-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.tool-card p { font-size: 12px; color: var(--text-secondary); }

/* 체크리스트 진행 */
.checklist-progress-bar { width: 100%; height: 6px; background: var(--bg-light); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.checklist-progress-fill { height: 100%; background: var(--primary-color); transition: width .3s; }
.checklist-progress-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; text-align: right; }
.checklist-item-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; font-size: 14px; }
.checklist-item-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary-color); }
.checklist-item-row.checked span { text-decoration: line-through; color: var(--text-secondary); }
.checklist-detail-actions { display: flex; gap: 10px; margin-top: 20px; }

/* 뉴스 카드 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card-image { width: 100%; height: 160px; object-fit: cover; background: var(--bg-light); }
.news-card-body { padding: 18px; }
.news-card-cat { font-size: 11px; font-weight: 700; color: var(--primary-dark); background: #E0F7FA; padding: 3px 10px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.news-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--text-secondary); }
.news-card-meta { font-size: 11px; color: #999; margin-top: 10px; display: flex; justify-content: space-between; }
.news-detail-body { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.news-detail-body img { border-radius: var(--radius-md); margin: 20px 0; }
.news-detail-content { font-size: 16px; line-height: 1.9; white-space: pre-wrap; margin-top: 20px; }

/* 용어사전 */
.dictionary-search { max-width: 480px; margin: 0 auto 30px; display: flex; gap: 10px; border: 2px solid var(--primary-color); border-radius: 30px; padding: 8px 8px 8px 20px; }
.dictionary-search input { flex: 1; border: none; outline: none; font-size: 15px; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.term-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.term-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.term-card .term-en { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.term-card .term-def { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.term-card .term-ex { font-size: 12px; color: var(--text-secondary); background: var(--bg-light); padding: 8px 10px; border-radius: 8px; }

/* HR 양식 */
.hr-form-print-area { padding: 10px; }
.hr-form-print-area h2 { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.hr-form-print-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hr-form-print-table td, .hr-form-print-table th { border: 1px solid #999; padding: 8px 10px; font-size: 13px; }
.hr-form-print-table th { background: #f5f5f5; width: 130px; text-align: left; }

/* ============================================================
   진단 도구 (에니어그램 / 예술적성) 공용 스타일
   ============================================================ */
.diag-progress-wrap { margin-bottom: 20px; }
.diag-progress-bar-track { width: 100%; height: 8px; background: var(--bg-light); border-radius: 4px; overflow: hidden; }
.diag-progress-bar-fill { height: 100%; background: var(--primary-color); transition: width .3s; }
.diag-progress-text { text-align: right; font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

.diag-question { text-align: center; }
.diag-question-number { font-size: 12px; color: var(--primary-color); font-weight: 700; margin-bottom: 10px; }
.diag-question-text { font-size: 18px; font-weight: 700; margin-bottom: 24px; line-height: 1.5; }

.diag-scale { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.diag-scale-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px;
  border: 2px solid var(--border-color); border-radius: 12px; min-width: 70px; transition: all .2s;
}
.diag-scale-option:hover { border-color: var(--primary-light); }
.diag-scale-option.selected { border-color: var(--primary-color); background: #E0F7FA; }
.diag-scale-number { font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.diag-scale-label { font-size: 11px; color: var(--text-secondary); text-align: center; }

.diag-scale-simple { margin-top: 10px; text-align: center; }
.diag-scale-hint { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 12px; }
.diag-scale-buttons { display: flex; justify-content: center; gap: 10px; }
.diag-scale-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border-color);
  font-weight: 800; font-size: 15px; transition: all .2s;
}
.diag-scale-btn:hover { border-color: var(--primary-light); }
.diag-scale-btn.selected { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }

.diag-nav-actions { display: flex; justify-content: space-between; margin-top: 26px; gap: 10px; }

.diag-result-header { text-align: center; margin-bottom: 20px; }
.diag-result-badge { display: inline-block; padding: 6px 16px; background: var(--primary-color); color: #fff; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.diag-result-header h3 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.diag-result-header .diag-subtitle { color: var(--text-secondary); }
.diag-description-card { text-align: center; background: var(--bg-light); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.diag-icon { font-size: 40px; margin-bottom: 10px; }
.diag-trait-section { margin-bottom: 16px; }
.diag-trait-section h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.diag-trait-section ul { padding-left: 20px; list-style: disc; font-size: 13px; }
.diag-trait-section ul li { margin-bottom: 4px; }
.diag-trait-section p { font-size: 13px; color: var(--text-secondary); }

.diag-field-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; position: relative; }
.diag-field-rank { position: absolute; top: 14px; right: 16px; font-size: 12px; font-weight: 800; color: var(--primary-color); }
.diag-field-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.diag-field-icon { font-size: 22px; }
.diag-field-title { font-size: 15px; font-weight: 800; }
.diag-field-score { font-size: 12px; color: var(--primary-dark); font-weight: 700; margin-left: auto; }
.diag-field-description { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.diag-field-careers { font-size: 12px; margin-bottom: 8px; }
.diag-field-skills { display: flex; gap: 6px; flex-wrap: wrap; }
.diag-skill-tag { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: var(--bg-light); color: var(--text-secondary); }

/* 반응형: 계산기/진단 모달 내부 여백 */
@media (max-width: 600px) {
  .diag-scale { gap: 6px; }
  .diag-scale-option { min-width: 58px; padding: 10px 6px; }
  .category-tabs { position: static; }
}

/* ============================================================
   인증 페이지 (로그인 / 회원가입)
   ============================================================ */
.auth-page-wrap {
  min-height: calc(100vh - var(--header-height));
  display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 60px; background: var(--bg-light);
}
.auth-box {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 420px; width: 100%; padding: 40px 36px;
}
.auth-box h1 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--primary-dark); }
.auth-sub { text-align: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 26px; }
.auth-box .form-group { margin-bottom: 16px; }
.auth-box .form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }
.auth-box .form-group input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 10px; font-size: 14px;
}
.auth-box .form-group input:focus { outline: none; border-color: var(--primary-color); }
.auth-links { display: flex; justify-content: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.auth-links a { color: var(--primary-dark); font-weight: 700; }
.auth-links a:hover { text-decoration: underline; }

/* ============================================================
   단순 폼 페이지 (문의하기)
   ============================================================ */
.simple-form-wrap {
  max-width: 560px; margin: 20px auto 80px; padding: 0 20px;
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.simple-form-wrap form { padding: 34px; }
.simple-form-wrap .form-group { margin-bottom: 16px; }
.simple-form-wrap .form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }
.simple-form-wrap .form-group input,
.simple-form-wrap .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 10px; font-size: 14px; resize: vertical;
}
.simple-form-wrap .form-group input:focus,
.simple-form-wrap .form-group textarea:focus { outline: none; border-color: var(--primary-color); }

/* ============================================================
   요금제 페이지
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 20px auto 70px; padding: 0 20px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; } }
.pricing-card {
  position: relative; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: all .25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary-color); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary-color); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 20px;
}
.pricing-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.pricing-amount { font-size: 32px; font-weight: 800; color: var(--primary-dark); margin-bottom: 10px; }
.pricing-amount span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.pricing-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.pricing-features { text-align: left; margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pricing-features li i { color: var(--primary-color); }
.bank-info-box {
  background: var(--bg-light); border-radius: 10px; padding: 14px 16px; font-size: 13px; margin-bottom: 18px;
}
.bank-info-box strong { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }

/* ============================================================
   마이페이지
   ============================================================ */
.mypage-wrap { max-width: 900px; margin: 0 auto 70px; padding: 0 20px; }
.mypage-profile-card {
  display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 34px;
}
.mypage-profile-icon { font-size: 54px; color: var(--primary-color); }
.mypage-profile-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.mypage-section { margin-bottom: 40px; }

/* ============================================================
   정적 페이지 (회사소개/이용약관/개인정보처리방침)
   ============================================================ */
.static-content-wrap { max-width: 760px; margin: 20px auto 80px; padding: 0 20px; }
.static-content-section {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 26px 28px; margin-bottom: 20px;
}
.static-content-section h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--primary-dark); }
.static-content-section p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.static-info-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.static-info-list li { display: flex; gap: 10px; }
.static-info-list li strong { min-width: 130px; color: var(--text-primary); }

/* ============================================================
   관리자 페이지
   ============================================================ */
.admin-guest { max-width: 640px; margin: 100px auto; padding: 0 20px; }
.admin-wrap { max-width: 1240px; margin: 0 auto 80px; padding: 0 20px; }
.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .admin-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .admin-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-stat-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.admin-stat-icon { font-size: 22px; color: var(--primary-color); margin-bottom: 10px; }
.admin-stat-value { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.admin-stat-label { font-size: 12px; color: var(--text-secondary); }
.status-select { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 12px; }
