/* ==========================================================================
   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.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

: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;

  /* 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 {
  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 276x108 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 ---------------------------------------------------------------
   Drawn in CSS rather than shipped as images: Windows renders flag emoji as
   letter pairs, so 🇲🇾 would come out as "MY". */
.flag {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--c-soft-2);
}
.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: linear-gradient(#ce1126 0 50%, #fff 50%); }
.flag-my { background: repeating-linear-gradient(#cc0001 0 7.14%, #fff 7.14% 14.28%); }
.flag-my::after { content: ''; position: absolute; inset: 0 50% 50% 0; background: #010066; }
.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: linear-gradient(#ef3340 0 50%, #fff 50%); }
.flag-sg::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.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; }

/* 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;
}
.pay-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-chip {
  height: 26px;
  min-width: 42px;
  border-radius: 4px;
  background: var(--c-soft-2);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  color: var(--c-muted);
  padding: 0 6px;
}
.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; }

/* 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;
}
