/* NexEWaste: Dashboard & Tracking 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 */
/* Dashboard specific customizations */
    .dashboard-app-layout {
      display: flex;
      min-height: 100vh;
      background: var(--bg);
      position: relative;
    }

    /* Fixed Left Sidebar */
    .dashboard-sidebar {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      width: 270px;
      background: linear-gradient(180deg, #072a1e 0%, #064E3B 55%, #032b1f 100%);
      color: #fff;
      display: flex;
      flex-direction: column;
      z-index: 100;
      box-shadow: 4px 0 28px rgba(0, 0, 0, 0.16);
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      overflow-y: auto;
      overflow-x: hidden;
      padding: 24px 16px;
      box-sizing: border-box;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Custom subtle scrollbar for sidebar */
    .dashboard-sidebar::-webkit-scrollbar {
      width: 5px;
    }
    .dashboard-sidebar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 999px;
    }

    /* Sidebar Brand */
    .sidebar-brand-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 4px 8px 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      margin-bottom: 20px;
    }

    .sidebar-brand-box .brand-logo {
      font-size: 21px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: #fff;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 2px;
    }

    .sidebar-close-btn {
      display: none;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.16);
      color: #fff;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease;
    }

    .sidebar-close-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    /* Quick Add Button in Sidebar */
    .sidebar-cta-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      background: linear-gradient(135deg, #b5d334 0%, #8cae18 100%);
      color: #064E3B;
      font-weight: 700;
      font-size: 13.5px;
      padding: 11px 16px;
      border-radius: var(--radius-sm);
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(181, 211, 52, 0.28);
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
      margin-bottom: 24px;
      box-sizing: border-box;
      text-decoration: none;
    }

    .sidebar-cta-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(181, 211, 52, 0.4);
      filter: brightness(1.04);
      text-decoration: none;
    }

    /* Sidebar Navigation Groups */
    .sidebar-nav-group {
      margin-bottom: 24px;
    }

    .sidebar-group-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.45);
      padding: 0 10px 8px;
    }

    .sidebar-menu {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      color: #d1fae5;
      font-size: 13.5px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
      position: relative;
    }

    .sidebar-link:hover {
      background: rgba(255, 255, 255, 0.09);
      color: #fff;
      text-decoration: none;
      transform: translateX(2px);
    }

    .sidebar-link.active {
      background: rgba(181, 211, 52, 0.16);
      color: var(--lime);
      border: 1px solid rgba(181, 211, 52, 0.3);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar-link.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 6px;
      bottom: 6px;
      width: 3.5px;
      background: var(--lime);
      border-radius: 0 4px 4px 0;
      box-shadow: 0 0 8px var(--lime);
    }

    .sidebar-icon {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      opacity: 0.85;
    }

    .sidebar-link.active .sidebar-icon {
      opacity: 1;
      stroke: var(--lime);
    }

    .sidebar-badge {
      margin-left: auto;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.12);
      color: #a7f3d0;
    }

    .sidebar-link.active .sidebar-badge {
      background: rgba(181, 211, 52, 0.25);
      color: var(--lime);
    }

    /* Mini Eco Impact Widget */
    .sidebar-eco-card {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 20px;
    }

    .sidebar-eco-title {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--lime);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 4px;
    }

    .sidebar-eco-desc {
      font-size: 11.5px;
      color: #c9d9cf;
      line-height: 1.4;
      margin: 0;
    }

    /* Sidebar Footer / User Profile */
    .sidebar-footer {
      margin-top: auto;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-user-card {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      margin-bottom: 10px;
    }

    .sidebar-user-card .avatar {
      width: 36px;
      height: 36px;
      font-size: 14px;
    }

    .sidebar-user-details {
      flex: 1;
      min-width: 0;
    }

    .sidebar-user-name {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-user-badge {
      font-size: 11px;
      color: #a7f3d0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-logout-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 9px 12px;
      border-radius: 8px;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #fca5a5;
      font-size: 12.5px;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
      box-sizing: border-box;
    }

    .sidebar-logout-btn:hover {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.3);
      color: #fecaca;
      text-decoration: none;
    }

    /* Main Content Area */
    .dashboard-main {
      margin-left: 270px;
      width: calc(100% - 270px);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    /* Topbar */
    .dashboard-topbar {
      position: sticky;
      top: 0;
      height: 70px;
      background: rgba(248, 250, 249, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
      z-index: 40;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 32px;
      box-sizing: border-box;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .mobile-menu-btn {
      display: none;
      background: #ffffff;
      border: 1px solid var(--line);
      color: var(--ink);
      width: 40px;
      height: 40px;
      border-radius: var(--radius-xs);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-sm);
    }

    .topbar-breadcrumb {
      font-size: 14px;
      color: var(--muted);
      font-weight: 500;
    }

    .topbar-breadcrumb strong {
      color: var(--ink);
      font-weight: 700;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .topbar-partner-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--emerald-text);
      background: var(--emerald-bg);
      border: 1px solid #a7f3d0;
      padding: 6px 14px;
      border-radius: var(--radius-full);
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-2);
      position: relative;
    }

    .pulse-dot::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: var(--accent-2);
      opacity: 0.4;
      animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    @keyframes pingDot {
      0% { transform: scale(1); opacity: 0.6; }
      100% { transform: scale(2.4); opacity: 0; }
    }

    /* Topbar notifications */
    .topbar-notif-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      border: 1px solid var(--line);
      color: var(--ink);
      cursor: pointer;
      position: relative;
      transition: background 0.2s ease, border-color 0.2s ease;
      box-shadow: var(--shadow-sm);
    }

    .topbar-notif-btn:hover {
      background: #f4f4f5;
      border-color: #d4d4d8;
    }

    .topbar-notif-btn .badge-dot {
      border: 2px solid #ffffff;
    }

    .topbar-profile-pill {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 12px 4px 6px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius-full);
      cursor: pointer;
      transition: background-color 0.2s ease, border-color 0.2s ease;
      color: var(--ink);
      box-shadow: var(--shadow-sm);
    }

    .topbar-profile-pill:hover {
      background: #f4f4f5;
      border-color: #d4d4d8;
    }

    .topbar-profile-pill .profile-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
    }

    .topbar-profile-pill .profile-role {
      font-size: 11px;
      color: var(--accent-2);
      font-weight: 600;
    }

    /* Dashboard Inner Canvas */
    .dashboard-canvas {
      padding: 32px 36px 64px;
      width: 100%;
      max-width: 1360px;
      margin: 0 auto;
      box-sizing: border-box;
      flex: 1;
    }

    /* Hero Banner Inside Dashboard Canvas */
    .dashboard-hero-banner {
      background: linear-gradient(135deg, #073829 0%, #064E3B 45%, #0d2219 100%);
      border-radius: 24px;
      padding: 32px 36px;
      color: #fff;
      position: relative;
      overflow: hidden;
      box-shadow: 0 12px 36px rgba(6, 78, 59, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 32px;
    }

    .dashboard-hero-banner .hero-bg {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .dashboard-hero-banner .glow {
      position: absolute;
      top: -30%;
      right: -10%;
      width: 450px;
      height: 450px;
      background: radial-gradient(circle, rgba(181, 211, 52, 0.22) 0%, rgba(6, 78, 59, 0) 70%);
      border-radius: 50%;
      filter: blur(40px);
    }

    /* Backdrop for Mobile Drawer */
    .sidebar-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 95;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.show {
      display: block;
      opacity: 1;
      pointer-events: auto;
    }

    .dashboard-hero-body {
      position: relative;
      z-index: 1;
      padding-top: 40px;
    }

    /* Notification Button & Dropdown */
    .notif-wrap {
      position: relative;
    }

    .btn-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      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;
      position: relative;
      transition: background .2s ease;
    }

    .btn-icon:hover {
      background: rgba(255, 255, 255, .2);
    }

    .badge-dot {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--lime);
      border: 2px solid #064E3B;
    }

    .dropdown-panel {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      width: 340px;
      background: #ffffff;
      color: var(--ink);
      border-radius: var(--radius-md);
      box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
      border: 1px solid var(--line);
      padding: 16px;
      z-index: 50;
      display: none;
      animation: popIn .2s cubic-bezier(.16, 1, .3, 1);
    }

    .dropdown-panel.open {
      display: block;
    }

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

    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
      font-weight: 700;
    }

    .notif-item {
      display: flex;
      gap: 12px;
      padding: 12px 6px;
      border-bottom: 1px solid #f4f4f5;
      cursor: pointer;
      transition: background-color .15s ease;
      border-radius: 8px;
    }

    .notif-item:hover {
      background-color: #f8fafc;
    }

    .notif-ic {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--emerald-bg);
      color: var(--accent-2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .notif-text {
      font-size: 12.5px;
      line-height: 1.4;
      color: var(--muted);
    }

    .notif-title {
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 2px;
    }

    .notif-time {
      font-size: 11px;
      color: var(--subtle);
      margin-top: 4px;
    }

    /* Profile Pill */
    .profile-pill {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 12px 4px 6px;
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: var(--radius-full);
      cursor: pointer;
      transition: background-color .2s ease;
      color: #fff;
    }

    .profile-pill:hover {
      background: rgba(255, 255, 255, .18);
    }

    .avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--lime);
      color: #064E3B;
      font-weight: 800;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .profile-info {
      line-height: 1.2;
      text-align: left;
    }

    .profile-name {
      font-size: 13px;
      font-weight: 600;
    }

    .profile-role {
      font-size: 11px;
      color: #a7f3d0;
    }

    /* Hero Body / Welcome & Impact */
    .dashboard-hero-body {
      position: relative;
      z-index: 1;
      padding-top: 40px;
    }

    .welcome-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 32px;
    }

    .welcome-text h1 {
      margin: 8px 0 0;
      font-size: 34px;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .02em;
    }

    .badge-pill.lime {
      background: rgba(181, 211, 52, .18);
      color: var(--lime);
      border: 1px solid rgba(181, 211, 52, .3);
    }

    .badge-pill.status-green {
      background: var(--emerald-bg);
      color: var(--accent-2);
      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;
    }

    /* Stat Cards Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .glass-card {
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .16);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-radius: var(--radius-md);
      padding: 20px;
      color: #f2f7f3;
      transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
    }

    .glass-card:hover {
      transform: translateY(-2px);
      border-color: rgba(181, 211, 52, .4);
      background: rgba(255, 255, 255, .11);
    }

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

    .stat-label {
      font-size: 13px;
      font-weight: 500;
      color: #c9d9cf;
    }

    .stat-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(181, 211, 52, .15);
      color: var(--lime);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .stat-value {
      font-size: 26px;
      font-weight: 800;
      letter-spacing: -.02em;
      margin: 0;
    }

    .stat-sub {
      font-size: 12px;
      color: #a7f3d0;
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* Main Dashboard Layout */
    .dashboard-content {
      padding-top: 36px;
      padding-bottom: 80px;
    }

    /* Active Pickup Tracker Banner */
    .tracker-card {
      background: var(--surface);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 28px;
      margin-bottom: 36px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
      position: relative;
      overflow: hidden;
    }

    .tracker-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent-2), var(--lime));
    }

    .tracker-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 24px;
    }

    .tracker-title {
      font-size: 20px;
      font-weight: 700;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pulse {
      position: relative;
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-2);
      flex-shrink: 0;
    }

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

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

    .tracker-sub {
      font-size: 14px;
      color: var(--muted);
      margin-top: 4px;
    }

    .stepper {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
      position: relative;
      margin: 32px 0 28px;
    }

    .stepper::before {
      content: "";
      position: absolute;
      top: 15px;
      left: 10%;
      right: 10%;
      height: 2px;
      background: #e4e4e7;
      z-index: 1;
    }

    .step-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .step-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #cbd5e1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      color: var(--subtle);
      margin-bottom: 8px;
      transition: all .2s ease;
    }

    .step-item.completed .step-dot {
      background: var(--accent-2);
      border-color: var(--accent-2);
      color: #fff;
    }

    .step-item.current .step-dot {
      background: #fff;
      border-color: var(--accent-2);
      color: var(--accent-2);
      box-shadow: 0 0 0 4px rgba(5, 150, 105, .2);
    }

    .step-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
    }

    .step-desc {
      font-size: 11px;
      color: var(--subtle);
      margin-top: 2px;
    }

    .tracker-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8faf8;
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      border: 1px solid var(--line);
      flex-wrap: wrap;
      gap: 12px;
    }

    .courier-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .courier-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      font-weight: 700;
    }

    /* Tabs & Controls Section */
    .section-title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .section-title {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -.02em;
      margin: 0;
    }

    .filter-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 24px;
    }

    .tabs-group {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 4px;
    }

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

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

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

    .tab-count {
      display: inline-block;
      margin-left: 6px;
      padding: 2px 7px;
      border-radius: var(--radius-full);
      background: rgba(0, 0, 0, .08);
      font-size: 11px;
    }

    .tab-btn.active .tab-count {
      background: rgba(255, 255, 255, .25);
      color: #fff;
    }

    .search-filter-box {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .input-search {
      height: 40px;
      border-radius: var(--radius-full);
      border: 1px solid var(--line);
      background: #fff;
      padding: 0 16px 0 38px;
      font-size: 13.5px;
      font-family: inherit;
      color: var(--ink);
      min-width: 220px;
      position: relative;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

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

    .search-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .search-wrap svg {
      position: absolute;
      left: 14px;
      pointer-events: none;
      color: var(--subtle);
    }

    .select-category {
      height: 40px;
      border-radius: var(--radius-full);
      border: 1px solid var(--line);
      background: #fff;
      padding: 0 16px;
      font-size: 13px;
      font-family: inherit;
      color: var(--ink);
      cursor: pointer;
    }

    /* Device Cards Grid */
    .items-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .item-card {
      background: #fff;
      border: 1px solid var(--card-border);
      border-radius: var(--radius-md);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .item-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 30px rgba(5, 150, 105, .08);
      border-color: #a7f3d0;
    }

    .item-thumb {
      aspect-ratio: 16/9;
      background: linear-gradient(135deg, #f1f5f2 0%, #e5ebe4 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border-bottom: 1px solid #f0f0f0;
    }

    .item-thumb-icon {
      color: var(--accent-2);
      transition: transform .3s ease;
    }

    .item-card:hover .item-thumb-icon {
      transform: scale(1.08);
    }

    .item-cat-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, .9);
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
      box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    }

    .item-status-badge {
      position: absolute;
      bottom: 12px;
      right: 12px;
    }

    .item-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .item-title {
      font-size: 16px;
      font-weight: 700;
      margin: 0 0 6px;
      color: var(--ink);
    }

    .item-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--subtle);
      margin-bottom: 14px;
    }

    .item-cond-tag {
      font-size: 11.5px;
      color: var(--muted);
      background: #f4f4f5;
      padding: 3px 8px;
      border-radius: 6px;
      align-self: flex-start;
      margin-bottom: 14px;
    }

    .item-offer-box {
      margin-top: auto;
      padding-top: 14px;
      border-top: 1px dashed var(--line);
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 12px;
    }

    .item-offer-title {
      font-size: 11px;
      color: var(--subtle);
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: .03em;
    }

    .item-offer-val {
      font-size: 17px;
      font-weight: 800;
      color: var(--accent);
    }

    .item-actions {
      display: flex;
      gap: 8px;
      margin-top: 14px;
    }

    .item-actions .btn {
      flex: 1;
    }

    /* Empty State */
    .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 64px 20px;
      background: #fff;
      border-radius: var(--radius-lg);
      border: 1px dashed var(--line);
    }

    .empty-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: #f1f5f2;
      color: var(--subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
    }

    /* Impact & Recycling History Section */
    .history-section {
      margin-top: 56px;
      background: #fff;
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 32px;
    }

    .history-table-wrap {
      overflow-x: auto;
      margin-top: 20px;
    }

    .history-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px;
      text-align: left;
    }

    .history-table th {
      padding: 12px 16px;
      background: #f8faf8;
      color: var(--muted);
      font-weight: 600;
      border-bottom: 1px solid var(--line);
      white-space: nowrap;
    }

    .history-table td {
      padding: 16px;
      border-bottom: 1px solid #f4f4f5;
      color: var(--ink);
      vertical-align: middle;
    }

    .history-table tr:hover td {
      background: #fafbfa;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    /* Bids List in Modal */
    .bid-card {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 18px;
      margin-bottom: 14px;
      background: #fff;
      transition: border-color .2s ease;
    }

    .bid-card:hover {
      border-color: var(--accent-2);
    }

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

    .bidder-name {
      font-weight: 700;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

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

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

    /* Certificate Modal */
    .certificate-frame {
      border: 3px double #064E3B;
      padding: 32px 28px;
      border-radius: var(--radius-md);
      background: #fdfdf9;
      position: relative;
      text-align: center;
    }

    .cert-logo {
      font-weight: 800;
      font-size: 22px;
      color: #064E3B;
      margin-bottom: 8px;
    }

    .cert-title {
      font-size: 19px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #064E3B;
      margin: 12px 0 6px;
    }

    .cert-seal {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      border: 2px dashed #059669;
      margin: 16px auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #059669;
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
    }

    /* Empty State Components */
    .status-gray {
      background: #f3f4f6;
      color: #4b5563;
      border: 1px solid #e5e7eb;
    }

    .empty-tracker {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 10px 4px;
    }

    .empty-tracker-icon {
      width: 54px;
      height: 54px;
      border-radius: 14px;
      background: #ecfdf5;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--accent-2);
    }

    .empty-tracker-body {
      flex: 1;
    }

    .empty-inventory-box {
      grid-column: 1 / -1;
      text-align: center;
      padding: 56px 24px;
      border: 1.5px dashed var(--line);
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.7);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    }

    .empty-inv-icon {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: #ecfdf5;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-2);
      margin-bottom: 16px;
    }

    .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 48px 20px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px dashed var(--line);
      border-radius: 16px;
    }

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

    /* Responsive Queries */
    @media (max-width: 1024px) {
      .dashboard-sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
      }

      .dashboard-sidebar.open {
        transform: translateX(0);
      }

      .sidebar-close-btn {
        display: inline-flex;
      }

      .dashboard-main {
        margin-left: 0;
        width: 100%;
      }

      .mobile-menu-btn {
        display: inline-flex;
      }

      .topbar-partner-status {
        display: none;
      }

      .dashboard-canvas {
        padding: 24px 20px 48px;
      }

      .dashboard-hero-banner {
        padding: 24px 20px;
      }

      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .items-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .stepper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 10px;
      }
      .stepper::before {
        display: none;
      }
    }

    @media (max-width: 640px) {
      .dashboard-topbar {
        padding: 0 16px;
        height: 64px;
      }
      .topbar-breadcrumb span:first-child,
      .topbar-breadcrumb span:nth-child(2) {
        display: none;
      }
      .topbar-profile-pill .profile-info {
        display: none;
      }
      .topbar-profile-pill {
        padding: 4px;
      }
      .dashboard-canvas {
        padding: 16px 14px 40px;
      }
      .dashboard-hero-banner {
        padding: 20px 16px;
        border-radius: 18px;
      }
      .welcome-text h1 {
        font-size: 22px;
      }
      .stats-grid {
        grid-template-columns: 1fr;
      }
      .items-grid {
        grid-template-columns: 1fr;
      }
      .form-row {
        grid-template-columns: 1fr;
      }
      .stepper {
        grid-template-columns: 1fr;
        text-align: left;
      }
      .step-item {
        flex-direction: row;
        gap: 12px;
        text-align: left;
      }
      .step-dot {
        margin-bottom: 0;
      }
      .tracker-footer {
        flex-direction: column;
        align-items: stretch;
      }
    }

    /* Enhanced Animations & Micro-interactions */
    .rise {
      animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) backwards;
    }

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

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

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

    [data-reveal] {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    [data-reveal].in {
      opacity: 1;
      transform: translateY(0);
    }

    .glass-card {
      transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
    }

    .glass-card:hover {
      transform: translateY(-4px) scale(1.01);
      box-shadow: 0 12px 30px rgba(0, 0, 0, .2), 0 0 20px rgba(181, 211, 52, .15);
      border-color: rgba(181, 211, 52, .5);
    }

    .tracker-card {
      transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
    }

    .tracker-card:hover {
      box-shadow: 0 10px 32px rgba(5, 150, 105, .08);
    }

    .stepper::before {
      background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-2) 75%, #e4e4e7 75%);
      background-size: 200% 100%;
      animation: lineProgress 1.4s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    @keyframes lineProgress {
      from { background-position: 100% 0; }
      to { background-position: 0 0; }
    }

    .item-card {
      animation: itemIn .6s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards;
    }

    @keyframes itemIn {
      from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    .pulse-border {
      animation: pulseBorder 3.5s ease-in-out infinite;
    }

    @keyframes pulseBorder {
      0%, 100% {
        border-color: var(--card-border);
      }
      50% {
        border-color: rgba(5, 150, 105, 0.45);
        box-shadow: 0 6px 24px rgba(5, 150, 105, 0.08);
      }
    }

    .step-item.current .step-dot {
      animation: pulseStep 2s infinite;
    }

    @keyframes pulseStep {
      0%, 100% {
        box-shadow: 0 0 0 4px rgba(5, 150, 105, .2);
      }
      50% {
        box-shadow: 0 0 0 8px rgba(5, 150, 105, .35);
      }
    }

    /* Sidebar Links Micro-Interactions */
    .sidebar-link {
      transition: background-color 0.22s ease, transform 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
    }

    .sidebar-link:hover {
      transform: translateX(4px);
    }

    /* Modal Animation */
    .modal-box {
      animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes modalPop {
      from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Tab count badge pop */
    .tab-count {
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
    }

    .tab-btn.active .tab-count {
      transform: scale(1.08);
    }

    /* Table row hover highlight */
    .history-table tbody tr {
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .history-table tbody tr:hover {
      background-color: #f7faf8;
    }

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

    /* ===== Dashboard Rich Luxury Animations & Micro-Interactions ===== */
    @keyframes pulseRadar {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
      70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }

    @keyframes pulseBorderGlow {
      0%, 100% {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 12px 32px rgba(6, 78, 59, 0.1), 0 0 15px rgba(16, 185, 129, 0.2);
      }
      50% {
        border-color: rgba(16, 185, 129, 0.8);
        box-shadow: 0 16px 36px rgba(6, 78, 59, 0.16), 0 0 25px rgba(16, 185, 129, 0.4);
      }
    }

    .pulse-border {
      animation: pulseBorderGlow 3s infinite ease-in-out !important;
    }

    .pulse-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--lime);
      animation: pulseRadar 2s infinite ease-out;
    }

    .step-item.current .step-dot {
      animation: pulseRadar 2s infinite ease-out !important;
      background: var(--accent) !important;
      color: #fff !important;
    }

    /* Glass KPI Cards Hover Lift */
    .glass-card {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                  box-shadow 0.28s ease, 
                  border-color 0.28s ease !important;
    }

    .glass-card:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(190, 242, 100, 0.35) !important;
    }

    /* Item Card Hover Elevation */
    .item-card {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                  box-shadow 0.28s ease, 
                  border-color 0.28s ease !important;
    }

    .item-card:hover {
      transform: translateY(-4px) !important;
      box-shadow: 0 14px 28px rgba(6, 78, 59, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.3) !important;
    }

    /* Sidebar Links Smooth Hover Interaction */
    .sidebar-link {
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                  background-color 0.2s ease, 
                  color 0.2s ease !important;
    }

    .sidebar-link:hover {
      transform: translateX(4px) !important;
    }

    /* Button Shine Sweep & Micro-press */
    .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%;
    }

    /* ===== 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);
    }


