:root {
  --bg-cream: #FFF8FA;
  --surface-white: #FFFFFF;
  --surface-blush: #FFF0F5;
  --accent-pink: #F472B6;
  --accent-pink-dark: #EC4899;
  --accent-mint: #A7F3D0;
  --accent-lavender: #DDD6FE;
  --text-heading: #3B2838;
  --text-body: #6B5366;
  --text-muted: #9D8598;
  --border-soft: #FCE7F3;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-heading);
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}

.cute-bg-pattern {
  background-color: #FFF8FA;
  background-image:
    radial-gradient(#FBCFE8 1.2px, transparent 1.2px),
    radial-gradient(#DDD6FE 1.2px, #FFF8FA 1.2px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.cute-card {
  background: #FFFFFF;
  border: 1.5px solid #FCE7F3;
  box-shadow: 0 10px 28px -10px rgba(244, 114, 182, 0.16);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.cute-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(244, 114, 182, 0.25);
}

.cute-btn-primary {
  background: linear-gradient(135deg, #F472B6 0%, #FB7185 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(244, 114, 182, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cute-btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(236, 72, 153, 0.6);
}

.cute-btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

.cute-btn-primary:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
}

.pill-active {
  background: linear-gradient(135deg, #F472B6 0%, #FB7185 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 16px -4px rgba(244, 114, 182, 0.5);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

.animate-float-slow {
  animation: floatSlow 3.8s ease-in-out infinite;
}

@keyframes cuteBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.animate-cute-bounce {
  animation: cuteBounce 1.4s ease-in-out infinite;
}

@keyframes cuteProgress {
  0% {
    width: 12%;
  }
  60% {
    width: 78%;
  }
  100% {
    width: 100%;
  }
}

.animate-cute-progress {
  animation: cuteProgress 1.1s ease-out forwards;
}

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

.animate-modal-pop {
  animation: modalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skeleton {
  background: linear-gradient(90deg, #FDF2F8 25%, #FCE7F3 50%, #FDF2F8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.admin-nav-active {
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
  color: #DB2777;
  font-weight: 700;
  border-color: #FBCFE8;
}

/* =========================================================
   MODE MALAM / GELAP (PASTEL NIGHT THEME)
   ========================================================= */
html.dark body {
  background-color: #16111D;
  color: #F8EEF5;
}

html.dark .cute-bg-pattern {
  background-color: #16111D;
  background-image:
    radial-gradient(rgba(244, 114, 182, 0.16) 1.2px, transparent 1.2px),
    radial-gradient(rgba(167, 139, 250, 0.14) 1.2px, #16111D 1.2px);
}

html.dark .cute-card {
  background: #221A2C;
  border-color: #3D2D4D;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.55);
}

html.dark .cute-card:hover {
  box-shadow: 0 16px 34px -10px rgba(244, 114, 182, 0.22);
}

html.dark .text-cocoa {
  color: #F9EEF6 !important;
}

html.dark .text-plum {
  color: #CBB8CE !important;
}

html.dark .bg-white,
html.dark .bg-white\/85,
html.dark .bg-white\/90,
html.dark .bg-white\/95 {
  background-color: #221A2C !important;
}

html.dark .bg-\[\#FFF8FA\],
html.dark .bg-\[\#FFF8FA\]\/95 {
  background-color: #16111D !important;
}

html.dark .bg-pink-50,
html.dark .bg-pink-50\/40,
html.dark .bg-pink-50\/50,
html.dark .bg-pink-50\/60,
html.dark .bg-pink-50\/70,
html.dark .bg-pink-50\/80 {
  background-color: #2C2139 !important;
}

html.dark .border-pink-100,
html.dark .border-pink-100\/70,
html.dark .border-pink-200 {
  border-color: #423154 !important;
}

html.dark .divide-pink-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #3A2B4A !important;
}

html.dark input,
html.dark select,
html.dark textarea {
  background-color: #1B1424 !important;
  color: #F9EEF6 !important;
  border-color: #4A3660 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #8E7896 !important;
}

html.dark #cute-splash-loader {
  background: linear-gradient(135deg, #1B1325 0%, #241932 50%, #171220 100%) !important;
}

html.dark .admin-nav-active {
  background: linear-gradient(135deg, #3B2447 0%, #4C2750 100%);
  color: #F9A8D4;
  border-color: #6B3B6E;
}

html.dark .from-pink-100 {
  --tw-gradient-from: #311F3B var(--tw-gradient-from-position) !important;
}

html.dark .via-rose-50 {
  --tw-gradient-via: #291C33 var(--tw-gradient-via-position) !important;
}

html.dark .to-violet-100,
html.dark .to-pink-50\/70 {
  --tw-gradient-to: #221B35 var(--tw-gradient-to-position) !important;
}

html.dark .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
  color: #A7F3D0 !important;
}

html.dark .text-emerald-800,
html.dark .text-emerald-700 {
  color: #A7F3D0 !important;
}

html.dark .bg-violet-50 {
  background-color: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
  color: #DDD6FE !important;
}

html.dark .bg-rose-50 {
  background-color: rgba(244, 63, 94, 0.14) !important;
}

html.dark #pub-menu-outlet-lock {
  background-color: rgba(251, 191, 36, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
}

html.dark #pub-menu-outlet-lock .text-amber-800 {
  color: #FDE68A !important;
}

html.dark .guide-step-card {
  background-color: #2A1F36 !important;
  border-color: #46335A !important;
}

html.dark #pub-promo-banner {
  background: linear-gradient(135deg, #2D1B36 0%, #24192E 52%, #1E1A33 100%) !important;
  border-color: #4A335C !important;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.65) !important;
}

html.dark #pub-promo-banner .bg-pink-200\/40 {
  background-color: rgba(244, 114, 182, 0.14) !important;
}

html.dark #pub-promo-banner .bg-emerald-200\/40 {
  background-color: rgba(52, 211, 153, 0.12) !important;
}

html.dark #pub-promo-banner .bg-amber-50 {
  background-color: rgba(251, 191, 36, 0.16) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #FDE68A !important;
}

html.dark .skeleton {
  background: linear-gradient(90deg, #251C30 25%, #342843 50%, #251C30 75%);
  background-size: 200% 100%;
}

/* =========================================================
   OPTIMASI MOBILE (ANDROID & IPHONE / IOS)
   ========================================================= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

button, a, select, input, textarea {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  /* Cegah auto-zoom di iPhone/iOS Safari saat fokus ke input/select/textarea */
  input, select, textarea {
    font-size: 16px !important;
  }

  #cart-floating-bar {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}
