
        @keyframes tooltipFadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes tooltipBounce {
            0%, 100% { transform: translateY(0); }
            50%       { transform: translateY(-2px); }
        }
        #pushTooltip {
            animation: tooltipFadeIn 0.3s ease, tooltipBounce 1.5s ease 0.5s infinite;
        }

        :root {
            --safe-area-top: env(safe-area-inset-top, 0px);
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);
            /* 색상 변수는 /api/theme.css에서 정의됨 */
            /* fallback 기본값 (theme.css 로드 실패 시) */
            --primary: #7C3AED;
            --primary-light: #A78BFA;
            --primary-dark: #5B21B6;
            --primary-bg: #F5F3FF;
            --primary-bg-light: #FAF5FF;
            --primary-gradient: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
            --primary-gradient-alt: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
            --primary-rgb: 124, 58, 237;
            /* Gray scale */
            --gray-50: #F9FAFB;
            --gray-100: #F3F4F6;
            --gray-200: #E5E7EB;
            --gray-300: #D1D5DB;
            --gray-400: #9CA3AF;
            --gray-500: #6B7280;
            --gray-600: #4B5563;
            --gray-700: #374151;
            --gray-800: #1F2937;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
            background: #fff;
            color: var(--gray-800);
            min-height: 100vh;
            padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
            overflow-x: hidden;
        }

        /* 검색창 + 공지 + 탭 고정 wrapper */
        .sticky-nav {
            position: relative;
            z-index: 99;
            background: #fff;
        }

        /* 헤더 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px 16px;
            height: calc(69px + env(safe-area-inset-top, 0px));
            box-sizing: border-box;
            background-color: #fff;
            position: relative;
            z-index: 100;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .header-logo img { height: 45px; }
        
        .header-icons { display: flex; gap: 12px; align-items: center; }
        
        .header-icon {
            width: 24px; height: 24px;
            cursor: pointer;
            color: var(--gray-500);
            transition: color 0.2s;
        }
        
        .header-icon:hover { color: var(--primary); }
        
        #push-toggle-btn.push-on { stroke: var(--gray-400); fill: var(--primary); }
        #push-toggle-btn.push-off { stroke: var(--gray-400); fill: none; }
        
        /* 탭 버튼 */
        .tab-container {
            display: flex;
            justify-content: flex-start;
            padding: 8px 16px 12px;
            gap: 6px;
            background: #fff;
        }

        .tab-btn {
            flex: none;
            padding: 8px 14px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            text-align: center;
            min-width: 0;
        }

        .tab-btn.active { background: #2D1B4E; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .tab-btn:not(.active) { background: transparent; color: #A898C0; }
        .tab-btn:not(.active):active { background: #FAFAFA; color: #5E4B7A; }
        
        /* 메인 카드 (보라색) - 공지 + 방문자 */
        .main-card {
            margin: 0 16px 16px;
            background: var(--primary-gradient);
            border-radius: 20px;
            padding: 16px 20px;
            color: #fff;
            box-shadow: 0 4px 20px rgba(124,58,237,0.2);
        }
        
        .card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .card-notice { flex: 1; margin-right: 16px; overflow: hidden; height: 50px; }
        .card-notice-label { font-size: 11px; opacity: 0.9; margin-bottom: 4px; }

        /* 홈 인라인 검색창 */
        .home-search-bar {
            position: relative;
            background: #fff;
            padding: 12px 16px 12px;
        }
        .home-search-wrap {
            display: flex;
            align-items: center;
            background: #FAFAFA;
            border-radius: 16px;
            padding: 0 6px 0 16px;
            gap: 8px;
            border: 1.5px solid #F0EEF5;
            box-shadow: none;
            transition: all 0.2s;
        }
        .home-search-wrap:focus-within {
            border-color: #A78BFA;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
        }
        .home-search-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: #A898C0;
        }
        .home-search-input {
            flex: 1;
            border: none;
            background: none;
            font-size: 15px;
            font-weight: 500;
            outline: none;
            color: var(--gray-800, #1f2937);
            padding: 14px 0;
        }
        .home-search-input::placeholder {
            color: var(--gray-400, #9ca3af);
            font-weight: 400;
        }
        .home-search-clear {
            font-size: 20px;
            color: var(--gray-400, #9ca3af);
            cursor: pointer;
            display: none;
            line-height: 1;
            padding: 8px 4px;
        }
        .home-search-btn {
            flex-shrink: 0;
            background: var(--primary, #7C3AED);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 9px 16px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            margin: 5px 0;
        }
        .home-search-overlay {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 100vh;
            background: rgba(0, 0, 0, 0.3);
            z-index: 97;
        }
        .home-search-overlay.show {
            display: block;
        }
        .home-search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 0 0 16px 16px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            z-index: 98;
            max-height: 60vh;
            overflow-y: auto;
            display: none;
        }
        .home-search-results.show { display: block; }
        .home-search-results .search-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            cursor: pointer;
            border-bottom: 1px solid var(--gray-100, #f3f4f6);
        }
        .home-search-results .search-result-item:last-child { border-bottom: none; }
        .home-search-results .search-result-item:active { background: var(--gray-50, #f9fafb); }
        .home-search-results .search-result-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .home-search-results .search-result-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800, #1f2937);
        }
        .home-search-results .search-result-category {
            font-size: 12px;
            color: var(--gray-400, #9ca3af);
            margin-top: 2px;
        }
        .home-search-empty {
            padding: 20px;
            text-align: center;
            color: var(--gray-400, #9ca3af);
            font-size: 13px;
        }
        .hs-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 14px 4px;
            background: var(--gray-50, #f9fafb);
            border-bottom: 1px solid var(--gray-100, #f3f4f6);
            position: sticky;
            top: 0;
        }
        .hs-section-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--gray-500, #6b7280);
        }
        .hs-section-count {
            font-size: 11px;
            color: var(--gray-400, #9ca3af);
        }
        .hs-more-btn {
            padding: 8px 14px;
            font-size: 12px;
            font-weight: 600;
            color: var(--primary, #7c3aed);
            cursor: pointer;
            text-align: center;
            border-bottom: 1px solid var(--gray-100, #f3f4f6);
        }
        .hs-more-btn:active { background: var(--gray-50, #f9fafb); }

        /* 홈 상단 공지사항 한 줄(박스 위) */
        .home-notice-line { background: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 7px 19px;
            margin-top: 0;
            margin-bottom: 2px;
            border-bottom: 1px solid var(--gray-100, #f3f4f6);
        }

        .home-notice-label {
            flex-shrink: 0;
            height: 18px;
            font-size: 13px;
            font-weight: 800;
            color: var(--primary);
        }

        .home-notice-slider {
            position: relative;
            height: 18px;
            overflow: hidden;
            flex: 1;
        }

        .home-notice-text {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-700);
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateY(100%);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* 공지사항 슬라이드 애니메이션 */
        .card-notice-slider {
            position: relative;
            height: 36px;
            overflow: hidden;
        }
        
        .card-notice-text {
            font-size: 14px;
            font-weight: 500;
            line-height: 1.4;
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateY(100%);
        }

        /* 공지사항 슬라이드업 + 페이드 인/아웃 (자연스러운 전환) */
        .card-notice-text.notice-enter,
        .home-notice-text.notice-enter {
            animation: noticeSlideIn 0.5s ease-out forwards;
        }
        
        .card-notice-text.notice-exit,
        .home-notice-text.notice-exit {
            animation: noticeSlideOut 0.5s ease-in forwards;
        }
        
        @keyframes noticeSlideIn {
            0%   { opacity: 0; transform: translateY(100%); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes noticeSlideOut {
            0%   { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-100%); }
        }

        @media (prefers-reduced-motion: reduce) {
            .card-notice-text.notice-enter,
            .card-notice-text.notice-exit { 
                animation: none; 
                opacity: 1; 
                transform: none; 
            }
            .home-notice-text.notice-enter,
            .home-notice-text.notice-exit,
            .card-notice-text.job-enter,
            .card-notice-text.job-exit {
                animation: none;
                opacity: 1;
                transform: none;
            }
        }

        /* 홈 상단 '오늘의 구인' 한 줄 티커 (아래→위 페이드) */
        .card-notice-text.job-enter {
            animation: jobSlideIn 0.5s ease-out forwards;
        }
        .card-notice-text.job-exit {
            animation: jobSlideOut 0.5s ease-in forwards;
        }
        @keyframes jobSlideIn {
            0%   { opacity: 0; transform: translateY(100%); }
            100% { opacity: 1; transform: translateY(0); }
        }
        @keyframes jobSlideOut {
            0%   { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-100%); }
        }

        /* @keyframes slideUp {
            0%, 25% { transform: translateY(0); opacity: 1; }
            30%, 55% { transform: translateY(-100%); opacity: 0; }
            60%, 85% { transform: translateY(100%); opacity: 0; }
            90%, 100% { transform: translateY(0); opacity: 1; }
        } */

        .card-visitor { text-align: right; flex-shrink: 0; }
        .card-visitor-count { font-size: 28px; font-weight: 700; }
        .card-visitor-label { font-size: 11px; opacity: 0.9; }
        
        .card-actions {
            display: flex;
            justify-content: space-around;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255,255,255,0.2);
        }
        
        .card-action {
            font-size: 11px;
            font-weight: 500;
            opacity: 0.95;
            cursor: pointer;
            text-align: center;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
        }
        .card-action .action-icon {
            width: 13px;
            height: 13px;
            fill: currentColor;
            flex-shrink: 0;
        }
        
        /* 팝업 이벤트 배너 (스와이프 가능) */
        .popup-banner-wrapper {
            margin: 0 16px 16px;
            position: relative;
        }
        
        .popup-banner-track {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 12px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 4px;
        }
        
        .popup-banner-track::-webkit-scrollbar { display: none; }
        
        .popup-banner {
            flex: 0 0 100%;
            scroll-snap-align: center;
            border-radius: 16px;
            cursor: pointer;
            transition: transform 0.2s;
            box-sizing: border-box;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }
        
        .popup-banner:active { transform: scale(0.98); }
        
        .popup-banner-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            z-index: 2;
        }
        
        .popup-banner-badge {
            background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
            color: #fff;
            padding: 4px 10px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
        }
        
        .popup-banner-ad {
            font-size: 10px;
            color: var(--gray-400);
            background: rgba(255,255,255,0.9);
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .popup-banner-content { display: flex; flex-direction: row; align-items: center; }
        
        .popup-banner-img {
            flex: 0 0 140px;
            width: 140px;
            height: 140px;
            object-fit: cover;
            background: var(--primary-gradient);
            display: flex; align-items: center; justify-content: center;
            font-size: 48px;
            position: relative;
            border-radius: 12px;
            margin: 12px;
        }

        .popup-banner-img img {
            width: 100%; height: 100%; object-fit: cover;
            border-radius: 12px;
        }

        .popup-banner-info {
            flex: 1;
            padding: 14px 16px 14px 0;
        }
        
        .popup-banner-title {
            font-size: 15px; font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .popup-banner-desc { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
        .popup-banner-store { font-size: 12px; color: var(--primary); font-weight: 600; }
        
        /* 팝업 배너 인디케이터 (점) */
        .popup-banner-dots {
            display: flex;
            gap: 6px;
            justify-content: center;
            margin-top: 10px;
        }
        
        .popup-banner-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--gray-300);
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .popup-banner-dot.active {
            width: 18px;
            border-radius: 3px;
            background: var(--primary);
        }
        
        /* 카테고리 슬라이더 컨테이너 */
        .category-slider-container {
            background: #fff;
            margin: 0 16px 16px;
            border-radius: 16px;
            padding: 12px 12px;
            border: 1px solid #F0EEF5;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        
        /* 메인 카테고리 탭 */
        .main-category-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding-bottom: 10px;
            margin-bottom: 10px;
            border-bottom: 1px solid #F0EEF5;
        }

        /* 지역매장 탭: '전체'는 1줄(가로 꽉), 나머지는 3열 그리드 */
        body.mode-stores .main-category-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        body.mode-stores .main-cat-tab.all {
            grid-column: 1 / 3;
        }
        body.mode-stores .main-cat-tab.map-view-btn {
            grid-column: 3 / 4;
        }

        body.mode-stores .main-cat-tab {
            width: 100%;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .main-category-tabs::-webkit-scrollbar { display: none; }

        .main-cat-tab {
            flex-shrink: 0;
            padding: 7px 14px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            background: #fff;
            color: #A898C0;
            white-space: nowrap;
        }
        .main-cat-tab .cat-icon { width: 13px; height: 13px; vertical-align: -1px; }

        .main-cat-tab.active { background: var(--primary); color: #fff; }
        .main-cat-tab.active .cat-icon { fill: #fff; }

        .main-cat-tab.map-view-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
            flex-shrink: 0;
            background: #ffffff;
            color: var(--primary);
            border: 1.5px solid var(--primary);
            font-weight: 700;
            border-radius: 12px;
        }
        .main-cat-tab.map-view-btn:active {
            background: #FAF5FF;
        }
        .main-cat-tab.map-view-btn svg { flex-shrink: 0; }

        /* 서브 카테고리 그리드 - 간격 줄임 */
        .sub-category-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px 0px;
        }

/* 홈(이벤트)에서는 이벤트 서브카테고리 5개를 한 줄에 고정 노출 */
.sub-category-grid.event-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
}

.sub-category-grid.event-row .sub-cat-item {
  flex: 0 0 calc((100% - 4 * 8px) / 5);
}

.sub-category-grid.event-row .sub-cat-icon,
.sub-category-grid.event-row .sub-cat-icon2 {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
}

.sub-category-grid.event-row .sub-cat-label {
  font-size: 11px;
  font-weight: 600;
}
        
        .sub-cat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            position: relative;
        }
        
        .sub-cat-icon {
            width: 48px; height: 48px;
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px;
            margin-bottom: 4px;
            transition: transform 0.2s;
            position: relative;
            background: #F3F4F6;
            border: none;
        }

        .sub-cat-icon2 {
            width: 48px; height: 48px;
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px;
            margin-bottom: 4px;
            transition: transform 0.2s;
            position: relative;
            background: var(--primary-gradient);;
            border: 1.5px solid #edebeb;
        }

        /* Phosphor category icon SVG */
        .cat-icon { width: 22px; height: 22px; fill: currentColor; }
        .sub-cat-icon2 .cat-icon { fill: #fff; }
        .event-card-img .cat-icon,
        .member-card-img .cat-icon,
        .search-result-icon .cat-icon { width: 28px; height: 28px; fill: #fff; }
        .non-member-card-img .cat-icon { width: 28px; height: 28px; fill: var(--gray-400); }
        .info-main-icon .cat-icon { width: 18px; height: 18px; }
        .info-sub-icon .cat-icon { width: 16px; height: 16px; }

        /* 활성 아이콘 내 SVG: NEW 텍스트+배경 흰색으로 변경 */
        .sub-cat-icon2 svg rect { fill: rgba(255,255,255,0.25); }
        .sub-cat-icon2 svg text { fill: #fff; }
        
        .sub-cat-item:active .sub-cat-icon2 { transform: scale(0.5);}
        
        .sub-cat-label {
            font-size: 10px;
            color: var(--gray-600);
            font-weight: 500;
            text-align: center;
            word-break: keep-all;
        }
        
        /* 서브카테고리 알림 뱃지 */
        .sub-cat-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            background: #EF4444;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            border: 2px solid #fff;
        }
        
        /* 페이지 인디케이터 */
        .page-indicator {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 10px;
        }
        
        .indicator-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--gray-300);
            transition: all 0.3s;
        }
        
        .indicator-dot.active {
            background: var(--gray-800);
            width: 18px;
            border-radius: 3px;
        }
        
        /* 상단고정 별도 박스 */
        .pinned-section {
            background: #F5F3FF;
            border: 1px solid #E9E5FF;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 16px;
        }
        .pinned-section-label {
            font-size: 12px;
            font-weight: 700;
            color: #7C3AED;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .pinned-section .cards-grid,
        .pinned-section .timesale-list,
        .pinned-section .job-card {
            margin-bottom: 0;
        }
        .pinned-section .cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        /* 카드 그리드 영역 */
        .cards-section { padding: 0 16px; }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .section-title { font-size: 16px; font-weight: 700; color: var(--gray-800); }
        .section-more { font-size: 13px; color: var(--gray-400); cursor: pointer; }
        
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }
        
        /* 이벤트 카드 - border-radius 10px */
        .event-card {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .event-card:active { transform: scale(0.98); }
        
        .event-card-img {
            width: 100%; height: 100px;
            object-fit: cover;
            background: var(--primary-gradient);
            display: flex; align-items: center; justify-content: center;
            font-size: 40px;
            position: relative;
        }
        
        .event-card.expired { opacity: 0.65; }
        .event-card-expired-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.45);
            display: flex; align-items: center; justify-content: center;
            z-index: 1;
        }
        .event-card-expired-overlay span {
            background: rgba(0,0,0,0.7); color: #fff;
            padding: 4px 14px; border-radius: 12px;
            font-size: 13px; font-weight: 700; letter-spacing: 1px;
        }
        
        .event-card-body { padding: 10px; }
        
        .event-card-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        
        .event-card-title {
            font-size: 13px; font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .event-card-store { font-size: 11px; color: var(--gray-500); }
        
        /* 회원 카드 */
        .member-card {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
            cursor: pointer;
            border: 2px solid var(--primary-light);
        }
        
        .member-card-img {
            width: 100%; height: 100px;
            object-fit: cover;
            background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
            display: flex; align-items: center; justify-content: center;
            font-size: 40px;
            position: relative;
        }
        
        .member-badge {
            position: absolute;
            top: 8px; left: 8px;
            background: var(--primary);
            color: #fff;
            padding: 2px 8px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 600;
        }
        
        .premium-badge {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
        }

        .partner-badge {
            position: absolute;
            top: 8px; left: auto; right: 8px;
            background: linear-gradient(135deg, #10B981 0%, #047857 50%, #D4AF37 100%);
            color: #fff;
            padding: 2px 8px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 700;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
            box-shadow: 0 0 6px rgba(212,175,55,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
        }

        .detail-badge.partner-badge,
        .compare-badge.partner-badge {
            position: static;
            background: linear-gradient(135deg, #10B981 0%, #047857 50%, #D4AF37 100%);
            color: #fff;
            font-weight: 700;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
            box-shadow: 0 0 6px rgba(212,175,55,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
        }
        
        .member-card-body { padding: 10px; }
        .member-card-name { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
        .member-card-category { font-size: 11px; color: var(--gray-500); margin-bottom: 2px; }
        .member-card-sub-category { font-size: 10px; color: var(--primary); }
        
        .member-card-badges { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
        
        .mini-badge { padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 600; }
        .mini-badge.coupon { background: #DCFCE7; color: #16A34A; }
        .mini-badge.timesale { background: #FEF3C7; color: #D97706; }
        .mini-badge.event { background: #FCE7F3; color: #DB2777; }
        
        /* 미등록 카드 */
        .non-member-card {
            background: var(--gray-50);
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
            border: 1px dashed var(--gray-300);
        }
        
        .non-member-card-img {
            width: 100%; height: 100px;
            background: var(--gray-100);
            display: flex; align-items: center; justify-content: center;
            font-size: 40px;
            color: var(--gray-400);
        }
        
        .non-member-card-body { padding: 10px; }
        .non-member-card-name { font-size: 13px; font-weight: 500; color: var(--gray-600); margin-bottom: 2px; }
        .non-member-card-category { font-size: 11px; color: var(--gray-400); margin-bottom: 2px; }
        .non-member-card-sub-category { font-size: 10px; color: var(--gray-400); }
        
        /* 하단 네비게이션 - 플로팅 다크 */
        .bottom-nav {
            position: fixed;
            bottom: calc(12px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 398px;
            background: rgba(26, 22, 37, 0.94);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 6px 4px;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.05);
            box-shadow: 0 8px 32px rgba(0,0,0,0.25);
            z-index: 1000;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 6px 10px;
            cursor: pointer;
            text-decoration: none;
            min-width: 0;
            flex: 1;
            border-radius: 14px;
            color: rgba(255,255,255,0.35);
            transition: all 0.25s;
            position: relative;
        }
        .nav-item.active {
            background: rgba(200,120,255,0.12);
            color: #E0AAFF;
        }
        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: 3px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: #C878FF;
            border-radius: 50%;
            box-shadow: 0 0 8px 2px rgba(200,120,255,0.6);
        }

        .nav-icon {
            font-size: 0;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0;
        }
        .nav-icon svg {
            width: 20px;
            height: 20px;
            fill: rgba(255,255,255,0.35);
            transition: all 0.25s;
        }
        .nav-item.active .nav-icon svg {
            fill: #E0AAFF;
            filter: drop-shadow(0 0 6px rgba(200,120,255,0.5));
        }
        .nav-label { font-size: 9px; color: rgba(255,255,255,0.3); font-weight: 500; white-space: nowrap; text-align: center; width: 100%; transition: all 0.25s; }
        .nav-item.active .nav-label { color: #E0AAFF; font-weight: 700; text-shadow: 0 0 8px rgba(224,170,255,0.6); }
        
        /* 쿠폰 사용방법 모달 */
        .coupon-guide-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 3000;
            align-items: flex-end;
            justify-content: center;
        }
        .coupon-guide-modal.show {
            display: flex;
        }
        .coupon-guide-content {
            background: #fff;
            border-radius: 20px 20px 0 0;
            width: 100%;
            max-width: 480px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }
        .coupon-guide-close {
            position: absolute;
            top: 12px;
            right: 16px;
            font-size: 24px;
            background: none;
            border: none;
            color: var(--gray-400, #9ca3af);
            cursor: pointer;
            z-index: 1;
            line-height: 1;
        }
        .coupon-guide-tabs {
            display: flex;
            gap: 8px;
            padding: 16px 16px 0;
            border-bottom: 1px solid var(--gray-100, #f3f4f6);
            flex-shrink: 0;
        }
        .cg-tab {
            flex: 1;
            padding: 10px 8px;
            border: none;
            background: none;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-400, #9ca3af);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
            transition: all 0.2s;
        }
        .cg-tab.active {
            color: var(--primary, #7c3aed);
            border-bottom-color: var(--primary, #7c3aed);
        }
        .coupon-guide-body {
            overflow-y: auto;
            flex: 1;
        }
        .cg-panel img {
            width: 100%;
            display: block;
        }

        /* 검색 모달 */
        .search-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: #fff;
            z-index: 2000;
            flex-direction: column;
        }
        
        .search-modal.show { display: flex; }
        
        .search-header {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            padding-top: calc(12px + env(safe-area-inset-top, 0px));
            gap: 12px;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .search-back { font-size: 24px; cursor: pointer; color: var(--gray-500); }
        
        .search-input-wrap {
            flex: 1;
            display: flex;
            align-items: center;
            background: var(--gray-100);
            border-radius: 10px;
            padding: 10px 14px;
        }
        
        .search-input {
            flex: 1;
            border: none;
            background: none;
            font-size: 15px;
            outline: none;
        }
        
        .search-clear { font-size: 18px; color: var(--gray-400); cursor: pointer; display: none; }
        .search-results { flex: 1; overflow-y: auto; padding: 16px; }
        
        .search-result-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .search-result-item:hover { background: var(--gray-50); }
        
        .search-result-icon {
            width: 44px; height: 44px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
            margin-right: 12px;
            background: var(--primary-bg);
        }
        
        .search-result-info { flex: 1; }
        .search-result-name { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
        .search-result-category { font-size: 12px; color: var(--gray-500); }
        
        /* 설정 모달 */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: flex-end;
            justify-content: center;
        }
        
        .settings-modal.show { display: flex; }
        
        .settings-content {
            background: #fff;
            width: 100%;
            max-width: 430px;
            border-radius: 16px 16px 0 0;
            max-height: 80vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease;
        }
        
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        
        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid var(--gray-100);
            position: sticky;
            top: 0;
            background: #fff;
        }
        
        .settings-title { font-size: 18px; font-weight: 700; }
        .settings-close { font-size: 24px; color: var(--gray-400); cursor: pointer; }
        
        .settings-section { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); }
        .settings-section:last-child { border-bottom: none; }
        .settings-section-title { font-size: 12px; color: var(--gray-400); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
        
        .settings-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            cursor: pointer;
        }
        
        .settings-item-icon {
            width: 40px; height: 40px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px;
            margin-right: 12px;
            background: var(--primary-bg);
        }
        
        .settings-item-text { flex: 1; }
        .settings-item-title { font-size: 14px; font-weight: 600; color: var(--gray-800); }
        .settings-item-desc { font-size: 12px; color: var(--gray-500); }
        .settings-item-arrow { font-size: 18px; color: var(--gray-300); }
        
        /* 내 매장 탭 패널 */
        .my-store-panel { display: none; padding: 20px 16px; background: #fff; }
        .my-store-panel.show { display: block; }
        
        /* 정보 패널 스타일 */
        .info-panel { display: none; padding: 20px 16px; padding-bottom: 100px; background: #fff; }
        .info-panel.show { display: block; }
        
        .info-header {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .info-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 4px;
        }
        
        .info-subtitle {
            font-size: 13px;
            color: var(--gray-500);
        }
        
        .info-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-top: 10px;
            margin-bottom: 0;
        }
        
        .info-stat-card {
            background: #fff;
            border-radius: 12px;
            padding: 12px 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border: 1px solid var(--gray-100);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .info-stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .info-stat-icon {
            font-size: 24px;
            margin-bottom: 4px;
        }
        .info-stat-icon .cat-icon { width: 24px; height: 24px; fill: var(--primary); }
        
        .info-stat-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 2px;
        }
        
        .info-stat-label {
            font-size: 10px;
            color: var(--gray-500);
            font-weight: 500;
        }
        
        .info-section {
            margin-bottom: 20px;
        }
        
        .info-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .info-section-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-800);
        }
        
        /* 아코디언 리스트 */
        .info-accordion {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        /* 메인 카테고리 (1단계) */
        .info-main-item {
            border-bottom: 1px solid var(--gray-100);
        }
        
        .info-main-item:last-child {
            border-bottom: none;
        }
        
        .info-main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .info-main-header:hover {
            background: var(--gray-50);
        }
        
        .info-main-header.active {
            background: var(--primary-bg);
        }
        
        .info-main-name {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .info-main-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            background: var(--gray-100);
        }
        
        .info-main-text {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800);
        }
        
        .info-main-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .info-count-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            background: var(--primary-bg);
            color: var(--primary);
        }
        
        .info-arrow {
            color: var(--gray-400);
            font-size: 14px;
            transition: transform 0.3s;
        }
        
        .info-main-header.active .info-arrow {
            transform: rotate(90deg);
        }
        
        /* 서브 카테고리 (2단계) */
        .info-sub-list {
            display: none;
            background: var(--gray-50);
            border-top: 1px solid var(--gray-100);
        }
        
        .info-sub-list.show {
            display: block;
        }
        
        .info-sub-item {
            border-bottom: 1px solid var(--gray-100);
        }
        
        .info-sub-item:last-child {
            border-bottom: none;
        }
        
        .info-sub-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px 12px 46px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .info-sub-header:hover {
            background: var(--gray-100);
        }
        
        .info-sub-header.active {
            background: #E9D5FF;
        }
        
        .info-sub-name {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .info-sub-icon {
            font-size: 16px;
        }
        
        .info-sub-text {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-700);
        }
        
        .info-sub-count {
            font-size: 12px;
            color: var(--gray-500);
            font-weight: 500;
        }
        
        /* 동종업 리스트 (3단계) */
        .info-same-list {
            display: none;
            background: #fff;
            border-top: 1px solid var(--gray-200);
        }
        
        .info-same-list.show {
            display: block;
        }
        
        .info-same-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px 10px 66px;
            border-bottom: 1px solid var(--gray-50);
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .info-same-item:last-child {
            border-bottom: none;
        }
        
        .info-same-item:hover {
            background: #FDF4FF;
        }
        
        .info-same-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-700);
        }
        
        .info-same-right {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .info-same-count {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            background: #FCE7F3;
            color: #DB2777;
        }
        
        .info-compare-btn {
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
            background: var(--primary);
            color: #fff;
            border: none;
            cursor: pointer;
        }
        
        .info-compare-btn:hover {
            background: var(--primary-dark);
        }
        
        /* 동종업 비교 모달 */
        .compare-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 3000;
            overflow-y: auto;
            padding: 20px;
        }
        
        .compare-modal.show {
            display: flex;
            align-items: flex-start;
            justify-content: center;
        }
        
        .compare-content {
            background: #fff;
            width: 100%;
            max-width: 500px;
            border-radius: 20px;
            margin-top: env(safe-area-inset-top, 20px);
            margin-bottom: env(safe-area-inset-bottom, 20px);
            overflow: hidden;
        }
        
        .compare-header {
            background: var(--primary-gradient);
            color: #fff;
            padding: 20px;
            position: relative;
        }
        
        .compare-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .compare-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        
        .compare-subtitle {
            font-size: 13px;
            opacity: 0.9;
        }
        
        .compare-summary {
            display: flex;
            gap: 12px;
            margin-top: 16px;
        }
        
        .compare-summary-item {
            flex: 1;
            background: rgba(255,255,255,0.2);
            border-radius: 12px;
            padding: 12px;
            text-align: center;
        }
        
        .compare-summary-value {
            font-size: 20px;
            font-weight: 700;
        }
        
        .compare-summary-label {
            font-size: 11px;
            opacity: 0.9;
        }
        
        .compare-body {
            padding: 16px;
            max-height: 60vh;
            overflow-y: auto;
        }
        
        .compare-store-card {
            background: var(--gray-50);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        
        .compare-store-card:hover {
            border-color: var(--primary);
            background: #fff;
        }
        
        .compare-store-card:last-child {
            margin-bottom: 0;
        }
        
        .compare-store-rank {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .compare-rank-num {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--primary);
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .compare-rank-num.rank-1 { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); }
        .compare-rank-num.rank-2 { background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%); }
        .compare-rank-num.rank-3 { background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%); }
        
        .compare-store-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-800);
            flex: 1;
        }
        
        .compare-store-badges {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }
        
        .compare-badge {
            padding: 2px 8px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 600;
        }
        
        .compare-badge.member { background: var(--primary-bg); color: var(--primary); }
        .compare-badge.premium { background: #FEF3C7; color: #D97706; }
        .compare-badge.event { background: #FCE7F3; color: #DB2777; }
        .compare-badge.coupon { background: #DCFCE7; color: #16A34A; }
        
        .compare-store-info {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        
        .compare-info-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--gray-600);
        }
        
        .compare-info-icon {
            font-size: 14px;
        }
        
        .compare-footer {
            padding: 16px;
            border-top: 1px solid var(--gray-100);
        }
        
        .compare-view-btn {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            background: var(--primary);
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            border: none;
            cursor: pointer;
        }
        
        .compare-view-btn:hover {
            background: var(--primary-dark);
        }
        
        .my-store-card {
            background: var(--gray-50);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .my-store-card:hover { background: var(--gray-100); }
        .my-store-icon { font-size: 32px; margin-bottom: 12px; }
        .my-store-title { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
        .my-store-desc { font-size: 13px; color: var(--gray-500); }
        
        /* 상세 모달 */
        .detail-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .detail-modal.show { display: flex; }
        
        .detail-content {
            background: #fff;
            width: 100%;
            max-width: 400px;
            max-height: 85vh;
            border-radius: 16px;
            overflow: hidden;
            animation: scaleIn 0.3s ease;
        }

        /* 매장 상세: 바텀 시트(슬라이드 업) */
        .detail-modal.sheet-mode { align-items: flex-end; }
        .detail-content.sheet {
            max-width: 520px;
            max-height: 92vh;
            border-radius: 18px 18px 0 0;
            animation: sheetUp 0.28s ease;
        }

        @keyframes sheetUp {
            from { transform: translateY(24px); opacity: 0.9; }
            to   { transform: translateY(0); opacity: 1; }
        }

        /* 이벤트 상세: 포스터를 더 크게(스크롤 가능) */
        .detail-content.event {
            max-width: 520px;
            max-height: 92vh;
        }

        .detail-content.event .detail-img {
            height: auto;
            padding: 12px;
            background: #111827;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .detail-content.event .detail-img img {
            width: 100%;
            max-height: 55vh;
            object-fit: contain !important;
            background: #000;
            border-radius: 12px;
        }
        
        @keyframes scaleIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .detail-header { position: relative; }
        
        .detail-img {
            width: 100%; height: 180px;
            object-fit: cover;
            background: var(--primary-gradient);
            display: flex; align-items: center; justify-content: center;
            font-size: 64px;
        }
        
        .detail-close {
            position: absolute;
            top: 12px; right: 12px;
            width: 32px; height: 32px;
            background: rgba(0,0,0,0.5);
            border: none;
            border-radius: 50%;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
        }
        
        .detail-body {
            padding: 20px;
            max-height: calc(85vh - 180px);
            overflow-y: auto;
        }

        /* 스크롤바가 눈에 잘 띄도록(지원 브라우저 한정) */
        .detail-body::-webkit-scrollbar { width: 10px; }
        .detail-body::-webkit-scrollbar-thumb { background: rgba(17,24,39,0.25); border-radius: 10px; }
        .detail-body::-webkit-scrollbar-track { background: rgba(17,24,39,0.06); }

        .detail-content.event .detail-body {
            max-height: calc(92vh - 55vh);
        }

        .detail-content.sheet .detail-body {
            max-height: calc(92vh - 180px);
        }
        
        .detail-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        
        .detail-title { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
        
        .detail-store {
            font-size: 14px;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 12px;
            cursor: pointer;
        }
        
        .detail-desc {
            font-size: 14px;
            color: var(--gray-600);
            line-height: 1.6;
            margin-bottom: 16px;
        }
        
        .detail-info-row {
            display: flex;
            align-items: flex-start;
            padding: 10px 0;
            border-top: 1px solid var(--gray-100);
        }
        
        .detail-info-label { font-size: 13px; color: var(--gray-500); width: 80px; flex-shrink: 0; }
        .detail-info-value { font-size: 13px; color: var(--gray-800); flex: 1; }
        .detail-info-value a { color: var(--primary); text-decoration: none; }
        
        .detail-btn {
            width: 100%;
            padding: 14px;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 16px;
        }
        
        .detail-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        
        .detail-mini-badge {
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
        }
        
        /* 홈 화면 추가 모달 */
        .install-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 3000;
            align-items: flex-end;
            justify-content: center;
        }
        
        .install-modal.show { display: flex; }
        
        .install-content {
            background: #fff;
            width: 100%;
            max-width: 430px;
            border-radius: 16px 16px 0 0;
            padding: 24px 20px;
            padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
            animation: slideUp 0.3s ease;
        }
        
        .install-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .install-title { font-size: 18px; font-weight: 700; }
        .install-close { font-size: 24px; color: var(--gray-400); cursor: pointer; }

        .install-guide { display: none; }

        /* === Auto install (Android/Windows) === */
        #installGuideAuto {
            flex-direction: column;
            align-items: center;
            padding: 30px 0;
        }
        .install-auto-msg { text-align: center; }
        .install-auto-icon { font-size: 48px; margin-bottom: 12px; }
        .install-auto-text { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

        /* === Fallback === */
        #installGuideFallback {
            flex-direction: column;
            align-items: center;
            padding: 30px 0;
        }
        .install-fallback-msg { text-align: center; }
        .install-fallback-icon { font-size: 40px; margin-bottom: 12px; }
        .install-fallback-text { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

        /* === iOS 애니메이션 가이드 === */
        .ios-guide-steps { position: relative; min-height: 240px; }
        .ios-step {
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            animation: iosFadeIn 0.4s ease;
        }
        .ios-step.active { display: flex; }
        @keyframes iosFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* iOS 미니폰 */
        .ios-phone {
            width: 180px;
            height: 140px;
            border: 2.5px solid var(--gray-300);
            border-radius: 16px;
            background: #f9f9f9;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }
        .ios-browser-bar {
            background: var(--gray-100);
            padding: 8px 12px;
            font-size: 11px;
            color: var(--gray-500);
            border-bottom: 1px solid var(--gray-200);
            text-align: center;
            font-weight: 600;
        }
        .ios-bottom-bar {
            margin-top: auto;
            display: flex;
            justify-content: center;
            padding: 10px 0;
            background: #fff;
            border-top: 1px solid var(--gray-200);
        }
        .ios-share-btn {
            width: 36px; height: 36px;
            border-radius: 8px;
            background: rgba(0,122,255,0.1);
            display: flex; align-items: center; justify-content: center;
        }

        /* iOS 공유시트 */
        .ios-share-sheet {
            width: 200px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
            overflow: hidden;
        }
        .ios-sheet-item {
            padding: 10px 14px;
            font-size: 12px;
            color: var(--gray-600);
            border-bottom: 1px solid var(--gray-100);
        }
        .ios-sheet-item.highlight {
            color: #007AFF;
            font-weight: 800;
            background: rgba(0,122,255,0.06);
        }
        .ios-sheet-divider {
            height: 6px;
            background: var(--gray-100);
        }

        /* iOS 확인 다이얼로그 */
        .ios-confirm-dialog {
            width: 200px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
            overflow: hidden;
        }
        .ios-confirm-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            font-size: 11px;
            color: var(--gray-400);
            border-bottom: 1px solid var(--gray-100);
        }
        .ios-confirm-header b { color: var(--gray-800); font-size: 13px; }
        .ios-confirm-add { color: #007AFF; font-weight: 800; font-size: 13px; }
        .ios-confirm-preview {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 16px;
        }
        .ios-confirm-icon {
            width: 40px; height: 40px;
            border-radius: 10px;
            background: var(--primary-bg);
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
        }
        .ios-confirm-name { font-size: 14px; font-weight: 700; }

        .ios-step-text {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--gray-600);
            line-height: 1.5;
        }
        .ios-step-num {
            width: 24px; height: 24px;
            border-radius: 50%;
            background: var(--primary-gradient);
            color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 800;
            flex-shrink: 0;
        }

        .ios-guide-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin: 14px 0 10px;
        }
        .ios-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--gray-300);
            transition: all 0.3s;
        }
        .ios-dot.active { background: var(--primary); width: 18px; border-radius: 3px; }

        .ios-guide-footer { text-align: center; }
        .ios-guide-note { font-size: 11px; color: var(--gray-400); }

        /* 펄스 애니메이션 (강조) */
        .pulse {
            animation: pulseBounce 1.5s ease-in-out infinite;
        }
        @keyframes pulseBounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(0,122,255,0.15); }
        }
        
        
        /* ===== 오버레이 가이드 투어 ===== */
        .guide-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 9999;
        }
        .guide-overlay.active {
            display: block;
        }
        .guide-overlay.active ~ .bottom-nav,
        body.guide-active .bottom-nav {
            z-index: 1 !important;
        }

        /* 반투명 배경 (box-shadow trick으로 하이라이트 바깥만 어둡게) */
        .guide-highlight {
            position: absolute;
            border-radius: 12px;
            z-index: 10000;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
            pointer-events: none;
        }

        /* 하이라이트 테두리 네온 펄스 애니메이션 */
        .guide-highlight::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 14px;
            border: 2.5px solid #39FF14;
            box-shadow: 0 0 8px #39FF14, 0 0 20px rgba(57,255,20,0.4);
            animation: guidePulse 1.8s ease-in-out infinite;
        }
        @keyframes guidePulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 8px #39FF14, 0 0 20px rgba(57,255,20,0.4); }
            50% { opacity: 0.7; box-shadow: 0 0 16px #39FF14, 0 0 36px rgba(57,255,20,0.3); }
        }

        /* 말풍선 툴팁 */
        .guide-tooltip {
            position: absolute;
            z-index: 10001;
            width: calc(100vw - 40px);
            max-width: 360px;
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(124,58,237,0.1);
            animation: guideTooltipIn 0.25s ease-out;
        }
        @keyframes guideTooltipIn {
            from { opacity: 0; transform: translateX(-50%) translateY(8px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        /* 말풍선 화살표 */
        .guide-tooltip::before {
            content: '';
            position: absolute;
            left: 50%; transform: translateX(-50%);
            border: 8px solid transparent;
        }
        .guide-tooltip.arrow-top::before {
            top: -16px;
            border-bottom-color: #fff;
        }
        .guide-tooltip.arrow-bottom::before {
            bottom: -16px;
            border-top-color: #fff;
        }

        .guide-tooltip-title {
            font-size: 15px;
            font-weight: 900;
            color: var(--primary);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .guide-tooltip-desc {
            font-size: 13px;
            color: var(--gray-600);
            line-height: 1.65;
        }

        .guide-tooltip-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 14px;
            gap: 10px;
        }

        .guide-dots {
            display: flex;
            gap: 4px;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }
        .guide-dot {
            width: 5px; height: 5px;
            border-radius: 50%;
            background: var(--gray-300);
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .guide-dot.active {
            background: var(--primary);
            width: 14px;
            border-radius: 3px;
        }
        .guide-dot.done {
            background: rgba(124,58,237,0.35);
        }

        .guide-btns {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        .guide-btn {
            padding: 8px 16px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 800;
            border: none;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .guide-btn.skip {
            background: transparent;
            color: var(--gray-400);
            white-space: nowrap;
        }
        .guide-btn.skip:active { color: var(--gray-600); }
        .guide-btn.next {
            background: var(--primary-gradient);
            color: #fff;
            box-shadow: 0 2px 8px rgba(124,58,237,0.3);
            white-space: nowrap;
            min-width: 60px;
            text-align: center;
        }
        .guide-btn.next:active { transform: scale(0.96); }

        .guide-step-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px; height: 22px;
            border-radius: 50%;
            background: var(--primary-gradient);
            color: #fff;
            font-size: 11px;
            font-weight: 900;
            flex-shrink: 0;
        }

        
        /* 로딩 & 빈 상태 */
        .loading { display: flex; justify-content: center; align-items: center; padding: 40px; color: var(--gray-400); }
        .empty-state { text-align: center; padding: 40px 20px; color: var(--gray-400); }
        .empty-state-icon { font-size: 48px; margin-bottom: 12px; }
        .empty-state-text { font-size: 14px; }
        
        /* 회원가입 모달 */
        .membership-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }
        
        .membership-modal.show {
            display: flex;
            align-items: flex-start;
            justify-content: center;
        }
        
        .membership-content {
            background: #fff;
            width: 100%;
            max-width: 480px;
            border-radius: 16px;
            padding: 24px;
            margin-top: env(safe-area-inset-top, 20px);
            margin-bottom: env(safe-area-inset-bottom, 20px);
        }
        
        .membership-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .membership-title { font-size: 20px; font-weight: 700; }
        .membership-close { font-size: 24px; color: var(--gray-400); cursor: pointer; }
        
        .form-group { margin-bottom: 16px; }
        .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
        
        .form-input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .form-input:focus { border-color: var(--primary); }
        
        .form-textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            resize: vertical;
            min-height: 100px;
        }
        
        .form-btn {
            width: 100%;
            padding: 14px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            margin-top: 8px;
        }
        
        .form-btn.primary { background: var(--primary); color: #fff; }
        .form-btn.secondary { background: var(--gray-100); color: var(--gray-600); }
        
        .naver-search-section {
            background: var(--gray-50);
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 20px;
        }
        
        .naver-search-row { display: flex; gap: 8px; margin-bottom: 8px; }
        
        .naver-search-input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            font-size: 14px;
        }
        
        .naver-search-btn {
            padding: 10px 16px;
            background: #03C75A;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }
    
/* 팝업 이벤트 모달 */
.popup-events-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:9999;padding:16px;}
.popup-events-modal.show{display:flex;}
.popup-events-content{width:100%;max-width:520px;background:#fff;border-radius:18px;overflow:hidden;}
.popup-events-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--gray-100);}
.popup-events-title{font-size:16px;font-weight:800;}
.popup-events-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:16px;-webkit-overflow-scrolling:touch;}
.popup-events-track::-webkit-scrollbar{display:none;}
.popup-events-card{flex:0 0 100%;scroll-snap-align:center;border:1px solid var(--gray-100);border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.06);}
.popup-events-card-img{height:180px;background:var(--gray-50);display:flex;align-items:center;justify-content:center;}
.popup-events-card-body{padding:14px 14px 16px;}
.popup-events-card-title{font-size:16px;font-weight:800;margin-bottom:6px;}
.popup-events-card-desc{font-size:13px;color:var(--gray-600);line-height:1.5;margin-bottom:10px;}
.popup-events-card-store{font-size:12px;color:var(--gray-700);margin-bottom:12px;}
.popup-events-card-btn{width:100%;padding:12px;border-radius:14px;border:none;background:var(--primary);color:#fff;font-weight:800;}
.popup-events-dots{display:flex;gap:6px;justify-content:center;padding:0 0 14px;}
.popup-dot{width:7px;height:7px;border-radius:999px;background:var(--gray-300);}
.popup-dot.active{background:var(--primary);}


/* =========================
   View modes (홈/지역매장)
   ========================= */
body.mode-home #mainCategoryTabs,
body.mode-home #pageIndicator {
  display: none;
}

/* =============================
   Stores Tab: Filter / Sort Bar
   - Only visible when body has .mode-stores
   ============================= */

.stores-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

body.mode-stores .stores-filter-bar {
  display: flex;
}

.stores-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

.stores-filter-chips::-webkit-scrollbar { height: 0px; }

.chip-btn {
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.08);
  color: rgba(17, 24, 39, 0.85);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.member-grade-bar {
  display: none;
  gap: 6px;
  padding: 0 14px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.member-grade-bar::-webkit-scrollbar { height: 0; }
.member-grade-bar.show { display: flex; }

.grade-chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.grade-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.stores-sort-select {
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  outline: none;
}

/* Compare modal controls */
.compare-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.compare-sort-select {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  outline: none;
}

.compare-more-btn {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body.mode-stores .main-card,
body.mode-stores #popupBannerWrapper {
  display: none;
}

/* 홈에서는 섹션 타이틀을 '이벤트' 중심으로 보여주므로 여백 약간 보정 */
body.mode-home .category-slider-container {
  margin-top: 10px;
}

/* 지역매장 탭: 카테고리 박스 배경을 연한 보라색으로 */
body.mode-stores .category-slider-container {
  background: var(--primary-bg);
}

/* =========================
   Splash / Loading screen
   ========================= */
#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--primary-gradient);
}

#splashScreen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.splash-logo {
  width: 250px;
  max-width: 60vw;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}

.splash-sub {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-top: 8px;
}

.splash-spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.95);
  animation: splashSpin .9s linear infinite;
  margin-top: 18px;
}

@keyframes splashSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================
   Info tab dropdown
   ========================= */
.info-summary-box {
  background: var(--primary);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0 20px;
}
.info-summary-box .info-stat-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.info-summary-box .info-filter-select {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.info-summary-box .info-filter-select option {
  background: #fff;
  color: #333;
}

.info-filter-row {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.info-filter-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

/* 지역매장 탭 특수 모드(인기/쿠폰/회원)에서 카테고리 UI 비활성화 */
#mainCategoryTabs.disabled,
#subCategoryGrid.disabled {
  pointer-events: none;
  opacity: 0.25;
  filter: grayscale(0.2);
}

/* ============================================
   구인 탭 스타일
   ============================================ */
.jobs-panel {
  display: none;
  padding: 20px 16px;
  padding-bottom: 100px;
  background: #fff;
}

.jobs-panel.show {
  display: block;
}

.jobs-header {
  text-align: center;
  margin-bottom: 20px;
}

.jobs-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.jobs-subtitle {
  font-size: 13px;
  color: var(--gray-500);
}

/* 구인 카테고리 */
.jobs-category-container {
  /* 성성매장 탭(카테고리 슬라이더) 카드 스타일과 동일 */
  background: #fff;
  margin: 0 16px 16px;
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.jobs-category-grid {
  /* 성성매장 탭의 메인 카테고리(3열 그리드)와 동일한 레이아웃 */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.jobs-cat-item.all {
  grid-column: 1 / -1;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
}

.jobs-cat-item.all .jobs-cat-icon {
  width: auto;
  height: auto;
}

.jobs-cat-item {
  /* 성성매장 탭의 main-cat-tab 버튼 톤앤매너에 맞춤 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  width: 100%;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 0;
}

.jobs-cat-item:hover {
  background: #fff;
}

.jobs-cat-item.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.jobs-cat-item.active .jobs-cat-icon {
  background: transparent;
  color: #fff;
}

.jobs-cat-icon {
  /* 아이콘은 '버튼 안의 이모지'처럼만 보이게 (박스 제거) */
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0;
  background: transparent;
  transition: all 0.2s;
}

.jobs-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  text-align: center;
}

.jobs-cat-item.active .jobs-cat-label {
  color: #fff;
}

/* 구인 목록 */
.jobs-list-section {
  padding: 0;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 구인 카드 — ChatGPT식 2줄 컴팩트 */
.job-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--gray-100);
}

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

.job-card-line1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.job-card-store {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.job-card-pay {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 12px;
}

.job-card-line2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.job-card-line2 .job-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.job-badge.urgent { background: #FEE2E2; color: #DC2626; }
.job-badge.weekend { background: #DBEAFE; color: #2563EB; }
.job-badge.day { background: #FEF3C7; color: #D97706; }
.job-badge.night { background: #E0E7FF; color: #4F46E5; }
.job-badge.parttime { background: #DCFCE7; color: #16A34A; }
.job-badge.etc { background: #F3F4F6; color: #6B7280; }
.job-badge.hiring { background: var(--primary-gradient); color: #fff; }

/* 기존 클래스 하위호환 (상세모달 등에서 사용) */
.job-card-header { display: none; }
.job-card-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.job-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.job-card-date { font-size: 11px; color: var(--gray-400); }
.job-card-title { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.job-card-info { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--gray-500); }
.job-card-info span { display: flex; align-items: center; gap: 3px; }

/* 타임세일 카드 — 텍스트 2줄 컴팩트 */
.timesale-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--gray-100);
}

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

.timesale-card.expired {
  opacity: 0.55;
}

.timesale-card-line1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.timesale-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.timesale-card-time {
  font-size: 12px;
  font-weight: 700;
  color: #D97706;
  flex-shrink: 0;
  margin-left: 12px;
  white-space: nowrap;
}

.timesale-card-time.ended {
  color: var(--gray-400);
}

.timesale-card-line2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.timesale-card-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: #FEF3C7;
  color: #D97706;
}

.timesale-card-badge.expired-badge {
  background: var(--gray-100);
  color: var(--gray-400);
}

/* 타임세일 리스트 (그리드 대신 세로 리스트) */
.timesale-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 홈 탭 구인 미리보기 */
.jobs-preview-section {
  padding: 0 16px 24px;
}

body.mode-stores .jobs-preview-section,
body.mode-jobs .jobs-preview-section {
  display: none;
}

.jobs-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-preview-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.job-preview-left {
  flex: 1;
  min-width: 0;
}

.job-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-preview-store {
  font-size: 12px;
  color: var(--gray-500);
}

.job-preview-badge {
  flex-shrink: 0;
  margin-left: 12px;
}

/* 구인 뱃지 (회원 카드용) */
.mini-badge.job {
  background: #E0F2FE;
  color: #0284C7;
}

#homeContent { background: #fff; }

/* 구인 탭 모드 */
body.mode-jobs #homeContent {
  display: none;
}

body.mode-jobs .jobs-panel {
  display: block;
}

/* 구인 상세 모달 */
.job-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.job-detail-modal.show {
  display: flex;
}

.job-detail-content {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.job-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.job-detail-title {
  font-size: 18px;
  font-weight: 700;
}

.job-detail-body {
  padding: 20px 16px;
}

.job-detail-store {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.job-detail-row {
  display: flex;
  margin-bottom: 12px;
}

.job-detail-label {
  width: 80px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  flex-shrink: 0;
}

.job-detail-value {
  flex: 1;
  font-size: 14px;
  color: var(--gray-800);
}

.job-detail-desc {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
}

.job-detail-contact {
  margin-top: 16px;
  padding: 14px;
  background: var(--primary-bg);
  border-radius: 12px;
  text-align: center;
}

.job-detail-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

/* 사업자 정보 푸터 */
.business-info-footer {
  margin-top: 30px;
  padding: 24px 16px;
  background: #f8f8fa;
  text-align: center;
}

/* 약관 링크 */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links .divider {
  color: #ccc;
}

.footer-responsibility {
  background: #f8f5ff;
  border: 1px solid #e9e0ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #555;
  word-break: keep-all;
  text-align: center;
}

.footer-responsibility a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
}

.business-info-title {
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 12px;
}

.business-info-content {
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}

.business-info-content p {
  margin: 2px 0;
}

.business-info-content a {
  color: var(--primary);
  text-decoration: none;
}

.business-info-content a:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 16px;
  font-size: 11px;
  color: #999;
}

/* 정책 링크 */
.policy-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px;
  margin-top: 20px;
}

.policy-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 12px;
}

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

.policy-links .divider {
  color: var(--gray-300);
  font-size: 12px;
}

/* ===== 반응형: 소형 모바일 (360px 이하) ===== */
@media (max-width: 360px) {
    .tab-container { padding: 6px 10px 10px; gap: 4px; }
    .tab-btn { font-size: 11px; padding: 7px 2px; border-radius: 8px; }

    .card-actions { gap: 2px; }
    .card-action { font-size: 10px; }
    .card-notice-label { font-size: 11px; }
    .card-visitor-count { font-size: 28px; }
    .card-visitor-label { font-size: 10px; }

    .main-card { margin: 0 10px 12px; padding: 14px; }

    .nav-label { font-size: 9px; }
    .nav-icon { font-size: 20px; }
    .nav-item { padding: 4px 4px; }

    .chip-btn { padding: 6px 8px; font-size: 11px; }

    .main-cat-tab { font-size: 11px; padding: 5px 8px; }

    .sub-cat-label { font-size: 9px; }
    .sub-cat-icon, .sub-cat-icon2 { width: 42px; height: 42px; font-size: 20px; }

    .jobs-cat-icon { font-size: 18px; }
    .jobs-cat-label { font-size: 10px; }

    .category-slider-container { margin: 0 10px 12px; padding: 10px 8px; }

    .header { padding: 12px 12px; }

    /* 신규 업체 등록 모달 */
    .membership-modal { padding: 12px; }
    .membership-content { padding: 18px 14px; }
    .membership-title { font-size: 17px; }
    .form-group label { font-size: 12px; }
    .form-input, .form-textarea { font-size: 13px; padding: 10px 12px; }
    .form-btn { font-size: 13px; padding: 12px; }
    .naver-search-input { font-size: 13px; padding: 8px 10px; }
    .naver-search-btn { font-size: 12px; padding: 8px 12px; }
    .naver-search-section { padding: 12px; }

    /* 설정 모달 */
    .settings-item-title { font-size: 13px; }
    .settings-item-desc { font-size: 11px; }
}

/* ===== 반응형: 중소형 모바일 (361~390px) ===== */
@media (min-width: 361px) and (max-width: 390px) {
    .tab-btn { font-size: 12px; padding: 7px 3px; }
    .card-action { font-size: 11px; }
    .nav-label { font-size: 10px; }

    .membership-content { padding: 20px 16px; }
    .form-input, .form-textarea { font-size: 14px; }
    .form-btn { font-size: 14px; }
}

/* ===== 반응형: 큰 화면 (500px 이상) ===== */
@media (min-width: 500px) {
    .tab-btn { font-size: 14px; padding: 9px 16px; }
    .card-action { font-size: 13px; }
    .nav-label { font-size: 11px; }
}

/* ============================================
   환영 랜딩 오버레이 (인트로 영상 + 소개 애니메이션)
   ============================================ */
#welcomeOverlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #000;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Step 1: 영상 섹션 */
#welcomeVideoSection {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

.welcome-video-wrap {
    position: relative;
    width: 100%;
}

#introVideo {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-video-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.1);
    pointer-events: none;
}

.welcome-video-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    flex-shrink: 0;
}

.welcome-mute-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 44px; height: 44px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.welcome-mute-btn:active {
    background: rgba(255,255,255,0.3);
}

.welcome-skip-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    transition: background 0.2s;
}

.welcome-skip-btn:active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Step 2: 인트로 소개 섹션 */
#welcomeIntroSection {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: var(--primary-gradient);
    overflow: hidden;
}

#confettiCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

.welcome-intro-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 24px;
    text-align: center;
}

.welcome-logo {
    width: 180px;
    max-width: 50vw;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.welcome-logo.show {
    opacity: 1;
    transform: scale(1);
}

.welcome-typing {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    min-height: 30px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.welcome-typing .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: rgba(255,255,255,0.8);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: welcomeBlink 0.7s infinite;
}

@keyframes welcomeBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    max-width: 380px;
    width: 100%;
}

.welcome-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.welcome-feature-item.show {
    opacity: 1;
    transform: translateY(0);
}

.welcome-feature-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid rgba(255,255,255,0.2);
}

.welcome-feature-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.welcome-explore-btn {
    margin-top: 36px;
    padding: 16px 48px;
    background: rgba(255,255,255,0.95);
    color: var(--primary-dark);
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(10px);
}

.welcome-explore-btn.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.welcome-explore-btn:active {
    transform: scale(0.96);
}

.welcome-dont-show {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    opacity: 0;
}

.welcome-dont-show.show {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.welcome-dont-show input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #fff;
}

/* ============================================
   PC 레이아웃: 모바일 폰 프레임 (769px 이상)
   ============================================ */
@media (min-width: 769px) {
  /* 1. 전체 배경 (폰 바깥) */
  html {
    background: #F5F3FF;
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }

  #safeAreaTop { display: none; }
  .header { background: #fff; padding: 12px 16px; }

  /* 2. 폰 프레임 (가운데 앱 영역) */
  body {
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    position: relative;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.08),
                0 0 15px rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(124, 58, 237, 0.08);
    border-right: 1px solid rgba(124, 58, 237, 0.08);
  }

  /* 3. 하단 네비게이션을 폰 프레임 안에 고정 */
  .bottom-nav {
    max-width: 398px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* 4. fixed 모달: backdrop은 전체 화면, 내부 콘텐츠만 430px 제한 */
  .settings-content,
  .install-content,
  .compare-content,
  .detail-content,
  .membership-content,
  .job-detail-content {
    max-width: 430px;
    margin: 0 auto;
  }

  /* popup-events-content는 기존 520px 유지 */
  .popup-events-content {
    margin: 0 auto;
  }

  /* 검색 모달: 내부 요소만 430px */
  .search-header,
  .search-results {
    max-width: 430px;
    margin: 0 auto;
  }

  /* 5. 가이드 오버레이: 전체 뷰포트 유지 (하이라이트가 absolute+viewport 좌표라 제한하면 안 됨) */
  .guide-overlay {
    /* 모바일과 동일: top:0;left:0;right:0;bottom:0 — 제한 없음 */
  }

  /* 가이드 툴팁: PC에서 폰 프레임 너비 기준 */
  .guide-tooltip {
    width: calc(430px - 40px) !important;
    max-width: 390px;
  }

  /* 6. 튜토리얼 인트로 모달: inline inset:0 override 필요 */
  #tutorialIntroModal {
    width: 430px !important;
    max-width: 430px;
    height: 100vh !important;
    left: 50% !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
  }

  /* 6-1. 공지사항 모달: inline inset:0 override */
  #noticeModal {
    width: 430px !important;
    max-width: 430px;
    height: 100vh !important;
    left: 50% !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
  }

  /* 7. 플로팅 버튼(내 가게 관리): 폰 프레임 내 우측 배치 */
  #storeOwnerFab {
    right: calc(50% - 215px + 16px) !important;
  }

  /* 8. 환영 랜딩 오버레이: inline inset:0 override 필요 */
  #welcomeOverlay {
    width: 430px !important;
    max-width: 430px !important;
    height: 100vh !important;
    left: 50% !important;
    right: auto !important;
    top: 0 !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
  }
}
