/* Font Import - must be before all other rules per CSS spec */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ============================================================================
   MintyBrick - Consolidated Stylesheet
   Cleaned up and organized - January 2025
   ============================================================================ */

/* Utility: Screen-reader only (visually hidden but accessible) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@font-face {
  font-family: 'LegoStyle';
  src: url('../fonts/LEGO.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================================
   CSS Variables
   ============================================================================ */
:root {
  /* Primary - Aqua (LEGO ID 118) */
  --mint-primary: #B3D7D1;
  --mint-primary-darker: #7C9691; /* try 25% darker first */
  --mint-dark: #008F9B;
  --mint-darker: #008F9B;
  --mint-light: #E5F2F0;
  --mint-pale: #F2F9F8;
  --mint-highlight-pop: #00E6A0;
  
  /* Accent - Coral (LEGO ID 1050) */
  --coral-primary: #FF698F;
  --coral-dark: #E8557A;
  --coral-light: #FF9BB3;
  
  /* Neutrals */
  --text-dark: #05131D;
  --text-muted: #6C6E68;
  --text-light: #A0A5A9;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  
  /* Functional */
  --success: #4B9F4A;
  --warning: #F8BB3D;
  --error: #C91A09;
  
  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: rgba(5, 19, 29, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(5, 19, 29, 0.1);
  --shadow-md: 0 4px 15px rgba(5, 19, 29, 0.15);
  --shadow-lg: 0 6px 30px rgba(5, 19, 29, 0.2);
  --shadow-glass: 
    0 4px 24px rgba(5, 19, 29, 0.08),
    0 1px 2px rgba(5, 19, 29, 0.04),
    inset 0 1px 0 var(--glass-highlight);
  
  /* Wallpaper gradient (adjustable) */
  --gradient-color: var(--mint-dark, #008F9B);
  --gradient-opacity-start: 0;
  --gradient-opacity-mid: 0;
  --gradient-opacity-end: 0;
  --gradient-fade-distance: 50%;
  --gradient-position-x: 0%;
  --gradient-position-y: 0%;
}

/* ============================================================================
   Reset & Base
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  height: 100%;
  color: var(--text-dark, #05131D);
  overflow-x: hidden;
  overflow-y: auto;
  font-weight: 500;
}

/* ============================================================================
   Wallpaper Background
   ============================================================================ */
#wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(165deg, #5A8A84 0%, #7BA89F 50%, #6B9B94 100%);
}

.wallpaper-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(1.1) brightness(0.6);
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.wallpaper-image.loaded { opacity: 1; }

.wallpaper-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mint-primary, #B3D7D1);
  mix-blend-mode: color;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.wallpaper-tint.loaded { opacity: 1; }

.wallpaper-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 150% 100% at var(--gradient-position-x) var(--gradient-position-y),
    rgba(0, 143, 155, var(--gradient-opacity-start)) 0%,
    rgba(0, 143, 155, var(--gradient-opacity-mid)) 25%,
    rgba(0, 143, 155, var(--gradient-opacity-end)) var(--gradient-fade-distance)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.wallpaper-gradient.loaded { opacity: 1; }

/* ============================================================================
   Content Wrapper
   ============================================================================ */
.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2px;
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px 8px;
  gap: 20px;
}

.top-bar.site-header {
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  gap: 10px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}



.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white, #FFFFFF);
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 12px 28px 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-link:hover {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}




.logo-svg {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.brand-name {
  font-family: 'LegoStyle', 'Nunito', sans-serif;
  font-size: 32px;
  font-weight: normal;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 6px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white, #FFFFFF);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.2s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--white, #FFFFFF);
  color: var(--mint-dark, #008F9B);
  text-shadow: none;
}

/* Clock (extension) */
.clock {
  font-size: 48px;
  font-weight: 300;
  color: var(--white, #FFFFFF);
  text-shadow: 0 3px 12px rgba(5, 19, 29, 0.35);
  letter-spacing: -2px;
  flex-shrink: 0;
}

/* Search (extension) */
.search-container-top {
  flex: 1;
  max-width: 600px;
}

.search-container-top #search-input {
  width: 100%;
  padding: 10px 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 500;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  border-radius: 50px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-glass);
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark, #05131D);
}

/* ============================================================================
   Panel Grid Layout
   ============================================================================ */
.panel-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 12px;
  padding: 0 20px 20px;
}

/* Row 1: Brick, News, Minifig */
.brick-panel { grid-column: span 3; }
.news-panel { grid-column: span 6; }
.minifig-panel { grid-column: span 3; }

/* Row 2: YouTube and Deals */
.youtube-panel { grid-column: span 6; grid-row: 2; }
.deals-panel { grid-column: span 6; grid-row: 2; }

/* Row 3: Blog and Community */
.blog-panel { grid-column: span 6; grid-row: 3; }
.community-panel { grid-column: span 6; grid-row: 3; }

/* Panel Base Styles */
.panel {
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  max-height: 358px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.youtube-panel,
.deals-panel {
  min-height: 308px;
  max-height: 308px;
}

.panel:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 32px rgba(5, 19, 29, 0.12),
    0 2px 4px rgba(5, 19, 29, 0.06),
    inset 0 1px 0 var(--glass-highlight);
}

/* Panel Headers */
.panel-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  background: #ffffff;
}

.panel-header h2,
.panel > h2 {
  font-family: 'LegoStyle', 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--mint-dark, #008F9B);
  padding: 0;
  margin: 0;
  background: none;
}

.panel > h2 {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 5px 20px;
  background: #ffffff;
}

.panel h2::before { display: none; }

/* Panel Links */
.panel-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--mint-dark, #008F9B);
  text-decoration: none;
  transition: color 0.2s ease;
}

.panel-link:hover { color: var(--coral-primary, #FF698F); }

.panel-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.panel-title-link:hover { color: var(--coral-primary, #FF698F); }

/* Panel Footer */
.panel-footer {
  padding: 8px 20px;
  text-align: center;
  border-top: 1px solid rgba(179, 215, 209, 0.2);
}

.see-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-dark, #008F9B);
  text-decoration: none;
  transition: color 0.2s ease;
}

.see-all-link:hover { color: var(--coral-primary, #FF698F); }

/* Re-roll Button */
.header-reroll-btn {
  padding: 4px 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  background: rgba(0, 143, 155, 0.1);
  border: 1px solid rgba(0, 143, 155, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 32px;
}

.header-reroll-btn:hover {
  background: rgba(0, 143, 155, 0.18);
  border-color: rgba(0, 143, 155, 0.4);
  transform: translateY(-1px);
}

.header-reroll-btn:active { transform: translateY(0); }
.header-reroll-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.header-reroll-btn.spinning { animation: dice-spin 0.4s ease-out; }

@keyframes dice-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Panel Content */
.panel-content {
  padding: 0 20px 16px;
  overflow-y: auto;
  flex: 1;
}

.panel ul {
  list-style: none;
  padding: 0 20px 16px;
  overflow-y: auto;
  flex: 1;
}

.panel li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(179, 215, 209, 0.15);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.panel li:last-child { border-bottom: none; }

.panel li a {
  color: var(--text-dark, #05131D);
  text-decoration: none;
  transition: color 0.15s ease;
}

.panel li a:hover { color: var(--mint-dark, #008F9B); }

.panel .loading {
  color: var(--text-muted, #6C6E68);
  font-style: italic;
  font-weight: 400;
  padding: 20px;
}
/* ============================================================================
   Brick of the Day Panel
   ============================================================================ */
#brick-of-day {
  text-align: center;
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  flex: 1;
}

.specimen-card {
  display: block;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px 14px 5px;
  margin: 0 auto 8px;
  max-width: 150px;
  box-shadow: 
    0 2px 8px rgba(5, 19, 29, 0.08),
    0 4px 20px rgba(5, 19, 29, 0.05),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specimen-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(5, 19, 29, 0.12),
    0 8px 30px rgba(5, 19, 29, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.specimen-card img {
  max-width: 100px;
  max-height: 100px;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.specimen-card:hover img { transform: scale(1.05); }

.specimen-part-num {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #6C6E68);
  letter-spacing: 0.5px;
}

#brick-of-day .brick-placeholder { font-size: 64px; margin-bottom: 12px; }

#brick-of-day .brick-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark, #05131D);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
}

#brick-of-day .brick-meta {
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
  font-weight: 600;
  margin-bottom: 0;
}

#brick-of-day .brick-facts {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#brick-of-day .brick-fact {
  font-size: 11px;
  color: var(--text-muted, #6C6E68);
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fact-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

#brick-of-day .brick-spacer { flex: 1; min-height: 12px; }

#brick-of-day .brick-info {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.6;
  font-weight: 500;
}

.brick-error { padding: 20px; text-align: center; }

/* ============================================================================
   Minifig of the Day Panel
   ============================================================================ */
#minifig-of-day {
  text-align: center;
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  flex: 1;
}

#minifig-of-day .minifig-placeholder { font-size: 64px; margin-bottom: 12px; }

#minifig-of-day .minifig-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark, #05131D);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
}

#minifig-of-day .minifig-meta {
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
  font-weight: 600;
  margin-bottom: 0;
}

#minifig-of-day .minifig-facts {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#minifig-of-day .minifig-fact {
  font-size: 11px;
  color: var(--text-muted, #6C6E68);
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#minifig-of-day .minifig-spacer { flex: 1; min-height: 12px; }

#minifig-of-day .minifig-info {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.6;
  font-weight: 500;
}

.minifig-error { padding: 20px; text-align: center; }

/* ============================================================================
   News Panel
   ============================================================================ */
.news-item {
  padding: 0 !important;
  border-bottom: 1px solid rgba(179, 215, 209, 0.2);
}

.news-item:last-child { border-bottom: none; }

.news-item a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 5px 0;
  color: var(--text-dark, #05131D);
  text-decoration: none;
  transition: all 0.15s ease;
}

.news-item a:hover { color: var(--mint-dark, #008F9B); }
.news-item a:hover .news-image img { transform: scale(1.08); }

.news-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--mint-light) 0%, var(--mint-pale) 100%);
}

.news-image.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  animation: shimmer 1.2s ease-in-out infinite;
  pointer-events: none;
}

.news-image.loaded::after { display: none; }

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 2;
}

.news-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.3;
}

.news-source { font-weight: 700; color: var(--mint-dark, #008F9B); }
.news-meta.has-date .news-source::after { content: ','; margin-right: 2px; }
.news-date { font-weight: 500; opacity: 0.8; }

/* ============================================================================
   Deals Panel (Homepage)
   ============================================================================ */
#deals-feed {
  list-style: none;
  padding: 0 12px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

#deals-feed .deal-item {
  margin-bottom: 0px;
  margin-top: 10px;
  padding: 0px;
  border-bottom: none;
}

.deal-item:last-child { margin-bottom: 0; }

.deal-item a {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.deal-item a:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(3px);
}

.deal-msrp-price {
  text-decoration: line-through;
}

.deal-image {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  background: var(--white, #FFFFFF);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.deal-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.deal-theme {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.deal-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-set-num {
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
  font-weight: 600;
}

.deal-msrp {
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
}

.deal-msrp span {
  text-decoration: line-through !important;
}

.deal-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.deal-on-sale { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--success); 
}

.deal-see-price { 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--coral-primary, #FF698F); 
}

/* Deals skeleton loader */
.skeleton-deal-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
}

.skeleton-deal-image {
  width: 75px;
  height: 75px;
  background: rgba(179, 215, 209, 0.3);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.skeleton-deal-image::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmerWave 2s infinite;
}

.skeleton-deal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-deal-title {
  height: 16px;
  background: rgba(179, 215, 209, 0.3);
  border-radius: 4px;
  width: 85%;
}

.skeleton-deal-price {
  height: 14px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 4px;
  width: 50%;
}
/* ============================================================================
   YouTube Carousel
   ============================================================================ */
#youtube-gallery {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.gallery-loading {
  color: var(--text-muted, #6C6E68);
  font-style: italic;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 30px;
}

.gallery-error {
  color: var(--text-muted, #6C6E68);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 50px;
}

.gallery-cards {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card {
  position: absolute;
  width: 260px;
  cursor: pointer;
  transition: filter 0.3s ease;
  will-change: transform, opacity;
}

.gallery-card:not(.active) { filter: brightness(0.7); }
.gallery-card.active { filter: brightness(1); }

.gallery-card-inner {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card.active .gallery-card-inner {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-card:hover .gallery-card-inner {
  transform: scale(1.02);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(179, 215, 209, 0.5),
    0 0 50px rgba(179, 215, 209, 0.3);
}

.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card.active .gallery-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--mint-dark, #008F9B);
  padding-left: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-card.active:hover .gallery-thumb::after { opacity: 1; }

.gallery-info { padding: 10px 12px; }

.gallery-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--white, #FFFFFF);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.gallery-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-channel { font-weight: 600; color: var(--mint-light); }
.gallery-date { opacity: 0.8; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mint-dark, #008F9B);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
  background: var(--white, #FFFFFF);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gallery-nav:active { transform: translateY(-50%) scale(0.95); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

/* Carousel alternate styles */
.carousel-wrapper {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: visible;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.carousel-item {
  position: absolute;
  width: 200px;
  text-decoration: none;
  color: inherit;
  transition: filter 0.3s ease;
  will-change: transform, opacity;
}

.carousel-item:not(.active) { filter: brightness(0.6); }
.carousel-item.active { filter: brightness(1); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mint-dark, #008F9B);
  padding-left: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.carousel-item.active:hover .video-play-btn { opacity: 1; }

.video-info { padding: 8px 4px; }

.video-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--white, #FFFFFF);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

.video-channel { font-weight: 600; color: var(--mint-light); }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mint-dark, #008F9B);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
  background: var(--white, #FFFFFF);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot:hover { background: rgba(255, 255, 255, 0.5); }
.carousel-dot.active { background: var(--white, #FFFFFF); transform: scale(1.2); }

/* ============================================================================
   Skeleton Loaders
   ============================================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shimmerWave {
  100% { transform: translateX(100%); }
}

.skeleton-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px 12px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.skeleton-card {
  background: rgba(179, 215, 209, 0.15);
  border-radius: 10px;
  padding: 10px 14px 5px;
  max-width: 150px;
  width: 100%;
  box-shadow: 
    0 2px 8px rgba(5, 19, 29, 0.08),
    0 4px 20px rgba(5, 19, 29, 0.05),
    inset 0 0 0 1px rgba(179, 215, 209, 0.2);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmerWave 2s infinite;
}

.skeleton-image {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 6px;
}

.skeleton-part-num {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(179, 215, 209, 0.25);
  height: 15px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 4px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.skeleton-text {
  height: 14px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 4px;
  margin: 6px auto;
  position: relative;
  overflow: hidden;
}

.skeleton-text::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmerWave 2s infinite;
}

.skeleton-text.title { width: 80%; height: 16px; margin-bottom: 4px; }
.skeleton-text.subtitle { width: 60%; height: 12px; margin-bottom: 8px; }
.skeleton-text.fact { width: 70%; height: 11px; margin-top: 4px; }

/* Deals Skeleton */
#deals-feed .skeleton-deals-loader { padding: 0; margin: 0; list-style: none; }

.skeleton-deal-item {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(179, 215, 209, 0.15);
  animation: fadeIn 0.3s ease;
}

.skeleton-deal-item:last-child { border-bottom: none; }

.skeleton-deal-image {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  background: rgba(179, 215, 209, 0.2);
  position: relative;
  overflow: hidden;
}

.skeleton-deal-image::after,
.skeleton-deal-title::after,
.skeleton-deal-store::after,
.skeleton-deal-badge::after,
.skeleton-deal-price::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmerWave 2s infinite;
}

.skeleton-deal-info { display: flex; flex-direction: column; gap: 8px; }

.skeleton-deal-title {
  height: 15px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 4px;
  width: 80%;
  position: relative;
  overflow: hidden;
}

.skeleton-deal-store {
  height: 12px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 4px;
  width: 40%;
  position: relative;
  overflow: hidden;
}

.skeleton-deal-pricing { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.skeleton-deal-badge {
  height: 20px;
  width: 45px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.skeleton-deal-price {
  height: 16px;
  width: 55px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* News Skeleton */
#news-feed .skeleton-news-loader { padding: 0; margin: 0; list-style: none; }

.skeleton-news-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(179, 215, 209, 0.15);
  animation: fadeIn 0.3s ease;
}

.skeleton-news-item:last-child { border-bottom: none; }

.skeleton-news-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 10px;
  background: rgba(179, 215, 209, 0.2);
  position: relative;
  overflow: hidden;
}

.skeleton-news-image::after,
.skeleton-news-title::after,
.skeleton-news-meta::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmerWave 2s infinite;
}

.skeleton-news-content { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }

.skeleton-news-title {
  height: 16px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 4px;
  width: 85%;
  position: relative;
  overflow: hidden;
}

.skeleton-news-title.line2 { width: 60%; margin-top: 4px; }

.skeleton-news-meta {
  height: 12px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 4px;
  width: 40%;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

/* YouTube Skeleton */
.skeleton-youtube-loader {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 50px;
  animation: fadeIn 0.3s ease;
}

.skeleton-video-card {
  width: 260px;
  background: rgba(179, 215, 209, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(5, 19, 29, 0.12), 0 1px 2px rgba(5, 19, 29, 0.08);
  position: relative;
}

.skeleton-video-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmerWave 2s infinite;
  z-index: 1;
}

.skeleton-video-thumb {
  width: 100%;
  height: 146px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 12px 12px 0 0;
}

.skeleton-video-info { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.skeleton-video-title {
  height: 14px;
  background: rgba(179, 215, 209, 0.25);
  border-radius: 4px;
  width: 90%;
}

.skeleton-video-title.line2 { width: 70%; margin-top: 4px; }

.skeleton-video-meta {
  height: 11px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 4px;
  width: 50%;
  margin-top: 4px;
}

.skeleton-video {
  width: 180px;
  height: 140px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 10px;
  animation: shimmer 1.5s infinite;
  margin: 0 10px;
}

/* ============================================================================
   Custom Scrollbar
   ============================================================================ */
.panel ul::-webkit-scrollbar,
.panel-content::-webkit-scrollbar {
  width: 6px;
}

.panel ul::-webkit-scrollbar-track,
.panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.panel ul::-webkit-scrollbar-thumb,
.panel-content::-webkit-scrollbar-thumb {
  background: rgba(179, 215, 209, 0.3);
  border-radius: 3px;
}

.panel ul::-webkit-scrollbar-thumb:hover,
.panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(179, 215, 209, 0.5);
}
/* ============================================================================
   Site Footer
   ============================================================================ */
.footer-attribution { display: none; }

.site-footer {
  margin-top: auto;
  padding: 20px;
  background: rgba(5, 19, 29, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.affiliate-disclosure {
  padding: 12px 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.affiliate-disclosure p { margin: 0; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white, #FFFFFF);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--mint-primary, #B3D7D1);
  color: var(--text-dark, #05131D);
  transform: translateY(-2px);
}

.footer-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-meta p { margin: 0 0 4px; }
.footer-legal { font-size: 10px; opacity: 0.7; }

.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--white, #FFFFFF);
  text-decoration: underline;
}

.footer-legal-links .separator { color: rgba(255, 255, 255, 0.4); }

/* ============================================================================
   Deals Page (Full Page)
   ============================================================================ */
.deals-page {
  padding: 0 20px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.deals-hero {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.deals-hero h1 {
  font-family: 'LegoStyle', 'Nunito', sans-serif;
  font-size: 48px;
  font-weight: normal;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.deals-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.deal-card {
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  transition: all 0.25s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(5, 19, 29, 0.15);
}

.deal-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.deal-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--white, #FFFFFF);
  overflow: hidden;
}

.deal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}

.deal-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--success);
  color: var(--white, #FFFFFF);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.deal-card-body { padding: 15px; }

.deal-card-theme {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.deal-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  line-height: 1.3;
  margin: 0 0 6px;
}

.deal-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
  margin-bottom: 6px;
}

.deal-card-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted, #6C6E68);
  margin-bottom: 10px;
}

.deal-card-pricing { margin-bottom: 12px; }

.deal-card-msrp { font-size: 14px; color: var(--text-dark, #05131D); }
.deal-card-msrp strong { font-weight: 700; }

.deal-card-cta { text-align: center; }

.btn-amazon {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
  color: var(--white, #FFFFFF);
  font-size: 14px;
  font-weight: 700;
  border-radius: 25px;
  box-shadow: 0 3px 12px rgba(255, 102, 0, 0.3);
  transition: all 0.2s ease;
}

.deal-card:hover .btn-amazon {
  transform: scale(1.03);
  box-shadow: 0 5px 18px rgba(255, 102, 0, 0.4);
}

.deals-notice {
  margin-top: 30px;
  padding: 20px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.6;
}

.deals-notice strong { color: var(--text-dark, #05131D); }

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted, #6C6E68);
}

/* ============================================================================
   Blog Feed (Homepage Panel)
   ============================================================================ */
.blog-feed {
  list-style: none;
  padding: 0 12px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.blog-feed-item { margin-bottom: 10px; }

.blog-feed-item a {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.blog-feed-item a:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(3px);
}

.blog-feed-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: var(--white, #FFFFFF);
  border-radius: 8px;
  overflow: hidden;
}

.blog-feed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-feed-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blog-feed-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-feed-excerpt {
  font-size: 11px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.blog-feed-date { font-size: 10px; color: var(--text-light, #A0A5A9); }

.blog-feed-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--mint-dark, #008F9B);
  text-transform: uppercase;
  background: rgba(179, 215, 209, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted, #6C6E68);
  font-style: italic;
}

/* ============================================================================
   Blog Page (Listing)
   ============================================================================ */
.blog-page {
  padding: 0 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-hero {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.blog-hero h1 {
  font-family: 'LegoStyle', 'Nunito', sans-serif;
  font-size: 48px;
  font-weight: normal;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(5, 19, 29, 0.15);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--mint-light);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body { padding: 18px; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.blog-card-date { font-size: 12px; color: var(--text-muted, #6C6E68); }

.blog-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  text-transform: uppercase;
  background: rgba(179, 215, 209, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  line-height: 1.3;
  margin: 0 0 8px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-read { font-size: 13px; font-weight: 600; color: var(--coral-primary, #FF698F); }

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 15px;
}

.pagination-link {
  padding: 10px 20px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(5px);
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-dark, #008F9B);
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: var(--white, #FFFFFF);
  transform: translateY(-2px);
}

.pagination-info { font-size: 13px; color: rgba(255, 255, 255, 0.8); }

/* ============================================================================
   Blog Page (Single Post)
   ============================================================================ */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.post-hero {
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.post-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid rgba(179, 215, 209, 0.2);
}

.post-title {
  font-family: 'Nunito', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark, #05131D);
  line-height: 1.2;
  margin: 0 0 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
}

.post-author { font-weight: 600; }
.post-date { opacity: 0.8; }

.post-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.post-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--mint-dark, #008F9B);
  text-transform: uppercase;
  background: rgba(179, 215, 209, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Post Content Typography */
.post-content {
  padding: 30px 40px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark, #05131D);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  margin: 1.5em 0 0.5em;
}

.post-content h1 { font-size: 28px; }
.post-content h2 { font-size: 24px; color: var(--mint-dark, #008F9B); }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 18px; }

.post-content p { margin: 0 0 1.2em; }

.post-content a {
  color: var(--coral-primary, #FF698F);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.post-content a:hover { color: var(--coral-dark); }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
  box-shadow: 0 4px 20px rgba(5, 19, 29, 0.15);
}

.post-content blockquote {
  margin: 1.5em 0;
  padding: 15px 25px;
  background: rgba(179, 215, 209, 0.15);
  border-left: 4px solid var(--mint-dark);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-muted, #6C6E68);
}

.post-content ul,
.post-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.post-content li { margin: 0.5em 0; }

.post-content code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.9em;
  background: rgba(179, 215, 209, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre {
  margin: 1.5em 0;
  padding: 20px;
  background: var(--text-dark);
  border-radius: 12px;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--mint-light);
  font-size: 14px;
}

.post-content hr {
  border: none;
  border-top: 2px solid rgba(179, 215, 209, 0.3);
  margin: 2em 0;
}

.post-footer {
  padding: 20px 40px 30px;
  border-top: 1px solid rgba(179, 215, 209, 0.2);
}

.back-to-blog {
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-dark, #008F9B);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-blog:hover { color: var(--coral-primary, #FF698F); }

/* Blog Header with gradient (for readability over wallpaper) */
.blog-header {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.blog-header h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* ============================================================================
   Legal Pages (Privacy, Terms)
   ============================================================================ */
.legal-page {
  padding: 0 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  padding: 40px 50px;
}

.legal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(179, 215, 209, 0.3);
}

.legal-header h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark, #05131D);
  margin: 0 0 10px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  margin: 0;
}

.legal-section { margin-bottom: 30px; }

.legal-section h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(179, 215, 209, 0.2);
}

.legal-section h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  margin: 20px 0 10px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark, #05131D);
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 10px 0 15px;
  padding-left: 25px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark, #05131D);
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--coral-primary, #FF698F);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover { color: var(--coral-dark); }
.legal-section strong { font-weight: 700; color: var(--text-dark, #05131D); }

.legal-summary {
  background: rgba(179, 215, 209, 0.15);
  border-radius: 12px;
  padding: 25px 30px;
  margin-top: 40px;
}

.legal-summary h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.legal-summary ul { margin-bottom: 0; }
.legal-summary li { color: var(--text-muted, #6C6E68); }

/* ============================================================================
   Community Panel (Homepage)
   ============================================================================ */
.community-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  flex: 1;
}

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

.community-placeholder p {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  margin-bottom: 16px;
  max-width: 250px;
}

.placeholder-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--mint-dark, #008F9B);
  color: var(--white, #FFFFFF);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.2s ease;
}

.placeholder-cta:hover {
  background: var(--mint-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 143, 155, 0.3);
}

.community-panel .panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.community-builds-carousel {
  flex: 1;
  overflow: hidden;
  padding: 10px 15px;
}

.community-builds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.community-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.community-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.community-thumb:hover img { transform: scale(1.1); }

.community-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.community-thumb:hover .community-thumb-overlay { opacity: 1; }

.community-panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-muted, #6C6E68);
}

.community-panel-empty .empty-icon { font-size: 40px; margin-bottom: 10px; }

.community-panel-cta {
  padding: 12px 15px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.community-panel-cta a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--coral-primary), var(--coral-dark));
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.community-panel-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

/* ============================================================================
   Community Gallery Page
   ============================================================================ */
.community-page {
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.community-header {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.community-header h1 {
  font-family: 'LegoStyle', 'Nunito', sans-serif;
  font-size: 48px;
  font-weight: normal;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.community-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.submit-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: white;
  background: linear-gradient(135deg, var(--coral-primary), var(--coral-dark));
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.submit-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

.community-stats {
  text-align: center;
  margin-bottom: 25px;
}

.community-stats .stat {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
}

/* Empty State */
.community-empty {
  text-align: center;
  padding: 60px 30px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
}

.community-empty .empty-icon { font-size: 60px; margin-bottom: 15px; }

.community-empty h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  color: var(--text-dark, #05131D);
  margin: 0 0 10px;
}

.community-empty p {
  color: var(--text-muted, #6C6E68);
  margin: 0 0 20px;
}

/* Builds Grid */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.build-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.build-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.build-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.build-image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.build-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
}

.build-card:hover .build-image { transform: scale(1.05); }

.build-info { padding: 18px 20px; }

.build-title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  margin: 0 0 8px;
  line-height: 1.3;
}

.build-meta {
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
  margin-bottom: 10px;
}

.build-author { font-weight: 600; }

.build-meta .instagram-link {
  color: var(--coral-primary, #FF698F);
}
.build-location::before { content: '•'; margin: 0 6px; }

.build-description {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* stylelint-disable-next-line property-no-unknown */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA Section */
.community-cta {
  margin-top: 50px;
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
}

.community-cta h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  color: var(--text-dark, #05131D);
  margin: 0 0 10px;
}

.community-cta p {
  color: var(--text-muted, #6C6E68);
  margin: 0 0 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   Submit Page
   ============================================================================ */
.submit-page {
  padding: 0 20px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.submit-hero {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.submit-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.submit-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Success/Error Messages */
.submit-message {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  text-align: center;
}

.submit-message.success {
  background: rgba(16, 185, 129, 0.85);
  color: #002f20;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.submit-message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Form Container */
.submit-container {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  padding: 30px 35px;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Form Sections */
.form-section h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(179, 215, 209, 0.3);
}

/* Form Groups */
.form-group { margin-bottom: 15px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark, #05131D);
  margin-bottom: 6px;
}

.form-group label.required::after {
  content: ' *';
  color: var(--coral-primary, #FF698F);
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted, #6C6E68);
  font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid rgba(179, 215, 209, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark, #05131D);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint-primary, #B3D7D1);
  box-shadow: 0 0 0 3px rgba(179, 215, 209, 0.3);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted, #6C6E68);
  opacity: 0.7;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
  margin-top: 5px;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
  text-align: right;
  margin-top: 4px;
}

/* Form Row (side by side inputs) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Input with prefix (@ symbol) */
.input-with-prefix {
  display: flex;
  align-items: stretch;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(179, 215, 209, 0.3);
  border: 1px solid rgba(179, 215, 209, 0.5);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 15px;
  color: var(--text-muted, #6C6E68);
}

.input-with-prefix input { border-radius: 0 10px 10px 0; }

/* File Upload */
.file-upload-wrapper { position: relative; }

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border: 2px dashed rgba(179, 215, 209, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.file-upload-wrapper:hover .file-upload-display,
.file-upload-wrapper input:focus + .file-upload-display {
  border-color: var(--mint-primary, #B3D7D1);
  background: rgba(179, 215, 209, 0.1);
}

.file-upload-icon { font-size: 36px; margin-bottom: 10px; }

.file-upload-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark, #05131D);
}

.file-upload-hint {
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
  margin-top: 5px;
}

.file-upload-wrapper.has-file .file-upload-display { display: none; }
.file-preview { display: none; }
.file-upload-wrapper.has-file .file-preview { display: block; }

.file-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  background: #f0f0f0;
}

/* Checkboxes - with increased specificity for proper display */
.checkbox-group { margin-bottom: 12px; }

.form-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-group .checkbox-label .checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 2px solid rgba(179, 215, 209, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  position: relative;
  margin-top: 2px;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--mint-primary, #B3D7D1);
  border-color: var(--mint-primary, #B3D7D1);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label input:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(179, 215, 209, 0.3);
}

.checkbox-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dark, #05131D);
}

.checkbox-text a {
  color: var(--coral-primary, #FF698F);
  text-decoration: underline;
}

/* Captcha Section */
.captcha-section {
  display: flex;
  justify-content: center;
}

.captcha-placeholder {
  padding: 20px;
  background: rgba(255, 200, 100, 0.2);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: #856404;
}

/* Submit Button */
.submit-section { text-align: center; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: white;
  background: linear-gradient(135deg, var(--coral-primary), var(--coral-dark));
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

.submit-btn:active { transform: translateY(0); }
.submit-btn .btn-loading { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: inline; }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Guidelines */
.submit-guidelines {
  margin-top: 30px;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
}

.submit-guidelines h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  margin: 0 0 12px;
}

.submit-guidelines ul {
  margin: 0;
  padding-left: 20px;
}

.submit-guidelines li {
  font-size: 14px;
  color: var(--text-muted, #6C6E68);
  margin-bottom: 6px;
}

/* ============================================================================
   Global Page Hero (reusable)
   ============================================================================ */
.page-hero {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}
/* ============================================================================
   Responsive Styles - All Breakpoints Consolidated
   ============================================================================ */

/* Large screens */
@media (max-width: 1200px) {
  .panel-grid { gap: 14px; }
  .panel { max-height: 368px; }
  .youtube-panel,
  .deals-panel { max-height: 288px; }
  .gallery-card { width: 220px; }
}

/* Medium screens / Tablets */
@media (max-width: 900px) {
  /* Grid collapses to single column */
  .panel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  /* Reset grid rows and set mobile order */
  .brick-panel,
  .news-panel,
  .minifig-panel,
  .youtube-panel,
  .deals-panel,
  .blog-panel,
  .community-panel {
    grid-column: 1;
    grid-row: auto;
  }
  
  /* Mobile panel order: News, Brick, YouTube, Minifig, Deals, Blog, Community */
  .news-panel { order: 1; }
  .brick-panel { order: 2; }
  .youtube-panel { order: 3; }
  .minifig-panel { order: 4; }
  .deals-panel { order: 5; }
  .blog-panel { order: 6; }
  .community-panel { order: 7; }
  
  /* Panel heights - allow content to fit */
  .panel { 
    max-height: none; 
    min-height: 200px; 
  }
  .brick-panel,
  .minifig-panel { max-height: 420px; }
  .news-panel { max-height: 380px; }
  .youtube-panel { 
    max-height: 380px;
    min-height: 320px;
  }
  .deals-panel { max-height: 350px; }
  .blog-panel { max-height: 300px; }
  .community-panel { max-height: 320px; }
  
  /* Header adjustments */
  .clock { font-size: 42px; }
  .logo-svg { height: 32px; }
  .brand-name { font-size: 26px; }
  
  /* Carousel */
  .gallery-card { width: 240px; }
  
  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  
  .post-header,
  .post-content,
  .post-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
  
  .post-title { font-size: 26px; }
}

/* Small screens / Large phones */
@media (max-width: 700px) {
  /* Header - ensure branding above nav */
  .top-bar.site-header {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
  }
  
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  
  .branding { order: 1; }
  .main-nav {
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Top bar for tab page */
  .top-bar {
    flex-wrap: wrap;
    padding: 10px 16px 20px;
  }
  
  .clock { order: 2; font-size: 36px; }
  
  .search-container-top {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 12px;
  }
  
  /* Navigation */
  .nav-link {
    padding: 5px 12px;
    font-size: 12px;
  }
  
  /* Panel grid - wider side margins for scroll protection */
  .panel-grid { padding: 0 28px 16px; }
  
  /* Panel heights - allow content to fit properly */
  .panel { 
    max-height: none; 
    min-height: 180px; 
  }
  .brick-panel,
  .minifig-panel { max-height: 400px; }
  .news-panel { max-height: 360px; }
  .youtube-panel { 
    max-height: 360px;
    min-height: 300px;
  }
  .deals-panel { max-height: 320px; }
  .blog-panel { max-height: 280px; }
  .community-panel { max-height: 300px; }
  
  /* YouTube carousel mobile fixes */
  .youtube-panel .carousel-wrapper { 
    min-height: 220px; 
  }
  .carousel-item { width: 140px; }
  .carousel-nav { 
    width: 32px; 
    height: 32px; 
    font-size: 16px; 
  }
  
  /* Deals page */
  .deals-hero h1 { font-size: 36px; }
  .deals-grid { grid-template-columns: 1fr; }
  
  /* Blog page */
  .blog-hero h1 { font-size: 36px; }
  
  .post-header,
  .post-content,
  .post-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .post-title { font-size: 22px; }
  .post-content { font-size: 15px; }
  
  /* Legal pages */
  .legal-content { padding: 25px 20px; }
  .legal-header h1 { font-size: 28px; }
  .legal-section h2 { font-size: 19px; }
  .legal-section p,
  .legal-section li { font-size: 14px; }
  
  /* Community/Submit pages */
  .submit-hero h1,
  .community-header h1 { font-size: 28px; }
  
  .submit-container { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .builds-grid { grid-template-columns: 1fr; }
  .community-builds-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Footer */
  .site-footer { padding: 15px; }
  .footer-links { gap: 12px; }
  .social-link { width: 32px; height: 32px; }
}

/* Extra small screens / Phones */
@media (max-width: 500px) {
  .logo-svg { height: 28px; }
  .brand-name { font-size: 20px; }
  .clock { font-size: 32px; }

  .brand-link {
    padding: 10px 20px 10px 14px;
    gap: 8px;
  }

  .main-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .search-container-top #search-input {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* Even wider margins on very small screens */
  .panel-grid { padding: 0 20px 16px; }
  
  /* Adjust panel heights for smaller screens */
  .brick-panel,
  .minifig-panel { max-height: 380px; }
  .youtube-panel { 
    max-height: 340px;
    min-height: 280px;
  }
  
  /* YouTube carousel on small phones */
  .carousel-item { width: 120px; }
  .carousel-nav { 
    width: 28px; 
    height: 28px; 
    font-size: 14px; 
  }
  
  .gallery-card { width: 180px; }
  
  /* Community carousel adjustments */
  .community-carousel { padding: 10px 36px; }
  .community-carousel-card { width: 160px; }
  .community-carousel-nav { width: 30px; height: 30px; font-size: 14px; }
}

/* ============================================================================
   Community Builds Carousel (Homepage)
   ============================================================================ */

.community-carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 10px 44px; /* space for nav buttons */
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-carousel-cards {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px; /* prevents the “bottom chopped off” issue */
}

.community-carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  will-change: transform, opacity;
  pointer-events: auto;
}

.community-carousel-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;   /* keep square by default */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.community-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.community-carousel-card:hover .community-carousel-overlay { opacity: 1; }

.community-carousel-card--cta .community-carousel-thumb { display: none; }

.community-carousel-cta-inner {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(179, 215, 209, 0.9), rgba(255, 111, 97, 0.85));
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  text-align: center;
  padding: 14px;
}

.community-carousel-cta-icon { font-size: 34px; }
.community-carousel-cta-text { font-size: 13px; font-weight: 800; }

.community-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mint-dark, #008F9B);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 200;         /* <-- MUST be higher than card z-index (100) */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.community-carousel-nav:hover {
  background: var(--white, #FFFFFF);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.community-carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.community-carousel-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.community-carousel-nav:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.community-carousel-prev { left: 10px; }
.community-carousel-next { right: 10px; }

.community-carousel-nav:disabled {
  opacity: 0.25;
  cursor: default;
}


/* Panel Subtitles - Mint banner style */
.panel-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a5c52;
  background: linear-gradient(135deg, #B3D7D1 0%, #9fc9c2 100%);
  margin: 5px -20px -5px -20px;
  padding: 6px 20px;
  width: calc(100% + 40px);
  order: 99;
}

.panel-header {
  flex-wrap: wrap;
}

/* ============================================================================
   MintyBrick Share Widget
   ============================================================================ */

/* Widget Container */
.mbShare-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

/* Button Base Styles */
.mbShare-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  color: var(--text-dark, #05131D);
  box-shadow: var(--shadow-sm);
}

.mbShare-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.7);
}

.mbShare-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.mbShare-btn:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 2px;
}

/* Primary Button (Share) */
.mbShare-btn-primary {
  background: linear-gradient(135deg, var(--mint-primary), var(--mint-primary-darker));
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(179, 215, 209, 0.4);
}

.mbShare-btn-primary:hover {
  background: linear-gradient(135deg, var(--mint-dark), var(--mint-darker));
  box-shadow: 0 4px 12px rgba(179, 215, 209, 0.5);
}

/* Secondary Button (Copy Link) */
.mbShare-btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

/* Success State for Copy Button */
.mbShare-btn.mbShare-copied {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Icon Sizing */
.mbShare-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Desktop-only elements */
.mbShare-desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mbShare-desktop-only {
    display: inline-flex;
  }
}

/* QR Button */
.mbShare-btn-qr {
  padding: 10px 12px;
  min-width: 50px;
}

.mbShare-desktop-only-text {
  font-size: 13px;
}

/* ============================================================================
   Share Modal (Fallback when Web Share API unavailable)
   ============================================================================ */

.mbShare-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mbShare-modal[hidden] {
  display: none;
}

/* Modal Backdrop */
.mbShare-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* Modal Content Box */
.mbShare-modal-content {
  position: relative;
  z-index: 2;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Modal Header */
.mbShare-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(179, 215, 209, 0.3);
}

.mbShare-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark, #05131D);
}

.mbShare-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted, #6C6E68);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.mbShare-modal-close:hover {
  color: var(--text-dark, #05131D);
  background: rgba(0, 0, 0, 0.05);
}

.mbShare-modal-close:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 2px;
}

/* Modal Body */
.mbShare-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* URL Field */
.mbShare-url-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mbShare-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #6C6E68);
}

.mbShare-url-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  border: 1px solid rgba(179, 215, 209, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark, #05131D);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: text;
}

.mbShare-url-input:focus {
  outline: none;
  border-color: var(--mint-primary, #B3D7D1);
  box-shadow: 0 0 0 3px rgba(179, 215, 209, 0.3);
}

.mbShare-url-desc {
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
}

/* Modal Copy Button */
.mbShare-modal-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--mint-primary), var(--mint-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(179, 215, 209, 0.4);
}

.mbShare-modal-copy-btn:hover {
  background: linear-gradient(135deg, var(--mint-dark), var(--mint-darker));
  box-shadow: 0 4px 12px rgba(179, 215, 209, 0.5);
  transform: translateY(-1px);
}

.mbShare-modal-copy-btn:active {
  transform: translateY(0);
}

.mbShare-modal-copy-btn:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 2px;
}

/* Success State */
.mbShare-modal-copy-btn.mbShare-copied {
  background: var(--success);
}

/* Success Message */
.mbShare-success-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(75, 159, 74, 0.15);
  border: 1px solid rgba(75, 159, 74, 0.3);
  border-radius: 8px;
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
  animation: mbShareFadeIn 0.3s ease;
}

.mbShare-success-msg[hidden] {
  display: none;
}

@keyframes mbShareFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* QR Code Section (placeholder) */
.mbShare-qr-section {
  margin-top: 8px;
  padding: 24px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 12px;
  text-align: center;
}

.mbShare-qr-placeholder {
  color: var(--text-muted, #6C6E68);
  font-size: 13px;
  font-style: italic;
}

/* ============================================================================
   No-JS Fallback Styles
   ============================================================================ */

.mbShare-noscript {
  margin: 16px 0;
  padding: 16px;
  background: rgba(179, 215, 209, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(179, 215, 209, 0.3);
}

.mbShare-noscript strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
}

/* ============================================================================
   Responsive Adjustments
   ============================================================================ */

@media (max-width: 768px) {
  .mbShare-widget {
    flex-wrap: wrap;
  }

  .mbShare-btn {
    font-size: 13px;
    padding: 9px 14px;
  }

  .mbShare-icon {
    width: 14px;
    height: 14px;
  }

  .mbShare-modal-content {
    border-radius: 12px;
  }

  .mbShare-modal-header {
    padding: 16px 20px;
  }

  .mbShare-modal-body {
    padding: 20px;
  }

  .mbShare-modal-title {
    font-size: 16px;
  }

  .mbShare-url-input {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ============================================================================
   SunSets Page (Retiring Sets)
   ============================================================================ */
.sunsets-page {
  padding: 0 20px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.sunsets-hero {
  text-align: center;
  padding: 30px 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  margin: 0 -20px 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.sunsets-hero h1 {
  font-family: 'LegoStyle', 'Nunito', sans-serif;
  font-size: 48px;
  font-weight: normal;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sunsets-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sunsets-updated {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sunsets-updated a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.sunsets-updated a:hover {
  color: #ffffff;
}

/* Filters */
.sunsets-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #6C6E68);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark, #05131D);
  cursor: pointer;
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--mint-dark, #008F9B);
  box-shadow: 0 0 0 3px rgba(0, 143, 155, 0.15);
}

.filter-stats {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
}

/* Grid */
.sunsets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Cards */
.sunset-card {
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  transition: all 0.25s ease;
}

.sunset-card.hidden {
  display: none;
}

.sunset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(5, 19, 29, 0.15);
}

.sunset-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--white, #FFFFFF);
  overflow: hidden;
}

.sunset-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}

/* Retirement Badge */
.retirement-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.retirement-badge.urgency-urgent {
  background: var(--error, #C91A09);
  color: var(--white, #FFFFFF);
  animation: pulse-urgent 2s ease-in-out infinite;
}

.retirement-badge.urgency-soon {
  background: var(--warning, #F8BB3D);
  color: var(--text-dark, #05131D);
}

.retirement-badge.urgency-normal {
  background: var(--success, #4B9F4A);
  color: var(--white, #FFFFFF);
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Card Body */
.sunset-card-body {
  padding: 15px;
}

.sunset-card-theme {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-dark, #008F9B);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sunset-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
  line-height: 1.3;
  margin: 0 0 6px;
}

.sunset-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
  margin-bottom: 8px;
}

.sunset-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.sunset-msrp {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark, #05131D);
}

.sunset-msrp-label {
  font-size: 12px;
  color: var(--text-muted, #6C6E68);
}

.sunset-card-cta {
  display: block;
  text-align: center;
  text-decoration: none;
}

.sunset-card:hover .btn-amazon {
  transform: scale(1.03);
  box-shadow: 0 5px 18px rgba(255, 102, 0, 0.4);
}

/* Load More Button */
.sunsets-load-more {
  text-align: center;
  margin-top: 30px;
}

.btn-load-more {
  display: inline-block;
  padding: 14px 40px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 2px solid var(--mint-dark, #008F9B);
  border-radius: 30px;
  color: var(--mint-dark, #008F9B);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background: var(--mint-dark, #008F9B);
  color: var(--white, #FFFFFF);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 143, 155, 0.3);
}

.btn-load-more.hidden {
  display: none;
}

/* Attribution Footer */
.sunsets-attribution {
  margin-top: 30px;
  padding: 20px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #6C6E68);
  line-height: 1.6;
}

.sunsets-attribution a {
  color: var(--mint-dark, #008F9B);
  text-decoration: none;
}

.sunsets-attribution a:hover {
  text-decoration: underline;
}

.sunsets-attribution .affiliate-notice {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light, #A0A5A9);
}

/* Empty State */
.sunsets-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
}

.sunsets-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.sunsets-empty h3 {
  font-size: 20px;
  color: var(--text-dark, #05131D);
  margin-bottom: 8px;
}

.sunsets-empty p {
  color: var(--text-muted, #6C6E68);
}

/* SunSets Responsive */
@media (max-width: 768px) {
  .sunsets-hero h1 {
    font-size: 36px;
  }

  .sunsets-subtitle {
    font-size: 15px;
  }

  .sunsets-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
    min-width: auto;
  }

  .filter-stats {
    margin-left: 0;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  }

  .sunsets-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }
}