/* ═══════════════════════════════════════════
   Belantara.com — Mobile-Native Marketplace CSS
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Belantara Indonesian Color Psychology ──
     Emerald Tua (bukan Tokopedia hijau): kemakmuran, hutan tropis
     Emas Hangat (Jawa+Melayu royal): kemuliaan, premium
     Merah Hangat: keberanian, urgensi harga
     Cream: hangat tropis, bukan putih dingin korporat ── */
  --green: #0d6e4e; --green-dark: #065f46; --green-light: #d1fae5;
  --amber: #d97706; --amber-dark: #b45309; --amber-light: #fef3c7;
  --red: #dc2626; --red-light: #fee2e2;
  --yellow: #f59e0b;
  --cream: #fffbeb; --cream-dark: #fef3c7;
  --card-bg: #fffef7; --card-border: rgba(13,110,78,0.06);
  --header-bg: rgba(255,254,247,0.95); --nav-bg: rgba(255,254,247,0.98);
  --gray-50: #fafaf9; --gray-100: #f5f5f4; --gray-200: #e7e5e4;
  --gray-300: #d6d3d1; --gray-400: #a8a29e; --gray-500: #78716c;
  --gray-600: #57534e; --gray-700: #44403c; --gray-800: #292524;
  --gray-900: #1c1917;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(13,110,78,0.08);
  --shadow-lg: 0 4px 16px rgba(13,110,78,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* keep --orange as alias for backward compat */
  --orange: var(--amber);
}

@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #1c1917; --gray-100: #292524; --gray-200: #44403c;
    --gray-300: #57534e; --gray-400: #78716c; --gray-500: #a8a29e;
    --gray-600: #d6d3d1; --gray-700: #e7e5e4; --gray-800: #f5f5f4;
    --gray-900: #fafaf9;
    --cream: #0c1f17; --cream-dark: #142b21;
    --card-bg: #1a2e25; --card-border: rgba(255,255,255,0.06);
    --header-bg: rgba(12,31,23,0.95); --nav-bg: rgba(12,31,23,0.98);
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.5);
    --green-light: #142b21; --amber-light: #292524;
  }
  body { background: #0c1f17; color: #e7e5e4; }
  .hero { background: linear-gradient(135deg, #065f46, #0d6e4e); }
  .form-input, .filter-select { background: var(--card-bg); color: #e7e5e4; border-color: #2d4a3e; }
  .gallery-main { background: var(--card-bg); }
  .search-input { background: var(--card-bg); color: #e7e5e4; border-color: #2d4a3e; }
  .pill { background: #2d4a3e; color: #d1fae5; }
  .variant-pill { background: var(--card-bg); color: #e7e5e4; border-color: #2d4a3e; }
  .share-btn { background: var(--card-bg); color: #e7e5e4; border-color: #2d4a3e; }
  .specs-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
  .order-summary { background: var(--card-bg); }
  .checkout-item { border-bottom-color: #2d4a3e !important; }
  a { color: #34d399; }
}

html { font-family: var(--font); font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--gray-800); line-height: 1.5; padding-top: 56px; padding-bottom: calc(64px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-border); height: 56px; transition: transform 0.3s; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--green); white-space: nowrap; }
.search-form { display: flex; flex: 1; }
.search-input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 0.875rem; outline: none; min-width: 0; }
.search-input:focus { border-color: var(--green); }
.search-btn { padding: 8px 12px; background: var(--green); color: #fff; border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; display: flex; align-items: center; }
.search-bar { flex: 1; }

/* ── Bottom Nav ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--nav-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--card-border); display: flex; justify-content: space-around; padding: 4px 0 calc(4px + var(--safe-bottom)); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; font-size: 0.625rem; color: var(--gray-500); text-decoration: none; min-width: 48px; min-height: 48px; justify-content: center; border: none; background: none; cursor: pointer; transition: color 0.2s; }
.nav-item.active { color: var(--green); }
.nav-item svg { width: 22px; height: 22px; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #065f46 0%, #0d6e4e 50%, #0f766e 100%); color: #fff; padding: 2rem 0; text-align: center; }
.hero-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 0.875rem; opacity: 0.9; margin-bottom: 1.25rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-search { display: flex; max-width: 500px; margin: 0 auto 1rem; }
.hero-search-input { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 1rem; outline: none; }
.hero-search-btn { padding: 12px 20px; background: var(--amber); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.hero-search-btn:hover { background: var(--amber-dark); }
.hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,0.2); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; transition: background 0.2s; }
.tag:hover { background: rgba(255,255,255,0.3); }

/* ── Section ── */
.section { padding: 1.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-header h2 { font-size: 1.125rem; font-weight: 700; }
.see-all { font-size: 0.8125rem; color: var(--green); font-weight: 500; }

/* ── Carousel (horizontal scroll-snap) ── */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 0; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── Category Card ── */
.category-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 80px; text-align: center; transition: transform 0.2s; border: 1px solid var(--card-border); }
.category-card:active { transform: scale(0.95); }
.category-icon { font-size: 1.5rem; }
.category-name { font-size: 0.6875rem; color: var(--gray-700); font-weight: 500; white-space: nowrap; }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Product Card ── */
.product-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--card-border); }
.product-card:active { transform: scale(0.98); }
.product-img { aspect-ratio: 1; overflow: hidden; background: var(--gray-100); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-name { font-size: 0.8125rem; font-weight: 500; color: var(--gray-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.product-brand { font-size: 0.6875rem; color: var(--gray-500); }
.product-price { font-size: 0.9375rem; font-weight: 700; color: var(--red); }
.product-price-range { font-size: 0.6875rem; color: var(--gray-500); }
.product-meta { display: flex; gap: 8px; font-size: 0.6875rem; color: var(--gray-500); flex-wrap: wrap; margin-top: auto; }
.rating { color: var(--yellow); }
.distance { color: var(--green); font-weight: 500; }

/* ── Product Detail Page ── */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .product-detail { grid-template-columns: 1fr 1fr; } }

.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumb { width: 56px; height: 56px; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; padding: 0; flex-shrink: 0; }
.thumb.active { border-color: var(--green); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.product-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.badge { padding: 2px 8px; border-radius: 12px; font-size: 0.6875rem; font-weight: 500; }
.badge.brand { background: var(--gray-100); color: var(--gray-700); }
.badge.rating { background: var(--amber-light); color: var(--amber-dark); }
.badge.sellers { background: var(--green-light); color: var(--green-dark); }
.badge.sold { background: var(--amber-light); color: var(--amber-dark); }
.badge.sold { background: var(--gray-100); color: var(--gray-600); }

.price-box { margin: 12px 0; }
.price-main { font-size: 1.5rem; font-weight: 800; color: var(--red); }
.price-range { font-size: 0.875rem; color: var(--gray-500); }

.variants-section { margin: 1rem 0; }
.variant-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.variants-section { margin: 0.75rem 0; }
.variants-section h3 { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.variant-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-pill { padding: 8px 16px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--card-bg); cursor: pointer; font-size: 0.8125rem; transition: all 0.2s; font-weight: 500; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; }
.variant-pill:hover { border-color: var(--green); }
.variant-pill.active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); box-shadow: 0 0 0 1px var(--green); }
.variant-price { font-size: 0.625rem; color: var(--gray-500); font-weight: 400; }
.variant-pill.active .variant-price { color: var(--green-dark); }

.buy-actions { display: flex; gap: 12px; margin: 1rem 0; }
.btn { padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--amber); color: #fff; }
.btn-secondary:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; border: 1px solid var(--green); color: var(--green); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-shopee { background: #ee4d2d; color: #fff; }
.btn-shopee:hover { background: #d73211; }
.btn-shopee svg { vertical-align: -3px; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; min-height: 36px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.share-row { display: flex; gap: 8px; }
.share-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--card-bg); cursor: pointer; font-size: 0.8125rem; color: var(--gray-600); }
.link-btn { background: none; border: none; color: var(--green); cursor: pointer; font-size: inherit; text-decoration: underline; padding: 0; }

/* ── Seller Listings ── */
.seller-list { display: flex; flex-direction: column; gap: 8px; }
.seller-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; border: 1px solid var(--card-border); }
.seller-row.recommended { border: 2px solid var(--green); }
.rec-badge { position: absolute; top: -8px; left: 12px; background: var(--green); color: #fff; font-size: 0.625rem; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.seller-info { flex: 1; min-width: 0; }
.seller-name a { color: var(--gray-800); font-weight: 600; font-size: 0.875rem; }
.verified-badge { color: var(--green); font-size: 0.75rem; margin-left: 4px; }
.seller-city { display: block; font-size: 0.75rem; color: var(--gray-500); }
.seller-rating { font-size: 0.75rem; color: var(--yellow); }
.seller-distance { font-size: 0.6875rem; color: var(--green); font-weight: 500; display: block; }
.seller-price-col { text-align: right; min-width: 100px; }
.seller-price { display: block; font-size: 1rem; font-weight: 700; color: var(--red); }
.seller-stock, .seller-condition { display: block; font-size: 0.6875rem; color: var(--gray-500); }

/* ���─ Specs Table ── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--gray-50); }
.specs-table td { padding: 8px 12px; font-size: 0.875rem; border-bottom: 1px solid var(--gray-200); }
.spec-key { font-weight: 600; color: var(--gray-600); width: 40%; }

/* ── Reviews ── */
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 12px; background: var(--card-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.review-header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 0.8125rem; }
.review-rating { color: var(--yellow); }
.review-header time { color: var(--gray-400); font-size: 0.75rem; margin-left: auto; }
.review-text { font-size: 0.875rem; color: var(--gray-700); }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.75rem; color: var(--gray-500); padding: 12px 0; overflow-x: auto; white-space: nowrap; }
.breadcrumb a { color: var(--green); }
.breadcrumb-sep { margin: 0 4px; }
.breadcrumb-current { color: var(--gray-700); font-weight: 500; }

/* ── Filters ── */
.filters-bar { display: flex; gap: 12px; margin-bottom: 1rem; overflow-x: auto; align-items: center; padding: 8px 0; }
.filter-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.filter-group label { font-size: 0.75rem; color: var(--gray-500); white-space: nowrap; }
.filter-select { padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.8125rem; background: var(--card-bg); }
.filter-pills { display: flex; gap: 6px; overflow-x: auto; }
.pill { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; background: var(--gray-100); color: var(--gray-600); border: none; cursor: pointer; white-space: nowrap; text-decoration: none; }
.pill.active { background: var(--green); color: #fff; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 1.5rem 0; }
.page-btn { padding: 8px 16px; background: var(--amber); color: #fff; border-radius: var(--radius-sm); font-size: 0.875rem; }
.page-info { font-size: 0.8125rem; color: var(--gray-500); }

/* ── Value Props ── */
.props-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .props-grid { grid-template-columns: repeat(4, 1fr); } }
.prop-card { background: var(--card-bg); border-radius: var(--radius); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--card-border); }
.prop-icon { font-size: 2rem; margin-bottom: 8px; }
.prop-card h3 { font-size: 0.875rem; margin-bottom: 4px; }
.prop-card p { font-size: 0.75rem; color: var(--gray-500); }

/* ── Seller Page ── */
.seller-header-card { display: flex; gap: 16px; padding: 20px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.5rem; flex-wrap: wrap; }
.seller-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
.seller-header-info { flex: 1; min-width: 200px; }
.seller-header-info h1 { font-size: 1.25rem; }
.seller-meta-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--gray-500); margin: 8px 0; }
.meta-item { display: flex; align-items: center; gap: 4px; }
.seller-desc { font-size: 0.875rem; color: var(--gray-600); margin-top: 8px; }
.seller-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }

/* ── All Categories Page ── */
.all-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.category-block { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.category-block-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.category-icon-lg { font-size: 2rem; }
.category-block h2 { font-size: 1rem; color: var(--gray-800); }
.subcategory-list { display: flex; flex-wrap: wrap; gap: 6px; }
.subcategory-link { font-size: 0.8125rem; color: var(--green); padding: 4px 8px; background: var(--green-light); border-radius: 6px; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 4px; color: var(--gray-700); }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9375rem; font-family: var(--font); }
.form-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: var(--card-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px; width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto; }
@media (min-width: 640px) { .modal-content { border-radius: var(--radius-lg); margin-bottom: 10vh; } .modal { align-items: center; } }

/* ── Chat Widget ── */
.chat-widget { position: fixed; bottom: 72px; right: 16px; width: calc(100% - 32px); max-width: 380px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 150; display: flex; flex-direction: column; max-height: 60vh; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); background: var(--green); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.25rem; cursor: pointer; padding: 4px 8px; }
.chat-messages { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.chat-msg { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; max-width: 85%; word-break: break-word; }
.chat-msg.ai { background: var(--gray-100); color: var(--gray-800); align-self: flex-start; }
.chat-msg.user { background: var(--green); color: #fff; align-self: flex-end; }
.chat-input-form { display: flex; padding: 8px; gap: 8px; border-top: 1px solid var(--gray-200); }
.chat-input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 20px; font-size: 0.875rem; outline: none; }
.chat-send { padding: 8px 16px; background: var(--green); color: #fff; border: none; border-radius: 20px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }

/* ── Dashboard ── */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1rem 0; }
.stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--green); }
.stat-label { font-size: 0.75rem; color: var(--gray-500); }
.dash-tabs { display: flex; gap: 4px; margin-bottom: 1rem; overflow-x: auto; }
.dash-tab { padding: 8px 16px; border: none; background: var(--gray-100); border-radius: var(--radius-sm); font-size: 0.875rem; cursor: pointer; white-space: nowrap; }
.dash-tab.active { background: var(--green); color: #fff; }

/* ── Checkout ── */
.checkout-items { margin-bottom: 1.5rem; }
.order-summary { background: var(--gray-100); border-radius: var(--radius); padding: 16px; margin: 1.5rem 0; }
.summary-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 12px; border-top: 2px solid var(--gray-300); font-size: 1.125rem; }
.checkout-note { text-align: center; font-size: 0.75rem; color: var(--gray-500); margin-top: 12px; }
.payment-result { text-align: center; padding: 2rem 0; }
.result-icon { font-size: 3rem; color: var(--green); margin-bottom: 1rem; }
.payment-note { font-size: 0.875rem; color: var(--gray-500); margin-top: 1rem; }

/* ── Auth Form ── */
.auth-form, .dash-auth { max-width: 400px; margin: 2rem auto; }

/* ── Empty states ── */
.empty { text-align: center; padding: 2rem 0; color: var(--gray-400); font-size: 0.875rem; }
.empty-search { text-align: center; padding: 3rem 0; grid-column: 1 / -1; }

/* ── Skeleton loading ── */
.skeleton { animation: shimmer 1.5s ease-in-out infinite; }
.skeleton-img { aspect-ratio: 1; background: var(--gray-200); border-radius: var(--radius-sm); }
.skeleton-line { height: 12px; background: var(--gray-200); border-radius: 6px; margin-top: 8px; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── View Transition ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 200ms ease; }
::view-transition-new(root) { animation: fade-in 200ms ease; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
