/* NexEWaste: Product Marketplace Styling */
/* ==========================================================================
   NexEWaste - Shared Eco-Luxury Design System
   Source of truth: index.html (Landing Page)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core brand palette */
  --accent: #064E3B;      /* Deep Forest Emerald */
  --accent-2: #059669;    /* Medium Emerald */
  --cta: #059669;         /* Primary Action Emerald */
  --lime: #b5d334;        /* Signature Eco-Lime Accent */
  --deep: #0d2219;        /* Midnight Forest Green */
  --ink: #18181b;         /* Zinc-900 typography */
  --muted: #52525b;       /* Zinc-600 body */
  --subtle: #71717a;      /* Zinc-500 captions & meta */
  --line: #e4e4e7;        /* Zinc-200 border dividers */
  --bg: #F8FAF9;          /* Tinted soft canvas background */
  --surface: #ffffff;     /* Pure white card surface */
  --tint: #e4ebe1;        /* Soft sage accent wash */

  /* Functional status accents */
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --emerald-bg: #ecfdf5;
  --emerald-text: #065f46;

  /* Elevation & Border Radius Tokens */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, .14);
  --shadow-lg: 0 18px 40px -14px rgba(5, 150, 105, .4);
  --shadow-glass: 0 12px 32px rgba(0, 0, 0, .14);
}

/* Base resets & box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Layout Container */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ==========================================================================
   Typography & Section Eyebrows
   ========================================================================== */

.label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-on-dark {
  color: var(--lime);
}

.h1-hero,
.hero h1 {
  margin: 16px 0 24px;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.035em;
  color: #f2f7f3;
}

.hero p.sub {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.6;
  color: #c9d9cf;
  max-width: 520px;
}

.h2,
.section-title {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--ink);
}

.lede,
.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.section {
  padding-top: 112px;
}

.split {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* ==========================================================================
   Hero & Page Banner System
   ========================================================================== */

.hero,
.page-hero {
  position: relative;
  color: #f2f7f3;
  background: radial-gradient(120% 90% at 75% 15%, #2f6b4e 0%, rgba(47, 107, 78, 0) 55%),
              linear-gradient(160deg, #143a2b 0%, #0a1d16 100%);
  border-radius: 0 0 40px 40px;
  padding-top: 16px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  inset: -25% -10%;
  background: radial-gradient(40% 40% at 25% 35%, rgba(16, 185, 129, .38), transparent 70%),
              radial-gradient(35% 35% at 75% 65%, rgba(181, 211, 52, .22), transparent 70%);
  filter: blur(30px);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

.hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}

.page-hero-body {
  position: relative;
  z-index: 1;
  padding-top: 36px;
  padding-bottom: 52px;
}

/* ==========================================================================
   Sticky Pill Navigation Bar (.hero-top)
   ========================================================================== */

.hero-top {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 28px;
  margin-top: 0;
  margin-bottom: 8px;
  border-radius: var(--radius-full);
  position: sticky;
  top: 14px;
  z-index: 20;
  background: rgba(6, 78, 59, .70);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .25);
  transition: background-color .4s cubic-bezier(.16, 1, .3, 1),
              box-shadow .4s cubic-bezier(.16, 1, .3, 1),
              height .3s ease,
              border-color .3s ease,
              transform .3s ease,
              margin .3s ease,
              top .3s ease;
}

.hero-top.scrolled {
  background: rgba(4, 46, 35, .90);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(181, 211, 52, .24);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, .5);
  height: 64px;
  top: 10px;
}

.hero-top .brand-logo,
.brand-logo {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
  white-space: nowrap;
}

.hero-top .brand-logo:hover,
.brand-logo:hover {
  transform: scale(1.03);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 6px;
  font-size: 14px;
  color: #d9e6dd;
  font-weight: 500;
  align-items: center;
}

.nav a,
.nav .nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: #d9e6dd;
  transition: color .25s cubic-bezier(.16, 1, .3, 1),
              background-color .25s cubic-bezier(.16, 1, .3, 1),
              transform .2s ease;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav a.active,
.nav .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, .15);
  font-weight: 600;
  text-decoration: none;
}

.nav a:active,
.nav .nav-link:active {
  transform: translateY(0);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ==========================================================================
   Button System (.btn)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s ease, transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 1;
}

.btn:active {
  transform: scale(.95);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn:hover::after {
  animation: sheen .8s ease;
}

@keyframes sheen {
  to { transform: translateX(120%); }
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-grad {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, .28);
}

.btn-grad:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(5, 150, 105, .4);
  text-decoration: none;
}

.btn-light {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.btn-light:hover {
  background: #eef4ec;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #f4f8f5;
  border-color: var(--accent-2);
  color: var(--accent);
  text-decoration: none;
}

.btn-outline-emerald {
  background: transparent;
  color: var(--accent-2);
  border: 1.5px solid var(--accent-2);
}

.btn-outline-emerald:hover {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  text-decoration: none;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

/* ==========================================================================
   Card System (.product, .item-card, .related-card)
   ========================================================================== */

.product,
.item-card,
.related-card {
  display: block;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.product:hover,
.item-card:hover,
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #a7f3d0;
  text-decoration: none;
}

.product .ph,
.item-thumb,
.related-thumb {
  overflow: hidden;
  aspect-ratio: 4/3;
  height: auto;
  background: linear-gradient(135deg, #f1f4f0, #e2e8e1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--accent-2);
}

.product .ph::after,
.item-thumb::after,
.related-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.product:hover .ph::after,
.item-card:hover .item-thumb::after,
.related-card:hover .related-thumb::after {
  animation: sheen .9s ease;
}

.product .ph .dev,
.item-thumb svg,
.related-thumb svg {
  transition: transform .5s ease;
}

.product:hover .ph .dev,
.item-card:hover .item-thumb svg,
.related-card:hover .related-thumb svg {
  transform: scale(1.05);
}

/* ==========================================================================
   Glassmorphism (.glass)
   ========================================================================== */

.glass {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 22px;
  color: #f2f7f3;
  box-shadow: var(--shadow-glass);
}

.glass .t {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.glass .d {
  font-size: 14px;
  line-height: 1.5;
  color: #c9d9cf;
  margin: 0;
}

/* ==========================================================================
   Chips, Pills, & Badges
   ========================================================================== */

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #f2f7f3;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
  text-decoration: none;
}

.chip:hover {
  text-decoration: none;
  border-color: rgba(181, 211, 52, .8);
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.chip-light {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.chip-light:hover {
  text-decoration: none;
  border-color: var(--accent-2);
  color: var(--accent);
  background: var(--tint);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-pill.status-green {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid #a7f3d0;
}

.badge-pill.status-amber {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #fde68a;
}

.badge-pill.status-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid #bfdbfe;
}

.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(181, 211, 52, .14);
  color: var(--lime);
  margin-bottom: 14px;
}

.ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--emerald-bg);
  color: #047857;
  margin-bottom: 8px;
}

.s-ic {
  display: flex;
  align-items: center;
  padding-left: 14px;
  color: var(--subtle);
}

.pulse {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Search Bar (Landing page style) */
.search,
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  max-width: 560px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}

.search:focus-within,
.search-pill:focus-within {
  transform: scale(1.01);
  box-shadow: 0 0 0 3px rgba(181, 211, 52, .35), 0 0 26px rgba(16, 185, 129, .35);
}

.search input,
.search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}

.search input::placeholder,
.search-pill input::placeholder {
  color: var(--subtle);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(181, 211, 52, .3);
}

/* ==========================================================================
   Modals & Notifications
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 34, 25, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .25s cubic-bezier(.16, 1, .3, 1);
}

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

.modal-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.btn-close {
  background: #f4f4f5;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}

.btn-close:hover {
  background-color: #e4e4e7;
  color: var(--ink);
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #fafbfa;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--deep);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  border-left: 4px solid var(--lime);
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-right: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Footer (.footer)
   ========================================================================== */

.footer {
  background: var(--deep);
  color: #c9d9cf;
  margin-top: 112px;
  border-radius: 40px 40px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
}

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

.footer-links a {
  color: #c9d9cf;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--lime);
  text-decoration: underline;
}

/* ==========================================================================
   Animations & Micro-interactions
   ========================================================================== */

.rise {
  animation: rise .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.float {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}

.float-slow {
  animation: float 8.5s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}

.float-fast {
  animation: float 4.2s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Page fade-slide entrance */
.page-enter {
  animation: pageEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle breathing glow pulse for eco cards & badges */
.pulse-glow {
  animation: pulseGlow 3.6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.1);
  }
  100% {
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.22), 0 0 20px rgba(181, 211, 52, 0.18);
  }
}

/* Status live dot with breathing halo */
.live-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background-color: var(--cta);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background-color: inherit;
  opacity: 0.75;
  animation: livePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes livePing {
  75%, 100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

/* Scroll reveal (diaktifkan lewat class .rv-ready di <html>/<body>) */
.rv-ready [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(28px);
}

.rv-ready [data-reveal="left"]:not(.in) {
  opacity: 0;
  transform: translateX(-32px);
}

.rv-ready [data-reveal="right"]:not(.in) {
  opacity: 0;
  transform: translateX(32px);
}

.rv-ready [data-reveal="zoom"]:not(.in) {
  opacity: 0;
  transform: scale(0.94);
}

.rv-ready [data-stagger] > :not(.in) {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal],
[data-stagger] > * {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  will-change: opacity, transform;
}

[data-reveal].in,
[data-stagger] > *.in {
  opacity: 1;
  transform: none;
}

/* Enhanced Card & Element Micro-Interactions */
.card-interactive,
.card-hover {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.card-interactive:hover,
.card-hover:hover {
  transform: translateY(-5px) scale(1.008);
  box-shadow: 0 16px 36px -8px rgba(5, 150, 105, 0.16),
              0 0 0 1px rgba(181, 211, 52, 0.35);
}

/* Smooth Tab Fade Transition */
.tab-fade-in {
  animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated Progress bar fill */
.anim-bar-fill {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt {
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================================
   Responsive Adaptations (breakpoint sama dengan landing page: 1000 / 640)
   ========================================================================== */

@media (max-width: 1000px) {
  .h1-hero,
  .hero h1 {
    font-size: 52px;
  }

  .hero-body {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .h2,
  .section-title {
    font-size: 36px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .hero,
  .page-hero {
    padding-top: 12px;
  }

  .hero-top {
    height: auto;
    padding: 14px 20px;
    border-radius: 24px;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    font-size: 13px;
  }

  .hero-top .btn {
    margin-left: auto;
  }

  .h1-hero,
  .hero h1 {
    font-size: 40px;
  }

  .section {
    padding-top: 72px;
  }

  .h2,
  .section-title {
    font-size: 30px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .search {
    flex-direction: column;
    border-radius: 24px;
    padding: 10px;
  }

  .search .btn {
    width: 100%;
  }

  .footer {
    margin-top: 72px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ==========================================================================
   Analisa Data E-Waste Section Styles
   ========================================================================== */
.analisa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.analisa-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.08);
}

.analisa-grid-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kpi-stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.kpi-stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--lime));
  opacity: 0.9;
}

.kpi-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.4;
}

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

.kpi-badge-green {
  background: #ecfdf5;
  color: #065f46;
}

.kpi-badge-amber {
  background: #fffbeb;
  color: #b45309;
}

.kpi-badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.year-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
}

.year-pill-btn:hover {
  background: #f4f7f5;
  color: var(--ink);
}

.year-pill-btn.active {
  background: #ecfdf5;
  color: var(--accent);
  font-weight: 700;
  border-color: rgba(5, 150, 105, 0.3);
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.metric-toggle-group {
  display: inline-flex;
  background: #f1f5f2;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.metric-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 38px;
}

.metric-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.metric-btn:hover:not(.active) {
  color: var(--ink);
}

.chart-visual-container {
  background: linear-gradient(180deg, rgba(248, 250, 249, 0.75) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px 16px;
  position: relative;
}

.chart-bars-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 240px;
  gap: 14px;
  padding-top: 32px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(226, 232, 240, 0.95);
  pointer-events: none;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.chart-col-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  white-space: nowrap;
  transition: transform .2s ease, color .2s ease;
}

.chart-bar-fill {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-radius: 8px 8px 3px 3px;
  transition: height .55s cubic-bezier(0.16, 1, 0.3, 1), background .25s ease, filter .2s ease;
  position: relative;
  min-height: 8px;
}

.chart-col:hover .chart-bar-fill {
  filter: brightness(1.12);
}

.chart-col.is-active .chart-bar-fill {
  background: linear-gradient(180deg, var(--lime) 0%, #059669 100%);
  box-shadow: 0 0 0 2px var(--accent);
}

.chart-col.is-projection .chart-bar-fill {
  background: repeating-linear-gradient(
    45deg,
    #059669,
    #059669 6px,
    #047857 6px,
    #047857 12px
  );
}

.chart-col.is-projection.is-active .chart-bar-fill {
  background: repeating-linear-gradient(
    45deg,
    #10b981,
    #10b981 6px,
    #059669 6px,
    #059669 12px
  );
  box-shadow: 0 0 0 2px var(--accent);
}

.chart-col-year {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.chart-col.is-active .chart-col-year {
  color: var(--accent);
  font-weight: 800;
}

.chart-col-proj-tag {
  font-size: 9px;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .02em;
}

.year-detail-card {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all .25s ease;
}

.year-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.year-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cat-bar-item {
  margin-bottom: 14px;
}

.cat-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cat-bar-track {
  height: 8px;
  background: #e9ece6;
  border-radius: 999px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), #10b981);
  transition: width .5s ease;
}

.recovery-calc-box {
  margin-top: 28px;
  background: linear-gradient(135deg, #072a1e 0%, #064E3B 60%, #0d3829 100%);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.recovery-calc-box::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(181, 211, 52, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.calc-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-chip-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  min-height: 36px;
}

.calc-chip-btn.active,
.calc-chip-btn:hover {
  background: var(--lime);
  color: var(--deep);
  border-color: var(--lime);
  font-weight: 700;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.recovery-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.recovery-item-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 4px;
}

.recovery-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 4px;
}

.recovery-item-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.analisa-source-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .analisa-grid-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
  .recovery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .year-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .analisa-grid-kpi {
    grid-template-columns: 1fr;
  }
  .chart-bars-wrap {
    height: 200px;
    gap: 6px;
  }
  .chart-col-val {
    font-size: 10px;
  }
  .chart-col-year {
    font-size: 11px;
  }
  .recovery-grid {
    grid-template-columns: 1fr;
  }
  .metric-toggle-group {
    width: 100%;
    overflow-x: auto;
  }
  .metric-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Regional Global Comparison */
.regional-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.regional-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.regional-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
}

.regional-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.regional-rate {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
}

.regional-rate-sub {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--subtle);
  font-weight: 700;
  letter-spacing: .04em;
}

.regional-capita {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .regional-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .regional-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* Page-specific styles */
/* Quick Product Switcher Toolbar */
    .switcher-bar {
      margin-top: 24px;
      margin-bottom: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      box-shadow: var(--shadow-sm);
    }

    .breadcrumb-nav {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--muted);
      flex-wrap: wrap;
    }

    .breadcrumb-nav a:hover {
      color: var(--accent-2);
      text-decoration: underline;
    }

    .breadcrumb-separator {
      color: var(--subtle);
      font-size: 12px;
    }

    .quick-select-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .quick-select-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .select-item {
      padding: 8px 14px;
      border-radius: var(--radius-full);
      border: 1px solid var(--line);
      background: #f8faf9;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      outline: none;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .select-item:hover, .select-item:focus {
      border-color: var(--accent-2);
      box-shadow: 0 0 0 3px rgba(5, 150, 105, .15);
    }

    /* Main Showcase Grid */
    .product-showcase {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
      gap: 32px;
      margin-bottom: 40px;
      align-items: start;
    }

    /* Left: Visual Gallery & Inspection Card */
    .gallery-panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 24px;
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 96px;
    }

    .main-stage {
      position: relative;
      background: linear-gradient(135deg, #f1f4f0, #e2e8e1);
      border-radius: var(--radius-md);
      padding: 36px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 300px;
      border: 1px solid rgba(6, 78, 59, .08);
      overflow: hidden;
    }

    .main-stage::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
      transform: translateX(-120%);
      pointer-events: none;
    }

    .main-stage:hover::after {
      animation: sheen .9s ease;
    }

    .stage-glow {
      position: absolute;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(181, 211, 52, .25) 0%, rgba(5, 150, 105, 0) 70%);
      filter: blur(20px);
      pointer-events: none;
    }

    .device-icon-wrap {
      position: relative;
      z-index: 2;
      color: var(--accent);
      filter: drop-shadow(0 10px 16px rgba(6, 78, 59, .15));
      transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    }

    .main-stage:hover .device-icon-wrap {
      transform: scale(1.05) translateY(-3px);
    }

    .stage-corner-badges {
      position: absolute;
      top: 14px;
      left: 14px;
      right: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 3;
    }

    .cat-tag {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--accent);
      background: rgba(255, 255, 255, .92);
      padding: 5px 12px;
      border-radius: var(--radius-full);
      border: 1px solid var(--tint);
      box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    }

    .view-tabs {
      display: flex;
      gap: 8px;
      margin-top: 16px;
      border-bottom: 1px solid var(--line);
      padding-bottom: 10px;
      overflow-x: auto;
    }

    .view-tab-btn {
      padding: 8px 14px;
      border-radius: var(--radius-full);
      font-size: 12.5px;
      font-weight: 600;
      color: var(--muted);
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all .2s ease;
      white-space: nowrap;
    }

    .view-tab-btn:hover {
      color: var(--ink);
      background: #f4f7f4;
    }

    .view-tab-btn.active {
      color: var(--accent);
      background: var(--tint);
      border-color: #c9dec5;
    }

    .view-tab-content {
      margin-top: 16px;
      font-size: 13px;
      color: var(--ink);
      line-height: 1.6;
    }

    .specs-pill-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-top: 14px;
    }

    .spec-mini-item {
      background: #f8faf8;
      border: 1px solid #edf2ed;
      border-radius: var(--radius-sm);
      padding: 10px 12px;
    }

    .spec-mini-item .lbl {
      font-size: 11px;
      color: var(--subtle);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .spec-mini-item .val {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--ink);
      margin-top: 2px;
    }

    /* Right: Product Meta, Pricing, & Actions */
    .details-panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 32px;
      box-shadow: var(--shadow-sm);
    }

    .item-id-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-2);
      background: var(--emerald-bg);
      padding: 5px 12px;
      border-radius: var(--radius-full);
      border: 1px solid #bbf7d0;
      margin-bottom: 12px;
    }

    .product-title {
      margin: 0 0 10px;
      font-size: 30px;
      font-weight: 700;
      color: var(--ink);
      letter-spacing: -.02em;
      line-height: 1.2;
    }

    .product-subtitle {
      margin: 0 0 20px;
      font-size: 15px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Value & Price Banner (Eco-Luxury Landing Style) */
    .value-box {
      background: radial-gradient(120% 90% at 75% 15%, #2f6b4e 0%, rgba(47, 107, 78, 0) 55%),
                  linear-gradient(160deg, #143a2b 0%, #0a1d16 100%);
      color: #ffffff;
      border-radius: var(--radius-md);
      padding: 24px 26px;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 28px -6px rgba(6, 78, 59, .35);
    }

    .value-box::after {
      content: "";
      position: absolute;
      top: -30%;
      right: -10%;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(181, 211, 52, .25) 0%, transparent 70%);
      pointer-events: none;
    }

    .val-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .val-caption {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--lime);
      font-weight: 700;
    }

    .val-amount {
      font-size: 34px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: -.02em;
      margin: 0;
    }

    .val-sub {
      font-size: 13px;
      color: #c9d9cf;
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Key Specs Grid */
    .specs-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    .spec-card {
      background: #f8faf9;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      transition: border-color .2s ease;
    }

    .spec-card:hover {
      border-color: #a7f3d0;
    }

    .spec-card-icon {
      color: var(--accent-2);
      flex-shrink: 0;
      margin-top: 2px;
    }

    .spec-card-title {
      font-size: 11.5px;
      color: var(--subtle);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .spec-card-val {
      font-size: 14px;
      font-weight: 700;
      color: var(--ink);
      margin-top: 2px;
    }

    /* Action Buttons Row */
    .action-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--line);
    }

    .action-row .btn {
      flex: 1;
      min-width: 170px;
    }

    /* Verified Recycler Guarantee */
    .guarantee-box {
      display: flex;
      gap: 14px;
      align-items: center;
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      border-radius: var(--radius-sm);
      padding: 16px 20px;
    }

    .guarantee-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--lime);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .guarantee-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--accent);
      margin: 0;
    }

    .guarantee-desc {
      font-size: 12.5px;
      color: var(--muted);
      margin: 2px 0 0;
      line-height: 1.5;
    }

    /* Circular Economy & Eco Impact Cards */
    .impact-section {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 36px;
      margin-bottom: 40px;
      box-shadow: var(--shadow-sm);
    }

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

    .impact-card {
      background: #f8faf9;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      padding: 20px;
      text-align: center;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .impact-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: #a7f3d0;
    }

    .impact-icon-circle {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--emerald-bg);
      color: var(--accent-2);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
    }

    .impact-val {
      font-size: 24px;
      font-weight: 800;
      color: var(--accent);
      margin: 0 0 4px;
      letter-spacing: -.02em;
    }

    .impact-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 4px;
    }

    .impact-desc {
      font-size: 12px;
      color: var(--subtle);
      line-height: 1.45;
    }

    /* Recovery Progress Bar */
    .recovery-bar-wrap {
      margin-top: 24px;
      padding: 20px 24px;
      background: #f1f6f2;
      border-radius: var(--radius-md);
      border: 1px solid #dce8df;
    }

    .recovery-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--accent);
    }

    .progress-track {
      height: 14px;
      border-radius: var(--radius-full);
      background: #e2ede4;
      overflow: hidden;
      display: flex;
      gap: 2px;
    }

    .seg-metal {
      background: var(--accent-2);
    }

    .seg-plastics {
      background: var(--lime);
    }

    .seg-pcb {
      background: #0284c7;
    }

    .seg-haz {
      background: #f59e0b;
    }

    .legend-row {
      display: flex;
      gap: 16px;
      margin-top: 12px;
      flex-wrap: wrap;
      font-size: 12.5px;
      color: var(--muted);
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    /* Inspection & Checklist Component */
    .inspection-section {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 36px;
      margin-bottom: 40px;
      box-shadow: var(--shadow-sm);
    }

    .inspection-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 18px;
    }

    .inspect-item {
      display: flex;
      gap: 12px;
      padding: 14px;
      background: #f9fbf9;
      border: 1px solid #edf2ee;
      border-radius: var(--radius-sm);
      transition: border-color .2s ease;
    }

    .inspect-item:hover {
      border-color: #a7f3d0;
    }

    .inspect-status-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 14px;
      font-weight: 700;
    }

    .is-pass {
      background: var(--emerald-bg);
      color: var(--emerald-text);
    }

    .is-warn {
      background: var(--amber-bg);
      color: var(--amber);
    }

    .inspect-name {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--ink);
    }

    .inspect-note {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    /* Active Bids Table for this Product */
    .bids-section {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 36px;
      margin-bottom: 40px;
      box-shadow: var(--shadow-sm);
    }

    .bid-cards-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 18px;
    }

    .bid-tile {
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      padding: 18px 20px;
      background: #fafcfb;
      transition: all .2s ease;
    }

    .bid-tile:hover {
      border-color: #a7f3d0;
      box-shadow: var(--shadow-md);
      background: #ffffff;
    }

    .bid-tile-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 10px;
    }

    .bidder-name {
      font-weight: 700;
      font-size: 14.5px;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .bidder-offer {
      font-size: 18px;
      font-weight: 800;
      color: var(--accent);
    }

    .bid-tile-meta {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.5;
      margin-bottom: 14px;
    }

    /* Related Products Section */
    .related-section {
      margin-bottom: 60px;
    }

    .related-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    /* Dynamic UI State: Loading & Empty */
    .state-container {
      text-align: center;
      padding: 60px 24px;
      background: var(--surface);
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      margin-bottom: 40px;
      box-shadow: var(--shadow-sm);
    }

    .state-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: #f1f5f2;
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }

    .spinner {
      width: 44px;
      height: 44px;
      border: 4px solid var(--tint);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin .8s linear infinite;
      margin: 0 auto 16px;
    }

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

    /* Responsive adjustments */
    @media (max-width: 960px) {
      .product-showcase {
        grid-template-columns: 1fr;
      }
      .gallery-panel {
        position: static;
      }
      .impact-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .bid-cards-grid {
        grid-template-columns: 1fr;
      }
      .related-grid {
        grid-template-columns: 1fr;
      }
      .inspection-list {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .product-title {
        font-size: 24px;
      }
      .val-amount {
        font-size: 26px;
      }
      .specs-grid {
        grid-template-columns: 1fr;
      }
      .impact-grid {
        grid-template-columns: 1fr;
      }
      .switcher-bar {
        flex-direction: column;
        align-items: stretch;
      }
    }

    /* Animation Enhancements */
    .stage-glow {
      animation: stagePulse 4s ease-in-out infinite alternate;
    }

    @keyframes stagePulse {
      0% {
        transform: scale(0.92);
        opacity: 0.5;
      }
      100% {
        transform: scale(1.15);
        opacity: 0.88;
      }
    }

    .main-stage {
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    }

    .main-stage:hover {
      box-shadow: 0 16px 36px rgba(5, 150, 105, 0.12);
    }

    .progress-track > div {
      transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .impact-card {
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .impact-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
      border-color: var(--accent-2);
    }

    .bid-tile {
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .bid-tile:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
      border-color: var(--accent-2);
    }

    .inspect-item {
      transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .inspect-item:hover {
      transform: translateX(4px);
      background-color: #f7faf8;
    }

    .product {
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    }

    .product:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    }

    .view-tab-content.tab-fade-in {
      animation: tabFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes tabFadeIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ===== Product Page Rich Animations & Micro-Interactions ===== */
    @keyframes stageDeviceFloat {
      0%, 100% {
        transform: translateY(0px) rotate(0deg);
      }
      50% {
        transform: translateY(-7px) rotate(0.8deg);
      }
    }

    .device-icon-wrap svg {
      animation: stageDeviceFloat 4.5s ease-in-out infinite;
      filter: drop-shadow(0 14px 24px rgba(6, 78, 59, 0.18));
      transition: transform 0.3s ease;
    }

    .device-icon-wrap:hover svg {
      transform: scale(1.05);
    }

    .btn, button.btn {
      transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.22s ease,
                  background-color 0.2s ease,
                  color 0.2s ease !important;
    }

    .btn:active, button.btn:active {
      transform: scale(0.96) !important;
    }

    .btn-grad, .btn-primary {
      position: relative;
      overflow: hidden;
    }

    .btn-grad::before, .btn-primary::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 60%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
      transform: skewX(-20deg);
      transition: left 0.75s ease;
      pointer-events: none;
    }

    .btn-grad:hover::before, .btn-primary:hover::before {
      left: 140%;
    }

    .spec-card {
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                  box-shadow 0.25s ease, 
                  border-color 0.25s ease !important;
    }

    .spec-card:hover {
      transform: translateY(-3px) !important;
      box-shadow: 0 10px 24px rgba(6, 78, 59, 0.1) !important;
      border-color: rgba(16, 185, 129, 0.4) !important;
    }

    .badge-pill.status-green {
      animation: badgePulseGreen 2.5s infinite ease-in-out;
    }

    @keyframes badgePulseGreen {
      0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
      50% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
    }

    .progress-track > div {
      position: relative;
      overflow: hidden;
    }

    .progress-track > div::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
      animation: barShine 3s infinite linear;
    }

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

    .chip {
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .chip:hover {
      transform: translateY(-2px) !important;
      border-color: var(--accent-2) !important;
      box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15) !important;
    }

    /* ===== Scroll Progress Indicator & Back-to-Top ===== */
    .scroll-progress-indicator {
      position: fixed;
      top: 0;
      left: 0;
      height: 3.5px;
      width: 0%;
      background: linear-gradient(90deg, #10b981 0%, #bef264 50%, #34d399 100%);
      box-shadow: 0 0 10px rgba(190, 242, 100, 0.7), 0 0 4px rgba(16, 185, 129, 0.9);
      z-index: 99999;
      pointer-events: none;
      transition: width 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .btn-back-to-top {
      position: fixed;
      bottom: 28px;
      right: 28px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: rgba(13, 38, 29, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(16, 185, 129, 0.35);
      color: var(--lime, #bef264);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px) scale(0.85);
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .btn-back-to-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    .btn-back-to-top:hover {
      background: #059669;
      color: #fff;
      border-color: #34d399;
      transform: translateY(-4px) scale(1.08);
      box-shadow: 0 14px 28px rgba(5, 150, 105, 0.4), 0 0 16px rgba(190, 242, 100, 0.5);
    }

    .btn-back-to-top:active {
      transform: translateY(0) scale(0.95);
    }


