/* Kolab Topup pink theme. Loaded last in layouts/storefront.blade.php, so it overrides the inherited
   White & Blue design system (ds-tokens.css, design-system.css, ds-nav.css, purchase-pages.css).
   Palette: primary #FF2D91, dark #D1127A, light #FF80BC, soft #FFF0F7 / #FFE1EF, accent #FF80BC,
   page #FFFBFD, text #241323 / #5E4A58. Fonts: Inter (Latin) + Noto Sans Khmer. Light only. */

:root,
html[data-theme],
html[data-theme="light"],
html[data-theme="dark"] {
  --kl-pink: #FF2D91;
  --kl-pink-dark: #D1127A;
  --kl-pink-light: #FF80BC;
  --kl-pink-soft: #FFF0F7;
  --kl-pink-soft-2: #FFE1EF;
  --kl-violet: #FF80BC;
  --kl-line: rgba(255, 45, 145, .16);
  --kl-line-strong: rgba(255, 45, 145, .38);
  --kl-glow: 0 0 25px rgba(255, 45, 145, .22);
  --kl-glow-strong: 0 0 22px rgba(255, 45, 145, .45);
  --kl-grad: linear-gradient(135deg, #FF1493 0%, #FF2D91 45%, #FF80BC 140%); /* buttons: white text stays readable */
  --kl-grad-brand: linear-gradient(135deg, #FF2D91, #FF80BC);
  --kl-grad-deep: linear-gradient(135deg, #FF80BC 0%, #FF2D91 50%, #FF1493 100%);

  /* design-system tokens */
  --ds-bg: #FFFFFF;
  --ds-bg-subtle: #FFF7FB;
  --ds-bg-elevated: #FFFFFF;
  --ds-primary: #FF2D91;
  --ds-primary-hover: #D1127A;
  --ds-primary-soft: #FFF0F7;
  --ds-primary-border: #FFCFE6;
  --ds-border: #F6D8E8;
  --ds-text: #241323;
  --ds-text-muted: #826B7B;
  --ds-link: #D1127A;
  --ds-link-hover: #FF2D91;
  --ds-link-strong: #D1127A;
  --ds-focus: #FF2D91;
  --ds-focus-ring: 0 0 0 3px rgba(255, 45, 145, .22);
  --ds-nav-divider: #F6D8E8;
  --ds-nav-hover: #FFF0F7;
  --ds-nav-active: #FFF0F7;
  --ds-nav-press: #FFE1EF;
  --ds-shadow-sm: 0 1px 2px rgba(209, 18, 122, .06);
  --ds-shadow: 0 2px 8px -2px rgba(209, 18, 122, .12);
  --ds-shadow-md: 0 12px 28px -14px rgba(209, 18, 122, .30);
  --ds-radius: 14px;
  --ds-radius-lg: 18px;
  --ds-font: "Inter", "Noto Sans Khmer", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ds-font-khmer: "Noto Sans Khmer", "Inter", system-ui, sans-serif;

  /* legacy Page Design variables (old templates and the payment modal still read these) */
  --brand-primary: #FF2D91;
  --brand-dark: #D1127A;
  --brand-accent: #FF80BC;
  --brand-secondary: #FF80BC;
  --bg-page: #FFFBFD;
  --bg-nav: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-payment: #FFFFFF;
  --text-primary: #241323;
  --text-secondary: #5E4A58;
  --text-muted: #826B7B;
  --text-inverse: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #F6D8E8;
  --card-border-accent: #FF2D91;
  --input-bg: #FFFFFF;
  --input-border: #F1C6DC;
  --input-text: #241323;
  --btn-primary-bg: #FF2D91;
  --btn-primary-hover: #D1127A;
  --btn-primary-text: #FFFFFF;
  --game-card-bg: #FFFFFF;
  --game-card-text: #241323;
  --game-card-btn-bg: #FF2D91;
  --game-card-btn-text: #FFFFFF;
  --footer-icon-color: #FF2D91;
  --is-dark: 0;
  color-scheme: light;
}

html.kl-site,
html.kl-site[data-theme] {
  background: #FFFBFD !important;
}
html.kl-site[data-theme] body,
html.kl-site[data-theme] body#app-body {
  background: transparent !important;
  background-color: transparent !important;
}
body,
.ds-khmer,
.font-khmer {
  font-family: "Inter", "Noto Sans Khmer", system-ui, sans-serif !important;
}
body { color: #241323; }
::selection { background: #FFCFE6; color: #241323; }

/* soft pink glow behind the page top */
html.kl-site body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px 260px at 12% -40px, rgba(255, 128, 188, .28), transparent 70%),
    radial-gradient(520px 240px at 92% -60px, rgba(255, 20, 147, .16), transparent 70%);
}

a { -webkit-tap-highlight-color: transparent; }

/* ───────────── Header ───────────── */
.ds-site-nav {
  background: rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--kl-line) !important;
  box-shadow: 0 6px 24px -18px rgba(209, 18, 122, .45) !important;
}
.ds-site-nav::before,
.ds-site-nav::after { display: none !important; }
.aj-nav-link {
  color: #5E4A58 !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
}
.aj-nav-link:hover { color: var(--kl-pink-dark) !important; background: var(--kl-pink-soft) !important; }
.aj-nav-link.is-active {
  color: var(--kl-pink-dark) !important;
  background: var(--kl-pink-soft) !important;
}
.aj-nav-link.is-active::after,
.aj-nav-link::after { background: var(--kl-pink) !important; }
.aj-search-input,
.ds-site-nav input[type="search"] {
  background: #FFF7FB !important;
  border: 1px solid var(--kl-line) !important;
  border-radius: 999px !important;
  color: #241323 !important;
}
.aj-search-input:focus,
.ds-site-nav input[type="search"]:focus {
  border-color: var(--kl-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 145, .18) !important;
}
.ds-search-kbd { border-color: var(--kl-line-strong) !important; color: var(--kl-pink-dark) !important; background: #fff !important; }
.ds-nav-iconbtn { color: var(--kl-pink-dark) !important; }

/* login / primary pills in the header and drawer */
.ds-site-nav .ds-btn-primary,
.ds-site-nav a[href$="/login"].ds-btn,
.ds-drawer-cta {
  background: var(--kl-grad) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px -8px rgba(255, 45, 145, .8) !important;
}

/* brand */
.kl-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  line-height: 1;
  text-decoration: none;
}
.kl-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 14px -6px rgba(209, 18, 122, .7);
  flex: none;
}
.kl-brand-name {
  font-family: "Inter", "Noto Sans Khmer", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: .02em;
  color: #241323;
  white-space: nowrap;
}
.kl-brand-accent {
  background: var(--kl-grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 768px) {
  .kl-brand-icon { width: 40px; height: 40px; border-radius: 12px; }
  .kl-brand-name { font-size: 1.4rem; }
}
.ds-drawer-brand .kl-brand-name { font-size: 1.1rem; }

/* ───────────── Buttons, cards, forms (inherited components) ───────────── */
.ds-btn-primary,
.btn-primary,
button.bg-primary,
.bg-btn-primary {
  background: var(--kl-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.ds-btn-primary:hover,
.btn-primary:hover { box-shadow: var(--kl-glow-strong) !important; filter: brightness(1.02); }
.ds-btn { border-radius: 999px !important; font-weight: 700 !important; }
.ds-btn-secondary,
.ds-btn-outline {
  background: #fff !important;
  border: 1px solid var(--kl-line-strong) !important;
  color: var(--kl-pink-dark) !important;
}
.ds-card,
.ds-panel {
  background: #fff !important;
  border: 1px solid var(--kl-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 10px -6px rgba(209, 18, 122, .18) !important;
}
.ds-link,
.text-ds-primary { color: var(--kl-pink-dark) !important; }
.bg-ds-soft { background: var(--kl-pink-soft) !important; }

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"]),
select,
textarea {
  background-color: #fff;
  border-color: #F1C6DC;
  color: #241323 !important;
  border-radius: 12px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--kl-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 145, .18) !important;
}
input[type="checkbox"],
input[type="radio"] { accent-color: var(--kl-pink); }

/* Tailwind blue utility leftovers → pink */
.text-blue-500, .text-blue-600, .text-blue-700, .text-sky-500, .text-indigo-600 { color: var(--kl-pink-dark) !important; }
.bg-blue-500, .bg-blue-600, .bg-indigo-600 { background-color: var(--kl-pink) !important; }
.bg-blue-50, .bg-sky-50, .bg-indigo-50 { background-color: var(--kl-pink-soft) !important; }
.border-blue-500, .border-blue-600, .border-blue-200 { border-color: var(--kl-pink-light) !important; }

/* ───────────── Banner carousel ───────────── */
.kl-banner .hero-slide,
.kl-banner .hero-slide-img { border-radius: 20px !important; }
.kl-banner .hero-slide { box-shadow: 0 18px 40px -24px rgba(209, 18, 122, .55); }
.hero-btn-prev,
.hero-btn-next {
  background: rgba(255, 240, 243, .92) !important;
  border: 1px solid var(--kl-line) !important;
  color: var(--kl-pink) !important;
  box-shadow: 0 4px 15px rgba(255, 45, 145, .18) !important;
}
.hero-btn-prev:hover,
.hero-btn-next:hover { background: #FFE1EF !important; }
.swiper-pagination-bullet { background: #FFB3D7 !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--kl-pink) !important; width: 20px !important; border-radius: 4px !important; }

/* ───────────── Home sections ───────────── */
.kl-section { margin-top: 28px; }
@media (min-width: 768px) { .kl-section { margin-top: 40px; } }
.kl-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.kl-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .02em;
  color: #241323;
}
.kl-title > .bi {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 45, 145, .12);
  color: var(--kl-pink);
  font-size: 1rem;
}
.kl-title .ds-khmer { font-weight: 700; color: #A9909F; font-size: .85em; letter-spacing: 0; }
.kl-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kl-pink), #FFB3D7);
}
.kl-title-sm { font-size: 1rem; }
@media (min-width: 768px) { .kl-title { font-size: 1.4rem; } .kl-title-sm { font-size: 1.1rem; } }
.kl-link { color: var(--kl-pink-dark); font-weight: 700; font-size: .9rem; text-decoration: none; }
.kl-link:hover { text-decoration: underline; }

/* game grid: 3 / 3 / 4 / 5 columns */
.kl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
/* phone 2 · tablet 3 · laptop 4 · desktop 5 · wide 6 */
@media (min-width: 640px) { .kl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .kl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .kl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.kl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--kl-line);
  text-decoration: none;
  color: #241323;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.kl-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--kl-pink-soft);
}
.kl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.kl-card-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--kl-pink-light);
  font-size: 2rem;
}
.kl-card-off {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(36, 19, 35, .72);
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.kl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 12px;
  text-align: center;
}
.kl-card-name {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #241323;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
@media (min-width: 768px) {
  .kl-card-name { font-size: 15px; }
  .kl-card-body { padding: 12px 10px 14px; }
}
.kl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--kl-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 10px -4px rgba(255, 45, 145, .55);
  transition: box-shadow .3s ease;
  white-space: nowrap;
}
.kl-pill-sm { padding: 3px 10px; font-size: 10px; }
@media (min-width: 768px) { .kl-pill { font-size: 12px; padding: 6px 18px; } }
@media (hover: hover) {
  a.kl-card:hover {
    transform: translateY(-4px);
    border-color: var(--kl-line-strong);
    box-shadow: var(--kl-glow);
  }
  a.kl-card:hover .kl-card-media img { transform: scale(1.07); }
  a.kl-card:hover .kl-pill { box-shadow: var(--kl-glow-strong); }
}
a.kl-card:focus-visible { outline: 3px solid var(--kl-pink-light); outline-offset: 2px; }
.kl-card.is-disabled { opacity: .6; }

/* popular row */
.kl-popular { display: flex; gap: 12px; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: none; }
.kl-popular::-webkit-scrollbar { display: none; }
.kl-pop-card {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 260px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--kl-line);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.kl-pop-card img,
.kl-pop-ph { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.kl-pop-ph { display: grid; place-items: center; background: var(--kl-pink-soft); color: var(--kl-pink); }
.kl-pop-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.kl-pop-name { font-size: 14px; font-weight: 800; color: #241323; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) {
  .kl-pop-card:hover { transform: translateY(-3px); background: #FFF7FB; box-shadow: var(--kl-glow); }
}

.kl-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--kl-line-strong);
  background: #fff;
  color: var(--kl-pink-dark);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.kl-btn-outline:hover { background: var(--kl-pink-soft); box-shadow: var(--kl-glow); }

.kl-empty {
  padding: 40px 16px;
  text-align: center;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed var(--kl-line-strong);
  color: #826B7B;
}
.kl-empty > .bi { font-size: 2rem; color: var(--kl-pink-light); }
.kl-empty-title { margin: 8px 0 4px; font-weight: 800; color: #241323; }

.kl-event { display: block; overflow: hidden; border-radius: 18px; border: 1px solid var(--kl-line); background: #fff; }
.kl-event img { display: block; width: 100%; height: auto; }

/* contact + payments */
.kl-contact {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFF7FB 0%, #FFF0F7 60%, #FFF0F7 100%);
  border: 1px solid var(--kl-line);
}
@media (min-width: 768px) { .kl-contact { grid-template-columns: 1fr 1fr; padding: 28px; } }
.kl-contact-text { margin: 10px 0 14px; color: #5E4A58; font-size: 14px; }
.kl-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.kl-social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--kl-line-strong);
  color: var(--kl-pink);
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 6px -2px rgba(255, 45, 145, .25);
  transition: background-color .2s, color .2s, transform .2s;
}
.kl-social:hover { background: var(--kl-pink-soft-2); color: var(--kl-pink-dark); transform: translateY(-2px); }
.kl-pays { display: flex; flex-wrap: wrap; gap: 10px; }
.kl-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 42px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--kl-line);
  box-shadow: 0 1px 3px rgba(209, 18, 122, .08);
}
.kl-pay img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ───────────── Footer ───────────── */
.kl-footer {
  margin-top: 40px;
  padding: 28px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #FFF7FB 0%, #FFF0F7 100%);
  border-top: 1px solid var(--kl-line);
  color: #5E4A58;
}
.kl-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 1024px) { .kl-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kl-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--kl-line);
}
.kl-feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--kl-grad);
  color: #fff;
  font-size: 18px;
}
.kl-feature-title { display: block; font-size: 13px; font-weight: 700; color: #241323; }
.kl-feature-text { display: block; font-size: 12px; color: #826B7B; line-height: 1.35; }
.kl-footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 0 20px;
}
.kl-footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .kl-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .kl-footer-brand { grid-column: auto; }
}
.kl-footer-desc { margin: 12px 0 14px; max-width: 420px; font-size: 14px; line-height: 1.6; }
.kl-footer-heading { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #241323; }
.kl-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kl-footer-links a { color: #5E4A58; text-decoration: none; font-size: 14px; }
.kl-footer-links a:hover { color: var(--kl-pink-dark); }
.kl-footer-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--kl-line);
  text-align: center;
  font-size: 13px;
  color: #826B7B;
}
.kl-footer-bottom p { margin: 0; }
/* room for the phone tab bar */
@media (max-width: 1023.98px) {
  body:not([data-page="game.show"]) .kl-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ───────────── Phone tab bar, back-to-top, chat ───────────── */
.kl-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--kl-line);
  box-shadow: 0 -8px 24px -16px rgba(209, 18, 122, .45);
}
@media (min-width: 1024px) { .kl-tabbar { display: none; } }
.kl-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  border-radius: 14px;
  color: #A9909F;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.kl-tab .bi { font-size: 20px; line-height: 1; }
.kl-tab.is-active { color: var(--kl-pink); background: var(--kl-pink-soft); }
.kl-top {
  position: fixed;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 54;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--kl-pink);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 45, 145, .45);
  transition: transform .3s ease, background-color .3s ease;
}
.kl-top[hidden] { display: none; }
.kl-top:hover { transform: translateY(-3px); background: var(--kl-pink-light); }
@media (min-width: 1024px) { .kl-top { bottom: 24px; } }
.kl-chat-btn {
  background: var(--kl-grad-deep) !important;
  box-shadow: 0 8px 20px -8px rgba(209, 18, 122, .8) !important;
}
@media (max-width: 1023.98px) {
  .chat-button.kl-chat-btn { bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ───────────── Game / purchase page ───────────── */
body[data-page="game.show"] .ds-card,
body[data-page="game.show"] .pp-card,
body[data-page="game.show"] section > .rounded-xl,
body[data-page="game.show"] [class*="bg-[var(--bg-card)]"] {
  background: #fff !important;
  border-color: var(--kl-line) !important;
}
body[data-page="game.show"] main,
body[data-page] main#main-content { background: transparent !important; }

/* Verify / Apply / Buy Now: pink gradient pills */
body[data-page="game.show"] :is(#checkUsernameBtn, #applyCouponBtn, #buyNowBtn, #buyNowBtnMobile) {
  background: var(--kl-grad) !important;
  border-radius: 999px !important;
  font-family: "Inter", "Noto Sans Khmer", system-ui, sans-serif !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px -10px rgba(255, 45, 145, .9) !important;
}
@media (hover: hover) {
  body[data-page="game.show"] :is(#checkUsernameBtn, #applyCouponBtn, #buyNowBtn, #buyNowBtnMobile):not(:disabled):hover {
    box-shadow: 0 0 22px rgba(255, 45, 145, .5) !important;
  }
}
body[data-page="game.show"] :is(#checkUsernameBtn, #applyCouponBtn, #buyNowBtn, #buyNowBtnMobile):disabled {
  background: #FBE1EE !important;
  color: #E39BC0 !important;
  box-shadow: none !important;
}

/* package tiles */
body[data-page="game.show"] button.product-card {
  background: #fff !important;
  border: 1px solid var(--kl-line) !important;
  border-radius: 16px !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease !important;
}
@media (hover: hover) {
  body[data-page="game.show"] button.product-card:hover {
    background: #FFF7FB !important;
    border-color: var(--kl-line-strong) !important;
    box-shadow: var(--kl-glow) !important;
    transform: translateY(-2px);
  }
}
body[data-page="game.show"] button.product-card.selected {
  background: var(--kl-pink-soft) !important;
  border-color: var(--kl-pink) !important;
  box-shadow: 0 0 0 1px var(--kl-pink), 0 8px 20px -12px rgba(255, 45, 145, .9) !important;
}
body[data-page="game.show"] button.product-card .aj-pick {
  font: 700 11px/1 "Inter", "Noto Sans Khmer", system-ui, sans-serif !important;
  color: var(--kl-pink-dark) !important;
  background: rgba(255, 45, 145, .12) !important;
}
body[data-page="game.show"] button.product-card.selected .aj-pick {
  color: #fff !important;
  background: var(--kl-grad) !important;
}

/* step cards + numbered badges */
body[data-page="game.show"] .rounded-xl.border,
body[data-page="game.show"] .rounded-2xl.border { border-color: var(--kl-line) !important; }
body[data-page="game.show"] #summaryBarMobile {
  background: rgba(255, 255, 255, .97) !important;
  border-top: 1px solid var(--kl-line) !important;
  box-shadow: 0 -10px 24px -14px rgba(209, 18, 122, .45) !important;
}

/* banner arrows sit on the artwork on phones: hide them there (swipe works) */
@media (max-width: 767.98px) {
  .hero-btn-prev, .hero-btn-next { display: none !important; }
}

/* higher specificity than purchase-pages.css light-mode tile and field fills */
html.kl-site:not([data-theme="dark"]) body[data-page="game.show"] button.product-card:not(.selected) { background: #fff !important; }
html.kl-site:not([data-theme="dark"]) body[data-page="game.show"] button.product-card.selected { background: var(--kl-pink-soft) !important; }
html.kl-site body[data-page="game.show"] #orderForm :is(input[type="text"], input[type="number"], input[type="tel"], input:not([type]), select) {
  background: #fff !important;
  border: 1px solid #F1C6DC !important;
  border-radius: 12px !important;
}
html.kl-site body[data-page="game.show"] #orderForm :is(input, select):focus {
  border-color: var(--kl-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 145, .18) !important;
}

/* ───────────── Kolabtopup v2 additions ───────────── */
.kl-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--kl-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 10px -4px rgba(255, 20, 147, .7);
}
.kl-pill .bi { font-size: .85em; }
.kl-section-head-wrap { flex-wrap: wrap; }
.kl-filter {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
}
.kl-filter .bi { position: absolute; left: 14px; color: var(--kl-pink); pointer-events: none; }
.kl-filter input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ds-border) !important;
  background: #fff !important;
  font-size: 14px;
}
@media (max-width: 639.98px) { .kl-filter { max-width: none; flex-basis: 100%; } }

.kl-event { position: relative; }
.kl-event-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(36, 19, 35, .72));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.events-swiper .swiper-slide { width: 270px !important; height: auto; }
@media (min-width: 768px) { .events-swiper .swiper-slide { width: 340px !important; } }

.kl-why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 1024px) { .kl-why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.kl-why-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ds-border);
  transition: box-shadow .3s ease, transform .3s ease;
}
@media (hover: hover) { .kl-why-item:hover { box-shadow: var(--kl-glow); transform: translateY(-2px); } }
.kl-why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--kl-pink-soft);
  color: var(--kl-pink);
  font-size: 20px;
}
.kl-why-title { font-weight: 800; color: #241323; font-size: 15px; }
.kl-why-text { color: #826B7B; font-size: 13px; line-height: 1.5; }

/* announcement strip (inside the fixed header) */
.kl-announce { background: var(--kl-grad-deep); color: #fff; }
.kl-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 16px;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.kl-announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90vw; }
a.kl-announce-inner:hover .kl-announce-text { text-decoration: underline; }
body.kl-has-announce main.kl-main { padding-top: 102px !important; }

/* Khmer text: slightly larger line height for Noto Sans Khmer */
html[lang="km"] body { line-height: 1.6; }
html[lang="km"] .kl-title { letter-spacing: 0; }

/* animated gradient sheen on the main CTA buttons (off with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .kl-pill, body[data-page="game.show"] #buyNowBtn:not(:disabled) {
    background-size: 160% 160% !important;
    transition: background-position .5s ease, box-shadow .3s ease, transform .3s ease !important;
  }
  a.kl-card:hover .kl-pill, body[data-page="game.show"] #buyNowBtn:not(:disabled):hover { background-position: 100% 50% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-card, .kl-card-media img, .kl-pop-card, .kl-why-item, .kl-top, .kl-social { transition: none !important; transform: none !important; }
}
.kl-footer-heading-gap { margin-top: 18px; }

/* sign-in / register (auth.css, auth-v2.css) */
body[data-page="login"] .au-bg, body[data-page="register"] .au-bg { background: none !important; }
.au-brand .kl-brand-name { font-size: 1.2rem; }
.au-pa, .au-panel { background: linear-gradient(160deg, #FFF0F7 0%, #FFE1EF 100%) !important; }
:is(body[data-page="login"], body[data-page="register"]) button[type="submit"] {
  background: var(--kl-grad) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px -12px rgba(255, 20, 147, .8) !important;
}

/* official logo (23 Nov): emblem tile in the header, full logo in the footer */
.kl-brand-icon { background: #04000A; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(255, 20, 147, .65); }
.kl-footer-logo { display: inline-block; line-height: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(255, 20, 147, .7); }
.kl-footer-logo img { width: 132px; height: 132px; display: block; }
