/* ===================================================
   게임머니 최저가 비교 서비스 - 메인 스타일시트
   =================================================== */

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

:root {
  --primary: #5b4fcf;
  --primary-dark: #4338a8;
  --primary-light: #7c6fe0;
  --secondary: #764ba2;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --bg: #f0f2f8;
  --surface: #ffffff;
  --surface2: #f8f9fc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-secondary: #64748b;
  --shadow: 0 4px 20px rgba(91, 79, 207, 0.12);
  --shadow-lg: 0 10px 40px rgba(91, 79, 207, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===================================================
   레이아웃
   =================================================== */
#app { min-height: 100vh; display: flex; flex-direction: column; }

header.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(91,79,207,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
}

.site-logo i { font-size: 1.4rem; }

.header-badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

main.main-content {
  flex: 1;
  padding: 32px 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

footer.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===================================================
   카드 컴포넌트
   =================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
}

.card + .card { margin-top: 20px; }

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

.card-title i { color: var(--primary); }

/* ===================================================
   검색 패널
   =================================================== */
.search-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 28px;
  color: white;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.search-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 600px) {
  .search-form { grid-template-columns: 1fr; }
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select:focus { border-color: rgba(255,255,255,0.7); }

.form-group select option {
  background: var(--primary-dark);
  color: white;
}

.form-group select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-compare {
  padding: 12px 28px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-compare:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

/* ===================================================
   상태 패널들
   =================================================== */
.state-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  min-height: 200px;
}

.state-icon { font-size: 3rem; margin-bottom: 16px; }
.state-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.state-desc { font-size: 0.9rem; color: var(--text-secondary); }

/* 로딩 스피너 */
.spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 0; }

.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.loading-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-secondary);
  padding: 8px 16px; background: var(--surface2);
  border-radius: 8px; border: 1px solid var(--border);
}
.loading-step.active { color: var(--primary); border-color: var(--primary); background: #f0eeff; }
.loading-step.done { color: var(--success); border-color: var(--success); background: #f0fdf4; }

/* ===================================================
   결과 영역
   =================================================== */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-cache { background: #fef3c7; color: #92400e; }
.badge-realtime { background: #d1fae5; color: #065f46; }
.badge-partial { background: #fee2e2; color: #991b1b; }
.badge-lowest { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; }
.badge-platform { background: var(--surface2); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-info { background: #dbeafe; color: #1e40af; }

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

.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 4px; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.stat-value.lowest { color: var(--danger); }

/* ===================================================
   상품 카드
   =================================================== */
.product-list { display: flex; flex-direction: column; gap: 10px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  transition: all 0.2s;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(91,79,207,0.1);
  transform: translateY(-1px);
}

.product-card.is-lowest {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fffbeb, #fff);
  border-width: 2px;
}

.rank-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rank-badge.rank-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; border-color: transparent; }
.rank-badge.rank-2 { background: #e2e8f0; color: #475569; }
.rank-badge.rank-3 { background: #fde68a; color: #78350f; }

.product-info {}
.product-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--surface2);
  border-radius: 4px;
  padding: 2px 8px;
  border: 1px solid var(--border);
}

.detail-chip i { font-size: 0.7rem; color: var(--primary); }

.product-price-area { text-align: right; flex-shrink: 0; }
.unit-price { font-size: 1.15rem; font-weight: 700; color: var(--danger); white-space: nowrap; }
.unit-label { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 2px; }
.total-price { font-size: 0.8rem; color: var(--text-secondary); }

.btn-goto {
  margin-top: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.btn-goto:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91,79,207,0.3); }

/* ===================================================
   부분 실패 경고
   =================================================== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a5f; }

/* ===================================================
   유틸리티
   =================================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.hidden { display: none !important; }

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

/* 만료 시간 표시 */
.expires-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--surface2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.expires-bar i { color: var(--warning); }

/* 점검 배너 */
.maintenance-banner {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 공지 배너 */
.notice-banner {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #1e3a5f;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* 플랫폼 상태 표시 */
.platform-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
}

.platform-chip.success { background: #d1fae5; border-color: #a7f3d0; color: #065f46; }
.platform-chip.failed { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }

/* 관리자 페이지 */
.admin-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--surface2);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:hover td { background: var(--surface2); }

/* ===================================================
   수량 입력바 (최저가 상품 찾기)
   =================================================== */
.qty-find-bar {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1.5px solid #c4b5fd;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(91,79,207,0.08);
}

.qty-find-bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.qty-find-bar-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .qty-find-bar-row { grid-template-columns: 1fr; }
}

.qty-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qty-input-box {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid #c4b5fd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qty-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,79,207,0.12);
}

.qty-input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: inherit;
  background: transparent;
}

.qty-input-box input::placeholder { color: #9ca3af; font-weight: 400; }

.qty-input-unit {
  padding: 10px 12px;
  background: #f5f3ff;
  border-left: 1px solid #c4b5fd;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.qty-clear-btn {
  width: 26px;
  height: 26px;
  margin-right: 4px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: background 0.15s;
}

.qty-clear-btn.show { display: flex; }
.qty-clear-btn:hover { background: #f3f4f6; color: var(--primary); }

.qty-helper {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  min-height: 16px;
}

.qty-helper.empty { color: var(--text-secondary); font-weight: 400; }

/* 예상 금액 영역 */
.qty-estimate {
  text-align: right;
  min-width: 150px;
  flex-shrink: 0;
}

.qty-estimate-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

.qty-estimate-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.qty-estimate-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 최저가 상품 보기 버튼 */
.btn-find-best {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.btn-find-best:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91,79,207,0.3);
}

.btn-find-best:disabled {
  background: #c7c9d1;
  cursor: not-allowed;
  transform: none;
}

/* 최저가 구성 요약 배너 */
.best-plan-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid #c4b5fd;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.best-plan-banner.show { display: flex; }
.best-plan-banner i { color: var(--primary); flex-shrink: 0; }
.best-plan-banner-text { flex: 1; color: var(--text); font-weight: 600; }
.best-plan-banner-sub { font-size: 0.78rem; color: var(--text-secondary); font-weight: 400; }
.best-plan-close {
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; font-size: 1rem; padding: 2px 4px;
}
.best-plan-close:hover { color: var(--primary); }

/* 체결예상 배지 */
.badge-fill {
  background: #ede9fe;
  color: var(--primary);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #c4b5fd;
}

/* 체결예상 상품카드 하이라이트 */
.product-card.is-fill {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f5f3ff, #fff);
  border-width: 1.5px;
}

.product-card.is-fill .rank-badge {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

/* 체결수량/금액 표시 */
.fill-qty-info {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 4px;
}

/* ===================================================
   수집 시각 + 즉시 새로고침 행
   =================================================== */
.collected-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin: 10px 0;
  flex-wrap: wrap;
}
.collected-left {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.collected-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collected-time-label { font-size: 0.82rem; }
.collected-time-label strong { color: var(--text); }

/* 즉시 새로고침 버튼 */
.btn-refresh-now {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-refresh-now:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(91,79,207,0.25);
}
.btn-refresh-now:disabled {
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Quota 배지 */
.quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: #ede9fe;
  color: var(--primary);
  white-space: nowrap;
}
.quota-badge.exhausted {
  background: #fee2e2;
  color: var(--danger);
}

/* 스냅샷 소스 배지 */
.badge-scheduled {
  background: #d1fae5; color: #059669;
  padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.badge-manual {
  background: #dbeafe; color: #2563eb;
  padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.badge-fallback {
  background: #fef3c7; color: #d97706;
  padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.badge-stale {
  background: #f1f5f9; color: #64748b;
  padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.badge-info {
  background: #dbeafe; color: #2563eb;
  padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #1e40af;
  margin: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-info i { margin-top: 2px; color: #3b82f6; flex-shrink: 0; }

/* ===================================================
   모바일 조정 */
@media (max-width: 480px) {
  main.main-content { padding: 16px; }
  .search-panel { padding: 20px; }
  .product-card { grid-template-columns: 36px 1fr; }
  .product-price-area { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--border); padding-top: 10px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   광고/홍보 슬롯 (v3)
   =================================================== */
.ad-slots-section {
  margin-top: 20px;
  padding: 16px 20px 12px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ad-slots-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.ad-slots-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ad-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ad-slot-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}
.ad-slot-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.ad-slot-img {
  width: 100%;
  height: 80px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-slot-img-placeholder {
  font-size: 2rem;
  color: #cbd5e1;
}
.ad-slot-body {
  flex: 1;
  padding: 10px 12px 6px;
}
.ad-slot-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-slot-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-slot-cta {
  padding: 6px 12px 8px;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ad-slots-notice {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: right;
}
@media (max-width: 480px) {
  .ad-slots-grid { grid-template-columns: 1fr; }
}
