/* =============================================
   DealRadar - style.css
   역할: 전체 사이트 스타일 (모바일 퍼스트 반응형)
   인코딩: UTF-8
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Poppins:wght@400;600;700;800;900&display=swap');

/* =============================================
   CSS 변수 (라이트/다크 모드)
   ============================================= */
:root {
    /* 메인 컬러 - 트렌디한 Electric Indigo & Soft Violet */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --secondary: #10B981;
    --accent: #F59E0B;
    --accent-dark: #D97706;

    /* 플랫폼 컬러 */
    --coupang: #E02020;
    --naver: #03C75A;
    --elevenst: #E33535;
    --oliveyoung: #84C516;
    --kurly: #5F0080;
    --musinsa: #111111;
    --gmarket: #0076FF;
    --auction: #E34A00;
    --ssg: #E02020;
    --kakao: #FEE500;

    /* 라이트 모드 (Slate 그레이 기반의 깔끔한 모던 톤) */
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-secondary: #F1F5F9;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    --header-bg: rgba(255, 255, 255, 0.8);
    --input-bg: #FFFFFF;
}

/* 다크 모드 (Sophisticated Slate-Navy 톤) */
[data-theme="dark"] {
    --bg: #0B0F19;
    --bg-card: #151B2C;
    --bg-secondary: #1E2640;
    --text: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #222C44;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(11, 15, 25, 0.8);
    --input-bg: #151B2C;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =============================================
   헤더
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: background 0.3s;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    line-height: 1;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary), #FF6B7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-slogan {
    font-size: 10px;
    color: var(--text-muted);
    display: none;
}

/* 검색창 */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--primary);
}

/* 헤더 액션 버튼들 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.btn-submit a {
    color: white;
}

/* 알림 배지 */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50px;
    min-width: 16px;
    text-align: center;
    border: 2px solid var(--bg-card);
}

/* =============================================
   히어로 배너
   ============================================= */
.hero-banner {
    background: linear-gradient(135deg, #1E1E2E 0%, #2D1B3D 50%, #1A2535 100%);
    padding: 28px 16px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 71, 87, 0.08) 0%, transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s;
}

.hero-stat-card:hover {
    transform: translateY(-2px);
}

.hero-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.hero-urgent {
    background: rgba(255, 165, 2, 0.15);
    border: 1px solid rgba(255, 165, 2, 0.4);
    border-radius: 50px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 플랫폼 배지 */
.platform-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.platform-mini-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-mini-badge:hover {
    background: rgba(255,255,255,0.2);
}

.platform-mini-badge .count {
    font-weight: 700;
    color: var(--secondary);
}

/* =============================================
   메인 컨텐츠 레이아웃
   ============================================= */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.main-wrapper > main,
.main-wrapper > aside {
    min-width: 0;
}


/* 플랫폼 빠른 필터 */
.platform-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.platform-filter::-webkit-scrollbar {
    display: none;
}

.pf-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.pf-btn:hover, .pf-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 71, 87, 0.08);
}

.pf-btn.pf-all.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
    border-bottom: 2px solid var(--border);
    scrollbar-width: none;
}

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

.cat-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-tab:hover {
    color: var(--primary);
}

.cat-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* 랭킹 탭 */
.ranking-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    border-bottom: 2px solid var(--border);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ranking-tabs::-webkit-scrollbar {
    display: none;
}

.ranking-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ranking-tab:hover {
    color: var(--primary);
}

.ranking-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* 정렬 옵션 */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 13px;
    color: var(--text-muted);
}

.sort-btn {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover, .sort-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =============================================
   딜 카드 그리드
   ============================================= */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* 딜 카드 */
.deal-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.deal-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-secondary);
    position: relative;
    display: block;
}

.deal-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* 카드 배지들 */
.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-platform {
    color: white;
    font-size: 10px;
}

.badge-platform.coupang { background: var(--coupang); }
.badge-platform.naver { background: var(--naver); }
.badge-platform.elevenst { background: var(--elevenst); }
.badge-platform.oliveyoung { background: var(--oliveyoung); }
.badge-platform.kurly { background: var(--kurly); }
.badge-platform.musinsa { background: var(--musinsa); }
.badge-platform.gmarket { background: var(--gmarket); }
.badge-platform.auction { background: var(--auction); }
.badge-platform.ssg { background: var(--ssg); }
.badge-platform.kakao { background: var(--kakao); color: #333; }
.badge-platform.other { background: #718096; }

.badge-hot {
    background: linear-gradient(135deg, #FF4757, #FF6B35);
    color: white;
}

.badge-verified {
    background: linear-gradient(135deg, #2ED573, #1CB956);
    color: white;
}

.badge-coupon {
    background: linear-gradient(135deg, #A29BFE, #6C5CE7);
    color: white;
}

.badge-cheaper {
    background: linear-gradient(135deg, #FFA502, #FF6B35);
    color: white;
}

.badge-discount {
    background: var(--primary);
    color: white;
    font-size: 14px;
    padding: 4px 10px;
}

/* 저장 버튼 */
.save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.save-btn:hover, .save-btn.saved {
    background: var(--primary);
    transform: scale(1.1);
}

.save-btn.saved {
    background: var(--primary);
}

/* 카드 본문 */
.deal-card-body {
    padding: 14px;
}

.deal-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* 가격 */
.deal-price-area {
    margin-bottom: 10px;
}

.deal-original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.deal-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.deal-sale-price {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.deal-discount-badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

/* 마감 카운트다운 */
.deal-expiry {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.deal-expiry.urgent {
    animation: blink 1s ease-in-out infinite;
    color: var(--primary);
}

/* 카드 푸터 */
.deal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.deal-stats {
    display: flex;
    gap: 10px;
}

.deal-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--text-muted);
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.like-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.like-btn.liked {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.like-btn .heart {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.like-btn.liked .heart,
.like-btn:hover .heart {
    transform: scale(1.3);
}

/* =============================================
   사이드바 / 위젯
   ============================================= */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.widget-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    border-radius: 2px;
}

/* 랭킹 리스트 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-secondary);
    transition: background 0.2s;
    cursor: pointer;
}

.rank-item:hover {
    background: rgba(255, 71, 87, 0.08);
}

.rank-number {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 30px;
    text-align: center;
}

.rank-number.top1 { color: #FFD700; }
.rank-number.top2 { color: #C0C0C0; }
.rank-number.top3 { color: #CD7F32; }

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.rank-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* =============================================
   폼 스타일
   ============================================= */
.form-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--primary);
    margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* URL 파싱 영역 */
.url-parse-box {
    background: linear-gradient(135deg, rgba(255,71,87,0.05), rgba(255,71,87,0.02));
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.url-parse-box .parse-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.url-parse-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.url-input-row {
    display: flex;
    gap: 8px;
}

.url-input-row .form-input {
    flex: 1;
}

.btn-parse {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-parse:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 파싱 미리보기 */
.parse-preview {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.parse-preview.show {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.parse-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg-secondary);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.parse-preview-info {
    flex: 1;
}

.parse-preview-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.parse-preview-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

/* 버튼 스타일 */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--border);
}

/* =============================================
   상세 페이지 스타일
   ============================================= */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}

.detail-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.detail-image-area {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info-area {
    padding: 0;
}

.detail-platform {
    margin-bottom: 12px;
}

.detail-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 16px;
}

.detail-price-area {
    background: linear-gradient(135deg, rgba(255,71,87,0.08), rgba(255,71,87,0.02));
    border: 1px solid rgba(255,71,87,0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.detail-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.detail-sale-price {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.detail-discount {
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
}

.detail-savings {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
}

/* 쿠폰 코드 */
.coupon-box {
    background: linear-gradient(135deg, #A29BFE22, #6C5CE722);
    border: 2px dashed #A29BFE;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coupon-code-text {
    font-family: 'Poppins', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #6C5CE7;
    letter-spacing: 2px;
}

.coupon-copy-btn {
    padding: 8px 16px;
    background: #6C5CE7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-copy-btn:hover {
    background: #5A4FD6;
    transform: scale(1.03);
}

/* 구매 버튼 */
.btn-buy {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    color: white;
    text-align: center;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    box-shadow: 0 6px 25px rgba(255, 71, 87, 0.4);
    transition: all 0.2s;
    margin-bottom: 12px;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(255, 71, 87, 0.55);
}

/* 딜 액션 버튼들 */
.deal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

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

.action-btn .action-icon {
    font-size: 20px;
}

/* 가격 비교 테이블 */
.price-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.price-compare-table th {
    padding: 12px;
    background: var(--bg-secondary);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.price-compare-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.price-compare-table tr:last-child td {
    border-bottom: none;
}

.price-compare-table tr.cheapest {
    background: rgba(46, 213, 115, 0.08);
}

.price-compare-table tr.cheapest td {
    font-weight: 700;
}

.cheapest-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 6px;
}

.price-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.price-link:hover {
    background: var(--primary-dark);
}

/* 더 싼 곳 등록 폼 */
.cheaper-submit-form {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 20px;
    margin-top: 16px;
}

.cheaper-form-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 댓글 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-item {
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid var(--border);
}

.comment-item.reply {
    margin-left: 24px;
    border-left-color: var(--secondary);
    background: rgba(46, 213, 115, 0.04);
}

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

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-nick {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-like-btn, .reply-btn {
    font-size: 12px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.comment-like-btn:hover { color: var(--primary); }
.reply-btn:hover { color: var(--secondary); }

/* =============================================
   쿠폰 카드
   ============================================= */
.coupon-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

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

.coupon-card::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--bg);
    border-radius: 50%;
    border: 1px solid var(--border);
}

.coupon-card::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--bg);
    border-radius: 50%;
    border: 1px solid var(--border);
}

.coupon-card-header {
    padding: 16px;
    background: linear-gradient(135deg, #A29BFE22, #6C5CE722);
    border-bottom: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coupon-platform-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    color: white;
}

.coupon-discount-value {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.coupon-card-body {
    padding: 16px;
}

.coupon-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.coupon-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
}

.coupon-code-area {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px 14px;
}

.coupon-code-value {
    font-family: 'Poppins', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #6C5CE7;
    letter-spacing: 1px;
    flex: 1;
}

.coupon-copy-mini {
    padding: 6px 12px;
    background: #6C5CE7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.coupon-copy-mini:hover {
    background: #5A4FD6;
}

/* 만료 임박 배지 */
.expiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 165, 2, 0.15);
    color: var(--accent);
    animation: blink 1.5s ease-in-out infinite;
}

/* =============================================
   랭킹 페이지
   ============================================= */
.ranking-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.ranking-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ranking-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* =============================================
   마이페이지
   ============================================= */
.mypage-hero {
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    border-radius: 20px;
    padding: 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.mypage-hero::before {
    content: '👑';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    opacity: 0.2;
}

.mypage-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    border: 3px solid rgba(255,255,255,0.3);
}

.mypage-nickname {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mypage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.mypage-stat {
    text-align: center;
}

.mypage-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.mypage-stat-label {
    font-size: 11px;
    opacity: 0.8;
}

/* 뱃지 컬렉션 */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.badge-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s;
}

.badge-card.earned {
    background: linear-gradient(135deg, rgba(255,71,87,0.08), rgba(255,165,2,0.08));
    border-color: var(--primary);
}

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

.badge-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.badge-card-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.badge-card-desc {
    font-size: 10px;
    color: var(--text-muted);
}

.badge-card:not(.earned) {
    opacity: 0.5;
    filter: grayscale(1);
}

/* 활동 캘린더 (잔디) */
.activity-calendar {
    overflow-x: auto;
}

.calendar-grid {
    display: flex;
    gap: 3px;
    min-width: max-content;
}

.calendar-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.calendar-day {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--bg-secondary);
}

.calendar-day.level-1 { background: rgba(255,71,87,0.2); }
.calendar-day.level-2 { background: rgba(255,71,87,0.4); }
.calendar-day.level-3 { background: rgba(255,71,87,0.7); }
.calendar-day.level-4 { background: var(--primary); }

/* =============================================
   관리자 페이지 (admin.css에서 확장)
   ============================================= */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E1E2E 0%, #2D1B3D 100%);
}

.admin-login-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* =============================================
   토스트 알림
   ============================================= */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    animation: slideInRight 0.3s ease;
    min-width: 200px;
    max-width: 320px;
}

.toast.success { border-left-color: var(--secondary); }
.toast.error { border-left-color: var(--primary); }
.toast.info { border-left-color: #74B9FF; }

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

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* =============================================
   스켈레톤 로딩
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    margin: 14px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text.short { width: 60%; }

/* =============================================
   페이지네이션
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =============================================
   가격 히스토리 차트
   ============================================= */
.chart-container {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
}

/* =============================================
   검색 페이지
   ============================================= */
.search-hero {
    background: linear-gradient(135deg, var(--primary), #FF6B35);
    padding: 40px 16px;
    text-align: center;
    color: white;
}

.search-hero-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
}

.search-big-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.search-big-input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    background: white;
    color: var(--text);
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-big-btn {
    padding: 16px 24px;
    background: #1E1E2E;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.search-big-btn:hover {
    background: #000;
    transform: scale(1.03);
}

/* 필터 사이드바 */
.search-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
}

.filter-sidebar {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    height: fit-content;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* 가격 슬라이더 */
.price-slider-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255,71,87,0.4);
}

/* =============================================
   푸터
   ============================================= */
.site-footer {
    background: #1E1E2E;
    color: rgba(255,255,255,0.7);
    padding: 40px 16px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-slogan {
    font-size: 13px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-link {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 12px;
    opacity: 0.5;
    text-align: center;
}

/* =============================================
   반응형 (태블릿 768px)
   ============================================= */
@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-wrapper {
        grid-template-columns: 1fr 320px;
    }

    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .detail-top {
        grid-template-columns: 1fr 1fr;
    }

    .logo-slogan {
        display: block;
    }

    .search-layout {
        grid-template-columns: 280px 1fr;
    }

    .mypage-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================
   반응형 (데스크톱 1024px)
   ============================================= */
@media (min-width: 1024px) {
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .detail-title {
        font-size: 28px;
    }
}

/* =============================================
   모달
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

/* =============================================
   반응형 헤더 (모바일)
   ============================================= */
@media (max-width: 480px) {
    .header-inner {
        height: 56px;
        padding: 0 12px;
        gap: 8px;
    }

    .logo-text {
        font-size: 18px;
    }

    .header-search {
        display: none;
    }

    .header-search.mobile-show {
        display: block;
    }

    .btn-submit {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* =============================================
   기타 유틸리티
   ============================================= */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: 900; }

.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state-sub {
    font-size: 13px;
}

/* 알림 도트 효과 */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-anim 1.5s ease-in-out infinite;
}

@keyframes pulse-anim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* 섹션 컨테이너 */
.section-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* 로딩 스피너 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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