/* Holla Africa — original skin: shared tokens, reset, age gate, message dialog, help FAB. */
:root {
  --og-black: #000;
  --og-yellow: #fdce07;
  --og-yellow-text: #f9d502;
  --og-jp-value: #fad504;
  --og-jp-label: #f0dcc1;
  --og-green: #65a30d;
  --og-gold-border: #e2c871;
  --og-tile-grey: #757575;
  --og-dialog-bg: #1e1e1e;
  --og-dialog-border: #c8c8c8;
  --og-font: "Roboto", "Helvetica", "Arial", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--og-black);
  color: #fff;
  font-family: var(--og-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- 18+ age gate (original: dark box, checkbox, "Read here", ENTER WEBSITE) ---------- */
.og-agegate {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.og-agegate__box {
  width: 100%; max-width: 384px;
  background: var(--og-dialog-bg);
  border: 1px solid var(--og-dialog-border);
  border-radius: 4px;
  padding: 26px 22px 22px 38px;
  font-size: 14px; line-height: 1.5;
}
.og-agegate__row { display: flex; gap: 14px; align-items: flex-start; }
.og-agegate__row input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0;
  border: 2px solid #bdbdbd; border-radius: 2px; background: transparent; cursor: pointer;
}
.og-agegate__row input:checked { background: var(--og-yellow); border-color: var(--og-yellow); }
.og-agegate__row input:checked::after {
  content: ""; display: block; width: 5px; height: 10px; margin: 0 0 0 4px;
  border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.og-agegate__read { display: inline-block; margin: 8px 0 0 0; color: var(--og-yellow); font-size: 13px; }
.og-agegate__btn {
  display: block; margin: 18px auto 0; min-width: 152px; height: 38px; padding: 0 16px;
  border: 0; border-radius: 4px;
  background: #3b3b3b; color: #7a7a7a;
  font-size: 14px; font-weight: 500; letter-spacing: .02857em; text-transform: uppercase;
}
.og-agegate__btn:not(:disabled) { background: var(--og-yellow); color: #000; }
.og-agegate__btn:disabled { cursor: default; }

/* ---------- Message dialog (flash errors / success) ---------- */
.og-dialog {
  border: 1px solid var(--og-dialog-border); border-radius: 4px; padding: 0;
  background: var(--og-dialog-bg); color: #fff;
  width: calc(100% - 32px); max-width: 420px;
  font-family: var(--og-font);
}
.og-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.og-dialog__body { padding: 22px 24px 8px; }
.og-dialog__title { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.og-dialog__text { margin: 0; font-size: 15px; line-height: 1.55; color: #e6e6e6; white-space: pre-line; }
.og-dialog__text p { margin: 0 0 8px; }
.og-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; }
/* scoped to the skin's own dialogs: payment pages (e.g. DigiPin's onegate-pages.css) have their own .og-btn */
:where(.og-dialog, .og-auth, .og-wdlg) .og-btn {
  min-width: 88px; height: 36px; padding: 0 16px; border: 0; border-radius: 4px;
  background: var(--og-yellow); color: #000;
  font-size: 14px; font-weight: 500; letter-spacing: .02857em; text-transform: uppercase;
}
:where(.og-dialog, .og-auth, .og-wdlg) .og-btn--ghost { background: transparent; color: var(--og-yellow); }
.og-dialog--error .og-dialog__title { color: #ff6b6b; }

/* ---------- Help "?" speed-dial (original MUI SpeedDial, bottom-left) ---------- */
.og-help { position: fixed; left: 16px; bottom: 64px; z-index: 900; }
.og-help__fab {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--og-yellow); color: #000;
  font-size: 27px; font-weight: 700; line-height: 48px;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
}
.og-help__actions {
  position: absolute; left: 4px; bottom: 58px;
  display: flex; flex-direction: column-reverse; gap: 12px;
}
.og-help__action {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #424242; color: #fff; text-decoration: none;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14);
}
.og-help__action svg { width: 22px; height: 22px; fill: currentColor; }
.og-help__action[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: 52px;
  background: #616161; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}

/* ---------- form fields (dialogs) ---------- */
.og-field {
  display: block; width: 100%; height: 48px; margin: 0 0 12px; padding: 0 14px;
  border: 1px solid #6c6c6c; border-radius: 4px; background: transparent;
  color: #fff; font: 16px var(--og-font); outline: 0;
}
.og-field::placeholder { color: #b5b5b5; }
.og-field:focus { border-color: var(--og-yellow); }
.og-field-wrap { position: relative; display: block; }
.og-field-wrap .og-field { padding-right: 48px; margin-bottom: 0; }
.og-field-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 4px; border: 0; background: none; color: #bbb; }
.og-field-eye svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Terms and conditions (popup + page): wooden planks, jackpot-style lettering ---------- */
.og-terms { font-size: 15px; line-height: 1.65; color: #f1e6d6; counter-reset: og-term; }
.og-terms__intro {
  margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--og-yellow); border-radius: 4px;
  background: rgba(253, 206, 7, .09); color: #f6ecd9; font-size: 15px;
}
.og-terms__promo { margin: 0 0 16px; padding: 14px 16px; border: 1px solid rgba(253, 206, 7, .45); border-radius: 6px; background: rgba(253, 206, 7, .07); }
.og-terms__promo h2 { margin: 0 0 6px; font-size: 18px; color: var(--og-yellow); }
.og-terms__item { margin: 0 0 10px; counter-increment: og-term; }
.og-terms__item summary {
  list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 8px 64px 10px 26px;
  background: url(../img/desk/topbar-mid.webp) 0 0 / 100% 100% no-repeat;
  border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
  color: var(--og-jp-label); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .85); transition: filter .15s;
}
.og-terms__item summary:hover { filter: brightness(1.12); }
.og-terms__item summary::-webkit-details-marker { display: none; }
.og-terms__item summary::before {
  content: counter(og-term, decimal-leading-zero); flex: none;
  color: var(--og-jp-value); font-size: 18px; font-weight: 800;
}
.og-terms__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ffe680, #f7b202 55%, #b97800); color: #3b2108;
  font-size: 22px; font-weight: 800; line-height: 1; text-shadow: none; box-shadow: 0 2px 4px rgba(0, 0, 0, .6);
}
.og-terms__item[open] summary::after { content: "\2212"; }
.og-terms__body {
  margin: -4px 10px 0; padding: 18px 20px 8px;
  border: 1px solid rgba(197, 108, 0, .55); border-top: 0; border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(43, 23, 9, .96), rgba(26, 15, 7, .96));
}
.og-terms__body p { margin: 0 0 12px; }
.og-terms__body strong, .og-terms__body b { color: var(--og-yellow-text); }
.og-terms__body ul, .og-terms__body ol, .og-terms__promo ul { margin: 0 0 12px 22px; padding: 0; }
.og-terms__body li { margin: 0 0 4px; }
.og-terms__body li::marker { color: var(--og-yellow); }
.og-terms a { color: var(--og-yellow); }
.og-terms__contact {
  margin-top: 20px; padding: 16px 18px; border-radius: 6px; text-align: center;
  background: rgba(0, 0, 0, .35); border: 1px dashed rgba(253, 206, 7, .45);
}
.og-terms__contact h2 { margin: 0 0 6px; font-size: 18px; color: var(--og-yellow); text-transform: uppercase; letter-spacing: .05em; }
.og-terms__contact p { margin: 0 0 6px; }

/* outlined yellow lettering, as on the login sign */
.og-title-yellow {
  margin: 0; color: var(--og-yellow); font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  text-shadow: -2px -2px 0 #2b130b, 2px -2px 0 #2b130b, -2px 2px 0 #2b130b, 2px 2px 0 #2b130b, 0 3px 0 #2b130b, 0 6px 10px rgba(0,0,0,.6);
}

/* popup */
.og-terms-dlg { max-width: 820px; background: #1a1109; border-color: #6b3d12; }
.og-terms-dlg .og-dialog__body { max-height: min(74vh, 760px); overflow: auto; padding-top: 0; }
.og-terms-dlg__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 64px; margin: 0 -24px 16px;
  background: url(../img/desk/topbar-mid.webp) 0 0 / 100% 100% no-repeat; box-shadow: 0 4px 10px rgba(0,0,0,.5);
}
.og-terms-dlg__head .og-title-yellow { font-size: 24px; }

/* full page */
.og-terms-page { min-height: 100vh; background: #000 url(../img/bg/desktop.webp) center / cover fixed no-repeat; }
.og-terms-page::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: -1; }
.og-terms-page__top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 22px;
  background: url(../img/desk/topbar-mid.webp) 0 0 / 100% 100% no-repeat; box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
}
.og-terms-page__top img { width: 56px; height: 56px; border-radius: 4px; }
.og-terms-page__top .og-title-yellow { flex: 1; text-align: center; font-size: 30px; }
.og-terms-page__back {
  display: inline-flex; align-items: center; gap: 8px; height: 41px; padding: 0 16px; border-radius: 4px;
  background: var(--og-yellow); color: #1d1d1b; font-size: 15px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
}
.og-terms-page__card {
  max-width: 900px; margin: 26px auto 48px; padding: 24px 26px 22px;
  border: 2px solid #c56c00; border-radius: 8px;
  background: linear-gradient(180deg, rgba(36, 20, 8, .94), rgba(18, 11, 5, .94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 210, 120, .08);
}
@media (max-width: 640px) {
  .og-terms-page__top { height: 60px; padding: 0 10px; gap: 10px; }
  .og-terms-page__top img { width: 42px; height: 42px; }
  .og-terms-page__top .og-title-yellow { font-size: 18px; }
  .og-terms-page__back { height: 36px; padding: 0 10px; font-size: 13px; }
  .og-terms-page__card { margin: 14px 8px 30px; padding: 16px 12px; }
  .og-terms__item summary { padding: 8px 54px 10px 16px; font-size: 14px; gap: 10px; }
  .og-terms__item summary::after { right: 12px; width: 26px; height: 26px; font-size: 19px; }
  .og-terms__body { margin: -4px 4px 0; padding: 14px 12px 6px; }
}
