/* =====================
   육아냥이 - 메인 스타일
   부자냥이 톤 + 토스 레이아웃
   ===================== */

/* 리셋 & 기본 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 부자냥이 컬러 팔레트 */
    --primary: #FF9800;
    --primary-light: #FFB74D;
    --primary-dark: #F57C00;
    --secondary: #FFF3E0;
    --accent: #FF5722;

    /* 텍스트 - 가시성 대폭 개선 */
    --text-dark: #1A1A1A;
    --text-medium: #444444;
    --text-light: #666666;

    /* 배경 */
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --bg-card: #FFFFFF;
    --bg-secondary: #F0F0F0;

    /* 기타 */
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;

    /* 간격 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 둥글기 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 추가 변수 */
    --border-color: var(--border);
    --radius-full: 9999px;
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 다크모드 */
[data-theme="dark"] {
    --primary: #FFB74D;
    --primary-light: #FFCC80;
    --primary-dark: #FF9800;
    --secondary: #3D3020;
    --accent: #FF7043;

    --text-dark: #FFFFFF;
    --text-medium: #E0E0E0;
    --text-light: #C0C0C0;

    --bg-white: #1A1A1A;
    --bg-gray: #121212;
    --bg-card: #2D2D2D;
    --bg-secondary: #3A3A3A;

    --border: #424242;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* 다크모드 헤더 */
[data-theme="dark"] .header {
    background: linear-gradient(135deg, #3D3020 0%, #5D4A30 100%);
}

/* 다크모드 버튼 */
[data-theme="dark"] .header-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-light);
}

/* 다크모드 모달 */
[data-theme="dark"] .modal-box {
    background: var(--bg-card);
}

/* 다크모드 입력 */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
    background: var(--bg-card);
    color: var(--text-dark);
    border-color: var(--border);
}

/* 고양이 닮은꼴 결과 스타일 */
.cat-lookalike-result {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px var(--shadow);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.result-card.show {
    opacity: 1;
    transform: translateY(0);
}

.result-header h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    font-size: 24px;
}

.photo-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
}

.photo-item {
    flex: 1;
    text-align: center;
}

.photo-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 8px var(--shadow);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 600;
}

.match-indicator {
    flex-shrink: 0;
    text-align: center;
}

.match-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-sm);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.match-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percentage-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
}

.percentage-symbol {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.match-label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 600;
}

.breed-info {
    text-align: center;
}

.breed-name {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.breed-emoji {
    font-size: 32px;
    margin-right: var(--spacing-sm);
}

.breed-origin {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.breed-description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.breed-traits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.trait-tag {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.alternatives-section {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    text-align: center;
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.alternative-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
}

.alternative-card:hover {
    transform: translateY(-4px);
}

.alt-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.alt-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alt-info h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.alt-match {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.btn-share {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-icon {
    margin-right: var(--spacing-sm);
}

/* 공유 결과 (URL 파라미터로 받은 경우) */
.cat-lookalike-shared-result {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.shared-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.shared-header h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.shared-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.shared-result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px var(--shadow);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.shared-breed-image {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
}

.shared-breed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shared-match-info {
    margin-bottom: var(--spacing-lg);
}

.shared-match-percentage {
    font-size: 56px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.shared-match-label {
    font-size: 18px;
    color: var(--text-medium);
    font-weight: 600;
}

.shared-breed-info h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.shared-alternatives {
    margin-bottom: var(--spacing-lg);
}

.shared-alternatives h3 {
    text-align: center;
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.shared-cta {
    text-align: center;
}

.btn-large {
    font-size: 18px;
    padding: 16px 32px;
}

/* 반응형 */
@media (max-width: 600px) {
    .photo-comparison {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .match-indicator {
        order: -1;
    }

    .photo-frame {
        width: 120px;
        height: 120px;
    }

    .match-circle {
        width: 100px;
        height: 100px;
    }

    .percentage-number {
        font-size: 28px;
    }

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

/* 다크모드 로딩 화면 */
[data-theme="dark"] .loading-overlay {
    background: linear-gradient(135deg, #2D2520 0%, #3D3020 50%, #4D4030 100%);
}

[data-theme="dark"] .loading-overlay::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 152, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 183, 77, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .loading-text {
    color: #FFB74D;
}

[data-theme="dark"] .loading-subtext {
    color: #FFCC80;
}

/* 다크모드 카드 */
[data-theme="dark"] .card {
    background: var(--bg-card);
    border-color: var(--border);
}

/* 다크모드 메뉴 아이템 */
[data-theme="dark"] .menu-item {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .menu-item:hover {
    background: #3D3D3D;
}

/* 다크모드 체크리스트 */
[data-theme="dark"] .checklist-item {
    background: var(--bg-card);
    border-color: var(--border);
}

/* 다크모드 유저타입 카드 */
[data-theme="dark"] .user-type-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .user-type-card:hover {
    background: #3D3D3D;
}

/* 다크모드 품종 카드 */
[data-theme="dark"] .breed-card {
    background: var(--bg-card);
    border-color: var(--border);
}

/* 다크모드 어필리에이트 카드 */
[data-theme="dark"] .affiliate-card {
    background: linear-gradient(135deg, #3D3020 0%, #4D3A20 100%);
    border-color: #FFB74D;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

[data-theme="dark"] .affiliate-card .affiliate-text p {
    color: #C0C0C0;
}

/* 다크모드 결과 */
[data-theme="dark"] .result-summary {
    background: linear-gradient(135deg, #3D3020 0%, #5D4A30 100%);
}

[data-theme="dark"] .result-breakdown {
    background: var(--bg-card);
}

/* 다크모드 팁 박스 */
[data-theme="dark"] .tip-box {
    background: #3D3020;
    border-color: var(--primary);
}

/* 다크모드 즐겨찾기 */
[data-theme="dark"] .favorite-item {
    background: var(--bg-card);
    border-color: var(--border);
}

/* 다크모드 품종 스탯 */
[data-theme="dark"] .breed-stats {
    background: var(--bg-card);
}

[data-theme="dark"] .stat-item {
    border-color: var(--border);
}

/* 다크모드 등급 버튼 */
[data-theme="dark"] .grade-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-dark);
}

[data-theme="dark"] .grade-btn.active {
    background: var(--primary);
    color: #1A1A1A;
}

/* 다크모드 결과 탭 */
[data-theme="dark"] .result-tab {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-dark);
}

[data-theme="dark"] .result-tab.active {
    background: var(--primary);
    color: #1A1A1A;
}

/* 다크모드 푸터 */
[data-theme="dark"] .footer {
    background: var(--bg-card);
    border-color: var(--border);
}

body {
    font-family: 'Gowun Dodum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    box-shadow: 0 0 20px var(--shadow);
}

/* =====================
   헤더
   ===================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-spacer {
    width: 40px;
}

.header-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.header-btn {
    background: white;
    border: none;
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* =====================
   메인 컨텐츠
   ===================== */
.main-content {
    flex: 1;
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

/* =====================
   카드 컴포넌트 (토스 스타일)
   ===================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* 선택 카드 (메뉴) */
.select-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.select-card .card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius-md);
}

.select-card .card-content {
    flex: 1;
}

.select-card .card-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* =====================
   버튼
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 버튼 그룹 */
.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-group .btn {
    flex: 1;
}

/* =====================
   타이틀 섹션
   ===================== */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
    color: var(--text-dark);
}

/* =====================
   메인 선택 화면
   ===================== */
.home-intro {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.home-intro .cat-emoji {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.home-intro .home-cat-image {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.home-intro .home-cat-image img {
    width: 130%;
    height: 130%;
    object-fit: cover;
    object-position: center 10%;
    transform: translateX(-12%);
}

.home-intro h2 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.home-intro p {
    color: var(--text-medium);
    font-size: 0.85rem;
}

.user-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.user-type-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.user-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* 모바일 터치 피드백 */
.user-type-card:active {
    transform: scale(0.97);
    border-color: var(--primary);
    background: var(--secondary);
    box-shadow: 0 2px 8px var(--shadow);
}

.user-type-card .icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.user-type-card h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-type-card p {
    font-size: 0.75rem;
    color: var(--text-medium);
}

/* =====================
   메뉴 리스트
   ===================== */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.menu-item:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

/* 모바일 터치 피드백 */
.menu-item:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: var(--secondary);
}

.menu-item .menu-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.menu-item .menu-text {
    flex: 1;
}

.menu-item .menu-text h4 {
    font-size: 1rem;
    font-weight: 600;
}

.menu-item .menu-text p {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.menu-item .menu-arrow {
    color: var(--text-medium);
    font-weight: 600;
}

/* =====================
   품종 그리드
   ===================== */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.breed-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.breed-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

/* 모바일 터치 피드백 */
.breed-card:active {
    transform: scale(0.96);
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.breed-card .breed-image {
    width: 100%;
    height: 120px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.breed-card .breed-image img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center 5%;
    transform: translateX(-5%);
}

.breed-card .breed-info {
    padding: var(--spacing-md);
    text-align: center;
}

.breed-card .breed-name {
    font-size: 1rem;
    font-weight: 600;
}

.breed-card .breed-origin {
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* =====================
   품종 상세
   ===================== */
.breed-detail {
    text-align: center;
}

.breed-detail .breed-hero {
    font-size: 6rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.breed-detail .breed-hero-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    box-shadow: 0 4px 20px var(--shadow);
}

.breed-detail .breed-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.breed-detail .breed-subtitle {
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

.breed-traits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.trait-tag {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
}

.breed-stats {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-medium);
}

.stat-value {
    font-weight: 600;
}

/* =====================
   체크리스트
   ===================== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.checklist-item.checked {
    background: var(--secondary);
    border-color: var(--primary);
}

/* 모바일 터치 피드백 */
.checklist-item:active {
    transform: scale(0.98);
    background: var(--secondary);
}

.checklist-item .check-box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checklist-item.checked .check-box {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.checklist-item .check-text {
    flex: 1;
}

.checklist-item .check-text h4 {
    font-size: 0.95rem;
    font-weight: 500;
}

.checklist-item .check-text p {
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* =====================
   계산 입력 폼
   ===================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Gowun Dodum', sans-serif;
    transition: border-color 0.2s;
}

/* date input 폰트 통일 */
.form-input[type="date"] {
    font-family: 'Gowun Dodum', sans-serif;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Gowun Dodum', sans-serif;
    background: white;
    cursor: pointer;
}

.form-select option {
    font-family: 'Gowun Dodum', sans-serif;
}

/* 등급 선택 버튼 */
.grade-selector {
    display: flex;
    gap: var(--spacing-sm);
}

.grade-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.grade-btn:hover {
    border-color: var(--primary-light);
    background: var(--secondary);
}

/* 모바일 터치 피드백 - 더 강한 효과 */
.grade-btn:active {
    transform: scale(0.94);
    border-color: var(--primary);
    background: var(--secondary);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.grade-btn.active {
    border-color: var(--primary);
    background: var(--secondary);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* 선택 시 체크 표시 */
.grade-btn.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: bold;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

.grade-btn .grade-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.grade-btn .grade-price {
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* 합계 금액 변경 애니메이션 */
@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: var(--primary); }
    100% { transform: scale(1); }
}

.price-updated {
    animation: priceUpdate 0.4s ease;
}

/* 실시간 비용 미리보기 카드 */
.cost-preview-card {
    background: linear-gradient(135deg, var(--secondary) 0%, #FFF8E1 100%);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.cost-preview-card .preview-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xs);
}

.cost-preview-card .preview-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

[data-theme="dark"] .cost-preview-card {
    background: linear-gradient(135deg, var(--secondary) 0%, #3D3020 100%);
}

/* =====================
   결과 화면
   ===================== */
.result-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.result-summary .result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.result-summary .result-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.result-summary .result-unit {
    font-size: 1rem;
}

.result-tabs {
    display: flex;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.result-tab {
    flex: 1;
    padding: var(--spacing-sm);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.2s;
}

.result-tab:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.5);
}

.result-tab.active {
    background: white;
    box-shadow: 0 2px 4px var(--shadow);
}

.result-breakdown {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item .item-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breakdown-item .item-icon {
    font-size: 1.2rem;
}

.breakdown-item .item-amount {
    font-weight: 600;
    color: var(--primary-dark);
}

/* 초기비용 세부 내역 */
.cost-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cost-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.cost-breakdown-item .breakdown-label {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.cost-breakdown-item .breakdown-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2196F3; /* 파란색으로 개별 항목 구분 */
}

.cost-breakdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--spacing-sm) 0;
}

.cost-breakdown-item.total .breakdown-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cost-breakdown-item.total .breakdown-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E65100; /* 진한 주황색으로 합계 강조 */
}

/* 팁 박스 */
.tip-box {
    background: var(--secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.tip-box .tip-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tip-box .tip-content {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* 근거 자료 박스 */
.reference-box {
    background: #F5F5F5;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-left: 3px solid var(--text-light);
}

.reference-box .reference-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.reference-box .reference-content {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.reference-box .reference-content p {
    margin-bottom: var(--spacing-xs);
}

.reference-box .reference-list {
    margin: var(--spacing-xs) 0 0 var(--spacing-md);
    padding: 0;
}

.reference-box .reference-list li {
    margin-bottom: 2px;
}

[data-theme="dark"] .reference-box {
    background: #2A2A2A;
    border-left-color: var(--text-light);
}

/* 제휴 링크 */
.affiliate-section {
    margin-top: var(--spacing-lg);
}

.affiliate-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: var(--radius-md);
    border: 2px solid #FFB74D;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.affiliate-card:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

/* 모바일 터치 피드백 */
.affiliate-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: var(--secondary);
}

.affiliate-card .affiliate-icon {
    font-size: 1.5rem;
}

.affiliate-card .affiliate-text {
    flex: 1;
}

.affiliate-card .affiliate-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.affiliate-card .affiliate-text p {
    font-size: 0.8rem;
    color: #666666;
}

.affiliate-card .affiliate-arrow {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* =====================
   데이터 관리 섹션
   ===================== */
.data-management-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.section-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* 엑셀 내보내기 카드 (큰 단일 카드) */
.export-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius-md);
    border: 1px solid #a5d6a7;
    cursor: pointer;
    transition: all 0.2s;
}

.export-card:hover {
    border-color: #66bb6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.export-card:active {
    transform: scale(0.98);
}

.export-card .export-icon {
    font-size: 2rem;
}

.export-card .export-text {
    flex: 1;
}

.export-card .export-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 2px;
}

.export-card .export-text p {
    font-size: 0.8rem;
    color: #558b2f;
}

.export-card .menu-arrow {
    color: #4caf50;
    font-size: 1.2rem;
}

[data-theme="dark"] .export-card {
    background: linear-gradient(135deg, #1b3a1f 0%, #2d4a32 100%);
    border-color: #4a7c4f;
}

[data-theme="dark"] .export-card:hover {
    border-color: #66bb6a;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

[data-theme="dark"] .export-card .export-text h4 {
    color: #81c784;
}

[data-theme="dark"] .export-card .export-text p {
    color: #a5d6a7;
}

[data-theme="dark"] .export-card .menu-arrow {
    color: #81c784;
}

/* 백업 카드 그리드 (3열) */
.data-management-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.data-cards-row {
    grid-template-columns: repeat(3, 1fr);
}

.data-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.data-card:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

.data-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: var(--secondary);
}

.data-card .data-icon {
    font-size: 1.5rem;
}

.data-card .data-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.data-card .data-text p {
    font-size: 0.7rem;
    color: var(--text-medium);
}

.data-card-danger {
    border: 1px solid #ffcccc;
    background: #fff5f5;
}

.data-card-danger:hover {
    border-color: #ff9999;
    background: #ffeeee;
}

.data-card-danger .data-text h4 {
    color: #d32f2f;
}

[data-theme="dark"] .data-card-danger {
    border-color: #5c2a2a;
    background: #3a2020;
}

[data-theme="dark"] .data-card-danger:hover {
    border-color: #7a3a3a;
    background: #4a2828;
}

[data-theme="dark"] .data-card-danger .data-text h4 {
    color: #ff6b6b;
}

.data-notice {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

/* =====================
   설정 페이지
   ===================== */
.clickable-card {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.clickable-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.clickable-card:active {
    transform: scale(0.98);
}

.card-arrow {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: var(--spacing-xs);
}

.backup-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.backup-buttons .btn {
    flex: 1;
}

.card-danger {
    border-color: #ffcccc;
    background: #fff8f8;
}

.card-danger .card-title {
    color: #d32f2f;
}

[data-theme="dark"] .card-danger {
    border-color: #5c2a2a;
    background: #2a1a1a;
}

[data-theme="dark"] .card-danger .card-title {
    color: #ff6b6b;
}

.btn-danger {
    background: #d32f2f;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-block {
    width: 100%;
}

.app-info {
    margin-top: var(--spacing-xl);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: var(--spacing-lg);
}

.app-info p {
    margin: var(--spacing-xs) 0;
}

.text-light {
    color: var(--text-light);
}

/* =====================
   항목별 비용 상세
   ===================== */
.cost-breakdown-section {
    margin: var(--spacing-lg) 0;
}

.cost-breakdown-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.cost-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.cost-breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breakdown-icon {
    font-size: 1.3rem;
}

.breakdown-name {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.breakdown-right {
    text-align: right;
}

.breakdown-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* =====================
   도넛 차트
   ===================== */
.chart-section {
    margin: var(--spacing-lg) 0;
}

.chart-container {
    max-width: 250px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.chart-legend-item:hover {
    background: var(--secondary);
    transform: translateX(4px);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-icon {
    font-size: 1rem;
}

.legend-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.legend-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.chart-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: var(--spacing-md);
}

/* 차트 상세 모달 */
.chart-detail-modal {
    padding: 0;
    overflow: hidden;
}

.chart-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    color: white;
}

.chart-detail-icon {
    font-size: 2rem;
}

.chart-detail-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.chart-detail-body {
    padding: var(--spacing-lg);
    text-align: center;
}

.chart-detail-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.chart-detail-percent {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.chart-detail-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--bg-gray);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.chart-detail-modal .btn {
    margin: var(--spacing-md);
    margin-top: 0;
}

/* 다크모드 차트 */
[data-theme="dark"] .chart-legend-item {
    background: var(--bg-card);
}

[data-theme="dark"] .chart-legend-item:hover {
    background: #3D3D3D;
}

[data-theme="dark"] .chart-detail-body {
    background: var(--bg-card);
}

[data-theme="dark"] .chart-detail-desc {
    background: #1A1A1A;
}

/* 다크모드 항목별 비용 */
[data-theme="dark"] .cost-breakdown-list {
    background: var(--bg-card);
}

[data-theme="dark"] .cost-breakdown-item {
    border-bottom-color: #3D3D3D;
}

[data-theme="dark"] .breakdown-name {
    color: #E0E0E0;
}

[data-theme="dark"] .breakdown-amount {
    color: #FFB74D;
}

/* =====================
   푸터
   ===================== */
.footer {
    padding: var(--spacing-md);
    text-align: center;
    background: var(--bg-gray);
    font-size: 0.8rem;
    color: var(--text-medium);
}

.footer-nav {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.footer-nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-nav a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* =====================
   유틸리티
   ===================== */
.text-center {
    text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* 숨김 */
.hidden {
    display: none !important;
}

/* =====================
   페이지 전환 애니메이션
   ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.35s ease-out;
}

/* 카드 순차 등장 애니메이션 */
.fade-in .user-type-card,
.fade-in .menu-item,
.fade-in .checklist-item,
.fade-in .breed-card,
.fade-in .affiliate-card,
.fade-in .favorite-item {
    opacity: 0;
    animation: slideInUp 0.4s ease-out forwards;
}

.fade-in .user-type-card:nth-child(1),
.fade-in .menu-item:nth-child(1),
.fade-in .checklist-item:nth-child(1),
.fade-in .breed-card:nth-child(1),
.fade-in .affiliate-card:nth-child(1),
.fade-in .favorite-item:nth-child(1) { animation-delay: 0.05s; }

.fade-in .user-type-card:nth-child(2),
.fade-in .menu-item:nth-child(2),
.fade-in .checklist-item:nth-child(2),
.fade-in .breed-card:nth-child(2),
.fade-in .affiliate-card:nth-child(2),
.fade-in .favorite-item:nth-child(2) { animation-delay: 0.1s; }

.fade-in .user-type-card:nth-child(3),
.fade-in .menu-item:nth-child(3),
.fade-in .checklist-item:nth-child(3),
.fade-in .breed-card:nth-child(3),
.fade-in .affiliate-card:nth-child(3),
.fade-in .favorite-item:nth-child(3) { animation-delay: 0.15s; }

.fade-in .user-type-card:nth-child(4),
.fade-in .menu-item:nth-child(4),
.fade-in .checklist-item:nth-child(4),
.fade-in .breed-card:nth-child(4),
.fade-in .affiliate-card:nth-child(4),
.fade-in .favorite-item:nth-child(4) { animation-delay: 0.2s; }

.fade-in .user-type-card:nth-child(n+5),
.fade-in .menu-item:nth-child(n+5),
.fade-in .checklist-item:nth-child(n+5),
.fade-in .breed-card:nth-child(n+5),
.fade-in .affiliate-card:nth-child(n+5),
.fade-in .favorite-item:nth-child(n+5) { animation-delay: 0.25s; }

/* 결과 화면 애니메이션 */
.fade-in .result-summary {
    animation: scaleIn 0.5s ease-out;
}

.fade-in .result-tabs {
    animation: slideInUp 0.4s ease-out 0.1s forwards;
    opacity: 0;
}

.fade-in .result-breakdown {
    animation: slideInUp 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in .tip-box {
    animation: slideInRight 0.4s ease-out 0.3s forwards;
    opacity: 0;
}

/* 홈 화면 고양이 이모지 애니메이션 */
.fade-in .cat-emoji,
.fade-in .home-cat-image {
    animation: bounceIn 0.6s ease-out;
}

/* 품종 상세 히어로 애니메이션 */
.fade-in .breed-hero {
    animation: bounceIn 0.6s ease-out;
}

/* 버튼 호버 애니메이션 강화 */
.btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* =====================
   앱 설치 유도 팝업
   ===================== */
.install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 -4px 20px var(--shadow);
    padding: var(--spacing-md);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.install-prompt.show {
    transform: translateY(0);
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
}

.install-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
}

.install-text strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.install-text p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 2px;
}

.install-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 400px) {
    .install-prompt-content {
        flex-wrap: wrap;
    }
    .install-buttons {
        flex-direction: row;
        width: 100%;
        margin-top: 8px;
    }
    .install-buttons .btn {
        flex: 1;
    }
}

/* 로딩 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================
   모달
   ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: var(--spacing-md);
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 320px;
    width: 100%;
    animation: fadeIn 0.2s ease-out;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.modal-box h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.modal-box p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.modal-box .form-input {
    margin-bottom: var(--spacing-sm);
}

/* =====================
   즐겨찾기 목록
   ===================== */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-item:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

/* 모바일 터치 피드백 */
.favorite-item:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: var(--secondary);
}

.favorite-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.favorite-info {
    flex: 1;
}

.favorite-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.favorite-detail {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 2px;
}

.favorite-delete {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.favorite-delete:hover {
    background: var(--danger);
    color: white;
}

/* =====================
   로딩 화면 (파스텔풍)
   ===================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4C9 50%, #FFDAB3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease-out;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(173, 216, 230, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 218, 185, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-cat {
    width: 160px;
    height: 160px;
    object-fit: contain;
    animation: catBounce 1.2s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

@keyframes catBounce {
    0%, 100% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(2deg) scale(1.02);
    }
}

.loading-text {
    margin-top: 24px;
    color: #8B6914;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: 'NeoDunggeunmo', 'Gowun Dodum', sans-serif;
}

.loading-dots {
    display: inline-block;
    color: var(--primary);
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loading-subtext {
    margin-top: 8px;
    color: #A67C00;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    font-family: 'NeoDunggeunmo', 'Gowun Dodum', sans-serif;
}

/* 로딩 화면 장식 - 고양이 머리 위 발자국 */
.loading-overlay::after {
    content: '🐾';
    position: absolute;
    font-size: 1.5rem;
    top: calc(50% - 180px);
    opacity: 0.5;
    animation: pawPrint 1.5s ease-in-out infinite;
}

@keyframes pawPrint {
    0%, 100% { transform: translateX(-20px) rotate(-10deg); opacity: 0.4; }
    50% { transform: translateX(20px) rotate(10deg); opacity: 0.6; }
}

/* =====================
   건강 알림 설정
   ===================== */

/* 알림 배너 */
.reminder-banner {
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--primary);
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
}

.reminder-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.reminder-icon {
    font-size: 1.3rem;
}

.reminder-message {
    flex: 1;
    font-size: 0.9rem;
    color: #5D4037;
    font-weight: 500;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--primary-dark);
}

/* 예방접종 진행률 */
.vaccination-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.progress-bar-container {
    flex: 1;
    height: 10px;
    background: var(--bg-gray);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #4CAF50 100%);
    border-radius: var(--radius-xl);
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* 다음 접종 안내 */
.next-vaccination {
    background: var(--secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.next-vaccination.complete {
    background: #E8F5E9;
    justify-content: center;
    color: #2E7D32;
    font-weight: 600;
}

.next-label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.next-value {
    font-weight: 600;
    color: var(--primary-dark);
}

/* 예방접종 리스트 */
.vaccination-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.vaccination-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.vaccination-item:hover {
    background: var(--secondary);
}

.vaccination-item.done {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.vac-check {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    transition: all 0.2s;
}

.vaccination-item.done .vac-check {
    background: #4CAF50;
    border-color: #4CAF50;
}

.vac-info {
    flex: 1;
}

.vac-name {
    font-weight: 600;
    color: var(--text-dark);
}

.vac-desc {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 2px;
}

.vac-date {
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 500;
}

/* 알림 설정 */
.reminder-setting {
    padding: var(--spacing-sm) 0;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.setting-row.disabled {
    opacity: 0.5;
}

.setting-label {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* 토글 스위치 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #CCC;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

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

/* 작은 셀렉트 */
.form-select.small {
    width: auto;
    min-width: 100px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
}

/* 마지막 투약일 */
.last-done {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-align: right;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border);
}

/* 다크모드 알림 설정 */
[data-theme="dark"] .reminder-banner {
    background: linear-gradient(135deg, #4A3F2F 0%, #3D3422 100%);
}

[data-theme="dark"] .reminder-message {
    color: #FFE0B2;
}

[data-theme="dark"] .vaccination-item {
    background: var(--bg-card);
}

[data-theme="dark"] .vaccination-item.done {
    background: rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .next-vaccination {
    background: rgba(255, 152, 0, 0.2);
}

[data-theme="dark"] .next-vaccination.complete {
    background: rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .toggle-slider {
    background: #555;
}

[data-theme="dark"] .form-select.small {
    background: var(--bg-card);
    color: var(--text-dark);
    border-color: var(--border);
}

/* =====================
   프로필 카드
   ===================== */
.profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    color: white;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.profile-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-stat {
    flex: 1;
    text-align: center;
}

.profile-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-stat .stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.profile-card-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.profile-card-actions .btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-card-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 프로필 카드 레이아웃 개선 */
.profile-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
}

.profile-info {
    flex: 1;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.profile-breed {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 4px 0;
}

.profile-weight {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.profile-edit {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-switch-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
}

.profile-emoji {
    font-size: 2.5rem;
}

/* 프로필 없을 때 카드 */
.profile-empty-card {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.profile-empty-card .empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.profile-empty-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.profile-empty-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

/* 프로필 등록 유도 카드 */
.register-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.register-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.register-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.register-card:active {
    transform: scale(0.98);
}

.register-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.register-text {
    flex: 1;
    color: white;
}

.register-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.register-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.register-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

/* 구분선 텍스트 */
.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: var(--spacing-lg) 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider-text::before {
    margin-right: var(--spacing-md);
}

.divider-text::after {
    margin-left: var(--spacing-md);
}

/* 다묘 프로필 스위처 */
.profile-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-sm);
    cursor: pointer;
}

.profile-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-switcher .other-cats {
    display: flex;
    gap: 0;
}

.profile-switcher .other-cat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: -8px;
    border: 2px solid var(--primary);
}

.profile-switcher .other-cat:first-child {
    margin-left: 0;
}

.profile-switcher .switch-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 프로필 스위처 모달 */
.profile-switcher-modal {
    max-width: 350px;
}

/* 프로필 전환 모달 리스트 */
.profile-switch-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    max-height: 300px;
    overflow-y: auto;
}

.profile-switch-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.profile-switch-item:hover {
    background: var(--secondary);
}

.profile-switch-item.active {
    border-color: var(--primary);
    background: var(--secondary);
}

.switch-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.switch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.switch-info {
    flex: 1;
    text-align: left;
}

.switch-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.switch-detail {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 2px;
}

/* 대표 냥이 뱃지 */
.representative-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 500;
}

/* 대표 설정 버튼 */
.set-representative-btn {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    color: var(--text-medium);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.set-representative-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.profile-list-item:hover {
    background: var(--secondary);
}

.profile-list-item.active {
    border-color: var(--primary);
    background: var(--secondary);
}

.profile-list-item .item-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.profile-list-item .item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-list-item .item-info {
    flex: 1;
}

.profile-list-item .item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.profile-list-item .item-detail {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.profile-list-item .item-check {
    color: var(--primary);
    font-size: 1.2rem;
}

/* =====================
   미니 대시보드
   ===================== */
.mini-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.dashboard-item,
.dash-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-item:hover,
.dash-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.dashboard-item:active,
.dash-item:active {
    transform: scale(0.98);
}

.dashboard-item .dash-icon,
.dash-item .dash-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.dashboard-item .dash-value,
.dash-item .dash-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.dashboard-item .dash-label,
.dash-item .dash-label {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 500;
}

.dashboard-item.highlight,
.dash-item.highlight {
    background: var(--secondary);
    border-color: var(--primary-light);
}

.dashboard-item.highlight .dash-value,
.dash-item.highlight .dash-value {
    color: var(--primary-dark);
}

/* =====================
   BCS 게이지
   ===================== */
.bcs-gauge {
    display: flex;
    gap: 3px;
    margin: var(--spacing-md) 0;
    height: 40px;
    align-items: flex-end;
}

.bcs-segment {
    flex: 1;
    height: 100%;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s;
}

.bcs-segment.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bcs-result {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) 0;
}

.bcs-result .bcs-emoji {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.bcs-result .bcs-status {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.bcs-result .bcs-advice {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.bcs-result .bcs-detail {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* =====================
   나이 변환기
   ===================== */

/* 나이 결과 카드 */
.age-result-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    color: white;
    margin: var(--spacing-lg) 0;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.age-result-card .age-cat,
.age-result-card .age-human {
    text-align: center;
    flex: 1;
}

.age-result-card .age-label {
    font-size: 0.85rem;
    opacity: 1;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.age-result-card .age-value {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.age-result-card .age-arrow {
    font-size: 2rem;
    opacity: 1;
}

/* 생애 단계 카드 */
.age-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) 0;
    text-align: center;
}

.age-stage .stage-emoji {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.age-stage .stage-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.age-stage .stage-desc {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
}

/* 재미있는 표현 */
.fun-fact {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    border: 2px dashed var(--primary-light);
    margin: var(--spacing-md) 0;
}

/* 생일 정보 */
.birthday-info {
    background: var(--secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: var(--spacing-md) 0;
}

.birthday-info.today {
    background: linear-gradient(135deg, #FFD54F 0%, #FFCA28 100%);
    font-weight: 600;
}

/* 나이 입력 그룹 */
.age-input-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.age-input-group .form-input {
    width: 80px;
    text-align: center;
}

.age-input-group span {
    font-size: 1rem;
    color: var(--text-medium);
}

.stage-tips {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stage-tips h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.stage-tips ul {
    list-style: none;
    padding: 0;
}

.stage-tips li {
    padding: var(--spacing-xs) 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stage-tips li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

/* 나이 테이블 */
.age-table {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.age-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.age-row.header {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.age-row:last-child {
    border-bottom: none;
}

.age-row:nth-child(even):not(.header) {
    background: var(--bg-gray);
}

.table-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-sm);
}

/* =====================
   위험 음식 목록
   ===================== */
.danger-search {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.danger-search input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    background: var(--bg-card);
}

.danger-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.danger-search .search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.danger-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
}

.danger-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.danger-tab:hover {
    background: var(--secondary);
}

.danger-tab.active {
    background: var(--primary);
    color: white;
}

.danger-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.danger-item {
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
}

.danger-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 위험도별 배경색 + 테두리 */
.danger-item.deadly {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-color: #D32F2F;
}

.danger-item.dangerous {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFCCBC 100%);
    border-color: #F44336;
}

.danger-item.harmful {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 100%);
    border-color: #FF9800;
}

.danger-item.caution {
    background: linear-gradient(135deg, #FFFDE7 0%, #FFF59D 100%);
    border-color: #FFC107;
}

.danger-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.danger-item-header .level-emoji {
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.danger-item-header .food-name {
    font-weight: 700;
    font-size: 1.1rem;
    flex: 1;
    color: var(--text-dark);
}

.danger-item-header .level-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    color: white;
}

.danger-item.deadly .level-badge {
    background: #D32F2F;
}

.danger-item.dangerous .level-badge {
    background: #F44336;
}

.danger-item.harmful .level-badge {
    background: #FF9800;
}

.danger-item.caution .level-badge {
    background: #FFC107;
    color: #333;
}

.danger-item .food-desc {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.danger-item .food-symptoms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.danger-item .symptom-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    color: var(--text-dark);
    font-weight: 500;
}

/* 위험도별 증상 태그 색상 */
.danger-item.deadly .symptom-tag {
    background: rgba(211, 47, 47, 0.15);
    color: #B71C1C;
}

.danger-item.dangerous .symptom-tag {
    background: rgba(244, 67, 54, 0.15);
    color: #C62828;
}

.danger-item.harmful .symptom-tag {
    background: rgba(255, 152, 0, 0.2);
    color: #E65100;
}

.danger-item.caution .symptom-tag {
    background: rgba(255, 193, 7, 0.3);
    color: #F57F17;
}

/* 안전 음식 섹션 */
.safe-foods {
    background: #E8F5E9;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.safe-foods h4 {
    color: #2E7D32;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.safe-foods-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.safe-food-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* 안전 간식 배너 래퍼 */
.safe-snack-banner-wrapper {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: var(--radius-md);
    border: 2px dashed var(--primary);
}

.safe-snack-banner-wrapper .banner-intro {
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.safe-snack-banner-wrapper .recommend-banner {
    margin: 0;
}

/* 응급 가이드 */
.emergency-guide {
    background: #FFEBEE;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-left: 4px solid #D32F2F;
}

.emergency-guide h4 {
    color: #C62828;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.emergency-guide ol {
    padding-left: var(--spacing-lg);
    margin: 0;
}

.emergency-guide li {
    padding: var(--spacing-xs) 0;
    font-size: 0.9rem;
    color: #5D4037;
}

.emergency-guide .warning-text {
    margin-top: var(--spacing-md);
    font-weight: 600;
    color: #C62828;
    font-size: 0.9rem;
}

[data-theme="dark"] .safe-foods h4 {
    color: #81C784;
}

[data-theme="dark"] .emergency-guide h4 {
    color: #EF9A9A;
}
[data-theme="dark"] .emergency-guide li {
    color: #FFCDD2;
}
[data-theme="dark"] .emergency-guide .warning-text {
    color: #EF9A9A;
}

/* =====================
   급여량 계산기
   ===================== */
.feeding-result-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.feeding-main {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--spacing-md);
}

.feeding-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.feeding-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.feeding-amount {
    font-size: 3.5rem;
    font-weight: 700;
}

.feeding-unit {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.feeding-divide {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--spacing-md);
}

.divide-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.divide-icon {
    font-size: 1.2rem;
}

.divide-label {
    flex: 1;
    font-size: 0.9rem;
    opacity: 0.9;
}

.divide-value {
    font-weight: 600;
    font-size: 1rem;
}

.feeding-calorie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
    text-align: center;
}

.calorie-icon {
    font-size: 1.2rem;
}

.calorie-text {
    font-size: 0.95rem;
}

.calorie-desc {
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 기존 호환용 */
.meal-item .meal-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.meal-item .meal-label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* =====================
   프로필 폼
   ===================== */
.profile-form {
    padding: var(--spacing-md) 0;
}

.photo-upload {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-gray);
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.photo-preview:hover {
    border-color: var(--primary);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-hint {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* 다크모드 새 컴포넌트들 */
[data-theme="dark"] .profile-empty-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .dashboard-item {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .bcs-result {
    background: var(--bg-card);
}

[data-theme="dark"] .stage-tips {
    background: var(--bg-card);
}

[data-theme="dark"] .age-table {
    background: var(--bg-card);
}

[data-theme="dark"] .age-row:nth-child(even):not(.header) {
    background: #2A2A2A;
}

[data-theme="dark"] .danger-search input {
    background: var(--bg-card);
    color: var(--text-dark);
    border-color: var(--border);
}

[data-theme="dark"] .danger-tab {
    background: var(--bg-card);
    color: var(--text-dark);
}

[data-theme="dark"] .danger-item.deadly {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(211, 47, 47, 0.3) 100%);
}

[data-theme="dark"] .danger-item.dangerous {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.25) 100%);
}

[data-theme="dark"] .danger-item.harmful {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.25) 100%);
}

[data-theme="dark"] .danger-item.caution {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.25) 100%);
}

[data-theme="dark"] .danger-item-header .level-emoji {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .danger-item .symptom-tag {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .danger-item.deadly .symptom-tag {
    background: rgba(211, 47, 47, 0.3);
    color: #EF9A9A;
}

[data-theme="dark"] .danger-item.dangerous .symptom-tag {
    background: rgba(244, 67, 54, 0.3);
    color: #FFAB91;
}

[data-theme="dark"] .danger-item.harmful .symptom-tag {
    background: rgba(255, 152, 0, 0.3);
    color: #FFE082;
}

[data-theme="dark"] .danger-item.caution .symptom-tag {
    background: rgba(255, 193, 7, 0.3);
    color: #FFF59D;
}

[data-theme="dark"] .safe-foods {
    background: rgba(76, 175, 80, 0.15);
}

[data-theme="dark"] .safe-food-item {
    background: var(--bg-card);
}

[data-theme="dark"] .emergency-guide {
    background: rgba(211, 47, 47, 0.15);
}

[data-theme="dark"] .feeding-result {
    background: var(--bg-card);
}

/* 급여량 결과 카드 다크모드 - 톤다운 */
[data-theme="dark"] .feeding-result-card {
    background: linear-gradient(135deg, #5D4E37 0%, #6B5B45 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feeding-result-card .feeding-amount {
    color: #FFD699;
}

[data-theme="dark"] .feeding-result-card .feeding-title,
[data-theme="dark"] .feeding-result-card .feeding-unit,
[data-theme="dark"] .feeding-result-card .divide-label,
[data-theme="dark"] .feeding-result-card .calorie-text,
[data-theme="dark"] .feeding-result-card .calorie-desc {
    color: #E0D5C8;
}

[data-theme="dark"] .feeding-result-card .divide-value {
    color: #FFD699;
}

[data-theme="dark"] .photo-preview {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .profile-list-item {
    background: var(--bg-card);
}

/* =====================
   추천 배너 컴포넌트
   ===================== */
.recommend-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid #FFB74D;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.2);
}

.recommend-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.recommend-banner:active {
    transform: translateY(0);
}

.recommend-banner .banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.recommend-banner .banner-content {
    flex: 1;
}

.recommend-banner .banner-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.recommend-banner .banner-subtitle {
    font-size: 0.8rem;
    color: #666666;
}

.recommend-banner .banner-arrow {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* 다크모드 배너 */
[data-theme="dark"] .recommend-banner {
    background: linear-gradient(135deg, #3D3020 0%, #4D3A20 100%);
    border-color: #FFB74D;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.25);
}

[data-theme="dark"] .recommend-banner .banner-title {
    color: var(--text-dark);
}

[data-theme="dark"] .recommend-banner .banner-subtitle {
    color: #C0C0C0;
}

/* 쿠팡 파트너스 공시 문구 */
.affiliate-disclosure {
    font-size: 0.75rem;
    color: #e74c3c;
    text-align: left;
    margin: 4px 0 8px 0;
    padding: 0;
    line-height: 1.3;
    font-weight: 500;
}

[data-theme="dark"] .affiliate-disclosure {
    color: #ff6b6b;
}

.recommend-banner-wrapper {
    margin-bottom: var(--spacing-md);
}

.recommend-banner-wrapper .recommend-banner {
    margin-bottom: 0;
}

.recommend-banner-wrapper .affiliate-disclosure {
    margin-top: 6px;
}

/* =====================
   체중 히스토리 카드
   ===================== */
.weight-history-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    box-shadow: 0 2px 8px var(--shadow);
}

.weight-history-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.weight-history-card .card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.weight-history-card .header-icon {
    font-size: 1.1rem;
}

.weight-record-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.weight-record-btn:hover {
    background: var(--primary-dark);
}

/* 체중 그래프 */
.weight-graph {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.graph-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100px;
    gap: 8px;
}

.graph-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 50px;
}

.graph-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 20px;
    transition: height 0.3s ease;
}

.bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    padding-top: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 4px;
}

/* 체중 분석 */
.weight-analysis {
    background: var(--secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.weight-analysis.no-data {
    background: var(--bg-gray);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.analysis-emoji {
    font-size: 1.2rem;
}

.analysis-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.analysis-diff {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.analysis-diff.up {
    background: #FFEBEE;
    color: #D32F2F;
}

.analysis-diff.down {
    background: #E3F2FD;
    color: #1976D2;
}

.analysis-diff.stable {
    background: #E8F5E9;
    color: #388E3C;
}

.analysis-advice {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* 모달 버튼 그룹 */
.modal-buttons {
    display: flex;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.modal-buttons .btn {
    flex: 1;
}

/* 다크모드 분석 차이 */
[data-theme="dark"] .analysis-diff.up {
    background: rgba(229, 115, 115, 0.2);
    color: #EF9A9A;
}
[data-theme="dark"] .analysis-diff.down {
    background: rgba(100, 181, 246, 0.2);
    color: #90CAF9;
}
[data-theme="dark"] .analysis-diff.stable {
    background: rgba(129, 199, 132, 0.2);
    color: #A5D6A7;
}

/* 다크모드 체중 히스토리 */
[data-theme="dark"] .weight-history-card {
    background: var(--bg-card);
}

[data-theme="dark"] .weight-graph {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .weight-analysis {
    background: rgba(255, 152, 0, 0.1);
}

[data-theme="dark"] .weight-analysis.no-data {
    background: rgba(255, 255, 255, 0.05);
}

/* =====================
   푸시 알림 설정 카드
   ===================== */
.push-notification-card {
    border: 2px solid var(--primary-light);
}

.push-status {
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-gray);
    color: var(--text-medium);
}

.push-status.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.push-status.error {
    background: #FFEBEE;
    color: #C62828;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

/* 다크모드 푸시 알림 */
[data-theme="dark"] .push-notification-card {
    border-color: var(--primary-dark);
}

[data-theme="dark"] .push-status {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .push-status.success {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

[data-theme="dark"] .push-status.error {
    background: rgba(244, 67, 54, 0.15);
    color: #E57373;
}

/* =====================
   홈 화면 프로필 표시
   ===================== */
.home-intro.has-profile {
    cursor: pointer;
    transition: transform 0.2s;
}

.home-intro.has-profile:active {
    transform: scale(0.98);
}

.home-cat-image.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.home-cat-image.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-emoji-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: var(--secondary);
}

.profile-info-text {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ==================
   오늘의 냥이 팁
   ================== */
.today-tip-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-white) 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.today-tip-card .tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.today-tip-card .tip-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.today-tip-card .tip-category {
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.today-tip-card .tip-main {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.today-tip-card .tip-detail {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.4;
}

/* 다크모드 오늘의 팁 */
[data-theme="dark"] .today-tip-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-card) 100%);
    border-color: var(--primary-dark);
}

/* ==================
   생일 D-day 카드
   ================== */
.birthday-card {
    background: linear-gradient(135deg, #FFE0EC 0%, #FFF0E0 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.birthday-card .birthday-icon {
    font-size: 2.5rem;
}

.birthday-card .birthday-info {
    flex: 1;
}

.birthday-card .birthday-title {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 2px;
}

.birthday-card .birthday-dday {
    font-size: 1.3rem;
    font-weight: 700;
    color: #E91E63;
}

.birthday-card .birthday-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 다크모드 생일 카드 */
[data-theme="dark"] .birthday-card {
    background: linear-gradient(135deg, #3D2030 0%, #3D3020 100%);
}

[data-theme="dark"] .birthday-card .birthday-dday {
    color: #FF80AB;
}

/* ==================
   접종 일정 카드
   ================== */
.vaccination-card {
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vaccination-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vaccination-card.due {
    background: linear-gradient(135deg, #FFEBEE 0%, #FCE4EC 100%);
    border: 2px solid #F48FB1;
}

.vaccination-card.soon {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
}

.vaccination-card .vacc-icon {
    font-size: 2rem;
}

.vaccination-card .vacc-info {
    flex: 1;
}

.vaccination-card .vacc-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.vaccination-card .vacc-date {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.vaccination-card .vacc-status {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1976D2;
    margin-top: 4px;
}

.vaccination-card.due .vacc-status {
    color: #E91E63;
}

.vaccination-card.soon .vacc-status {
    color: #FF9800;
}

.vaccination-card .vacc-arrow {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* 다크모드 접종 카드 */
[data-theme="dark"] .vaccination-card {
    background: linear-gradient(135deg, #1A237E20 0%, #4A148C20 100%);
}

[data-theme="dark"] .vaccination-card.due {
    background: linear-gradient(135deg, #880E4F20 0%, #AD145720 100%);
    border-color: #880E4F;
}

[data-theme="dark"] .vaccination-card.soon {
    background: linear-gradient(135deg, #E6510020 0%, #FF6F0020 100%);
}

[data-theme="dark"] .vaccination-card .vacc-status {
    color: #64B5F6;
}

[data-theme="dark"] .vaccination-card.due .vacc-status {
    color: #FF80AB;
}

[data-theme="dark"] .vaccination-card.soon .vacc-status {
    color: #FFB74D;
}

/* ==================
   체중 목표 카드
   ================== */
.weight-goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.weight-goal-card .goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.weight-goal-card .goal-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.weight-goal-card .goal-edit-btn {
    font-size: 0.8rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.weight-goal-card .goal-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.weight-goal-card .goal-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-gray);
    border-radius: 5px;
    overflow: hidden;
}

.weight-goal-card .goal-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s;
}

.weight-goal-card .goal-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 45px;
    text-align: right;
}

.weight-goal-card .goal-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* 체중 목표 섹션 (체중 히스토리 카드 내) */
.weight-goal-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.weight-goal-section .goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weight-goal-section .goal-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.weight-goal-section .goal-edit-btn {
    font-size: 0.8rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}

.weight-goal-section .goal-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.weight-goal-section .goal-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.weight-goal-section .goal-status {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-align: center;
}

.weight-goal-section .goal-status .achieved {
    color: #4CAF50;
    font-weight: 600;
}

.weight-goal-section.no-goal {
    background: var(--bg-gray);
    text-align: center;
}

.weight-goal-section .set-goal-btn {
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.weight-goal-section .set-goal-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 다크모드 체중 목표 섹션 */
[data-theme="dark"] .weight-goal-section {
    background: linear-gradient(135deg, #1B5E2020 0%, #33691E20 100%);
}

[data-theme="dark"] .weight-goal-section .goal-progress-bar {
    background: rgba(0, 0, 0, 0.3);
}

/* 체중 목표 모달 추가 스타일 */
.current-weight-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gray);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.current-weight-display strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.goal-direction-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    padding: 8px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-danger:hover {
    background: #D32F2F;
}

/* ==================
   성장 기록 타임라인
   ================== */
.growth-timeline {
    padding: var(--spacing-md) 0;
}

.growth-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.growth-item:last-child {
    border-bottom: none;
}

.growth-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.growth-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.growth-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

.growth-info {
    flex: 1;
}

.growth-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.growth-age {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.growth-weight {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.growth-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--secondary);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.growth-add-btn:hover {
    background: var(--primary);
    color: white;
    border-style: solid;
}

.growth-memo {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 4px;
    font-style: italic;
}

.growth-delete-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.growth-delete-btn:hover {
    opacity: 1;
    color: #F44336;
}

.growth-item {
    position: relative;
}

.growth-photo img {
    cursor: pointer;
    transition: transform 0.2s;
}

.growth-photo img:hover {
    transform: scale(1.05);
}

/* 사진 업로드 영역 */
.photo-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-area:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.photo-placeholder .upload-icon {
    font-size: 2rem;
}

.photo-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* 사진 크게 보기 */
.photo-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.photo-view-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* 폼 행 */
.form-row {
    display: flex;
    gap: var(--spacing-md);
}

.flex-1 {
    flex: 1;
}

/* 모달 large 크기 */
.modal-box.modal-large {
    max-width: 480px;
}

/* empty state small */
.empty-state.small {
    padding: var(--spacing-lg);
}

.empty-state.small .empty-icon {
    font-size: 2.5rem;
}

/* ==================
   절약 리포트
   ================== */
.saving-potential-card {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.saving-potential-card .section-title {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1rem;
}

.saving-summary {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.saving-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.saving-item:last-child {
    border-bottom: none;
}

.saving-item.highlight {
    background: #F1F8E9;
    margin: 0 -12px;
    padding: 12px;
    border-radius: var(--radius-sm);
}

.saving-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.saving-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.saving-value.green {
    color: #2E7D32;
}

.saving-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saving-suggestion {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 90px;
}

.suggestion-desc {
    flex: 1;
    color: var(--text-light);
    font-size: 0.8rem;
}

.suggestion-amount {
    font-weight: 600;
    color: #2E7D32;
}

/* 다크모드 절약 리포트 */
[data-theme="dark"] .saving-potential-card {
    background: linear-gradient(135deg, #1B5E2030 0%, #2E7D3230 100%);
}

[data-theme="dark"] .saving-summary {
    background: var(--bg-card);
}

[data-theme="dark"] .saving-item.highlight {
    background: rgba(46, 125, 50, 0.2);
}

/* =====================
   토스트 메시지
   ===================== */
.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    background: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 80%;
    text-align: center;
}

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

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast-warning {
    background: var(--warning);
    color: #333;
}

.toast-info {
    background: #2196F3;
}

[data-theme="dark"] .toast-warning {
    color: #333;
}

[data-theme="dark"] .saving-suggestion {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .saving-value.green,
[data-theme="dark"] .suggestion-amount {
    color: #81C784;
}

/* =====================
   다중 사진 업로드 (성장 기록)
   ===================== */
.photo-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.photo-grid-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.photo-remove-btn:hover {
    background: #F44336;
}

.photo-upload-area {
    width: 80px;
    height: 80px;
    min-height: unset;
    padding: 0;
    flex-shrink: 0;
}

.photo-upload-area .photo-placeholder {
    font-size: 0.75rem;
}

.photo-upload-area .photo-placeholder .upload-icon {
    font-size: 1.5rem;
}

/* 성장 기록 다중 사진 스택 */
.growth-photo-stack {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.growth-photo-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-count-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 사진 갤러리 모달 */
.photo-view-overlay {
    flex-direction: column;
}

.photo-view-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.photo-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.photo-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.photo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-nav-btn.prev {
    left: 16px;
}

.photo-nav-btn.next {
    right: 16px;
}

.photo-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

/* 대표 고양이 변경 아이콘 (메인 - 사진 안에 있던 버전) */
.representative-change-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.representative-change-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* 다른 냥이 보기 링크 버튼 */
.change-cat-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-cat-link:hover,
.change-cat-link:active {
    background: var(--primary);
    color: white;
}

.home-cat-image {
    position: relative;
}

/* 랜덤 품종 라벨 - 사진 위에 표시 */
.breed-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 12px;
}

/* 밥량 조정 가이드 */
.feeding-adjustment {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.feeding-adjustment .adjustment-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feeding-adjustment .adjustment-content {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.feeding-adjustment .adjustment-amount {
    font-weight: 700;
    color: var(--primary-dark);
}

.feeding-adjustment.reduce {
    background: #FFF3E0;
    border-color: #FF9800;
}

.feeding-adjustment.increase {
    background: #E3F2FD;
    border-color: #2196F3;
}

/* 다크모드 밥량 조정 */
[data-theme="dark"] .feeding-adjustment {
    background: rgba(255, 152, 0, 0.1);
}

[data-theme="dark"] .feeding-adjustment.reduce {
    background: rgba(255, 152, 0, 0.15);
}

[data-theme="dark"] .feeding-adjustment.increase {
    background: rgba(33, 150, 243, 0.15);
}

/* 다묘 금액 강조 표시 */
.multi-cat-highlight {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.multi-cat-highlight .highlight-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.multi-cat-highlight .highlight-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.multi-cat-highlight .highlight-note {
    font-size: 0.85rem;
    color: var(--text-medium);
}

[data-theme="dark"] .multi-cat-highlight {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 183, 77, 0.15) 100%);
}

/* =====================
   공유 모달 (어두운 테마 - 라이트/다크 모두 호환)
   ===================== */
#share-modal.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.share-modal {
    max-width: 320px;
    width: 90%;
    background: #2D2D2D;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.share-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #444;
    margin-bottom: var(--spacing-md);
}

.share-modal .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #FFF;
}

.share-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #AAA;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.share-modal .modal-close:hover {
    color: #FFF;
}

.share-preview {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: #FFF;
    border: none;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: #3D3D3D;
    border: 1px solid #555;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 70px;
}

.share-option:hover {
    background: #4D4D4D;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.share-option:active {
    transform: translateY(0);
}

.share-option .share-icon {
    font-size: 1.5rem;
}

.share-option span:last-child {
    font-size: 0.75rem;
    color: #CCC;
    font-weight: 500;
}

/* 메인 공유 버튼 (공유하기) */
.share-option-primary {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border-color: #FF9800;
}

.share-option-primary span:last-child {
    color: #FFF;
    font-weight: 600;
}

.share-option-primary:hover {
    background: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
}

/* 카카오톡 공유 버튼 */
.share-kakao {
    background: #FEE500 !important;
    border-color: #FEE500 !important;
}

.share-kakao .share-icon {
    filter: none;
}

.share-kakao span:last-child {
    color: #191919 !important;
    font-weight: 600;
}

.share-kakao:hover {
    background: #FFE812 !important;
}

/* 인스타그램 공유 버튼 */
.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #dc2743 !important;
}

.share-instagram span:last-child {
    color: #fff !important;
    font-weight: 600;
}

.share-instagram:hover {
    opacity: 0.9;
}

/* X (트위터) 공유 버튼 */
.share-twitter {
    background: #000 !important;
    border-color: #000 !important;
}

.share-twitter span:last-child {
    color: #fff !important;
    font-weight: 600;
}

.share-twitter:hover {
    background: #333 !important;
}

/* 페이스북 공유 버튼 */
.share-facebook {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
}

.share-facebook span:last-child {
    color: #fff !important;
    font-weight: 600;
}

.share-facebook:hover {
    background: #166FE5 !important;
}

/* 공유 토스트 */
.share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
    white-space: nowrap;
}

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

/* 공유받은 결과 화면 */
.shared-result {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 2px solid var(--primary);
}

.shared-result .result-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.shared-result .result-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xs);
}

.shared-result .result-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* 다크모드 공유 결과 */

[data-theme="dark"] .shared-result {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 183, 77, 0.15) 100%);
}

/* =====================
   재미있는 테스트 섹션
   ===================== */

.test-section {
    margin-top: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.test-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.test-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    text-align: center;
}

.test-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.test-card:active {
    transform: scale(0.98);
}

.test-emoji {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
}

.test-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.test-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    margin-top: 2px;
}

/* 다크모드 테스트 카드 */
[data-theme="dark"] .test-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .test-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .test-emoji {
    background: var(--secondary);
}

/* 풀너비 테스트 카드 (가로 레이아웃) */
.test-card-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
}

.test-card-featured .test-emoji {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
}

.test-card-featured .test-text h4 {
    font-size: 1.1rem;
}

.test-card-featured .test-text p {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* =====================
   집사 가이드 섹션
   ===================== */

.guide-section {
    margin-top: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.guide-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.guide-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.guide-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.guide-card:active {
    transform: scale(0.98);
}

.guide-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.guide-text {
    flex: 1;
    min-width: 0;
}

.guide-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.guide-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 다크모드 가이드 카드 */
[data-theme="dark"] .guide-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .guide-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .guide-icon {
    background: var(--secondary);
}

/* =====================
   프리미엄 스타일
   ===================== */

/* 프리미엄 뱃지 (프로필 카드) */
.premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    animation: premiumShine 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes premiumShine {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 215, 0, 0.6);
    }
}

/* 프리미엄 태그 (작은 라벨) */
.premium-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* home-intro에 position relative 추가 */
.home-intro.has-profile {
    position: relative;
}

/* 다크모드 프리미엄 스타일 */
[data-theme="dark"] .premium-badge,
[data-theme="dark"] .premium-tag {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #1A1A1A;
}

/* 다크모드 설정 화면 개선 */
[data-theme="dark"] .subsection-title {
    color: var(--primary-light);
}

[data-theme="dark"] .card-title {
    color: var(--text-dark);
}

[data-theme="dark"] .card-desc {
    color: var(--text-medium);
}

[data-theme="dark"] .premium-benefits {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .premium-benefits ul {
    color: var(--text-medium) !important;
}

[data-theme="dark"] .backup-buttons .btn {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border-color: var(--border);
}

[data-theme="dark"] .backup-buttons .btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* 다크모드 클라우드 동기화 카드 */
[data-theme="dark"] .cloud-sync-status {
    background: var(--bg-secondary) !important;
}

/* 다크모드 프리미엄 업그레이드 안내 */
[data-theme="dark"] .card > div[style*="linear-gradient"] {
    color: var(--text-medium) !important;
}

/* 다크모드 체크박스 개선 */
[data-theme="dark"] input[type="checkbox"] {
    accent-color: var(--primary);
}

/* 다크모드 셀렉트박스 개선 */
[data-theme="dark"] select {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border-color: var(--border);
}

[data-theme="dark"] select:disabled {
    background: var(--bg-card);
    color: var(--text-light);
}

/* 다크모드 버튼 개선 */
[data-theme="dark"] .btn-outline {
    background: transparent;
    color: var(--primary-light);
    border-color: var(--primary);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary);
    color: #1A1A1A;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: #1A1A1A;
}

[data-theme="dark"] .btn-danger {
    background: var(--danger);
    color: #fff;
}

/* 다크모드 접종 체크 아이템 */
[data-theme="dark"] .vaccination-item {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .vaccination-item.done {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--success);
}

/* =====================
   온보딩 / 기능 소개
   ===================== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.onboarding-overlay.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


.onboarding-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    position: relative;
    background: inherit;
}

.onboarding-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.onboarding-skip:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.onboarding-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-slide {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.onboarding-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.onboarding-slide.prev {
    transform: translateX(-100px);
}

.onboarding-emoji {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    animation: onboardingBounce 2s ease-in-out infinite;
}

@keyframes onboardingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.onboarding-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.onboarding-desc {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    white-space: pre-line;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

.onboarding-buttons {
    display: flex;
    gap: 12px;
    padding: 10px 0 20px;
}

.onboarding-btn {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.onboarding-btn.prev {
    background: var(--bg-gray);
    color: var(--text-medium);
}

.onboarding-btn.prev:hover {
    background: var(--border);
}

.onboarding-btn.next {
    background: var(--primary);
    color: white;
}

.onboarding-btn.next:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.onboarding-btn.next.start {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    animation: onboardingPulse 1.5s ease-in-out infinite;
}

@keyframes onboardingPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 152, 0, 0.6); }
}

/* 다크모드 온보딩 */
[data-theme="dark"] .onboarding-overlay {
    background: #1E1E1E;
}

[data-theme="dark"] .onboarding-skip {
    color: var(--text-medium);
}

[data-theme="dark"] .onboarding-skip:hover {
    background: var(--bg-secondary);
    color: var(--text-dark);
}

[data-theme="dark"] .onboarding-title {
    color: var(--text-dark);
}

[data-theme="dark"] .onboarding-desc {
    color: var(--text-medium);
}

[data-theme="dark"] .onboarding-dot {
    background: var(--border);
}

[data-theme="dark"] .onboarding-btn.prev {
    background: var(--bg-secondary);
    color: var(--text-medium);
}

[data-theme="dark"] .onboarding-btn.prev:hover {
    background: var(--border);
}
