/* ===== Halo-Inspired Design System for Minewin v2 ===== */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Halo 디자인 토큰 (HSL 기반) */
    --background: #f5f5f5;
    --foreground: #333;
    --foreground-muted: #737373;
    --primary: hsl(48, 84%, 53%);       /* 골드 옐로 */
    --secondary: hsl(17, 83%, 51%);     /* 오렌지 */
    --gradient-primary: linear-gradient(135deg, hsl(48, 84%, 53%), hsl(17, 83%, 51%));
    --gradient-soft: linear-gradient(180deg, #fafafa, #f5f5f5);

    /* Glass 토큰 */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(232, 176, 56, 0.15);
    --blur-amount: 12px;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --header-height: 60px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    word-break: keep-all;
    text-wrap: balance;
}

/* === Glass Card (halo 핵심 패턴) === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    border-color: rgba(232, 176, 56, 0.2);
}

.glass-card-hover:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* === Gradient Text (halo 패턴) === */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Gradient Button (halo 상담 예약 버튼) === */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(232, 130, 44, 0.2);
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 130, 44, 0.3);
}

/* === Liquid Shape (halo 장식 요소) === */
.liquid-shapes-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.liquid-shape {
    position: absolute;
    border-radius: 60% 40% 70% 30% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 70% 30% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* === Section Badge (halo "Center Introduction" 스타일) === */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(232, 176, 56, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-badge svg {
    width: 16px;
    height: 16px;
}

/* === Animations (halo 패턴) === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-slide-down {
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Header (v1 로직 + v2 간격/로고) === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    padding-top: var(--safe-area-top);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-color: var(--glass-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.app-header.menu-open {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-color: var(--glass-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-glass);
    padding-bottom: 16px;
}

.app-header.scrolled .header-inner,
.app-header.menu-open .header-inner {
    padding: 12px 16px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon { width: 32px; height: 32px; }

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Desktop Nav === */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.desktop-nav-item {
    padding: 6px 0;
    color: var(--foreground);
    opacity: 0.8;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.desktop-nav-item:hover { opacity: 1; }
.desktop-nav-item.active { opacity: 1; font-weight: 600; }

/* 카테고리 구분자 */
.desktop-nav-separator {
    color: var(--foreground-muted);
    opacity: 0.3;
    font-size: 14px;
    user-select: none;
    padding: 0 4px;
}

/* === Hamburger (v1 span 애니메이션) === */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Mobile Menu (v1 통합 드롭다운) === */
.mobile-menu {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.mobile-menu.active {
    display: block;
    animation: menuSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
}

@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mobile-menu-inner {
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    padding: 12px;
    overflow: hidden;
}

.menu-body {
    padding: 4px 0;
}

.mobile-menu.active .menu-item {
    animation: menuSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-category {
    padding: 4px 0;
}

.menu-category + .menu-category {
    border-top: 1px solid var(--glass-border);
    margin-top: 4px;
    padding-top: 8px;
}

.menu-category-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--foreground-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    padding: 4px 8px 0;
    opacity: 0.7;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--foreground);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

.menu-item:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.menu-item.active {
    color: var(--primary);
    font-weight: 600;
}

.menu-item-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-icon svg { width: 20px; height: 20px; }

/* === Responsive: Desktop === */
@media (min-width: 768px) {
    .desktop-nav { display: flex; }
    .hamburger-btn { display: none; }
    .mobile-menu { display: none !important; }
}

/* === Main Content === */
.app-main {
    padding-top: calc(80px + var(--safe-area-top));
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* === Banner Section === */
.banner-section {
    padding: 0 16px;
    position: relative;
    overflow: hidden;
}

.banner-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.banner-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    will-change: transform;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.banner-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.banner-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.35s ease;
    cursor: pointer;
}

.banner-indicator:hover { transform: scale(1.3); }

.banner-indicator.active {
    background: white;
    width: 20px;
    border-radius: 3px;
}

/* Banner Theme Variants */
.banner-theme-light .banner-indicator { background: rgba(25, 25, 25, 0.3); }
.banner-theme-light .banner-indicator.active { background: #191919; }
.banner-theme-light .banner-nav { background: rgba(25, 25, 25, 0.15); color: #191919; }
.banner-theme-light .banner-nav:hover { background: rgba(25, 25, 25, 0.3); }
.banner-theme-dark .banner-indicator { background: rgba(255, 255, 255, 0.5); }
.banner-theme-dark .banner-indicator.active { background: #fff; }
.banner-theme-dark .banner-nav { background: rgba(255, 255, 255, 0.85); color: #000; }
.banner-theme-dark .banner-nav:hover { background: rgba(255, 255, 255, 0.95); }

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease;
}

.banner-carousel:hover .banner-nav {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.banner-nav:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.08);
}

@media (hover: none) {
    .banner-nav { opacity: 0.7; transform: translateY(-50%) scale(1); }
}

.banner-prev { left: 12px; }
.banner-next { right: 12px; }

/* === Products Section (halo 카드 그리드 패턴) === */
.products-section {
    padding: 48px 16px 32px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 16px;
    color: var(--foreground-muted);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Product Card (halo glass-card 패턴) */
.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    will-change: transform;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    border-color: rgba(232, 176, 56, 0.2);
}

.product-card:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-bottom {
    margin-top: auto;
}

.product-card-price {
    font-size: 14px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card-badge {
    display: inline-block;
    font-size: 10px;
    background: rgba(232, 176, 56, 0.12);
    color: hsl(17, 83%, 45%);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 6px;
}

/* === RRA Table (halo glass-card 안의 테이블) === */
.rra-section {
    padding: calc(var(--header-height) + var(--safe-area-top) + 16px) 16px 32px;
}

.rra-table-card {
    overflow: hidden;
}

.rra-table-card .table-scroll {
    overflow-x: auto;
}

.rra-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rra-table-card thead {
    border-bottom: 1px solid var(--glass-border);
}

.rra-table-card th {
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--foreground-muted);
    white-space: nowrap;
}

.rra-table-card td {
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.rra-table-card tr:hover {
    background: rgba(0, 0, 0, 0.015);
}

.rra-table-card .status-ok {
    color: hsl(142, 76%, 36%);
    font-weight: 600;
}

/* === Footer (halo Footer 패턴) === */
.app-footer {
    margin-top: 64px;
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--foreground-muted);
    line-height: 1.6;
}

.footer-copyright {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--foreground-muted);
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* === Loading Skeleton === */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* === Safe Area === */
.safe-area-bottom { height: var(--safe-area-bottom); }

/* === Responsive === */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .section-header h2 { font-size: 40px; }
    .banner-section { padding: 0 16px; }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
}

/* === Product Card Stagger Animation === */
.product-card { animation: fadeInUp 0.5s ease-out both; }
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(n+7) { animation-delay: 0.35s; }

/* === Scrollbar (halo 스타일) === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 2px; }

/* ===== 뉴스 캘린더 (카드 타임라인) ===== */
.news-calendar-section {
    padding: calc(var(--header-height) + var(--safe-area-top) + 32px) 16px 60px;
    max-width: 960px;
    margin: 0 auto;
}

.news-calendar {
    position: relative;
}

/* ===== 타임라인 카드 리스트 ===== */
.tl {
    position: relative;
    padding-left: 28px;
    max-width: 720px;
    margin: 0 auto;
}

/* 수직 연결선 */
.tl::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--glass-border) 50%);
    border-radius: 1px;
}

/* 타임라인 항목 공통 */
.tl-item {
    position: relative;
    padding-bottom: 20px;
    animation: fadeInUp 0.5s ease-out both;
}

/* === 도트 공통 === */
.tl-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    box-sizing: border-box;
}

/* 오늘 도트 (18px) */
.tl-dot--today {
    width: 18px;
    height: 18px;
    left: -29px;
    top: 2px;
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(232, 130, 44, 0.2);
}

/* 그룹 도트 (10px) */
.tl-dot--group {
    width: 10px;
    height: 10px;
    left: -25px;
    top: 7px;
    border: 2px solid var(--background);
}
.tl-dot--group.ongoing { background: #4CAF50; }
.tl-dot--group.upcoming { background: #2196F3; }
.tl-dot--group.ended { background: #bbb; }

/* 이벤트 도트 (8px) */
.tl-dot--event {
    width: 8px;
    height: 8px;
    left: -24px;
    top: 24px;
    background: var(--glass-border);
    border: 2px solid var(--background);
}

/* === 오늘 마커 === */
.tl-today {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    padding: 4px 0;
}

/* === 그룹 헤더 === */
.tl-group-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.tl-group-label.ended { color: var(--foreground-muted); }

.tl-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--glass-border);
    font-size: 11px;
    font-weight: 600;
    color: var(--foreground-muted);
}

/* === 이벤트 카드 === */
.tl-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

/* 카드 이미지 */
.tl-card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}
.tl-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tl-card:hover .tl-card-img {
    transform: scale(1.03);
}

/* 카드 본문 */
.tl-card-body {
    padding: 16px;
}

.tl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* 상태 배지 */
.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.tl-badge.ongoing {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}
.tl-badge.upcoming {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}
.tl-badge.ended {
    background: rgba(0, 0, 0, 0.05);
    color: #999;
}
.tl-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.tl-badge.ongoing .tl-badge-dot { background: #4CAF50; }
.tl-badge.upcoming .tl-badge-dot { background: #2196F3; }
.tl-badge.ended .tl-badge-dot { background: #bbb; }

/* D-day */
.tl-dday {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}
.tl-dday.ongoing {
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.08);
}
.tl-dday.upcoming {
    color: #1565c0;
    background: rgba(33, 150, 243, 0.08);
}
.tl-dday.ended {
    color: #999;
}

/* 카드 제목 */
.tl-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
    line-height: 1.3;
}

/* 기간 */
.tl-card-period {
    font-size: 13px;
    color: var(--foreground-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tl-card-period svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* 설명 */
.tl-card-desc {
    font-size: 13px;
    color: var(--foreground);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: var(--background);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--glass-border);
}

/* 액션 버튼 */
.tl-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tl-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tl-card-actions a.primary {
    background: var(--foreground);
    color: #fff;
}
.tl-card-actions a.primary:hover {
    background: #555;
}
.tl-card-actions a.secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--glass-border);
}
.tl-card-actions a.secondary:hover {
    background: var(--glass-border);
}

/* 종료 이벤트 카드 — 흐리게 */
.tl-item--ended .tl-card {
    opacity: 0.55;
    filter: grayscale(0.4);
    transition: opacity 0.3s, filter 0.3s, transform 0.2s, box-shadow 0.2s;
}
.tl-item--ended .tl-card:hover {
    opacity: 0.85;
    filter: grayscale(0);
}

/* 빈 상태 */
.calendar-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--foreground-muted);
    font-size: 14px;
}

/* === 모바일 대응 === */
@media (max-width: 600px) {
    .tl {
        padding-left: 22px;
    }
    .tl::before {
        left: 5px;
    }
    .tl-dot--today {
        width: 14px;
        height: 14px;
        left: -21px;
        top: 4px;
    }
    .tl-dot--group {
        left: -19px;
        top: 7px;
    }
    .tl-dot--event {
        left: -18px;
        top: 20px;
    }
    .tl-card-img {
        aspect-ratio: 16 / 9;
    }
    .tl-card-body {
        padding: 14px;
    }
    .tl-card-title {
        font-size: 15px;
    }
    .tl-card-desc {
        font-size: 12px;
    }
    .tl-card-actions a {
        padding: 7px 12px;
        font-size: 12px;
    }
    .tl-today {
        font-size: 14px;
    }

    .product-month-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .product-all-card-body {
        padding: 8px;
    }

    .product-all-card-name {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .product-all-card-price {
        font-size: 12px;
    }
}

/* ===== 뉴스 섹션 (분류 탭) ===== */
.news-section {
    padding: calc(var(--header-height) + var(--safe-area-top) + 16px) 16px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-layout {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

/* 좌측 분류 탭 */
.news-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: calc(var(--header-height) + var(--safe-area-top) + 32px);
    align-self: flex-start;
}

.news-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground-muted);
    transition: all 0.2s ease;
    text-align: left;
}

.news-cat-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.news-cat-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--foreground);
}

.news-cat-btn.active {
    background: var(--foreground);
    color: #fff;
}

/* 우측 콘텐츠 */
.news-content {
    flex: 1;
    min-width: 0;
}

.news-content-loading {
    padding: 20px 0;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--foreground-muted);
    font-size: 15px;
}

/* === 이벤트 카드 (기존 tl-card 스타일 재활용) === */
.event-group {
    margin-bottom: 24px;
}

.event-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 4px;
}

.event-group-label.ongoing { color: #2e7d32; }
.event-group-label.upcoming { color: #1565c0; }
.event-group-label.ended { color: var(--foreground-muted); }

.event-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.event-group-dot.ongoing { background: #4CAF50; }
.event-group-dot.upcoming { background: #2196F3; }
.event-group-dot.ended { background: #bbb; }

.event-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
    color: var(--foreground-muted);
}

.event-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    display: flex;
    flex-direction: row;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.event-card-img-link {
    display: block;
    flex: 0 0 200px;
    overflow: hidden;
}

.event-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-img {
    transform: scale(1.03);
}

.event-card-body {
    padding: 16px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-desc {
    font-size: 13px;
    color: var(--foreground-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.event-badge.ongoing {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.event-badge.upcoming {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

.event-badge.ended {
    background: rgba(0, 0, 0, 0.05);
    color: #999;
}

.event-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.event-badge.ongoing .event-badge-dot { background: #4CAF50; }
.event-badge.upcoming .event-badge-dot { background: #2196F3; }
.event-badge.ended .event-badge-dot { background: #bbb; }

.event-card-period {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--foreground-muted);
}

.event-card-period svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.event-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-card-actions a {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.event-card-actions a.primary {
    background: var(--foreground);
    color: #fff;
}

.event-card-actions a.primary:hover {
    background: #555;
}

.event-card-actions a.secondary {
    background: var(--background);
    color: var(--foreground);
}

.event-card-actions a.secondary:hover {
    background: var(--glass-border);
}

/* === 오늘의 특가 카드 === */
.pick-group {
    margin-bottom: 32px;
}

.pick-group--today {
    position: relative;
}

.pick-group--today::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.pick-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-left: 4px;
}

.pick-date-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--foreground);
}

.pick-group--today .pick-date-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pick-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 130, 44, 0.3);
}

.pick-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.pick-card {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.pick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pick-card--upcoming {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.pick-card--upcoming:hover {
    opacity: 0.85;
    filter: grayscale(0);
}

.pick-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
}

.pick-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.pick-card:hover .pick-card-img img {
    transform: scale(1.05);
}

.pick-card-body {
    padding: 12px;
}

.pick-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick-card-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pick-price-original {
    font-size: 12px;
    color: var(--foreground-muted);
    text-decoration: line-through;
}

.pick-price-sale {
    font-size: 15px;
    font-weight: 700;
    color: #e53935;
}

.pick-card-discount {
    font-size: 12px;
    color: #e53935;
    font-weight: 600;
}

/* === Xiaomi 살펴보기 카드 === */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.explore-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.explore-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f9f9f9;
}

.explore-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.explore-card:hover .explore-card-img img {
    transform: scale(1.03);
}

.explore-card-body {
    padding: 16px;
}

.explore-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.explore-card-desc {
    font-size: 13px;
    color: var(--foreground-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === 반응형 === */
@media (max-width: 768px) {
    .news-layout {
        flex-direction: column;
    }

    .news-sidebar {
        flex: none;
        position: static;
        width: 100%;
    }

    .news-categories {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .news-cat-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 13px;
    }

    .news-cat-btn svg {
        width: 18px;
        height: 18px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-card-img-link {
        flex: none;
        aspect-ratio: 16 / 9;
    }

    .pick-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }

    .product-month-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .product-all-card-body {
        padding: 8px;
    }

    .product-all-card-name {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .product-all-card-price {
        font-size: 12px;
    }

    .product-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .product-detail-header {
        flex-direction: column;
    }

    .product-detail-img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ===== 신제품 리스트 전체 ===== */
.products-all-section {
    padding: calc(var(--header-height) + var(--safe-area-top) + 16px) 16px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-all-content {
    margin-top: 24px;
}

.products-all-loading {
    padding: 20px 0;
}

.product-month-group {
    margin-bottom: 32px;
}

.product-month-label {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-month-label::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.ancient-icon {
    font-size: 14px;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ancient-icon:hover {
    opacity: 1;
}

.product-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-all-card {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: block;
}

.product-all-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-all-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
}

.product-all-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.product-all-card:hover .product-all-card-img img {
    transform: scale(1.05);
}

.product-all-card-body {
    padding: 12px;
}

.product-all-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-all-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
}

/* ===== 제품 상세 모달 ===== */
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.product-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground-muted);
    transition: all 0.2s ease;
    z-index: 1;
}

.product-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--foreground);
}

.product-detail {
    padding: 24px;
}

.product-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.product-detail-img {
    flex: 0 0 160px;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f9f9f9;
}

.product-detail-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-detail-info {
    flex: 1;
    min-width: 0;
}

.product-detail-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-detail-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 12px;
}

.product-detail-section {
    margin-bottom: 20px;
}

.product-detail-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-detail-label .label-arrow {
    display: none;
    font-size: 12px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .product-detail-label {
        cursor: pointer;
        padding: 10px 14px;
        background: var(--background);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-sm);
        margin-bottom: 0;
    }
    
    .product-detail-label .label-arrow {
        display: block;
    }
    
    .product-detail-label.active .label-arrow {
        transform: rotate(180deg);
    }
}

.product-detail-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-detail-option {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    background: var(--background);
    color: var(--foreground);
}

/* ===== 가격 변동 히스토리 (미니멀리즘) ===== */
.price-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fafafa;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.price-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13px;
    transition: background 0.15s ease;
}

.price-history-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.price-history-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.price-history-date {
    font-size: 12px;
    color: var(--foreground-muted);
    font-weight: 500;
    min-width: 36px;
    flex-shrink: 0;
}

.price-history-value {
    font-weight: 600;
    color: var(--foreground);
    flex: 1;
}

.price-change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-change.price-down {
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.1);
}

.price-change.price-up {
    color: #c62828;
    background: rgba(198, 40, 40, 0.08);
}

.price-change.price-initial {
    color: var(--foreground-muted);
    background: rgba(0, 0, 0, 0.04);
}

.product-detail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    text-decoration: none;
}

.product-detail-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .product-detail-options {
        display: none;
        margin-top: 12px;
    }
    
    .product-detail-options.show {
        display: flex;
    }
}

/* ===== RRA 적합성 인증 리스트 페이지 ===== */

.rra-section {
    padding: calc(var(--header-height) + var(--safe-area-top) + 16px) 16px 40px;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 통계 요약 카드 */
.rra-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.rra-stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rra-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
}

.rra-stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.rra-stat-label {
    font-size: 13px;
    color: var(--foreground-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* 검색/필터 바 */
.rra-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    position: relative;
    z-index: 10;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.rra-search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
    isolation: isolate;
}

.rra-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--foreground-muted);
    pointer-events: none;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.rra-search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--foreground);
    outline: none;
    transition: all 0.3s ease;
}

.rra-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 176, 56, 0.15);
}

.rra-search-box input::placeholder {
    color: var(--foreground-muted);
}

.rra-filter-group {
    display: flex;
    gap: 8px;
}

.rra-filter-group .rra-select-trigger {
    min-width: 110px;
}

.rra-filter-group .notif-select-value {
    padding: 12px 14px;
    font-size: 14px;
}

/* 결과 정보 */
.rra-result-info {
    font-size: 13px;
    color: var(--foreground-muted);
    margin-bottom: 16px;
    padding: 0 4px;
}

/* 인증 리스트 */
.rra-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* RRA 카드 (모바일) */
.rra-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out both;
}

.rra-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    border-color: rgba(232, 176, 56, 0.2);
}

.rra-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.rra-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.4;
}

.rra-card-status {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.rra-card-status.status-registered {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.rra-card-status.status-certified {
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.rra-card-status.status-pending {
    background: rgba(232, 176, 56, 0.1);
    color: var(--primary);
}

.rra-card-status.status-other {
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground-muted);
}

.rra-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.rra-card-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rra-card-detail-label {
    font-size: 11px;
    color: var(--foreground-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rra-card-detail-value {
    font-size: 13px;
    color: var(--foreground);
    font-weight: 500;
}

/* RRA 테이블 (데스크톱) */
.rra-table-wrapper {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rra-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rra-table thead {
    background: rgba(0, 0, 0, 0.03);
}

.rra-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--foreground-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.rra-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--foreground);
    vertical-align: middle;
}

.rra-table tbody tr {
    transition: background 0.2s ease;
}

.rra-table tbody tr:hover {
    background: rgba(232, 176, 56, 0.04);
}

.rra-table tbody tr:last-child td {
    border-bottom: none;
}

.rra-table .rra-card-status {
    font-size: 11px;
    padding: 3px 8px;
}

/* 빈 상태 */
.rra-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--foreground-muted);
}

.rra-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.rra-empty p {
    font-size: 15px;
    margin-bottom: 8px;
}

.rra-empty small {
    font-size: 13px;
    opacity: 0.7;
}

/* 로딩 스켈레톤 */
.rra-loading .loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 반응형 */
@media (min-width: 769px) {
    .rra-card-list {
        display: none;
    }

    .rra-table-wrapper {
        display: block;
    }
}

@media (max-width: 768px) {
    .rra-filter-bar {
        flex-direction: column;
    }

    .rra-search-box {
        width: 100%;
    }

    .rra-filter-group {
        width: 100%;
    }

    .rra-filter-group .rra-select-trigger {
        flex: 1;
        min-width: 0;
    }

    .rra-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .rra-stat-number {
        font-size: 22px;
    }

    .rra-stat-label {
        font-size: 11px;
    }
}

/* ===== 알림 페이지 ===== */

.notifications-section {
    padding: calc(var(--header-height) + var(--safe-area-top) + 16px) 16px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.notifications-layout {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

/* 좌측 분류 탭 */
.notifications-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: calc(var(--header-height) + var(--safe-area-top) + 32px);
    align-self: flex-start;
}

.notifications-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground-muted);
    transition: all 0.2s ease;
    text-align: left;
}

.notif-cat-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notif-cat-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--foreground);
}

.notif-cat-btn.active {
    background: var(--foreground);
    color: #fff;
}

/* 우측 콘텐츠 */
.notifications-content {
    flex: 1;
    min-width: 0;
}

.notifications-content-loading {
    padding: 20px 0;
}

/* 권한 안내 */
.notif-permission-prompt {
    text-align: center;
    padding: 48px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.notif-permission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(232, 176, 56, 0.1);
    margin-bottom: 20px;
}

.notif-permission-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.notif-permission-prompt h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--foreground);
}

.notif-permission-prompt p {
    font-size: 14px;
    color: var(--foreground-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.notif-permission-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(232, 130, 44, 0.25);
}

.notif-permission-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 130, 44, 0.35);
}

.notif-permission-btn:active {
    transform: translateY(0);
    opacity: 0.85;
}

/* 알림 내역 */
.notif-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-history-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
}

.notif-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.notif-history-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
}

.notif-history-time {
    font-size: 12px;
    color: var(--foreground-muted);
    white-space: nowrap;
}

.notif-history-body {
    font-size: 14px;
    color: var(--foreground-muted);
    line-height: 1.5;
}

.notif-history-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.notif-history-badge.badge-product {
    background: rgba(232, 176, 56, 0.1);
    color: var(--primary);
}

.notif-history-badge.badge-event {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.notif-history-badge.badge-rra {
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.notif-history-badge.badge-explore {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

/* 알림 설정 */
.notif-settings-group {
    margin-bottom: 24px;
}

.notif-settings-blur {
    filter: blur(4px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.notif-settings-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.notif-settings-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.notif-settings-item:has(.notif-select-trigger.active) {
    z-index: 10;
}

.notif-settings-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.notif-settings-item-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.notif-settings-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
}

.notif-settings-item-desc {
    font-size: 13px;
    color: var(--foreground-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* 라디오 버튼 그룹 */
.notif-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 모바일 드롭다운 */
.notif-select-trigger-mobile {
    display: none;
}

.notif-select-trigger {
    position: relative;
    cursor: pointer;
    min-width: 120px;
}

.notif-select-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.notif-select-arrow {
    font-size: 10px;
    color: var(--foreground-muted);
    transition: transform 0.3s ease;
}

.notif-select-trigger.active .notif-select-arrow {
    transform: rotate(180deg);
}

.notif-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 140px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glass), 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.notif-select-trigger.active .notif-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-select-option {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--foreground);
    transition: background 0.2s ease;
    cursor: pointer;
}

.notif-select-option:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.notif-select-option:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.notif-select-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.notif-select-option.active {
    background: rgba(232, 176, 56, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.notif-radio-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--foreground-muted);
    transition: all 0.2s ease;
}

.notif-radio-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--foreground);
}

.notif-radio-btn.active {
    background: var(--foreground);
    color: #fff;
    border-color: var(--foreground);
}

/* 토글 스위치 */
.notif-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.notif-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.notif-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.notif-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notif-toggle input:checked + .notif-toggle-slider {
    background: var(--gradient-primary);
}

.notif-toggle input:checked + .notif-toggle-slider:before {
    transform: translateX(22px);
}

/* 오늘의 특가 필터 */
.notif-daily-picks-filter {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.notif-filter-section {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.notif-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.notif-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--foreground);
}

.notif-filter-label svg {
    color: var(--foreground-muted);
}

.notif-filter-desc {
    font-size: 12px;
    color: var(--foreground-muted);
    line-height: 1.5;
}

.notif-toggle-sm {
    width: 40px;
    height: 22px;
}

.notif-toggle-sm .notif-toggle-slider:before {
    height: 16px;
    width: 16px;
}

.notif-toggle-sm input:checked + .notif-toggle-slider:before {
    transform: translateX(18px);
}

/* 오늘의 특가 검색 */
.notif-daily-picks-search {
    margin-top: 12px;
}

.notif-search-box {
    position: relative;
    margin-bottom: 12px;
}

.notif-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--foreground-muted);
    pointer-events: none;
}

.notif-search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    font-size: 14px;
    color: var(--foreground);
    outline: none;
    transition: all 0.3s ease;
}

.notif-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 176, 56, 0.15);
}

.notif-search-box input::placeholder {
    color: var(--foreground-muted);
}

.notif-search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
}

.notif-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.notif-search-result-item:last-child {
    border-bottom: none;
}

.notif-search-result-item:hover {
    background: rgba(232, 176, 56, 0.06);
}

.notif-search-result-item.selected {
    background: rgba(232, 176, 56, 0.1);
}

.notif-search-result-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.notif-search-result-info {
    flex: 1;
    min-width: 0;
}

.notif-search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-search-result-price {
    font-size: 12px;
    color: var(--foreground-muted);
}

.notif-selected-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.notif-selected-product {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(232, 176, 56, 0.1);
    border-radius: 999px;
    font-size: 13px;
    color: var(--foreground);
}

.notif-selected-product-remove {
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: var(--foreground-muted);
    transition: color 0.2s ease;
}

.notif-selected-product-remove:hover {
    color: #c62828;
}

/* 빈 상태 */
.notif-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--foreground-muted);
}

.notif-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.notif-empty p {
    font-size: 15px;
    margin-bottom: 8px;
}

.notif-empty small {
    font-size: 13px;
    opacity: 0.7;
}

/* 반응형 */
@media (max-width: 768px) {
    .notifications-layout {
        flex-direction: column;
    }

    .notifications-sidebar {
        flex: none;
        position: static;
        margin: 0 auto;
    }

    .notifications-categories {
        flex-direction: row;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .notifications-categories::-webkit-scrollbar {
        display: none;
    }

    .notif-cat-btn {
        flex-shrink: 0;
        padding: 10px 14px;
    }

    .notif-cat-btn svg {
        width: 18px;
        height: 18px;
    }

    .notif-settings-item-header {
        flex-direction: row;
        align-items: center;
    }

    .notif-radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
    }

    .notif-radio-group-pc {
        display: none;
    }

    .notif-select-trigger-mobile {
        display: block;
    }

    .notif-radio-btn {
        justify-content: center;
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .notif-radio-group {
        flex-wrap: nowrap;
    }

    .notif-select-trigger-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .rra-card-details {
        grid-template-columns: 1fr;
    }
}
