.home-wrap {
  width: 100%;
}

/* ===== Skeleton loading ===== */
@keyframes skel-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skel-hero,
.skel-card,
.skel-box,
.skel-circle,
.skel-line,
.skel-btn {
  background: linear-gradient(90deg, #ece4da 25%, #f6f1ea 37%, #ece4da 63%);
  background-size: 400% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}

.skel-hero {
  width: 100%;
  box-sizing: border-box;
  min-height: 500px;
  padding: 18px 20px 100px;
  background-color: #ece4da;
}
.skel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.skel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skel-logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}
.skel-line-brand {
  width: 100px;
  height: 20px;
  border-radius: 6px;
}
.skel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.skel-greeting {
  max-width: 62%;
}
.skel-line-title {
  width: 90%;
  height: 26px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skel-line-sub {
  width: 70%;
  height: 15px;
  border-radius: 6px;
}
.skel-circle {
  flex-shrink: 0;
}
.skel-line {
  display: block;
}

.skel-card {
  position: relative;
  margin: -90px 20px 0;
  background: #fff;
  border-radius: 22px;
  padding: 32px 20px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  z-index: 3;
}
.skel-line-card-title {
  width: 65%;
  height: 22px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skel-line-card-sub {
  width: 45%;
  height: 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.skel-btn {
  width: 100%;
  height: 62px;
  border-radius: 50px;
}

.skel-trust-row {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 12px 4px;
}
.skel-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.skel-trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.skel-line-trust {
  width: 44px;
  height: 12px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .skel-hero,
  .skel-card,
  .skel-box,
  .skel-circle,
  .skel-line,
  .skel-btn {
    animation: none;
  }
}

.home-hero {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 500px;
  background-image: url('section.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 18px 20px 100px;
}
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Fredoka", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.home-brand b { color: #000; }
.home-brand-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
}

.home-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-deep);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(43, 27, 16, 0.12);
  cursor: pointer;
}

.home-greeting h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 25px;
  color: var(--ink);
  margin: 0 0 4px;
}
.home-wave {
  display: inline-block;
  animation: home-wave-swing 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}
.home-greeting {
  max-width: 62%;
  position: relative;
  z-index: 2;
}
.home-greeting p {
  font-family: "Permanent Marker", cursive;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}
.home-highlight {
  color: var(--orange-deep);
  font-weight: 700;
}

.home-character {
  position: absolute;
  right: -20px;
  bottom: 80px;
  width: 92%;
  max-width: 320px;
  z-index: 1;
  filter: drop-shadow(0 14px 18px rgba(43, 27, 16, 0.25));
}

.home-order-card {
  position: relative;
  margin: -90px 20px 0;
  background: #fff;
  border-radius: 22px;
  padding: 32px 20px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  z-index: 3;
}
.home-order-card h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 4px;
}
.home-order-card p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.home-trust-row {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 12px 4px;
}
.home-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-trust-item span {
  white-space: nowrap;
}
.home-trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.home-trust-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

@keyframes home-wave-swing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  75% { transform: rotate(-8deg); }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 16, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.4);
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.modal-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 8px;
}

.modal-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 18px;
}

.modal-cancel-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px;
  margin-top: 4px;
  cursor: pointer;
}

.order-btn {
  width: 100%;
  justify-content: space-between;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 22px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  animation: order-btn-pulse 2.2s ease-in-out infinite;
}
.order-btn i {
  font-size: 22px;
  animation: order-btn-bounce 1.1s ease-in-out infinite;
}
.order-btn:active {
  transform: scale(0.97);
  animation-play-state: paused;
}

@keyframes order-btn-pulse {
  0%, 100% {
    box-shadow: 0 14px 28px -10px rgba(232, 92, 13, 0.55), 0 0 0 0 rgba(232, 92, 13, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 14px 28px -10px rgba(232, 92, 13, 0.55), 0 0 0 12px rgba(232, 92, 13, 0);
    transform: scale(1.025);
  }
}

@keyframes order-btn-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .order-btn, .order-btn i {
    animation: none;
  }
}