:root {
  --green: #15c978;
  --green-dark: #078b55;
  --ink: #06110e;
  --muted: #66746f;
  --line: rgba(9, 33, 27, 0.12);
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(#010806 0 155px, transparent 155px),
    radial-gradient(circle at 15% 0%, rgba(21, 201, 120, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8fbfa 0%, #ffffff 48%, #f3f8f6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.topbar,
.main-nav,
main,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-wrap {
  background: #010806;
}

.topbar {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0 18px;
  color: #fff;
  background: transparent;
  position: relative;
  z-index: 1000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  box-shadow: 0 0 24px rgba(21, 201, 120, 0.3);
  font-size: 13px;
}

.search {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: transparent;
  outline: 0;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.search button {
  display: grid;
  width: 58px;
  height: 100%;
  border: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  cursor: pointer;
}

.quick-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.quick-actions a,
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-actions svg,
.main-nav svg,
[data-lucide] svg {
  width: 20px;
  height: 20px;
}

.main-nav {
  display: flex;
  gap: 54px;
  height: 58px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 50;
}

.main-nav a {
  height: 100%;
  position: relative;
}

.main-nav .nav-chat {
  display: inline-flex;
  height: 100%;
  align-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: inherit;
  cursor: pointer;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav .nav-chat:hover {
  color: var(--green);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.hero {
  position: relative;
  min-height: 575px;
  display: grid;
  align-items: center;
  margin-inline: calc((100vw - min(1180px, calc(100vw - 40px))) / -2);
  padding-inline: calc((100vw - min(1180px, calc(100vw - 40px))) / 2);
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: #020a07;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.07) contrast(1.06);
  animation: heroZoom 11s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 8, 6, 0.94), rgba(0, 8, 6, 0.62) 42%, rgba(0, 8, 6, 0.18)),
    linear-gradient(0deg, rgba(0, 8, 6, 0.83), transparent 32%, rgba(0, 8, 6, 0.18));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(21, 201, 120, 0.2);
  border-radius: 999px;
  pointer-events: none;
}

.orbit-one {
  width: 430px;
  height: 430px;
  right: 14%;
  bottom: -110px;
  animation: rotateSlow 18s linear infinite;
}

.orbit-two {
  width: 220px;
  height: 220px;
  right: 6%;
  top: 80px;
  animation: floatY 5s ease-in-out infinite;
}

.hero-content {
  width: min(620px, 100%);
  padding: 70px 0 110px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid rgba(21, 201, 120, 0.42);
  border-radius: 999px;
  color: var(--green);
  background: rgba(21, 201, 120, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--green);
  text-shadow: 0 0 28px rgba(21, 201, 120, 0.24);
}

.hero-copy {
  width: min(500px, 100%);
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions,
.hero-stats,
.mini-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 18px 48px rgba(9, 151, 87, 0.32);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.hero-stats {
  margin-top: 54px;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats span {
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid rgba(21, 201, 120, 0.6);
}

.hero-stats b {
  color: #fff;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  position: relative;
  z-index: 5;
  margin-top: -50px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: var(--line);
  box-shadow: 0 22px 55px rgba(15, 40, 33, 0.12);
  overflow: hidden;
}

.benefits article {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.95);
}

.benefits > article > [data-lucide] svg,
.transfer-visual > [data-lucide] svg {
  width: 34px;
  height: 34px;
  color: var(--green-dark);
}

.benefits h3,
.benefits p,
.product-card h3,
.product-card p {
  margin: 0;
}

.benefits h3 {
  font-size: 15px;
}

.benefits p,
.product-card p,
.footer p {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 20px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 25px;
}

.section-head a {
  color: var(--green-dark);
  font-weight: 800;
}

.category-grid,
.product-grid {
  display: grid;
  gap: 14px;
}

.category-grid {
  grid-template-columns: repeat(8, 1fr);
}

.category-grid button,
.product-card {
  border: 1px solid rgba(8, 39, 31, 0.08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(12, 42, 34, 0.08);
}

.category-grid button {
  display: grid;
  min-height: 118px;
  place-items: center;
  gap: 8px;
  padding: 16px 8px;
  color: #10221d;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-grid button:hover,
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 201, 120, 0.42);
}

.category-grid span {
  font-size: 34px;
  line-height: 1;
}

.product-grid {
  grid-template-columns: repeat(6, 1fr);
}

.product-card {
  display: grid;
  gap: 9px;
  padding: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-art {
  height: 120px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-color: #f8faf9;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.product-art.sprite,
i.sprite,
span.sprite,
.sprite {
  background-image: url("assets/grocery-sprite.png");
  background-repeat: no-repeat;
  background-size: 800% 200%;
  background-position-y: 100%;
}

.product-art.custom-image {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #ffffff !important;
}

/* Category images in category grid */
.category-img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.category-img.sprite {
  background-image: url("assets/grocery-sprite.png");
  background-repeat: no-repeat;
  background-size: 800% 200%;
  background-position-y: 0%;
}

/* Specific product sprite positions */
.rice-pack, .rice { background-position-x: 0% !important; }
.oil-pack, .oil { background-position-x: 14.285% !important; }
.sugar-pack, .sugar { background-position-x: 28.57% !important; }
.noodle-pack, .noodle { background-position-x: 42.855% !important; }
.flour-pack, .flour { background-position-x: 57.14% !important; }
.canned-pack, .canned { background-position-x: 71.425% !important; }
.spices-pack, .spices { background-position-x: 85.71% !important; }
.cereal-pack, .cereal { background-position-x: 100% !important; }

.shoe::before {
  width: 96px;
  height: 42px;
  border-radius: 40px 28px 18px 18px;
  background: linear-gradient(135deg, #fff, #232f31 60%, #18b878);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.18);
}

.tv::before {
  width: 104px;
  height: 66px;
  border: 6px solid #202528;
  border-radius: 4px;
  background: linear-gradient(135deg, #f099c9, #78d5ff 58%, #fff2a8);
  box-shadow: 0 18px 0 -14px #202528;
}

.product-card h3 {
  min-height: 38px;
  font-size: 15px;
}

.product-card p {
  min-height: 38px;
  font-size: 13px;
}

.product-card strong {
  font-size: 16px;
}

.product-card span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #69746f;
  font-size: 12px;
}

.product-card svg {
  width: 14px;
  height: 14px;
  color: #ffbf24;
  fill: #ffbf24;
}

.sprite {
  background-image: url("assets/grocery-sprite.png");
  background-repeat: no-repeat;
  background-size: 800% 200%;
}

.category-img {
  display: block;
  width: 88px;
  height: 68px;
  border-radius: 6px;
  background-color: #fff;
  background-position-y: 0;
}

.category-img.rice {
  background-position-x: 0;
}

.category-img.oil {
  background-position-x: 14.285%;
}

.category-img.sugar {
  background-position-x: 42.855%;
}

.category-img.noodle {
  background-position-x: 57.14%;
}

.category-img.cereal {
  background-position-x: 71.425%;
}

.category-img.spices {
  background-position-x: 85.71%;
}

.category-img.canned {
  background-position-x: 71.425%;
  background-position-y: 100%;
}

.all-dot {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: #0a1713;
  background: #f3f6f5;
  font-size: 28px;
  letter-spacing: 3px;
}

.category-grid button {
  min-height: 132px;
  gap: 12px;
  font-size: 13px;
}

.category-grid span {
  font-size: inherit;
}

.product-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 270px;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(8, 39, 31, 0.08);
  box-shadow: 0 4px 16px rgba(12, 42, 34, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #15c978;
  box-shadow: 0 14px 30px rgba(12, 42, 34, 0.12);
}

.product-card .product-art {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  background-color: #f8fafc;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  overflow: hidden;
}

.product-card .product-art::before,
.product-card .product-art::after {
  display: none;
}

.rice-pack {
  background-position-x: 0;
}

.oil-pack {
  background-position-x: 14.285%;
}

.sugar-pack {
  background-position-x: 28.57%;
}

.noodle-pack {
  background-position-x: 42.855%;
}

.flour-pack {
  background-position-x: 57.14%;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-info h3 {
  min-height: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.product-info p {
  min-height: 0;
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.product-rating-badge {
  font-size: 12px;
  color: #d97706;
  font-weight: 700;
  margin-top: 2px;
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.product-card-bottom strong {
  font-size: 15px;
  font-weight: 900;
  color: #008a4b;
}

.add-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(21, 201, 120, 0.4);
  border-radius: 8px;
  color: #008a4b;
  background: #ecfdf5;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.add-btn:hover {
  background: #008a4b;
  color: #ffffff;
  transform: scale(1.08);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 10px 0 22px;
}

.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 150px;
  min-height: 145px;
  overflow: hidden;
  border: 1px solid rgba(7, 28, 23, 0.06);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(14, 42, 35, 0.07);
}

.promo-card.weekly,
.promo-card.bulk {
  background:
    radial-gradient(circle at 92% 28%, rgba(21, 201, 120, 0.2), transparent 7rem),
    #eaf9f2;
}

.promo-card.flash {
  background:
    radial-gradient(circle at 90% 42%, rgba(255, 187, 65, 0.28), transparent 7rem),
    #fff6df;
}

.promo-card > div:first-child {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.promo-card p,
.promo-card h2,
.promo-card span {
  margin: 0;
}

.promo-card p {
  color: #40514b;
  font-size: 14px;
  font-weight: 700;
}

.promo-card h2 {
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1.15;
}

.promo-card.flash h2 {
  color: #a65b00;
}

.promo-card span {
  display: block;
  margin-top: 7px;
  color: #5d6b66;
  font-size: 13px;
}

.promo-card a {
  display: inline-flex;
  height: 34px;
  align-items: center;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(7, 139, 85, 0.45);
  border-radius: 6px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.promo-card.flash a {
  border-color: rgba(166, 91, 0, 0.32);
  color: #a65b00;
}

.promo-visual {
  position: relative;
  min-height: 145px;
}

.promo-visual::before {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 118px;
  height: 54px;
  border-radius: 12px 12px 28px 28px;
  background: linear-gradient(135deg, #b4732f, #f0bb64);
  box-shadow: inset 0 -10px 0 rgba(91, 50, 19, 0.12), 0 12px 22px rgba(88, 58, 28, 0.12);
}

.promo-visual.box::before {
  right: 16px;
  width: 120px;
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d99c5a, #f2cf90);
  clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%);
}

.promo-visual.cart::before {
  right: 18px;
  width: 122px;
  height: 80px;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(135deg, #ef3f2d, #f58c23);
  clip-path: polygon(0 18%, 100% 0, 88% 100%, 10% 100%);
}

.promo-visual i {
  position: absolute;
  z-index: 1;
  display: block;
  width: 70px;
  height: 78px;
  background-position-y: 100%;
  filter: drop-shadow(0 10px 10px rgba(29, 58, 48, 0.16));
}

.promo-visual i:first-child {
  right: 72px;
  bottom: 46px;
  transform: rotate(-8deg);
}

.promo-visual i:nth-child(2) {
  right: 24px;
  bottom: 44px;
  transform: rotate(8deg);
}

.promo-visual b {
  position: absolute;
  z-index: 2;
  left: -12px;
  bottom: 24px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px 50% 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-size: 28px;
}

.transfer {
  display: grid;
  grid-template-columns: 270px 1fr 230px;
  gap: 32px;
  align-items: center;
  margin: 34px 0 0;
  padding: 30px 38px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 0%, rgba(21, 201, 120, 0.18), transparent 18rem),
    radial-gradient(circle at 16% 40%, rgba(21, 201, 120, 0.35), transparent 20rem),
    linear-gradient(135deg, #02120d, #063726 58%, #06110e);
  overflow: hidden;
  position: relative;
}

.transfer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: sheen 5s ease-in-out infinite;
}

.transfer > * {
  position: relative;
  z-index: 1;
}

.transfer-visual {
  height: 190px;
  margin: -20px -6px -34px -34px;
  position: relative;
  overflow: visible;
}

.transfer-visual img {
  position: absolute;
  inset: -22px -64px -18px -30px;
  width: calc(100% + 94px);
  height: calc(100% + 40px);
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
  mix-blend-mode: screen;
  filter: saturate(1.22) contrast(1.16) brightness(1.08);
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 62%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 0%, #000 62%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.coin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd36a, #f59d22);
  box-shadow: 0 0 24px rgba(255, 196, 70, 0.3);
}

.coin-a {
  left: 58px;
  top: 26px;
  animation: floatY 3.2s ease-in-out infinite;
}

.coin-b {
  left: 205px;
  bottom: 28px;
  animation: floatY 3.7s ease-in-out infinite reverse;
}

.transfer-copy p,
.transfer-copy h2,
.transfer-copy span {
  margin: 0;
}

.transfer-copy p {
  margin-bottom: 12px;
  font-weight: 800;
}

.transfer-copy h2 {
  margin-bottom: 14px;
  font-size: 31px;
  line-height: 1.12;
}

.transfer-copy span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.mini-features {
  grid-column: 2 / 4;
  margin-top: -6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.mini-features span {
  display: grid;
  grid-template-columns: 22px auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
}

.mini-features i {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.mini-features small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
}

.footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 46px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: #010806;
  box-shadow: none;
  clip-path: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 15px;
}

.footer a:not(.brand) {
  display: block;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom p {
  margin: 0;
  max-width: none;
  font-size: 13px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.payment-icons span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.pay-logo {
  position: relative;
  min-width: 44px;
  justify-content: center;
  color: #f7fffb;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

.visa {
  font-style: italic;
  letter-spacing: 0.5px;
}

.mastercard {
  min-width: 40px;
  gap: 0;
}

.mastercard i {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.mastercard i:first-child {
  background: #ff5f35;
  margin-right: -6px;
}

.mastercard i:last-child {
  background: #ffc340;
  mix-blend-mode: screen;
}

.bca {
  gap: 5px;
  color: #f4fbff;
}

.bca i {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 30%, #fff 31% 40%, transparent 41%),
    #1d7cd8;
}

.mandiri {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
}

.mandiri i {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 20% 50%, #ffd44a 0 34%, transparent 36%),
    radial-gradient(ellipse at 50% 50%, #ffd44a 0 34%, transparent 36%),
    radial-gradient(ellipse at 80% 50%, #ffd44a 0 34%, transparent 36%);
}

.ovo {
  color: #f8f3ff;
}

.dana {
  padding: 4px 8px;
  border-radius: 6px;
  background: #1288e8;
  color: #fff;
  font-size: 12px;
}

.linkaja {
  gap: 4px;
}

.linkaja i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7262e;
}

.payment-icons .secure {
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
}

.payment-icons svg {
  width: 16px;
  height: 16px;
}

.chat-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end;
  padding: 24px;
  background: rgba(0, 8, 6, 0.42);
}

.chat-panel[hidden] {
  display: none;
}

.chat-card {
  display: grid;
  width: min(420px, 100%);
  max-height: min(620px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(21, 201, 120, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 8, 6, 0.35);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(21, 201, 120, 0.28), transparent 9rem),
    #010806;
}

.chat-head p,
.chat-head h2 {
  margin: 0;
}

.chat-head p {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.chat-head h2 {
  margin-top: 5px;
  font-size: 20px;
}

.chat-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.chat-body {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
  background: #f6fbf9;
}

.message {
  display: grid;
  gap: 5px;
  width: min(82%, 320px);
}

.message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.45;
}

.message.admin p {
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 34, 28, 0.06);
}

.message.user {
  justify-self: end;
}

.message.user span {
  text-align: right;
}

.message.user p {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.chat-form button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

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

@keyframes floatY {
  50% {
    transform: translateY(-16px);
  }
}

@keyframes sheen {
  0%,
  45% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-actions,
  .main-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .benefits,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .transfer {
    grid-template-columns: 210px 1fr;
  }

  .transfer .btn {
    grid-column: 2;
    justify-self: start;
  }

  .mini-features {
    grid-column: 1 / -1;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  body {
    background:
      linear-gradient(#010806 0 238px, transparent 238px),
      radial-gradient(circle at 15% 0%, rgba(21, 201, 120, 0.14), transparent 28rem),
      linear-gradient(180deg, #f8fbfa 0%, #ffffff 48%, #f3f8f6 100%);
  }

  .topbar,
  .main-nav,
  main {
    width: min(100% - 24px, 1180px);
  }

  .footer {
    width: 100%;
    max-width: none;
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 8px;
  }

  .brand {
    gap: 10px;
    font-size: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .search {
    height: 44px;
  }

  .search input {
    padding: 0 14px;
    font-size: 14px;
  }

  .search button {
    width: 52px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    width: 100%;
    gap: 8px;
    align-items: center;
    overflow: visible;
    padding: 0;
    font-size: 11.5px;
  }

  .quick-actions a {
    justify-content: center;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .quick-actions svg {
    width: 16px;
    height: 16px;
  }

  .user-menu-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .user-menu-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(21, 201, 120, 0.35) !important;
    color: var(--green) !important;
    flex-shrink: 0;
  }

  .user-menu-btn .user-btn-label {
    display: none !important;
  }

  .user-dropdown-card {
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 24px));
    top: calc(100% + 10px);
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    height: 54px;
    overflow: visible;
    padding: 0;
    font-size: 11px;
  }

  .main-nav a {
    justify-content: center;
    min-width: 0;
    text-align: center;
    line-height: 1.15;
  }

  .main-nav .nav-chat {
    justify-content: center;
    min-width: 0;
    text-align: center;
    line-height: 1.15;
    font-size: 11px;
  }

  .main-nav.has-admin {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero {
    min-height: 640px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 8, 6, 0.96), rgba(0, 8, 6, 0.62) 58%, rgba(0, 8, 6, 0.2)),
      linear-gradient(90deg, rgba(0, 8, 6, 0.9), rgba(0, 8, 6, 0.1));
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-content {
    padding: 44px 0 150px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 14px;
  }

  .benefits,
  .category-grid,
  .product-grid,
  .promo-grid,
  .transfer,
  .footer {
    grid-template-columns: 1fr;
  }

  .promo-card {
    grid-template-columns: 1fr 120px;
  }

  .promo-card > div:first-child {
    padding: 20px;
  }

  .promo-card h2 {
    font-size: 19px;
  }

  .benefits {
    margin-top: -32px;
  }

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

  .transfer {
    padding: 24px;
  }

  .transfer-visual {
    height: 175px;
    margin: -20px -12px 0;
  }

  .transfer-visual img {
    inset: -18px -38px -12px -24px;
    width: calc(100% + 62px);
    height: calc(100% + 30px);
  }

  .transfer .btn,
  .mini-features {
    grid-column: auto;
  }

  .mini-features {
    gap: 14px;
  }

  .payment-icons .secure {
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .chat-panel {
    padding: 12px;
    place-items: end center;
  }
}

/* User Profile Menu & Dropdown */
.user-menu-wrap {
  position: relative;
  display: inline-block;
  z-index: 1005;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(21, 201, 120, 0.4);
}

.user-dropdown-card {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 280px;
  background: #091310;
  border: 1.5px solid rgba(21, 201, 120, 0.3);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(21, 201, 120, 0.15);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-card[hidden] {
  display: none !important;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(21, 201, 120, 0.15);
  border: 1.5px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-circle svg {
  width: 22px;
  height: 22px;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.user-email {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.user-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(21, 201, 120, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  width: fit-content;
}

.dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--green);
}

.dropdown-link svg {
  width: 16px;
  height: 16px;
}

.dropdown-footer {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tombol Log Out Merah */
.btn-logout-red {
  width: 100%;
  height: 38px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-logout-red:hover {
  background: #b91c1c;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-logout-red:active {
  transform: translateY(1px);
}

.btn-logout-red svg {
  width: 16px;
  height: 16px;
}

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

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 12px;
    min-height: 240px;
  }
  .product-card .product-art {
    height: 110px;
  }
}

/* ============================================================
   ULASAN / TESTIMONI & USER FEEDBACK POPUP (HOME)
============================================================ */
.ulasan-section {
  margin-top: 40px;
}

.ulasan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ulasan-head h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.btn-open-feedback-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0f9f63, #045c38);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 159, 99, 0.3);
  transition: all 0.2s ease;
}

.btn-open-feedback-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 159, 99, 0.4);
}

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

.ulasan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.ulasan-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 25px rgba(15, 159, 99, 0.08);
  transform: translateY(-3px);
}

.ulasan-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ulasan-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f9f63, #045c38);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.ulasan-user-info b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.ulasan-user-info small {
  color: #64748b;
  font-size: 11.5px;
}

.ulasan-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.ulasan-comment {
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
  margin: 0;
}

.ulasan-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  width: fit-content;
}

.ulasan-admin-reply {
  background: #f0fdf4;
  border-left: 3px solid #059669;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #065f46;
  margin-top: 4px;
}

.ulasan-admin-reply b {
  display: block;
  font-size: 11.5px;
  margin-bottom: 2px;
}

/* User Feedback Modal */
.user-feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.user-feedback-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.user-feedback-modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s ease;
}

.user-feedback-modal-backdrop.is-open .user-feedback-modal-card {
  transform: translateY(0) scale(1);
}

.user-feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.user-feedback-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.user-feedback-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.2s;
}

.user-feedback-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.user-feedback-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.star-rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.star-rating-box span.star-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.interactive-stars {
  display: flex;
  gap: 8px;
  font-size: 32px;
  cursor: pointer;
}

.interactive-stars span {
  color: #cbd5e1;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
}

.interactive-stars span.active,
.interactive-stars span.hovered {
  color: #f59e0b;
}

.interactive-stars span:hover {
  transform: scale(1.2);
}

.user-feedback-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-feedback-form label span {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.user-feedback-form input,
.user-feedback-form select,
.user-feedback-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.user-feedback-form input:focus,
.user-feedback-form select:focus,
.user-feedback-form textarea:focus {
  border-color: #0f9f63;
}

.btn-submit-feedback {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f9f63, #045c38);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 159, 99, 0.3);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-submit-feedback:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 159, 99, 0.4);
}



