/* 카카오 애드 광고 스타일 */
.kakao-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 250px;
}

.kakao-ad-container.kakao-ad-top {
    margin-top: 0;
    margin-bottom: 2rem;
}

.kakao-ad-container.kakao-ad-middle {
    margin: 2rem auto;
}

.kakao-ad-container.kakao-ad-bottom {
    margin-top: 2rem;
    margin-bottom: 0;
}

.kakao_ad_area {
    display: block !important;
    margin: 0 auto;
}

/* 구글 애드센스 광고 스타일 */
.google-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 90px;
}

@media (max-width: 768px) {
    .google-ad-container {
        margin: 1.5rem auto;
        padding: 0.75rem;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .kakao-ad-container {
        margin: 1.5rem auto;
        padding: 0.75rem;
        min-height: 250px;
    }
}

/* 폰트 */
/* Aggravo 폰트 (제목용) */
@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroL.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroM.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* GMarketSans 폰트 */
@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 스크린 리더 전용 (화면에 표시되지 않음) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* fieldset 스타일 (SEO용, 화면에 표시되지 않음) */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --primary-color: #C9D952;
    --primary-dark: #373740;
    --primary-black: #373740;
    --bg-primary: #F2EDE4;
    --bg-dark: #373740;
    --text-dark: #373740;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #F2F2F2;
    --border-color: #BFBFBF;
    --success-color: #C9D952;
    --error-color: #C9D952;
    --text-point: #373740;
    --border-light: #BFBFBF;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    padding-top: 90px; /* navbar 높이(70px) + 여백(20px) */
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 헤더 */
header {
    margin-bottom: 40px;
}

.header-content {
    text-align: center;
    color: var(--text-point);
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8cc4a 100%);
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(201, 217, 82, 0.2);
}

header h1 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-point);
}

.subtitle {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    color: var(--text-point);
}

/* 네비게이션 메뉴 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(55, 55, 64, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.nav-logo svg {
    flex-shrink: 0;
}

.nav-logo h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0;
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
}

.nav-logo span {
    font-family: 'Aggravo', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.nav-link:hover {
    background: rgba(201, 217, 82, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: var(--text-point);
    font-weight: 600;
}

/* 드롭다운 메뉴 */
.nav-item-dropdown {
    position: relative;
    z-index: 1001;
}

.nav-link-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.nav-link-dropdown::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown.active .nav-link-dropdown::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(55, 55, 64, 0.15);
    min-width: 180px;
    padding: 8px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-light);
}

.nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.dropdown-link:hover {
    background: rgba(201, 217, 82, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-link.active {
    background: rgba(201, 217, 82, 0.15);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* 햄버거 메뉴 버튼 */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 6.5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span {
    background: var(--primary-color);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 입력 섹션 */
.input-section {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(55, 55, 64, 0.08);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 80px 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

.input-wrapper select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23373740' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 217, 82, 0.1);
}

.input-wrapper select option {
    padding: 10px;
    font-size: 1rem;
}

/* 날짜 입력 필드 스타일 */
.input-wrapper input[type="date"] {
    padding: 18px 50px 18px 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    position: relative;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.input-wrapper input[type="date"]::-webkit-inner-spin-button,
.input-wrapper input[type="date"]::-webkit-clear-button {
    margin-right: 10px;
}

/* Firefox용 날짜 입력 필드 */
.input-wrapper input[type="date"]::-moz-calendar-picker-indicator {
    margin-right: 20px;
    cursor: pointer;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 217, 82, 0.1);
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-wrapper label {
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 1rem;
    color: var(--text-dark);
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group-half {
    flex: 1;
    margin-bottom: 0;
}

.number-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.input-wrapper .number-input {
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
}

.number-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 217, 82, 0.1);
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-quick {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.btn-quick:hover {
    background: var(--primary-color);
    color: var(--text-point);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 217, 82, 0.3);
}

.btn-calculate {
    width: auto;
    padding: 18px 60px;
    background: #1B1B1B;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 27, 27, 0.3);
    display: block;
    margin: 0 auto;
}

.btn-calculate:hover {
    background: #2B2B2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 27, 27, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* 결과 섹션 */
.results-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(55, 55, 64, 0.08);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.result-card h2, .result-card h3 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.result-card.main-result {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8cc4a 100%);
    color: var(--text-point);
    text-align: center;
    border: none;
    box-shadow: 0 8px 30px rgba(201, 217, 82, 0.25);
}

.result-card.main-result h2 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    color: var(--text-point);
    font-size: 1.3rem;
    font-weight: 700;
}

.result-card.secondary-result {
    background: var(--bg-light);
    text-align: center;
    border: 1px solid var(--border-light);
}

.result-card.secondary-result h2 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
}

.amount-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency-unit {
    font-size: 1.5rem;
    font-weight: 500;
}

.result-description {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid var(--border-light);
    line-height: 1.8;
}

.result-description p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.result-description p:last-child {
    margin-bottom: 0;
}

.result-description strong {
    color: var(--text-point);
    font-weight: 700;
}

.result-note {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    margin-top: 10px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.amount {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.result-breakdown {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    gap: 15px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.breakdown-item span:first-child {
    font-size: 0.9rem;
    opacity: 0.9;
    word-break: keep-all;
    line-height: 1.4;
    text-align: center;
}

.breakdown-item span:last-child {
    font-size: 1.3rem;
    font-weight: 600;
    word-break: keep-all;
    line-height: 1.4;
    text-align: center;
}

.breakdown-item .negative,
#monthly-deductions,
#annual-deductions {
    color: #D93240;
    font-weight: 700;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.detail-link:hover {
    color: var(--primary-color);
}

.arrow {
    transition: transform 0.3s ease;
}

.detail-link.active .arrow {
    transform: rotate(180deg);
}

/* 상세 내역 */
.detail-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(55, 55, 64, 0.08);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
    border: 1px solid var(--border-light);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.detail-section h3 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
}

.detail-grid {
    display: grid;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.detail-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D93240;
}

.detail-percent {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 10px;
}

/* 차트 섹션 */
.chart-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(55, 55, 64, 0.08);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.chart-section h3 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

/* 푸터 */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 80px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding: 0;
    width: calc(100% + 40px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    grid-column: 1 / -1;
    width: 100%;
}

.footer-section h3 {
    font-family: 'Aggravo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-info {
    grid-column: 1 / -1;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 20px;
}

.footer-info h4 {
    margin-bottom: 15px;
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.footer-info li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.footer-info li:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* 소셜 링크 (SEO용, 화면에 표시되지 않음) */
.footer-social-links {
    display: none !important;
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-social-links a {
    display: inline-block;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* 기존 footer 스타일 (다른 페이지용) */
footer:not(.main-footer) {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    background: var(--primary-dark);
    margin-top: 60px;
}

footer:not(.main-footer) p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.7);
}

/* 모달 창 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(55, 55, 64, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(55, 55, 64, 0.3);
    animation: slideDown 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-modal-confirm {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-point);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 217, 82, 0.3);
}

.btn-modal-confirm:hover {
    background: #b8cc4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 217, 82, 0.4);
}

.btn-modal-confirm:active {
    transform: translateY(0);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding-top: 90px; /* navbar 높이(70px) + 여백(20px) */
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: -100vh;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: white;
        width: calc(100% - 40px);
        text-align: center;
        transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 10px 27px rgba(55, 55, 64, 0.1);
        padding: 20px 0;
        gap: 0;
        border-radius: 0 0 16px 16px;
        border: 1px solid var(--border-light);
        z-index: 99;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        top: 70px;
        visibility: visible;
        opacity: 1;
    }

    .nav-item,
    .nav-item-dropdown {
        margin: 10px 0;
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(201, 217, 82, 0.05);
        border-radius: 8px;
        margin-top: 5px;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 12px 30px;
    }

    .dropdown-link:hover {
        padding-left: 35px;
    }

    .nav-logo h1 {
        font-size: 1.1rem;
    }
    
    .nav-logo svg {
        width: 24px;
        height: 24px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .input-section {
        padding: 30px 20px;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .input-group-half {
        margin-bottom: 30px;
    }

    .amount-large {
        font-size: 1.8rem;
    }

    .amount {
        font-size: 1.3rem;
    }

    .result-breakdown {
        flex-direction: column;
        gap: 20px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .quick-buttons {
        justify-content: center;
    }

    .chart-container {
        height: 250px;
    }
}

/* 테스트 페이지 스타일 */
.test-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(55, 55, 64, 0.08);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.test-intro {
    text-align: center;
    padding: 40px 20px;
}

.test-intro h2 {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.7rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.test-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.test-questions {
    margin-top: 30px;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.question-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-light);
}

.question-text {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 700;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-answer {
    padding: 20px 30px;
    font-size: 1.1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    font-weight: 500;
}

.btn-answer:hover {
    border-color: var(--primary-color);
    background: rgba(201, 217, 82, 0.05);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(201, 217, 82, 0.1);
}

.btn-answer:active {
    transform: translateX(3px);
}

.personality-type {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.personality-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 30px;
}

.stress-score {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    text-align: center;
}

.stress-level {
    font-family: 'GMarketSans', 'Pretendard', sans-serif;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .test-container {
        padding: 30px 20px;
    }

    .question-card {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .btn-answer {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .personality-type {
        font-size: 1.3rem;
    }

    .personality-description {
        font-size: 1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-top: 70px; /* navbar 높이(60px) + 여백(10px) */
    }

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-logo h1 {
        font-size: 1.1rem;
    }
    
    .nav-logo svg {
        width: 24px;
        height: 24px;
    }

    .nav-menu {
        top: -100vh;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 70px);
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }

    .header-content {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .amount-large {
        font-size: 1.8rem;
    }

    .input-wrapper input {
        font-size: 1.1rem;
        padding: 15px 70px 15px 15px;
        font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    }

    .input-wrapper input[type="date"] {
        padding: 15px 50px 15px 15px;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
        font-size: 1rem;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    .main-footer {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
        width: calc(100% + 20px);
    }
}

/* 메인페이지 스타일 */
/* KV 영역 */
.kv-section {
    background: var(--primary-color);
    padding: 120px 20px 80px;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    margin: 20px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(201, 217, 82, 0.2);
}

.kv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 1;
    border-radius: 30px;
}

.kv-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.kv-decoration {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    z-index: 0;
    animation: floatDecoration 15s ease-in-out infinite;
}

.kv-decoration-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.kv-decoration-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.kv-decoration-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translate(-15px, 15px) rotate(180deg);
        opacity: 0.1;
    }
    75% {
        transform: translate(15px, 20px) rotate(270deg);
        opacity: 0.2;
    }
}

.kv-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.kv-title {
    font-family: 'Aggravo', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.kv-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0;
}

/* 섹션 헤더 */
.tools-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Aggravo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 15px 0;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 0;
}

/* 카드 그리드 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

/* 카드 스타일 */
.tool-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(55, 55, 64, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(55, 55, 64, 0.15);
}

.card-link {
    display: flex;
    align-items: center;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    gap: 20px;
    position: relative;
    height: 100%;
    flex: 1;
    min-height: 200px;
}

.card-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 217, 82, 0.1) 0%, rgba(201, 217, 82, 0.05) 100%);
    border-radius: 16px;
}

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
    flex-shrink: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: nowrap;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
    flex: 1;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tool-card:hover .card-arrow {
    transform: translateX(5px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .kv-section {
        padding: 80px 20px 60px;
        margin: 10px;
        border-radius: 20px;
    }

    .kv-section::before {
        border-radius: 20px;
    }

    .kv-decoration {
        font-size: 2.5rem;
    }

    .kv-title {
        font-size: 2.2rem;
    }

    .kv-subtitle {
        font-size: 1rem;
    }

    .tools-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-link {
        padding: 25px;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .tool-card {
        min-height: 180px;
    }

    .card-link {
        min-height: 180px;
        padding: 20px;
        align-items: center;
        justify-content: center;
    }

    .card-content {
        min-height: auto;
        justify-content: center;
        align-items: flex-start;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        flex-shrink: 0;
    }

    .card-description {
        font-size: 0.9rem;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        flex: 0 0 auto;
    }

    /* 푸터 반응형 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-container {
        padding: 40px 20px 20px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .main-footer {
        margin-top: 60px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        width: calc(100% + 40px);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-legal-links {
        font-size: 0.85rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-section {
        text-align: center;
    }

    .footer-info {
        grid-column: 1 / -1;
        width: 100%;
        padding: 20px;
        margin-top: 15px;
    }

    .footer-info ul {
        display: block;
    }

    .footer-info li {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* 쿠팡 배너 스타일 (PC 전용) */
.coupang-banner {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 160px;
    display: none; /* 기본적으로 숨김 (PC에서만 표시) */
    flex-direction: column;
    align-items: center;
}

/* PC에서만 표시 (768px 이상) */
@media (min-width: 769px) {
    .coupang-banner {
        display: flex;
    }
}

/* 쿠팡 배너 스타일 (모바일 전용) */
.coupang-banner-mobile {
    display: none; /* 기본적으로 숨김 (모바일에서만 표시) */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 0;
    width: 100%;
    max-width: 250px;
}

/* 모바일에서만 표시 (768px 이하) */
@media (max-width: 768px) {
    .coupang-banner-mobile {
        display: flex;
    }
}

/* 쿠팡 파트너스 멘트 */
.coupang-disclosure {
    text-align: center;
    padding: 15px 10px;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 10px 0 0 0;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.coupang-disclosure p {
    margin: 0;
    color: var(--text-light);
}

/* PC 배너 내부 멘트 스타일 */
@media (min-width: 769px) {
    .coupang-banner .coupang-disclosure {
        width: 160px;
        font-size: 0.7rem;
        padding: 10px 5px;
    }
}

/* 모바일 배너 내부 멘트 스타일 */
@media (max-width: 768px) {
    .coupang-banner-mobile .coupang-disclosure {
        max-width: 250px;
        font-size: 0.75rem;
        padding: 15px 10px;
    }
}