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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

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

/* 페이지 전환 애니메이션 */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page.active {
    display: block;
}

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

/* 헤더 스타일 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #666;
}

/* 검색 섹션 */
.search-section {
    background: white;
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

/* iOS 자동 줌 방지 및 접근성 개선 */
.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 16px; /* iOS에서 자동 줌 방지 */
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

/* 카테고리 카드 */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

ul.categories {
    list-style: none;
}

.category-card, .categories button.category-card {
  all: unset;
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e1e5e9;
  margin: 0;
  font-size: 1rem;
  color: #222;
  box-sizing: border-box;
}
button.category-card {
    border:none;
    background:none;
    width:100%;
    text-align:left;
    padding:0;
    margin:0;
    box-shadow:none;
}
button.category-card:focus {
    outline:3px solid #667eea;
    outline-offset:2px;
}

.logo-text {
    display: inline;
}

@media (max-width: 768px) {
    .category-card, .categories button.category-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 10px;
    }
}

.category-card:hover, .categories button.category-card:hover,
.category-card:focus, .categories button.category-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    background: #f8f9fa;
    cursor: pointer;
    outline: none;
}

.category-card:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.category-desc {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 인기 업체 섹션 */
.popular-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 18px;
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 업체 카드 그리드 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.shop-card, button.shop-card {
  all: unset;
  display: block;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e1e5e9;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.shop-card:hover, button.shop-card:hover,
.shop-card:focus, button.shop-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
  outline: none;
}
.shop-card:focus-visible, button.shop-card:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}
.shop-card::before, button.shop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shop-card:hover::before, button.shop-card:hover::before {
  opacity: 1;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.shop-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.discount-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.shop-location {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.shop-description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

.discounted-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #ffd700;
}

/* 플로팅 버튼 */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.floating-action:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.floating-action.visible {
    opacity: 1;
    visibility: visible;
}

/* 뒤로가기 버튼 */
.back-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 상세 페이지 스타일 */
.detail-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.menu-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.menu-item.clickable {
    cursor: pointer;
}

.menu-item.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #e8f0fe;
    border-color: #667eea;
}

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

.item-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.item-time {
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 시간별 색상 */
.time-60 {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.time-90 {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.time-120 {
    background: linear-gradient(45deg, #FF9800, #F57C00);
}

.time-150 {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
}

.item-desc {
    color: #666;
    margin-bottom: 15px;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original {
    text-decoration: line-through;
    color: #999;
}

.current {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
}

.discount {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* 기본정보 섹션 */
.info-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    font-size: 1.4rem;
}

.info-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.info-value {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* 연락 버튼 */
.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.contact-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin: 0 2px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
}
.call-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
}
.call-btn:hover {
    background: #667eea;
    color: #fff;
}
.kakao-btn {
    background: #fee500;
    color: #3c1e1e;
    border: 1px solid #e5c900;
}
.kakao-btn:hover {
    background: #ffe066;
    color: #3c1e1e;
}

.sms-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.sms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.menu-select-text {
    text-align: center;
    color: #667eea;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 통계 배지 */
.stats {
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

/* 검색 결과 없음 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-results p {
    color: #999;
}

/* 로딩 스피너 */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

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

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

/* 반응형 디자인 - 모바일 최적화 (밝은 테마·시인성 강화) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        background: #f0f4f8;
        color: #1a1a1a;
    }
    
    .container {
        padding: 8px;
        max-width: 100%;
    }
    
    /* 헤더: 흰 배경으로 가독성 확보 */
    .header {
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .logo {
        font-size: 1.3rem;
        gap: 5px;
        margin-bottom: 3px;
    }
    
    .logo-svg {
        display: inline-block; /* 모바일에서도 로고 표시 */
        width: 30px;
        height: 30px;
        vertical-align: middle;
        margin-right: 5px;
    }
    
    .logo-text {
        display: inline;
        vertical-align: middle;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    /* 검색 섹션: 흰 배경 */
    .search-section {
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .search-bar {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .search-input {
        font-size: 16px; /* iOS 자동 확대 방지 */
        padding: 10px 15px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 카테고리 카드 - 모바일에서 1열, 밝은 배경 */
    .categories {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .category-card {
        background: #ffffff;
        border: 1px solid #e8ecf0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .category-icon {
        font-size: 1.4rem;
        margin-bottom: 0;
    }
    
    .category-title {
        font-size: 0.95rem;
        margin-bottom: 2px;
        color: #1a1a1a;
    }
    
    .category-desc {
        font-size: 0.75rem;
        color: #555;
    }
    
    .category-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* 인기 업체 섹션: 밝은 카드 */
    .popular-section {
        padding: 12px 14px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .popular-section .section-title {
        color: #1a1a1a;
    }
    
    .popular-section p {
        color: #444;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    /* 업체 카드 그리드 - 모바일에서 1열 */
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .shop-card {
        padding: 14px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e8ecf0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .shop-name {
        color: #1a1a1a;
    }
    
    .shop-description,
    .shop-location {
        color: #444;
    }
    
    .shop-header {
        margin-bottom: 6px;
    }
    
    .shop-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .discount-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .shop-location {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    
    .shop-description {
        font-size: 0.8rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .price-section {
        margin-bottom: 4px;
        gap: 8px;
    }
    
    .original-price {
        font-size: 0.75rem;
    }
    
    .discounted-price {
        font-size: 0.95rem;
    }
    
    .rating {
        font-size: 0.8rem;
    }
    
    .stars {
        font-size: 0.7rem;
    }
    
    /* 뒤로가기 버튼 */
    .back-btn {
        padding: 10px 20px;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
    
    /* 상세 페이지 */
    .detail-header {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    /* 기본정보 섹션 */
    .info-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-item {
        gap: 8px;
    }
    
    .info-icon {
        font-size: 1.1rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    /* 연락 버튼 */
    .contact-buttons {
        flex-direction: row;
        gap: 8px;
        margin-top: 12px;
    }
    
    .contact-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* 메뉴 그리드 */
    .menu-grid {
        gap: 10px;
    }
    
    .menu-item {
        padding: 12px;
        border-radius: 10px;
    }
    
    .item-header {
        margin-bottom: 6px;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-time {
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 10px;
        font-weight: 600;
    }
    
    .item-desc {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .item-price {
        gap: 6px;
    }
    
    .current {
        font-size: 1.1rem;
    }
    
    .original {
        font-size: 0.75rem;
    }
    
    .discount {
        padding: 2px 5px;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    
    .menu-select-text {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* 플로팅 버튼 */
    .floating-action {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 15px;
        right: 15px;
    }
    
    /* 전체 업체 보기 버튼 */
    #viewAllBtn {
        padding: 12px 30px !important;
        font-size: 1rem !important;
    }
    
    /* 통계 배지 */
    .stats {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    /* 지역별 검색 제목 */
    h2 {
        font-size: 0.95rem !important;
    }
    
    /* 모바일 최적화 - 한 화면에 더 많이 보이도록 */
    p[style*="text-align: center"] {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }
    
    /* 지역별 검색 여백 조정 */
    div[style*="margin-top: 20px"] {
        margin-top: 12px !important;
    }
    
    /* 전체 업체 보기 버튼 위치 */
    div[style*="margin-top: 30px"] {
        margin-top: 15px !important;
    }
}

/* 초소형 화면 최적화 */
@media (max-width: 375px) {
    .header {
        padding: 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-svg {
        width: 25px;
        height: 25px;
    }
    
    .search-section {
        padding: 10px;
    }
    
    .popular-section {
        padding: 10px;
    }
    
    .category-card {
        padding: 8px;
        gap: 10px;
    }
    
    .category-icon {
        font-size: 1.2rem;
    }
    
    .shop-card {
        padding: 10px;
    }
    
    .shop-name {
        font-size: 0.9rem;
    }
    
    .discount-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* 접근성 개선 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 포커스 스타일 */
button:focus,
a:focus,
input:focus,
.category-card:focus,
.shop-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* 스킵 네비게이션 */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-nav:focus {
    top: 0;
}

/* 메뉴 그룹화 스타일 */
.menu-group {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.menu-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.menu-group-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}
.menu-group-name .menu-tagukgi {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin-left: 0.25em;
    object-fit: contain;
}
.menu-group-name .menu-thaiflag {
    width: 1.1em;
    height: 1.1em;
}

.menu-group-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.menu-group-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.menu-group-hint {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.modal-subtitle {
    color: #666;
    font-size: 1rem;
}

.time-options {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.time-option {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-option:hover {
    border-color: #667eea;
    background: #e8f0fe;
    transform: translateY(-2px);
}

.time-option.selected {
    border-color: #667eea;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.time-info {
    flex: 1;
}

.time-duration {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.time-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.time-price {
    text-align: right;
}

.price-current {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.price-original {
    text-decoration: line-through;
    font-size: 0.9rem;
    opacity: 0.7;
}

.price-discount {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 5px;
    display: inline-block;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.modal-btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.modal-btn-reserve {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.modal-btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .time-option {
        padding: 15px;
    }

    .time-duration {
        font-size: 1.1rem;
    }

    .price-current {
        font-size: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        padding: 12px 20px;
    }
}

/* 모바일 성능 최적화 */
@media (max-width: 768px) {
    /* 모바일에서 무거운 효과 제거 */
    .header {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 모바일에서 애니메이션 최적화 */
    .category-card:hover,
    .shop-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 모바일에서 그라데이션 최적화 */
    body {
        background: #667eea;
    }
    
    /* 모바일에서 폰트 크기 최적화 */
    .logo {
        font-size: 1.5rem;
    }
    
    .search-input {
        font-size: 16px; /* iOS에서 줌 방지 */
    }
    
    /* 모바일에서 패딩 최적화 */
    .container {
        padding: 10px;
    }
    
    .header,
    .search-section {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* 저사양 기기 최적화 */
@media (max-width: 480px) {
    .header {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .search-section {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 애니메이션 완전 제거 */
    .category-card,
    .shop-card {
        transition: none;
    }
    
    .category-card:hover,
    .shop-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .search-input {
        border: 2px solid #000;
    }
    
    .search-btn {
        background: #000;
        color: #fff;
    }
}

.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}
.floating-btn {
    width: auto;
    min-width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(102,126,234,0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    border: none;
    outline: none;
    padding: 0 20px 0 16px;
    gap: 10px;
    font-size: 1.1rem;
}
.floating-btn .cta-icon {
    font-size: 1.5em;
    margin-right: 8px;
}
.floating-btn .cta-label {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.floating-btn.kakao-btn {
    background: #fee500;
    color: #3c1e1e;
    border: 1.5px solid #e5c900;
}
.floating-btn:hover {
    transform: translateY(-4px) scale(1.07);
    box-shadow: 0 8px 24px rgba(102,126,234,0.22);
}
.floating-btn.kakao-btn:hover {
    background: #ffe066;
}
/* 대표전화 버튼: 메인 보라 계열과 대비되는 색으로 시인성 강화 */
.floating-btn.call-btn {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.3);
    font-weight: 700;
}
.floating-btn.call-btn:hover {
    background: linear-gradient(145deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 6px 28px rgba(13,148,136,0.45), 0 0 0 2px rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
    .floating-cta {
        right: 8px;
        bottom: 12px;
        gap: 8px;
    }
    .floating-btn {
        min-width: 44px;
        height: 44px;
        padding: 0 12px 0 10px;
        font-size: 1rem;
    }
    .floating-btn .cta-label {
        font-size: 0.98rem;
    }
}

/* v5 mobile touch-and-readability improvements */
@media (max-width: 768px) {
  .categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .category-card { min-height:78px; padding:12px 10px; border-radius:12px; align-items:center; }
  .category-title { font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
  .category-desc { font-size:.82rem; line-height:1.35; }
  .search-input { min-height:48px; font-size:16px; }
  .search-btn { min-height:48px; font-size:16px; }
  .shop-name { font-size:1.06rem; line-height:1.4; }
  .shop-description { font-size:.9rem; line-height:1.5; }
  .contact-btn { min-height:44px; }
}
@media (max-width: 350px) { .categories { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
