/* Theme tokens & reduced motion support */
:root {
  --primary-color: #d4af37;
  --primary-dark: #b8932e;
  --bg-dark: #050608;
  --bg-card: #0b0d12;
  --bg-surface: #06070a;
  --text-primary: #f1f5f9;
  --text-secondary: #9aa4b2;
  --border-color: #1a1f27;
  --radius: 18px;
  --nav-h: 70px;
  --bottom-nav-h: 68px;
  --shadow: 0 10px 30px rgba(10, 14, 23, .15);
  --shadow-hover: 0 14px 40px rgba(10, 14, 23, .35);
}

html[data-theme="light"] {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .05);
  --shadow-hover: 0 14px 40px rgba(0, 0, 0, .1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  min-height: 100vh;
  background: var(--bg-surface);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
  /* Navbar fixed-top (biar konten nggak ketutup) */
  padding-top: var(--nav-h);
}

@media (max-width: 575.98px) {
  .section-padding { padding: 2.75rem 0; }
}

/* Global loader overlay */
.global-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 23, .55);
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .global-loader {
  background: rgba(255, 255, 255, .65);
}

.global-loader__card {
  width: min(420px, 92vw);
  background: rgba(26, 31, 46, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

html[data-theme="light"] .global-loader__card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .08);
}

.global-loader__spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: rgba(255, 255, 255, .85);
  animation: spin .8s linear infinite;
  flex: 0 0 auto;
}

html[data-theme="light"] .global-loader__spinner {
  border: 3px solid rgba(0, 0, 0, .12);
  border-top-color: rgba(0, 0, 0, .55);
}

.global-loader__text strong {
  display: block;
  font-weight: 800;
  margin-bottom: 2px;
}

.global-loader__text span {
  color: var(--text-secondary);
  font-size: 13px;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important
  }

  html {
    scroll-behavior: auto
  }
}

/* Space for bottom nav */
@media (max-width: 991.98px) {
  body {
    /* Biar konten tidak ketutup bottom nav + aman untuk iPhone safe-area */
    padding-bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom))
  }
}

/* Global */
.container-xxl {
  max-width: 1400px;
  margin: 0 auto
}

.section-padding {
  padding: 4rem 0
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: .75rem
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 1rem
}

.accent {
  color: var(--primary-color)
}

/* Hero feel (biar nggak datar) */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(67, 97, 238, .10), transparent 55%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,175,55, .18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(67, 97, 238, .18), transparent 50%);
  filter: blur(30px);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.animated-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .03;
  z-index: -1
}

/* Navbar */
.navbar {
  backdrop-filter: blur(6px);
  background: rgba(15, 20, 32, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  padding: .85rem 0;
  transition: all .3s ease;
}

html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(0, 0, 0, .03)
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary) !important
}

.nav-link {
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: 12px;
  color: var(--text-secondary) !important;
  transition: all .2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(67, 97, 238, .07);
  color: var(--primary-color) !important
}

/* Bottom nav mobile */
/* MOBILE BOTTOM NAV — 5 item */
.mobile-bottom-nav{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 8px 6px;
}

/* Samakan style <a> dan <button> */
.mobile-bottom-nav a,
.mobile-bottom-nav button{
  appearance: none;
  border: 0;
  background: transparent;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 8px 4px;
  min-width: 0;       /* penting biar gak melar */
  text-align: center;
  text-decoration: none !important; /* hilangkan underline bawaan link */
  -webkit-tap-highlight-color: transparent;
}

/* Kecilkan icon & text biar muat */
.mobile-bottom-nav i{
  font-size: 18px;
  line-height: 1;
}

.mobile-bottom-nav span{
  font-size: 11px;
  line-height: 1.1;
  margin-top: 4px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* aman kalau ada label panjang */
  max-width: 100%;
  text-decoration: none !important;
}

/* Badge cart jangan nambah lebar */
.mobile-bottom-nav .mini-badge{
  position: absolute;
  transform: translate(12px, -10px);
}
.mobile-bottom-nav a,
.mobile-bottom-nav button{
  position: relative;
}


.mini-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff4757;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}


/* Bottom nav: fixed di bawah untuk mobile */
@media (max-width: 991.98px){
  .mobile-bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(11, 15, 26, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -10px 30px rgba(0,0,0,.22);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button{
    min-height: 56px;
    gap: 4px;
    color: var(--text-secondary);
    border-radius: 14px;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
  }

  /* indikator kecil biar terlihat modern */
  .mobile-bottom-nav a::after,
  .mobile-bottom-nav button::after{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: transparent;
    margin-top: 4px;
    opacity: .0;
    transition: opacity .15s ease, background-color .15s ease;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav button.active{
    color: var(--primary-color);
    background: rgba(67, 97, 238, .18);
    transform: translateY(-2px);
  }

  .mobile-bottom-nav a.active::after,
  .mobile-bottom-nav button.active::after{
    background: var(--primary-color);
    opacity: 1;
  }

  .mobile-bottom-nav a.active i,
  .mobile-bottom-nav button.active i{
    transform: translateY(-1px);
  }

  .mobile-bottom-nav a:focus-visible,
  .mobile-bottom-nav button:focus-visible{
    outline: 2px solid rgba(67, 97, 238, .65);
    outline-offset: 3px;
    border-radius: 14px;
  }
}

/* Extra: layar kecil banget (biar 5 item tetap muat) */
@media (max-width: 360px){
  .mobile-bottom-nav span{ display:none; }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button{ gap: 0; padding: 10px 4px; }
  .mobile-bottom-nav i{ font-size: 17px; }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none
  }
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
  color: #fff;
  border: none;
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, .3);
  color: #fff
}

.btn-outline-gradient {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: .55rem .95rem;
  border-radius: 12px;
  font-weight: 700;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-gradient:hover {
  background: rgba(67, 97, 238, .05);
  transform: translateY(-2px);
  color: var(--primary-color)
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(67, 97, 238, .06);
  border: 1px solid rgba(67, 97, 238, .08);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-primary);
  transition: all .2s ease;
  cursor: pointer;
}

/* Glass card / toolbar */
.glass-card {
  background: linear-gradient(180deg, var(--bg-card), rgba(255, 255, 255, .02));
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.divider {
  border-color: rgba(255, 255, 255, .08)
}

html[data-theme="light"] .divider {
  border-color: rgba(0, 0, 0, .08)
}

.toolbar .form-control,
.toolbar .form-select {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
}

.toolbar .form-control:focus,
.toolbar .form-select:focus {
  box-shadow: none;
  outline: 3px solid rgba(67, 97, 238, .14);
  border-color: rgba(67, 97, 238, .55)
}

.input-icon {
  position: relative
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7
}

.input-icon input {
  padding-left: 38px
}

/* Chips */
.chip {
  border: 1px solid rgba(67, 97, 238, .28);
  background: rgba(67, 97, 238, .06);
  color: var(--text-primary);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-weight: 800;
  font-size: .85rem;
  transition: transform .2s ease, background .2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  background: rgba(67, 97, 238, .1)
}

.chip[aria-pressed="true"] {
  background: rgba(67, 97, 238, .16);
  border-color: rgba(67, 97, 238, .5);
  color: var(--primary-color)
}

.chip-muted {
  border-color: rgba(255, 255, 255, .12);
  background: transparent;
  color: var(--text-secondary)
}

html[data-theme="light"] .chip-muted {
  border-color: rgba(0, 0, 0, .12)
}

/* Product grid + card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem
  }
}

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


@media (max-width: 360px) {
  .product-card {
    padding: .6rem
  }

  .product-icon {
    width: 48px;
    height: 48px
  }

  .product-icon img {
    width: 24px;
    height: 24px
  }

  .product-title {
    font-size: .9rem
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, background-color .3s ease, border-color .3s ease;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover)
}

.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 97, 238, .06);
  border: 1px solid rgba(67, 97, 238, .12);
  margin: 0 auto;
}

.product-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(1.1)
}

html[data-theme="light"] .product-icon img {
  filter: none
}

.product-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.price-tag {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: .35rem 0
}

.current-price {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary-color)
}

.original-price {
  font-size: .9rem;
  color: var(--text-secondary);
  text-decoration: line-through
}

.badge.bg-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%)
}

/* Skeleton */
.skeleton {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  background-size: 200% 100%;
  animation: skeleton 1.2s ease-in-out infinite;
  height: 220px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* Feature cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover)
}

.feature-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem
}

.feature-card h5 {
  color: var(--text-primary);
  margin-bottom: .5rem
}

.feature-card p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.5
}

/* Floating cart */
.floating-cart {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4361ee, #7209b7);
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(67, 97, 238, .2);
  z-index: 1050;
}

.floating-cart:hover {
  transform: scale(1.06);
  box-shadow: 0 15px 40px rgba(67, 97, 238, .3)
}

.badge-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4757;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.badge-pop {
  animation: pop .36s cubic-bezier(.2, .9, .2, 1)
}

@keyframes pop {
  0% {
    transform: scale(1)
  }

  40% {
    transform: scale(1.35)
  }

  70% {
    transform: scale(.95)
  }

  100% {
    transform: scale(1)
  }
}

@media (max-width: 991.98px) {
  .floating-cart {
    display: none
  }
}

/* Toast */
.toast-notification {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  bottom: 2rem;
  padding: .85rem 1.25rem;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.2, .9, .2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-color);
}


/* Modal + offcanvas */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid var(--border-color)
}

.modal-footer {
  border-top: 1px solid var(--border-color)
}

.btn-close {
  filter: brightness(.8)
}

html[data-theme="light"] .btn-close {
  filter: brightness(.3)
}

.offcanvas {
  background: var(--bg-card);
  color: var(--text-primary)
}

.offcanvas-header {
  border-bottom: 1px solid var(--border-color)
}

/* Contact section */
#contact {
  background: linear-gradient(180deg, rgba(67, 97, 238, .06), transparent 40%);
  position: relative;
  overflow: visible
}

#contact .contact-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: center
}

.contact-card {
  background: linear-gradient(180deg, var(--bg-card), rgba(255, 255, 255, .02));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow)
}

#contact .section-title {
  margin-bottom: .25rem;
  font-size: clamp(1.5rem, 3.2vw, 2rem)
}

.contact-cta {
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, #25D366 0%, #10B981 100%);
  color: #fff;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .12)
}

.btn-group {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 800
}

.contact-meta {
  margin-top: .9rem;
  color: var(--text-secondary)
}

.contact-card form .form-control {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: .55rem .75rem
}

.contact-card .submit {
  background: linear-gradient(135deg, #4361ee, #7209b7);
  color: #fff;
  border: none;
  padding: .55rem 1rem;
  border-radius: 10px;
  font-weight: 900
}

@media (max-width: 992px) {
  #contact .contact-wrap {
    grid-template-columns: 1fr
  }

  .contact-card {
    margin-top: 1rem
  }
}

.btn-wa:focus,
.btn-group:focus,
.submit:focus,
.form-control:focus,
.chip:focus {
  outline: 3px solid rgba(67, 97, 238, .14);
  outline-offset: 2px
}

#contact .decor {
  position: absolute;
  right: 4%;
  top: -30px;
  opacity: .06;
  font-size: 180px;
  pointer-events: none;
  color: var(--primary-color)
}

.mobile-cta {
  position: sticky;
  top: var(--nav-h);
  z-index: 1020;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  padding: .5rem;
}

.mobile-cta a {
  color: var(--primary-color);
  font-size: .9rem;
  text-decoration: none;
  font-weight: 600;
}


/* ===== Tools: Remini page ===== */
.tool-card{
  background: linear-gradient(180deg, rgba(212,175,55,.12), rgba(26,31,46,.95));
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tool-card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(800px 240px at 20% -10%, rgba(212,175,55,.35), transparent 55%);
  pointer-events:none;
}
.tool-card > *{ position:relative; z-index:1; }
.tool-card__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.tool-card__title{
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}
.tool-card__sub{ margin-top:2px; }

.tool-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 991px){
  .tool-grid{ grid-template-columns:1fr; }
}

.tool-panel{
  background: rgba(15,20,32,.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px;
}
.tool-panel__title{
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 10px;
}
.tool-media{
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(10,14,23,.6);
  overflow: hidden;
  min-height: 240px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tool-media img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.empty-state{
  text-align:center;
  padding: 22px 16px;
}
.empty-state i{
  font-size: 28px;
  opacity:.9;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.tool-error{
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #fecaca;
  border-radius: 14px;
  padding: 10px 12px;
  font-size:.95rem;
}

.feature-list{
  display:grid;
  gap:10px;
  margin-top: 14px;
}
.feature-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(26,31,46,.55);
}
.feature-item i{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(212,175,55,.15);
  color: var(--primary-color);
  flex: 0 0 auto;
  margin-top: 2px;
}

/* Before/After compare */
.compare{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
}
.compare img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(10,14,23,.6);
}
.compare__overlay{
  position:absolute;
  inset:0;
  overflow:hidden;
  width:50%;
  border-right: 2px solid rgba(255,255,255,.22);
}
.compare__overlay img{
  width:100%;
  height:100%;
}
.compare__range{
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  width: calc(100% - 20px);
  accent-color: var(--primary-color);
}

.tool-history__list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.history-item{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(15,20,32,.6);
}
.history-item img{
  width:54px;
  height:54px;
  border-radius: 14px;
  object-fit: cover;
  border:1px solid rgba(255,255,255,.08);
}
.history-item .meta{
  min-width:0;
}
.history-item .meta .title{
  font-weight:700;
  font-size:.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.history-item .meta .sub{
  font-size:.82rem;
  color: var(--text-secondary);
}

