/* ============================================================
   customer.css — Customer-facing styles
   Primary: #b10000 (Red), Background: white/cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

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

:root {
  --primary: #b10000;
  --primary-dark: #8b0000;
  --primary-light: #f5e6e6;
  --accent: #e74c3c;
  --bg: #fafafa;
  --bg2: #f0f0f0;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(177,0,0,0.18);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Prompt', 'Sarabun', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Typography ─── */
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { color: var(--text-muted); }

/* ─── Layout ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.page-content { padding: 16px 0 80px; }

/* ============================================================
   🦴 SKELETON LOADING SYSTEM
   ============================================================ */
@keyframes skeletonShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-title {
  height: 20px;
  width: 70%;
  margin-bottom: 12px;
  border-radius: 4px;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius) var(--radius) 0 0;
}
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.skeleton-btn {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.skeleton-card .skeleton-body { padding: 14px; }

/* ============================================================
   ✨ PAGE ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in { animation: fadeInUp 0.5s var(--transition) both; }
.animate-in-delay-1 { animation: fadeInUp 0.5s var(--transition) 0.08s both; }
.animate-in-delay-2 { animation: fadeInUp 0.5s var(--transition) 0.16s both; }
.animate-in-delay-3 { animation: fadeInUp 0.5s var(--transition) 0.24s both; }
.animate-in-delay-4 { animation: fadeInUp 0.5s var(--transition) 0.32s both; }
.animate-scale { animation: scaleIn 0.4s var(--transition) both; }

/* ─── Navbar ─── */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(139,0,0,0.25);
  backdrop-filter: blur(10px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s var(--transition);
}
.navbar-brand:hover { transform: scale(1.03); }
.navbar-brand span { font-size: 1.5rem; }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition: all 0.25s var(--transition);
  backdrop-filter: blur(4px);
}
.nav-icon-btn:hover { 
  background: rgba(255,255,255,0.25); 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-icon-btn:active { transform: translateY(0) scale(0.95); }
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s var(--transition);
}

/* ─── Bottom Nav (Mobile) ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  gap: 4px;
  transition: all 0.25s var(--transition);
  position: relative;
}
.bottom-nav a .icon { 
  font-size: 1.3rem; 
  transition: transform 0.25s var(--transition);
}
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active .icon { transform: scale(1.15) translateY(-2px); }
.bottom-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: all 0.25s var(--transition);
  transform: translateX(-50%);
}
.bottom-nav a.active::after { width: 24px; }

/* ─── Cards ─── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s var(--transition), transform 0.3s var(--transition);
  will-change: transform;
}
.card:hover { 
  box-shadow: var(--shadow-hover); 
  transform: translateY(-4px); 
}
.card:active { transform: translateY(-2px) scale(0.99); }
.card-img { 
  width: 100%; 
  aspect-ratio: 4/3; 
  object-fit: cover;
  transition: transform 0.4s var(--transition);
}
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 14px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-meta { font-size: 0.82rem; color: var(--text-muted); }
.card-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-top: 8px; }

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.product-grid > * {
  animation: fadeInUp 0.5s var(--transition) both;
}
.product-grid > *:nth-child(1) { animation-delay: 0.05s; }
.product-grid > *:nth-child(2) { animation-delay: 0.1s; }
.product-grid > *:nth-child(3) { animation-delay: 0.15s; }
.product-grid > *:nth-child(4) { animation-delay: 0.2s; }
.product-grid > *:nth-child(5) { animation-delay: 0.25s; }
.product-grid > *:nth-child(6) { animation-delay: 0.3s; }
.product-grid > *:nth-child(7) { animation-delay: 0.35s; }
.product-grid > *:nth-child(8) { animation-delay: 0.4s; }
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--transition);
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:active::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 2px 8px rgba(177,0,0,0.25); }
.btn-primary:hover { box-shadow: 0 4px 16px rgba(177,0,0,0.35); transform: translateY(-1px); }
.btn-outline { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg2); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); color: white; }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.btn-success { background: linear-gradient(135deg, #16a34a, #15803d); color: white; }
.btn-success:hover { box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Inputs ─── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: all 0.25s var(--transition);
}
.form-control:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(177,0,0,0.1);
}
.form-control::placeholder { color: #aaa; }
select.form-control { cursor: pointer; }

/* ─── Search Bar ─── */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  gap: 8px;
  transition: all 0.25s var(--transition);
}
.search-bar:focus-within { 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(177,0,0,0.1);
}
.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.search-bar .icon { color: var(--text-muted); }

/* ─── Tabs ─── */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  font-family: inherit;
}
.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(177,0,0,0.25);
}

/* ─── Status Badges ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  animation: scaleIn 0.3s var(--transition);
}
.status-pending { background: #fef9c3; color: #854d0e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-picked-up { background: #dbeafe; color: #1e40af; }
.sn-available { background: #dcfce7; color: #166534; }
.sn-booked { background: #fef9c3; color: #854d0e; }
.sn-repair { background: #dbeafe; color: #1e40af; }
.sn-broken { background: #fee2e2; color: #991b1b; }

/* ─── News/Post Cards ─── */
.news-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s var(--transition);
  will-change: transform;
}
.news-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-hover);
}
.news-card:active { transform: translateY(-3px) scale(0.99); }
.news-card .news-img { 
  width: 100%; 
  height: 160px; 
  object-fit: cover;
  transition: transform 0.4s var(--transition);
}
.news-card:hover .news-img { transform: scale(1.08); }
.news-card .news-body { padding: 14px; overflow: hidden; }
.news-category-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  transition: transform 0.2s;
}
.tag-promotion { background: #fde68a; color: #92400e; }
.tag-news { background: #dbeafe; color: #1e40af; }
.tag-technique { background: #d1fae5; color: #065f46; }

/* ─── Calendar ─── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s var(--transition);
  border: 2px solid transparent;
  position: relative;
}
.cal-day:hover:not(.disabled) { 
  border-color: var(--primary); 
  transform: scale(1.08);
}
.cal-day.today { border-color: var(--primary); background: var(--primary-light); }
.cal-day.selected { background: var(--primary); color: white; transform: scale(1.05); }
.cal-day.in-range { background: var(--primary-light); color: var(--primary); }
.cal-day.disabled { color: #ccc; cursor: not-allowed; }
.cal-day.full { background: #fee2e2; color: #991b1b; }
.cal-day.low { background: #fef9c3; color: #854d0e; }
.cal-day .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

/* ─── Rating Stars ─── */
.stars { color: #f59e0b; font-size: 1rem; }
.star-empty { color: #e5e7eb; }

/* ─── Member Level Badges ─── */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.member-bronze { background: #f3e8d0; color: #6b3a00; }
.member-silver { background: #e8e8e8; color: #4a4a4a; }
.member-gold { background: #fef9c3; color: #6b4a00; }
.member-platinum { background: #ede9fe; color: #4c1d95; }

/* ─── Divider ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ─── Section Header ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 1.1rem; font-weight: 700; }

/* ─── Summary Box ─── */
.summary-box {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--primary); }

/* ─── Order Item Card ─── */
.order-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: all 0.25s var(--transition);
  border-left: 4px solid transparent;
}
.order-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
  border-left-color: var(--primary);
}
.order-id { font-size: 0.8rem; color: var(--text-muted); }
.order-title { font-weight: 700; font-size: 1rem; margin: 4px 0; }
.order-meta { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Profile ─── */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(177,0,0,0.25);
  transition: transform 0.3s var(--transition);
}
.profile-avatar:hover { transform: scale(1.08) rotate(5deg); }
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.25s var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(10px);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: toastIn 0.4s var(--transition);
  white-space: nowrap;
}
.toast.success { background: rgba(22,101,52,0.92); }
.toast.error { background: rgba(153,27,27,0.92); }
@keyframes toastIn { 
  from { opacity: 0; transform: translateY(16px) scale(0.9); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s var(--transition);
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
}
.modal {
  background: white;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.35s var(--transition);
}
@keyframes modalSlideUp { 
  from { opacity: 0; transform: translateY(40px); } 
  to { opacity: 1; transform: translateY(0); } 
}
@media (min-width: 600px) {
  .modal { border-radius: var(--radius); animation: scaleIn 0.3s var(--transition); }
}
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--bg2); transform: rotate(90deg); }

/* ─── Loading ─── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  animation: fadeInUp 0.5s var(--transition);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-text { font-size: 1rem; }

/* ─── Hero Banner ─── */
.hero-banner {
  background: linear-gradient(135deg, var(--primary), #600000);
  color: white;
  padding: 32px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s var(--transition);
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-banner h1 { font-size: 1.6rem; margin-bottom: 8px; position: relative; z-index: 1; }
.hero-banner p { color: rgba(255,255,255,0.85); margin-bottom: 16px; position: relative; z-index: 1; }

/* ─── Category Chips ─── */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.category-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--transition);
  font-family: inherit;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(177,0,0,0.2);
}

/* ─── Pinned Banner ─── */
.pinned-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 180px;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s var(--transition) 0.1s both;
}
.pinned-banner img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}
.pinned-banner:hover img { transform: scale(1.06); }
.pinned-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pinned-tag { background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; width: fit-content; margin-bottom: 6px; }
.pinned-title { color: white; font-size: 1.05rem; font-weight: 800; }

/* ─── Responsive Helpers ─── */
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  .btn { padding: 9px 16px; }
  .btn-lg { padding: 13px 22px; font-size: 1rem; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .page-content { padding-bottom: 40px; }
}

/* ─── Desktop Navbar extra links ─── */
.nav-links {
  display: none;
  gap: 4px;
}
@media (min-width: 769px) {
  .nav-links { display: flex; }
  .nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s var(--transition);
    position: relative;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.15); }
  .nav-links a.active { background: rgba(255,255,255,0.2); color: white; }
}

/* ─── Smooth Scroll ─── */
html { scroll-behavior: smooth; }

/* ─── Selection Color ─── */
::selection { background: rgba(177,0,0,0.15); color: var(--primary-dark); }

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