/* ==========================================================================
   88M — shared design tokens
   Layout, colour and type scale sampled from the reference site so that the
   desktop (/web) and mobile (/m) builds stay visually identical.
   ========================================================================== */

/* Poppins is served from this build's own vendor/ — no request to
   fonts.googleapis.com or fonts.gstatic.com is made, so a page never waits on
   Google's edge and a firewall that blocks it does not swap the site out from
   under the member. See assets/vendor/poppins/poppins.css. */
@import url('../vendor/poppins/poppins.css');

:root {
  /* Brand */
  --c-blue:        #0a4ea2;
  --c-blue-mid:    #1163cf;
  --c-blue-light:  #1877d2;
  --c-blue-deep:   #06265a;
  --c-yellow:      #ffc400;
  --c-orange:      #ff8a00;
  --c-orange-dark: #ff650f;
  --c-red:         #e4002b;
  --c-red-badge:   #ed1c24;
  --c-green:       #23a455;
  --c-purple-1:    #48125e;
  --c-purple-2:    #73277f;
  --c-gold:        #c8a256;

  /* Sampled straight off logo.png - the 88 is this green, the M this orange.
     The header's Join/Login pair paints in them so the buttons read as the mark. */
  --c-logo-green:       #51a37d;
  --c-logo-green-lit:   #5eb68c;
  --c-logo-green-deep:  #3f8b68;
  --c-logo-orange:      #cf5a46;
  --c-logo-orange-lit:  #dd6a54;
  --c-logo-orange-deep: #b64837;

  /* Ink & surfaces */
  --c-ink:         #0f161f;
  --c-body:        #4a5560;
  --c-muted:       #8a929b;
  --c-faint:       #b6bcc4;
  --c-line:        #e6e9ed;
  --c-surface:     #ffffff;
  --c-soft:        #f5f6f8;
  --c-soft-2:      #eef0f3;

  /* Layout */
  --container:     1340px;
  --header-h:      70px;
  --radius-sm:     5px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-pill:   20px;

  /* Type */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-section: 18px;
  --fs-body: 14px;

  --shadow-card: 0 2px 10px rgba(15, 22, 31, .07);
  --shadow-pop:  0 8px 30px rgba(15, 22, 31, .14);
}

/* --- Base ---------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

body {
  /* **Ours, not Bootstrap's.** The reboot in bootstrap.min.css zeroes this,
     and relying on it cost a day: the copy of that file on production
     uploaded as 0 bytes, the browser fell back to its own 8px body margin,
     and every full-bleed band on the site — the product-page hero banners
     most visibly — got a white frame down both sides. A third-party file we
     do not control must not be the only thing holding the page against its
     own edges. */
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:hover { color: inherit; }
img { max-width: 100%; }

/* Bootstrap overrides so utility classes inherit the palette */
.btn { font-family: var(--font); border: 0; }
.btn:focus, .btn:active, .form-control:focus, .form-select:focus {
  box-shadow: none !important;
  outline: none;
}

/* --- Shared brand atoms -------------------------------------------------- */
.btn-orange {
  background: var(--c-orange);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  padding: 5px 15px;
  transition: filter .15s ease;
}
.btn-orange:hover { background: var(--c-orange); color: #fff; filter: brightness(1.06); }

.pill-hot,
.pill-new {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: var(--radius-pill);
  color: #fff;
}
.pill-hot { background: var(--c-orange-dark); }
.pill-new { background: var(--c-red-badge); }

.pill-rtp {
  display: inline-block;
  background: var(--c-blue-light);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
}

/* Logo lockup. The PNG is 476x144 with a transparent plate; height is set and
   width follows, so swapping in a differently proportioned mark still works. */
.brand-logo { display: flex; align-items: center; }
.brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Placeholder artwork.
   Every visual on the reference site is licensed art, so layout blocks ship as
   gradient plates. Drop a real image in and delete the .art class to swap. */
.art {
  position: relative;
  background: linear-gradient(135deg, #123c86 0%, #1163cf 45%, #0a4ea2 100%);
  overflow: hidden;
  color: #fff;
}
.art::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  pointer-events: none;
}
/* Large plates park the placeholder caption out of the copy's way */
.art-wide::after { align-items: flex-end; justify-content: flex-end; padding: 18px 24px; }
.art-purple { background: linear-gradient(135deg, #4b1d78 0%, #8a2fb0 55%, #c13fa4 100%); }
.art-green  { background: linear-gradient(135deg, #0b6b3a 0%, #23a455 55%, #6fd48a 100%); }
.art-red    { background: linear-gradient(135deg, #6b0f22 0%, #c4102f 55%, #ff5470 100%); }
.art-gold   { background: linear-gradient(135deg, #6b4a08 0%, #c89b1e 55%, #ffd75e 100%); }
.art-teal   { background: linear-gradient(135deg, #06414f 0%, #0f8ba0 55%, #4fd6e0 100%); }
.art-dark   { background: linear-gradient(135deg, #0b0f16 0%, #1c2733 60%, #2f3d4d 100%); }
.art-pink   { background: linear-gradient(135deg, #7a0f5c 0%, #d63f9c 55%, #ff8ad1 100%); }
.art-night  { background: linear-gradient(135deg, #050b1c 0%, #0d2a63 55%, #10457f 100%); }
.art-flat   { background: var(--c-soft-2); }
.art-flat::after { color: var(--c-faint); }

/* Burger, sponsor plate and language chip — used by both headers */
.burger {
  width: 26px;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  gap: 5px;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-blue-mid);
}
.burger span:nth-child(2) { width: 78%; }

/* --- Flags ---------------------------------------------------------------
   Not emoji: Windows renders flag emoji as letter pairs, so 🇲🇾 would come out
   as "MY". Malaysia, Singapore and Indonesia are the square SVGs from
   flag-icons 7.2.3 (MIT), inlined as data URIs; the rest are drawn in CSS. */
.flag {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--c-soft-2);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .22);
}
.flag > i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; color: var(--c-blue-mid); }

.flag-th { background: linear-gradient(#a51931 0 16.7%, #f4f5f8 16.7% 33.3%, #2d2a4a 33.3% 66.7%, #f4f5f8 66.7% 83.3%, #a51931 83.3%); }
.flag-id { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23e70011' d='M0 0h512v256H0Z'/%3E%3Cpath fill='%23fff' d='M0 256h512v256H0Z'/%3E%3C/svg%3E") center / cover no-repeat; }
.flag-my { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23C00' d='M0 0h512v36.6H0z'/%3E%3Cpath fill='%23fff' d='M0 36.6h512V73H0z'/%3E%3Cpath fill='%23C00' d='M0 73.1h512v36.6H0z'/%3E%3Cpath fill='%23fff' d='M0 109.7h512v36.6H0z'/%3E%3Cpath fill='%23C00' d='M0 146.3h512v36.6H0z'/%3E%3Cpath fill='%23fff' d='M0 182.9h512v36.5H0z'/%3E%3Cpath fill='%23C00' d='M0 219.4h512V256H0z'/%3E%3Cpath fill='%23fff' d='M0 256h512v36.6H0z'/%3E%3Cpath fill='%23C00' d='M0 292.6h512V329H0z'/%3E%3Cpath fill='%23fff' d='M0 329.1h512v36.6H0z'/%3E%3Cpath fill='%23C00' d='M0 365.7h512v36.6H0z'/%3E%3Cpath fill='%23fff' d='M0 402.3h512v36.6H0z'/%3E%3Cpath fill='%23C00' d='M0 438.9h512v36.5H0z'/%3E%3Cpath fill='%23fff' d='M0 475.4h512V512H0z'/%3E%3Cpath fill='%23006' d='M0 0h256v292.6H0z'/%3E%3Cpath fill='%23FC0' d='m166 93 4.8 32.5 18.4-27.2-10 31.3 28.5-16.6-22.5 24 32.8-2.6-30.7 11.9L218 158l-32.8-2.5 22.5 24-28.4-16.7 9.8 31.5-18.4-27.3-4.8 32.5-4.7-32.5-18.4 27.2 9.9-31.4-28.4 16.7 22.4-24-32.8 2.5 30.7-11.8-30.6-11.9 32.8 2.6-22.5-24 28.4 16.6-10-31.4 18.5 27.3 4.8-32.6Zm-26.7 1.3a56.9 56.9 0 0 0-73 24.9 56.9 56.9 0 0 0 45.5 83.8 56.9 56.9 0 0 0 27.5-4.7 64 64 0 1 1 0-104'/%3E%3C/svg%3E") center / cover no-repeat; }
.flag-vn { background: #da251d; }
.flag-vn::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffff00;
  font-size: 15px;
  line-height: 1;
}
.flag-sg { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cdefs%3E%3CclipPath id='sg-a'%3E%3Cpath fill-opacity='.7' d='M27.7 0h708.6v708.7H27.7z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg fill-rule='evenodd' clip-path='url(%23sg-a)' transform='translate(-20)scale(.72249)'%3E%3Cpath fill='%23fff' d='M0 0h1063v708.7H0z'/%3E%3Cpath fill='%23df0000' d='M0 0h1063v354.3H0z'/%3E%3Cpath fill='%23fff' d='M245.2 59.4a124.6 124.6 0 0 0 1.1 243.9 126.9 126.9 0 1 1-1.1-243.9'/%3E%3Cpath fill='%23fff' d='m202 162.4-18.9-13.8 23.5-.2 7.2-22.3 7.5 22.3h23.4l-18.8 14 7.2 22.3L214 171l-19 13.8zm26 76.9-19-13.8 23.5-.2 7.3-22.3 7.4 22.2h23.5l-19 14 7.3 22.3-19-13.6-19 13.8zm86.3-.6-19-13.8 23.4-.2 7.3-22.3 7.4 22.3H357l-18.9 14 7.3 22.3-19.1-13.7-19 13.8zm25.7-76.2-19-13.8 23.5-.2 7.2-22.3 7.5 22.2h23.4l-18.8 14 7.2 22.3-19.1-13.6-19 13.8zM271.7 112l-19-13.8 23.5-.2 7.3-22.3 7.4 22.3h23.5l-19 14 7.3 22.2-19-13.6-19 13.8z'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.flag-au { background: #00247d; }
.flag-au::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 9px;
  background:
    linear-gradient(#fff 0 0) center / 100% 2px no-repeat,
    linear-gradient(#fff 0 0) center / 2px 100% no-repeat;
}
.flag-au::after {
  content: '★';
  position: absolute;
  right: 4px;
  bottom: 1px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.flag-hk { background: #de2910; }
.flag-hk::after {
  content: '✿';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.flag-intl { background: #eaf2fb; }

/* --- Region & language list (same markup in the desktop dropdown and the
   mobile drawer pane) ------------------------------------------------------ */
.region-row {
  display: flex;
  padding-bottom: 15px;
}
.region-row .region-body { margin-left: 20px; flex: 1; min-width: 0; }
.region-row .region-name {
  font-size: 12px;
  color: var(--c-ink);
  margin: 0 0 11px;
}
.region-row .region-cur {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--c-soft);
  color: var(--c-body);
  font-size: 10px;
  letter-spacing: .3px;
}
.region-row .lang-opts { line-height: 1.9; }
.lang-opt {
  font-size: 13px;
  color: #8697a2;
  padding: 0 12px;
  border-right: 1px solid #ccc;
  white-space: nowrap;
}
.lang-opt:first-child { padding-left: 0; }
.lang-opt:last-child { border-right: 0; }
.lang-opt:hover { color: var(--c-blue-light); }
.lang-opt.active { color: #0066cc; text-decoration: underline; }

/* Match card internals — identical markup in both builds */
.mc-team { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.mc-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.mc-dot.h { background: var(--c-green); }
.mc-dot.a { background: var(--c-orange-dark); }
.mc-crests { display: flex; }
.mc-crests i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, #e8ecf2, #cfd6df);
  display: block;
}
.mc-crests i + i { margin-left: -14px; }

/* Footer atoms */
.foot-select {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--c-muted);
  padding: 6px 10px;
  max-width: 150px;
}
/* Footer badges — payment marks, the regulators, the licence. Every one is a
   third party's own artwork, so the row holds their **height** in common and
   nothing else: a fixed box would letterbox the square marks or squash the
   wide ones, and either way it would be somebody else's logo drawn wrong. */
.foot-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foot-badges img { height: 30px; width: auto; max-width: 100%; display: block; }
.foot-badges.lg img { height: 34px; }
/* CIMB Niaga's wordmark is seven times as wide as it is tall: at the row's
   height it would outweigh every other badge. */
.foot-badges img[src*="cimb"] { height: 20px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-soft-2);
  display: grid;
  place-items: center;
  color: var(--c-muted);
  font-size: 13px;
}
.copyright { font-size: 12px; color: var(--c-faint); padding: 26px 0 30px; }

/* Scroll rails used by every card carousel */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 auto; }

.rail-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-blue-light);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 22, 31, .18);
  font-size: 13px;
  cursor: pointer;
  border: 0;
  z-index: 3;
}

/* Floating furniture shared by both builds */
.float-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-blue-mid);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-pop);
  z-index: 60;
  border: 0;
}
.float-top {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-blue-mid);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: var(--shadow-pop);
  z-index: 59;
  border: 0;
}
.float-top.show { display: grid; }


/* Form validation feedback */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #9b1c1c;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.field-err { font-size: 12px; color: #c0392b; margin-top: 5px; line-height: 1.4; }
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #e08585 !important;
  background-image: none;
}

/* Utility */
.text-muted-2 { color: var(--c-muted) !important; }
.hr-line { height: 1px; background: var(--c-line); border: 0; }
.stars { color: #ffb400; letter-spacing: 2px; }

/* A platform under maintenance: still listed, and saying so. Grey rather than
   orange or red — "back soon" is neither a promotion nor an error. */
.pill-maint {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: var(--radius-pill);
  background: var(--c-muted);
  color: #fff;
  white-space: nowrap;
}
