:root {
  --color-page: #f4f6f8;
  --color-paper: #f4f6f8;
  --color-card: #ffffff;
  --color-muted: #5e6c76;
  --color-green: #e4edf3;
  --color-green-mid: #98b2c4;
  --color-green-soft: #e2ecf2;
  --color-green-wash: #f0f5f8;
  --color-yellow: #e4edf3;
  --color-forest: #204961;
  --color-success: #204961;
  --color-gold-soft: #e2ecf2;
  --color-line-soft: #d8e2e8;
  --color-danger: #c05858;
  --color-danger-soft: #f7e6e6;
}

@keyframes kanaraMarquee {
  0% {
    transform: translateX(50%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 20px;
  animation: kanaraMarquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

html,
body {
  background-color: var(--color-paper);
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

main,
.home-main-scroll,
main.pb-48,
main.pb-36,
main.pb-28 {
  padding-bottom: 140px !important;
}

.bg-ink {
  background-color: #fafad2;
  color: #1f1f1f;
}

.text-yellow {
  color: #eab308 !important;
}

.text-gold {
  color: #d97706 !important;
}

.text-paper {
  color: #1f1f1f;
}

.text-paper\/70 {
  color: rgba(31, 31, 31, 0.7);
}

.fill-paper {
  fill: #1f1f1f;
}

.badge-success {
  background-color: #dcfce7 !important;
  color: #15803d !important;
}

.badge-pending {
  background-color: #fef9c3 !important;
  color: #854d0e !important;
}

.badge-cancel {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
}

.badge-expired {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

.text-forest {
  color: #b8860b;
}

.text-success {
  color: #b8860b;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%) translateY(20px);
  background: #1f1f1f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 99;
  max-width: 90vw;
  text-align: center;
}

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

.product-locked .line {
  opacity: 0.6;
}

.segara-hadir-badge {
  background-color: var(--color-gold-soft);
  color: #4d3300 !important;
}

#g-signin {
  display: flex;
  justify-content: center;
}

#g-signin > div {
  margin: 0 auto;
}

#g-signin iframe {
  margin: 0 auto;
}

#g-signin div[role="button"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

#desktop-blocker {
  display: none !important;
}

#mobile-app-wrapper {
  display: block !important;
}

@media (min-width: 768px) {
  #desktop-blocker {
    display: flex !important;
  }

  #mobile-app-wrapper {
    display: none !important;
  }
}

.btn-buy-again {
  background-color: #ffffff !important;
  border: 1.5px solid #2563eb !important;
  color: #2563eb !important;
}
.btn-buy-again svg {
  stroke: #2563eb !important;
  color: #2563eb !important;
}
.btn-buy-again:hover {
  background-color: #eff6ff !important;
}

.btn-cancel-order.btn-cancel-locked {
  background-color: #ffffff !important;
  border: 1.5px solid #fca5a5 !important;
  color: #f87171 !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.btn-cancel-order.btn-cancel-locked svg {
  stroke: #f87171 !important;
  color: #f87171 !important;
}

.btn-cancel-order.btn-cancel-active {
  background-color: #ffffff !important;
  border: 1.5px solid #dc2626 !important;
  color: #dc2626 !important;
  opacity: 1 !important;
  cursor: pointer !important;
}
.btn-cancel-order.btn-cancel-active:hover {
  background-color: #fef2f2 !important;
}
.btn-cancel-order.btn-cancel-active svg {
  stroke: #dc2626 !important;
  color: #dc2626 !important;
}

.text-status-waiting {
  color: #d97706 !important;
}
.text-status-waiting svg {
  stroke: #d97706 !important;
  color: #d97706 !important;
}

.bg-amber-50 {
  background-color: #fffbeb !important;
}
.bg-amber-50\/40 {
  background-color: rgba(254, 243, 199, 0.4) !important;
}
.border-amber-200 {
  border-color: #fde68a !important;
}
.border-amber-200\/90 {
  border-color: rgba(253, 230, 138, 0.9) !important;
}
.text-amber-600 {
  color: #d97706 !important;
}
.text-amber-700 {
  color: #b45309 !important;
}

.bg-blue-50 {
  background-color: #eff6ff !important;
}
.border-blue-200 {
  border-color: #bfdbfe !important;
}
.text-blue-700 {
  color: #1d4ed8 !important;
}

.text-red-600 {
  color: #dc2626 !important;
}

/* Liquid Navigation Bar */
.liquid-wrapper {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 24px);
  max-width: 400px;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(152, 178, 196, 0.35);
  background: #98b2c4;
}

.navigation ul {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation ul li {
  position: relative;
  list-style: none;
  width: 25%;
  height: 60px;
  z-index: 5;
}

.navigation ul li a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  z-index: 6;
}

.navigation ul li a .icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s ease;
  color: rgba(255, 255, 255, 0.9);
  z-index: 7;
}

.navigation ul li a .icon svg {
  width: 22px;
  height: 22px;
}

.navigation ul li.active a .icon {
  transform: translateY(-27px);
  color: #1e293b;
  z-index: 10;
}

.navigation ul li a .text {
  position: absolute;
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  z-index: 7;
}

.navigation ul li.active a .text {
  opacity: 1;
  transform: translateY(11px);
}

/* Profile Pop-up Dropdown (Navigator Theme #98b2c4 with Outlined Blocks) */
.profile-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background-color: #98b2c4 !important;
  border: 1.5px solid #1f1f1f !important;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.24s;
  z-index: 60;
}

.profile-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-menu-block {
  background-color: #f4f6f8;
  border: 1.5px solid #1f1f1f !important;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f1f1f !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.profile-menu-block:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.profile-menu-block svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.profile-menu-block:hover svg {
  transform: scale(1.1);
}

.profile-menu-block.logout {
  background-color: #f7e6e6;
  color: #c05858 !important;
}

.profile-menu-block.logout:hover {
  background-color: #fee2e2;
  color: #991b1b !important;
}

/* Navigator Theme Block Container (#98b2c4) */
.card-nav-theme {
  background-color: #98b2c4 !important;
  border: 1.5px solid #1f1f1f !important;
  border-radius: 20px !important;
  padding: 12px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   KANARA LIQUID NAV — SMOOTH / FLOATING OVERRIDE
   ========================================================= */

.liquid-wrapper {
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 400px);
  padding-bottom: env(safe-area-inset-bottom);
}

.navigation {
  isolation: isolate;
  overflow: visible;
  height: 60px;
  border-radius: 18px;
  background: #98b2c4;
  box-shadow:
    0 12px 30px rgba(31, 41, 55, 0.18),
    0 4px 10px rgba(31, 41, 55, 0.08);
}

.navigation ul {
  position: relative;
  isolation: isolate;
}

.navigation ul li {
  flex: 1 1 25%;
  width: 25%;
  min-width: 0;
  height: 60px;
}

.navigation ul li a {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.navigation ul li a .icon {
  height: 60px;
  transform: translate3d(0, 0, 0);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 260ms ease;
  will-change: transform;
}

.navigation ul li.active a .icon {
  transform: translate3d(0, -27px, 0);
}

.navigation ul li a .text {
  transition:
    opacity 300ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.navigation ul li.active a .text {
  transform: translate3d(0, 11px, 0);
}

/* The circle is moved with CSS sibling selectors (nth-child.active ~ .indicator)
   defined inline in shell.mjs — same mechanism as the ILMAH liquid nav reference. */
.navigation .indicator {
  box-shadow:
    0 8px 14px rgba(15, 23, 42, 0.16),
    0 2px 4px rgba(15, 23, 42, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .navigation .indicator,
  .navigation ul li a .icon,
  .navigation ul li a .text {
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .liquid-wrapper {
    width: calc(100% - 16px);
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .navigation {
    height: 58px;
  }

  .navigation ul li,
  .navigation ul li a .icon {
    height: 58px;
  }
}
