/* Extracted from wildlife_form.html */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
            /* 🎨 파스텔 그라데이션: 하늘 → 라벤더 */
            background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
            min-height: 100vh;
            padding: 0;
            margin: 0;
            padding-bottom: 60px;
            /* 개인정보 보호 버튼 공간 확보 */
            /* 텍스트 선택 방지 (입력 필드는 별도 처리) */
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        /* 🏗️ 3단 레이아웃 컨테이너 */
        .page-wrapper {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            gap: 20px;
            align-items: flex-start;
        }

        /* 좌측 사이드바 */
        .sidebar-left {
            width: 250px;
            flex-shrink: 0;
        }

        /* 우측 사이드바 */
        .sidebar-right {
            width: 250px;
            flex-shrink: 0;
        }

        /* 중앙 메인 컨텐츠 */
        .main-content {
            flex: 1;
            max-width: 800px;
        }

        /* 입력 필드는 선택 허용 */
        input,
        textarea,
        select {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        h1 {
            color: #4a4a4a;
            text-align: center;
            margin-bottom: 10px;
            font-size: 28px;
        }

        .subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
            font-size: 14px;
        }

        .section {
            margin-bottom: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #4a4a4a;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a4a4a;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .address-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .address-group input {
            flex: 1;
        }

        .search-btn {
            padding: 12px 20px;
            background: #4a4a4a;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            white-space: nowrap;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .search-btn:hover {
            background: #2d2d2d;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        label {
            display: block;
            margin-bottom: 5px;
            color: #333;
            font-weight: 500;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .required {
            color: #4a4a4a;
            margin-left: 3px;
        }

        input[type="text"],
        input[type="tel"],
        input[type="number"],
        input[type="email"],
        textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            transition: border-color 0.3s ease;
            border-radius: 8px;
            font-size: 14px;
            transition: border 0.3s;
        }

        input:focus,
        textarea:focus {
            outline: none;
            border-color: #4a4a4a;
        }

        textarea {
            resize: vertical;
            min-height: 80px;
        }

        .date-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .date-group input {
            width: 80px;
        }

        .date-group span {
            font-weight: 500;
            color: #666;
        }

        .btn {
            background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
            color: white;
            border: none;
            padding: 16px 40px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s, box-shadow 0.2s;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        #submitBtnContainer {
            margin-top: 20px;
            text-align: center;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(74, 74, 74, 0.4);
        }

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

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .message {
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            display: none;
        }

        .message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        /* 개인정보 보호 정책 버튼 */
        .privacy-button-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }

        .privacy-button {
            background: rgba(74, 74, 74, 0.9);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .privacy-button:hover {
            background: rgba(74, 74, 74, 1);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        /* 개인정보 보호 정책 모달 */
        .privacy-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-y: auto;
        }

        .privacy-modal-content {
            background: white;
            border-radius: 15px;
            max-width: 700px;
            width: 100%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalFadeIn 0.3s;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .privacy-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 2px solid #f0f0f0;
        }

        .privacy-modal-header h2 {
            margin: 0;
            color: #4a4a4a;
            font-size: 22px;
        }

        .privacy-modal-close {
            background: none;
            border: none;
            font-size: 32px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            line-height: 32px;
            transition: color 0.3s;
        }

        .privacy-modal-close:hover {
            color: #4a4a4a;
        }

        .privacy-modal-body {
            padding: 25px;
            overflow-y: auto;
            flex: 1;
        }

        .privacy-modal-body h3 {
            color: #4a4a4a;
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 20px;
            border-bottom: 2px solid #4a4a4a;
            padding-bottom: 8px;
        }

        .privacy-modal-body h4 {
            color: #666;
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 16px;
        }

        .privacy-modal-body p {
            color: #555;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .privacy-modal-body ul,
        .privacy-modal-body ol {
            color: #555;
            line-height: 1.8;
            margin-bottom: 15px;
            padding-left: 25px;
        }

        .privacy-modal-body li {
            margin-bottom: 8px;
        }

        .privacy-modal-body ul ul,
        .privacy-modal-body ol ul {
            margin-top: 5px;
            margin-bottom: 5px;
        }

        .privacy-modal-footer {
            padding: 15px 25px;
            border-top: 2px solid #f0f0f0;
            text-align: right;
        }

        .privacy-modal-button {
            background: #4a4a4a;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .privacy-modal-button:hover {
            background: #2d2d2d;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .privacy-button-container {
                bottom: 15px;
                right: 15px;
            }

            .privacy-button {
                padding: 8px 12px;
                font-size: 11px;
            }

            .privacy-modal-content {
                max-height: 95vh;
                border-radius: 10px;
            }

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

            .privacy-modal-header h2 {
                font-size: 18px;
            }

            .privacy-modal-body {
                padding: 20px;
            }

            .privacy-modal-body h3 {
                font-size: 18px;
            }

            .privacy-modal-body h4 {
                font-size: 15px;
            }
        }

        .loading {
            display: none;
            text-align: center;
            margin-top: 20px;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #4a4a4a;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .download-link {
            display: inline-block;
            margin-top: 10px;
            color: #4a4a4a;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
        }

        .download-link:hover {
            text-decoration: underline;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .btn-download {
            flex: 1;
            background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
        }

        .btn-cancel {
            flex: 1;
            background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
        }

        .btn-cancel:hover {
            box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
        }

        /* 동물 검색 모달 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-header h2 {
            margin: 0;
            color: #4a4a4a;
        }

        .close-btn {
            font-size: 28px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
            background: none;
            border: none;
        }

        .close-btn:hover {
            color: #000;
        }

        .search-input {
            width: 100%;
            padding: 15px;
            font-size: 16px;
            border: 2px solid #ddd;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .search-input:focus {
            outline: none;
            border-color: #4a4a4a;
        }

        .animal-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .animal-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background 0.2s;
        }

        .animal-item:hover {
            background-color: #f8f9fa;
        }

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

        .animal-common {
            font-weight: 600;
            color: #2d2d2d;
            margin-bottom: 5px;
        }

        .animal-korean {
            color: #666;
            font-size: 14px;
            margin-bottom: 3px;
        }

        .animal-scientific {
            color: #888;
            font-size: 14px;
            font-style: italic;
        }

        .no-results {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        .category-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 12px;
            margin-right: 8px;
            font-weight: 600;
        }

        .badge-mammal {
            background-color: #ffe4e1;
            color: #d63447;
        }

        .badge-bird {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .badge-reptile {
            background-color: #e8f5e9;
            color: #388e3c;
        }

        .badge-amphibian {
            background-color: #fff3e0;
            color: #f57c00;
        }

        .form-type-selector {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .type-option {
            cursor: pointer;
            display: flex;
            align-items: center;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .type-option input[type="radio"],
        .type-option input[type="checkbox"] {
            display: none;
        }

        .type-label {
            padding: 16px 24px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 2px solid #dee2e6;
            border-radius: 10px;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .type-label:hover {
            border-color: #495057;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .type-option input[type="radio"]:checked+.type-label,
        .type-option input[type="checkbox"]:checked+.type-label {
            background: linear-gradient(135deg, #343a40 0%, #495057 100%);
            color: white;
            border-color: #343a40;
            box-shadow: 0 5px 15px rgba(52, 58, 64, 0.4);
            transform: translateY(-2px);
        }

        .type-option input:checked+.type-label:hover {
            box-shadow: 0 6px 18px rgba(52, 58, 64, 0.5);
        }

        .checkbox {
            font-size: 20px;
            font-weight: bold;
            user-select: none;
        }

        .info-box {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }

        .info-box p {
            margin: 5px 0;
            color: #856404;
            font-size: 13px;
        }

        /* 타입 전환 토글 */
        .type-toggle-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 20px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .type-toggle-label {
            font-size: 14px;
            font-weight: 600;
            color: #4a4a4a;
        }

        .type-toggle-options {
            display: flex;
            gap: 10px;
        }

        .type-toggle-btn {
            display: inline-flex;
            align-items: center;
            padding: 10px 24px;
            border: 3px solid #dee2e6;
            background: #f8f9fa;
            color: #999;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            user-select: none;
            position: relative;
            opacity: 0.6;
        }

        .type-toggle-btn input[type="checkbox"] {
            display: none;
            /* 체크박스 숨기기 */
        }

        .type-toggle-btn:hover {
            border-color: #4a4a4a;
            opacity: 0.8;
        }

        .type-toggle-btn.active,
        .type-toggle-btn:has(input[type="checkbox"]:checked) {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            opacity: 1;
            transform: translateY(-2px);
        }

        .type-toggle-btn input[type="checkbox"]:checked+span {
            color: white;
        }

        /* 체크 아이콘 추가 */
        .type-toggle-btn:has(input[type="checkbox"]:checked)::before {
            content: "✓ ";
            font-weight: bold;
            margin-right: 5px;
        }

        /* ====================================
           📊 사이드바 위젯 스타일
           ====================================
        */
        .section {
            background-color: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }

        .section.disabled-section {
            background-color: #f5f5f5;
            opacity: 0.6;
            pointer-events: none;
            /* 클릭 방지 */
            filter: grayscale(100%);
        }

        .sidebar-widget {
            background: white;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            border: 1px solid rgba(103, 126, 234, 0.1);
        }

        .widget-title {
            font-size: 16px;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #E3F2FD;
        }

        .widget-stat {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

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

        .widget-stat-label {
            font-size: 13px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .widget-stat-value {
            font-size: 18px;
            font-weight: 700;
            color: #2d2d2d;
        }

        /* 📢 광고 공간 */
        .ad-space {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 2px dashed #dee2e6;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: #999;
            font-size: 13px;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .ad-space.skyscraper {
            min-height: 600px;
        }

        .ad-space-icon {
            font-size: 48px;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        /* 📸 클릭 가능한 광고 */
        .ad-link {
            text-decoration: none;
            display: block;
            margin-bottom: 20px;
        }

        .ad-clickable {
            cursor: pointer;
            transition: all 0.3s ease;
            background: linear-gradient(135deg, #E1BEE7 0%, #CE93D8 100%);
            border: 2px solid #BA68C8;
            color: #4A148C;
        }

        .ad-clickable:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(186, 104, 200, 0.4);
            background: linear-gradient(135deg, #CE93D8 0%, #BA68C8 100%);
        }

        .ad-clickable .ad-space-icon {
            opacity: 1;
        }

        /* 📸 인스타그램 광고 */
        .ad-instagram {
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
            border: 2px solid #dee2e6;
            min-height: 250px;
            padding: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ad-instagram:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
            border-color: #adb5bd;
        }

        .ad-instagram img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
        }

        /* 🏳️ 백색목록 가이드 배너 (커스텀) */
        .ad-whitelist {
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
            border: none;
            padding: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            /* 기본 그림자 없음 */
        }

        .ad-whitelist:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
            /* 호버 시 그림자 */
        }

        /* 👤 만든이 정보 */
        .creator-info {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        }

        /* 🔘 고정 버튼 (하단) */
        .fixed-button-container {
            position: fixed;
            bottom: 20px;
            z-index: 1000;
        }

        .fixed-button-container.privacy-btn {
            right: 20px;
        }

        .fixed-button-container.guide-btn {
            left: 20px;
        }

        .fixed-button {
            background: rgba(74, 74, 74, 0.9);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            white-space: nowrap;
        }

        .fixed-button:hover {
            background: rgba(74, 74, 74, 1);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }

        @media (max-width: 768px) {
            .fixed-button-container {
                bottom: 15px;
            }

            .fixed-button-container.privacy-btn {
                right: 15px;
            }

            .fixed-button-container.guide-btn {
                left: 15px;
            }

            .fixed-button {
                padding: 8px 12px;
                font-size: 11px;
            }
        }

        /* ====================================
           📊 통계 대시보드 스타일 (메인)
           ====================================
        */
        .stats-dashboard {
            margin: 25px 0;
            padding: 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(103, 126, 234, 0.1);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        }

        .stat-card-popular {
            text-align: left;
        }

        .stat-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .stat-value {
            font-size: 36px;
            font-weight: 700;
            color: #2d2d2d;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 14px;
            font-weight: 600;
            color: #666;
            margin-bottom: 5px;
        }

        .stat-sub {
            font-size: 12px;
            color: #888;
        }

        .popular-item {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 13px;
        }

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

        .popular-rank {
            font-weight: 700;
            color: #667eea;
            margin-right: 8px;
        }

        .popular-name {
            font-style: italic;
            color: #2d2d2d;
        }

        .popular-count {
            font-size: 11px;
            color: #888;
            margin-left: 5px;
        }

        /* 📝 메인 예시 보기 버튼 */
        .example-btn-container {
            display: flex;
            justify-content: center;
            margin-bottom: 25px;
        }

        .btn-example-main {
            background: #f8f9fa;
            color: #667eea;
            border: 1.5px solid #667eea;
            padding: 6px 18px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
            display: inline-flex;
            align-items: center;
            gap: 5px;
            position: relative;
            z-index: 10;
        }

        .btn-example-main:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
        }

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

        /* 📑 예시 모달 탭 */
        .example-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
        }

        .example-tab {
            padding: 10px 20px;
            background: #f8f9fa;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            color: #666;
            transition: all 0.2s;
        }

        .example-tab.active {
            background: #667eea;
            color: white;
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
        }

        .pdf-viewer-container {
            width: 100%;
            height: 600px;
            background: #525659;
            border-radius: 8px;
            overflow: hidden;
        }

        .pdf-frame {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* ====================================
           📱 모바일 반응형 (아이폰15프로 최적화)
           ====================================
        */
        @media (max-width: 768px) {
            body {
                padding: 0;
            }

            /* 부드러운 스크롤 */
            html {
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch;
            }

            /* 🏗️ 3단 레이아웃 → 세로로 변경 */
            .page-wrapper {
                flex-direction: column;
                padding: 10px;
                padding-top: max(10px, env(safe-area-inset-top));
                padding-bottom: max(10px, env(safe-area-inset-bottom));
                gap: 15px;
            }

            .sidebar-left,
            .sidebar-right,
            .main-content {
                width: 100%;
                max-width: 100%;
            }

            /* 모바일에서는 광고 숨기기 (선택사항) */
            .ad-space.skyscraper {
                min-height: 250px;
            }

            .sidebar-widget {
                padding: 15px;
            }

            .widget-title {
                font-size: 14px;
            }

            .widget-stat-label {
                font-size: 12px;
            }

            .widget-stat-value {
                font-size: 16px;
            }

            .container {
                padding: 20px;
                border-radius: 15px;
            }

            h1 {
                font-size: 22px;
                margin-bottom: 8px;
            }

            .subtitle {
                font-size: 12px;
                margin-bottom: 20px;
            }

            .section {
                padding: 15px;
                margin-bottom: 20px;
            }

            .section-title {
                font-size: 16px;
                margin-bottom: 12px;
                padding-bottom: 8px;
            }

            .form-group {
                margin-bottom: 12px;
            }

            label {
                font-size: 13px;
                margin-bottom: 4px;
            }

            input[type="text"],
            input[type="tel"],
            input[type="number"],
            textarea {
                padding: 10px;
                font-size: 16px;
                /* iOS 자동 확대 방지 (16px 이상 필요) */
                border-radius: 6px;
            }

            /* 터치 피드백 개선 */
            .btn,
            .search-btn,
            .type-toggle-btn {
                -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
                touch-action: manipulation;
                /* 더블 탭 확대 방지 */
            }

            .address-group {
                flex-direction: column;
                gap: 8px;
            }

            .address-group input {
                width: 100%;
            }

            .search-btn {
                padding: 10px 16px;
                font-size: 14px;
                width: 100%;
            }

            .date-group {
                gap: 6px;
            }

            .date-group input {
                width: 60px;
                padding: 8px;
                font-size: 14px;
            }

            .date-group span {
                font-size: 13px;
            }

            .btn {
                padding: 14px 24px;
                font-size: 16px;
                border-radius: 8px;
            }

            .info-box {
                padding: 12px;
                margin-bottom: 15px;
            }

            .info-box p {
                font-size: 12px;
            }

            .type-toggle-container {
                flex-direction: column;
                gap: 12px;
                padding: 12px;
                margin: 15px 0;
            }

            .type-toggle-label {
                font-size: 13px;
                text-align: center;
            }

            .type-toggle-options {
                flex-direction: column;
                gap: 8px;
                width: 100%;
            }

            .type-toggle-btn {
                padding: 12px 20px;
                font-size: 14px;
                width: 100%;
                justify-content: center;
            }

            .modal-content {
                margin: 10% auto;
                padding: 20px;
                width: 95%;
                max-height: 85vh;
            }

            .modal-header h2 {
                font-size: 18px;
            }

            .search-input {
                padding: 12px;
                font-size: 14px;
            }

            .animal-item {
                padding: 12px;
            }

            .animal-common {
                font-size: 14px;
            }

            .animal-korean,
            .animal-scientific {
                font-size: 12px;
            }

            .category-badge {
                font-size: 10px;
                padding: 2px 6px;
            }

            #downloadBtnContainer {
                margin-top: 15px;
            }

            #downloadBtnContainer>div {
                flex-direction: column !important;
                gap: 10px !important;
            }

            #downloadBtnContainer .btn {
                width: 100%;
                margin: 0;
            }

            textarea {
                min-height: 60px;
                font-size: 13px;
            }

            /* 📊 통계 대시보드 모바일 */
            .stats-dashboard {
                padding: 15px;
                margin: 15px 0;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-icon {
                font-size: 28px;
            }

            .stat-value {
                font-size: 30px;
            }

            .stat-label {
                font-size: 13px;
            }

            .stat-sub {
                font-size: 11px;
            }

            .popular-item {
                font-size: 12px;
                padding: 6px 0;
            }
        }

        /* 작은 모바일 (아이폰 SE 등) */
        @media (max-width: 375px) {
            .container {
                padding: 15px;
            }

            h1 {
                font-size: 20px;
            }

            .section-title {
                font-size: 15px;
            }

            .btn {
                font-size: 15px;
                padding: 12px 20px;
            }
        }