/* =====================================================================
   Ibom-Oil Components V56 — 2026-08-16

   This is the final browser-facing component layer.  It ports the visual
   language supplied in biodata.html, admin-sales.html, admin-dashboard.html
   and admin.html to the real PHP markup while leaving the PHP/SQL/payment/
   wallet/authentication implementation untouched.
   ===================================================================== */

:root {
  --bg: #0b0b0b;
  --panel: #0f0f0f;
  --panel2: #101010;
  --panel-2: #101010;
  --gold: #d4af37;
  --gold2: #caa22f;
  --gold-soft: #caa22f;
  --text: #eaeaea;
  --muted: #a0a0a0;
  --border: #242424;
  --green: #44d07a;
  --red: #f45b5b;
  --blue: #5bbcf4;
  --ib55-radius: 14px;
  --ib55-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  --ib55-gold-line: rgba(212, 175, 55, .34);
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
}

body.ibom-site,
body.admin-page,
body.ibom-api-admin-page {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 18% -10%, #202020 0%, #0b0b0b 62%),
    var(--bg);
  font-family: Inter, Poppins, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.ibom-site *,
body.admin-page *,
body.ibom-api-admin-page * {
  box-sizing: border-box;
}

body.ibom-site :where(img, video, canvas, svg),
body.admin-page :where(img, video, canvas, svg),
body.ibom-api-admin-page :where(img, video, canvas, svg) {
  max-width: 100%;
}

body.ibom-site :where(main, section, article, aside, form, fieldset, div),
body.admin-page :where(main, section, article, aside, form, fieldset, div),
body.ibom-api-admin-page :where(main, section, article, aside, form, fieldset, div) {
  min-width: 0;
}

body.ibom-site a,
body.admin-page a,
body.ibom-api-admin-page a {
  text-decoration: none;
}

body.ibom-site :where(a, button, input, select, textarea, summary):focus-visible,
body.admin-page :where(a, button, input, select, textarea, summary):focus-visible,
body.ibom-api-admin-page :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(212, 175, 55, .68);
  outline-offset: 3px;
}

/* Shared public navigation ------------------------------------------------ */
body.ibom-site > header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1400;
  width: 100%;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
}

body.ibom-site > header .navbar {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 18px;
}

body.ibom-site > header .logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

body.ibom-site > header .logo img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ib55-gold-line);
  border-radius: 50%;
  object-fit: cover;
}

body.ibom-site > header .logo span,
body.ibom-site > header .nav-links a:hover {
  color: var(--gold);
}

body.ibom-site > header .nav-links {
  margin-left: auto;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

body.ibom-site > header .nav-links a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #d8d8d8;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}

body.ibom-site > header .nav-links a:hover {
  background: #111;
}

body.ibom-site > header .nav-btns {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
}

body.ibom-site > header .mobile-btn {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
}

body.ibom-site > header .mobile-menu {
  display: none;
}

body.ibom-site > header .mobile-menu.open,
body.ibom-site > header .mobile-menu.is-open,
body.ibom-site > header .mobile-menu.show {
  display: grid;
}

/* Reference-quality controls --------------------------------------------- */
body.ibom-site :where(input, select, textarea),
body.admin-page :where(input, select, textarea),
body.ibom-api-admin-page :where(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  margin: 5px 0 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #0d0d0d;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.ibom-site textarea,
body.admin-page textarea,
body.ibom-api-admin-page textarea {
  min-height: 112px;
  resize: vertical;
}

body.ibom-site :where(input, select, textarea):focus,
body.admin-page :where(input, select, textarea):focus,
body.ibom-api-admin-page :where(input, select, textarea):focus {
  border-color: var(--gold-soft);
  background: #101010;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

body.ibom-site :where(label, .label),
body.admin-page :where(label, .label),
body.ibom-api-admin-page :where(label, .label) {
  color: #c5c5c5;
  font-size: .9rem;
  font-weight: 700;
}

body.ibom-site :where(.btn, button),
body.admin-page :where(.btn, button),
body.ibom-api-admin-page :where(.btn, button) {
  min-height: 42px;
  border-radius: 10px;
  font-family: inherit;
}

body.ibom-site .btn,
body.admin-page .btn,
body.ibom-api-admin-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #0d0d0d;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

body.ibom-site .btn:hover,
body.admin-page .btn:hover,
body.ibom-api-admin-page .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

body.ibom-site .btn.gold,
body.admin-page .btn.gold,
body.ibom-api-admin-page .btn.gold,
body.ibom-site .btn-primary,
body.admin-page .btn-primary {
  border-color: transparent;
  color: #111;
  background: linear-gradient(180deg, var(--gold), var(--gold-soft));
  box-shadow: 0 8px 20px rgba(212, 175, 55, .14);
}

body.ibom-site .btn.ghost,
body.admin-page .btn.ghost,
body.ibom-api-admin-page .btn.ghost {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

body.ibom-site :where(.card, .panel),
body.admin-page :where(.card, .panel),
body.ibom-api-admin-page :where(.card, .panel) {
  border: 1px solid var(--border);
  border-radius: var(--ib55-radius);
  color: var(--text);
  background: linear-gradient(160deg, #111, #0b0b0b);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

body.ibom-site :where(h1, h2, .section-title),
body.admin-page :where(h1, h2, .section-title),
body.ibom-api-admin-page :where(h1, h2, .section-title) {
  color: var(--gold);
}

body.ibom-site .section-title,
body.admin-page .section-title,
body.ibom-api-admin-page .section-title {
  margin: 0 0 12px;
  line-height: 1.2;
}

body.ibom-site .section-sub,
body.admin-page .section-sub,
body.ibom-site .muted,
body.admin-page .muted,
body.ibom-api-admin-page .muted {
  color: var(--muted);
}

/* Registration, login, verification and password pages ------------------- */
body.ibom-auth-page {
  min-height: 100svh;
}

body.ibom-auth-page > .ibom-auth-stage,
body.ibom-page-forgot-password > .container,
body.ibom-page-resend-verification > .container,
body.ibom-page-reset-password > .container,
body.ibom-page-verify-email > .container {
  width: min(680px, calc(100% - 28px));
  max-width: 680px;
  min-height: calc(100svh - 66px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) 0;
  display: grid;
  place-items: start center;
}

body.ibom-auth-page :where(.ibom-auth-card, .form.card) {
  width: min(600px, 100%);
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 32px);
  display: block;
  overflow: visible;
  border: 1px solid var(--ib55-gold-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #101010, #0b0b0b);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .66), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

body.ibom-page-register .ibom-register-card {
  max-width: 580px;
}

body.ibom-page-login .ibom-login-card {
  max-width: 520px;
}

body:is(.ibom-page-login, .ibom-page-register) .ibom-auth-brand {
  margin-bottom: 16px;
  text-align: left;
}

body:is(.ibom-page-login, .ibom-page-register) .ibom-auth-brand h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 1.8rem);
}

body:is(.ibom-page-login, .ibom-page-register) .ibom-auth-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(212, 175, 55, .48);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, .72),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}

body.ibom-page-login .ibom-login-card {
  background-image:
    linear-gradient(135deg, rgba(3, 6, 12, .94), rgba(20, 8, 2, .82)),
    radial-gradient(circle at 88% 12%, rgba(244, 180, 26, .2), transparent 34%),
    url('../images/fruit.jpg');
  background-position: center, center, 42% center;
}

body.ibom-page-register .ibom-register-card {
  background-image:
    linear-gradient(145deg, rgba(8, 3, 1, .9), rgba(2, 7, 13, .94)),
    radial-gradient(circle at 12% 88%, rgba(212, 175, 55, .18), transparent 38%),
    url('../images/fruit.jpg');
  background-position: center, center, 68% center;
}

body:is(.ibom-page-login, .ibom-page-register) .ibom-auth-card :where(.ibom-input-shell > input, .ibom-input-shell > select) {
  border-color: rgba(212, 175, 55, .32);
  background: rgba(4, 4, 4, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

body:is(.ibom-page-login, .ibom-page-register) .ibom-auth-card :where(.ibom-auth-brand, label, .footer, .ibom-auth-meta-row) {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .95);
}

/* Create the image preview only on pages with an actual data-zoom-src target.
   The hidden rule also guarantees that its button and image fallback can never
   appear as ordinary page content below an unrelated form. */
.ibom-image-modal[hidden] {
  display: none !important;
}

.ibom-image-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  padding: clamp(14px, 4vw, 36px);
  place-items: center;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
}

.ibom-image-modal.show {
  display: grid;
}

.ibom-image-modal img {
  max-width: min(1100px, 94vw);
  max-height: 84svh;
  object-fit: contain;
  border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .8);
}

.ibom-image-modal button {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 1;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #111;
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

body.ibom-auth-page .ibom-auth-logo {
  width: 100%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}

body.ibom-auth-page .ibom-auth-logo img {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}

body.ibom-auth-page .ibom-auth-brand {
  width: 100%;
  margin: 0 0 20px;
  display: block;
  color: var(--text);
  text-align: center;
}

body.ibom-auth-page .ibom-auth-brand h1 {
  margin: 7px 0 9px;
  color: var(--gold);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 800;
}

body.ibom-auth-page .ibom-auth-brand p {
  margin: 0;
  color: var(--muted);
}

body.ibom-auth-page .ibom-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.ibom-auth-page .notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--ib55-gold-line);
  border-radius: 11px;
  color: #eadca8;
  background: rgba(212, 175, 55, .07);
}

body.ibom-auth-page .ibom-auth-field {
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
}

body.ibom-auth-page .ibom-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

body.ibom-auth-page .ibom-input-shell > .ibom-field-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: var(--gold);
  pointer-events: none;
}

body.ibom-auth-page .ibom-input-shell > :where(input, select) {
  min-height: 48px;
  margin: 0;
  padding-left: 42px;
}

body.ibom-auth-page .password-wrap > input {
  padding-right: 50px;
}

body.ibom-auth-page .toggle-pass {
  position: absolute;
  right: 6px;
  z-index: 3;
  width: 42px;
  min-width: 42px;
  min-height: 38px;
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
}

body.ibom-auth-page .ibom-field-help {
  margin-top: 1px;
  color: var(--muted);
  font-size: .8rem;
}

body.ibom-auth-page .ibom-terms-check,
body.ibom-auth-page .remember {
  margin: 4px 0 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

body.ibom-auth-page :where(.ibom-terms-check, .remember) input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
}

body.ibom-auth-page .ibom-auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
}

body.ibom-auth-page .ibom-auth-card > .footer {
  width: 100%;
  margin: 18px 0 0;
  padding: 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}

body.ibom-auth-page :where(.msg, .error, .success) {
  overflow-wrap: anywhere;
}

/* Store, cart, Buy-to-Own and checkout ----------------------------------- */
body.ibom-customer-page .dashboard-shell {
  width: 100%;
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

body.ibom-customer-page .dashboard-sidebar {
  position: sticky;
  top: 64px;
  width: 240px;
  height: calc(100svh - 64px);
  padding: 12px 10px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  color: var(--gold);
  background: #000;
}

body.ibom-customer-page .dashboard-sidebar a {
  width: 100%;
  margin: 0 0 5px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  color: var(--gold);
  font-size: .89rem;
  font-weight: 700;
}

body.ibom-customer-page .dashboard-sidebar a:hover,
body.ibom-customer-page .dashboard-sidebar a.active {
  color: #fff;
  background: #151515;
}

body.ibom-customer-page .dashboard-main {
  width: 100%;
  margin: 0;
  padding: clamp(16px, 2.5vw, 30px);
}

body.ibom-customer-page .dashboard-title-row {
  margin: 0 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

body.ibom-customer-page .dashboard-title-row h1 {
  margin-top: 0;
}

body:is(.ibom-page-products, .ibom-page-product) .products-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  align-items: stretch;
}

body:is(.ibom-page-products, .ibom-page-product) .products-grid > .card {
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body:is(.ibom-page-products, .ibom-page-product) .product-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(145deg, #261409, #0d0805);
}

body:is(.ibom-page-products, .ibom-page-product) .product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
}

body:is(.ibom-page-products, .ibom-page-product) .card-body {
  flex: 1;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
}

body:is(.ibom-page-products, .ibom-page-product) .price-breakdown {
  margin: 12px 0 16px;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--ib55-gold-line);
  border-radius: 11px;
  background: #0b0b0b;
}

body:is(.ibom-page-products, .ibom-page-product) .price-line,
body.ibom-page-checkout .wallet-checkout-row,
body.ibom-page-buy-to-own-summary .wallet-checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:is(.ibom-page-products, .ibom-page-product) .card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body:is(.ibom-page-products, .ibom-page-product) .card-actions .btn {
  flex: 1 1 140px;
}

body:is(.ibom-page-cart, .ibom-page-orders) .table-wrap,
body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .card {
  border-color: var(--ib55-gold-line);
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .two-col,
body.ibom-page-cart .two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  align-items: start;
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) form.card,
body.ibom-page-manual-checkout-proof .card {
  padding: clamp(18px, 3vw, 28px);
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .form-grid,
body.admin-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) :where(.wallet-checkout-box, .direct-bank-box) {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--ib55-gold-line);
  border-radius: 12px;
  color: var(--text);
  background: #12100a;
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .wallet-checkout-balance {
  color: #f5d67a;
  font-size: 1.25rem;
  font-weight: 900;
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .bank-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .bank-account-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #080808;
}

/* Tables, reports, accordions and record components ----------------------- */
body.ibom-site .table-wrap,
body.admin-page .table-wrap,
body.ibom-api-admin-page :where(.table-wrap, .table) {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  -webkit-overflow-scrolling: touch;
}

body.ibom-site table,
body.admin-page table,
body.ibom-api-admin-page table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

body.ibom-site :where(thead th, table th),
body.admin-page :where(thead th, table th),
body.ibom-api-admin-page :where(thead th, table th) {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
  background: #0d0d0d;
  text-align: left;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

body.ibom-site :where(tbody td, table td),
body.admin-page :where(tbody td, table td),
body.ibom-api-admin-page :where(tbody td, table td) {
  padding: 11px 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

body.ibom-site tbody tr:hover,
body.admin-page tbody tr:hover,
body.ibom-api-admin-page tbody tr:hover {
  background: #141414;
}

body.ibom-site .badge,
body.admin-page .badge,
body.ibom-api-admin-page .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
}

body.ibom-site :where(.ibom-month-group, .ibom-day-group, .ibom-record, .ibom-section-accordion),
body.admin-page :where(.ibom-month-group, .ibom-day-group, .ibom-record, .ibom-section-accordion) {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #0d0d0d;
}

body.ibom-site :where(.ibom-month-group, .ibom-day-group, .ibom-record, .ibom-section-accordion) > summary,
body.admin-page :where(.ibom-month-group, .ibom-day-group, .ibom-record, .ibom-section-accordion) > summary {
  min-height: 54px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

body.ibom-site :where(.ibom-month-body, .ibom-day-body, .ibom-record-body, .ibom-section-content),
body.admin-page :where(.ibom-month-body, .ibom-day-body, .ibom-record-body, .ibom-section-content) {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #090909;
}

body.ibom-site .ibom-detail-grid,
body.admin-page .ibom-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}

body.ibom-site .ibom-detail,
body.admin-page .ibom-detail {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101010;
}

body.ibom-site .ibom-detail-label,
body.admin-page .ibom-detail-label {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}

body.ibom-site .ibom-detail-value,
body.admin-page .ibom-detail-value {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 700;
}

/* Root staff dashboards --------------------------------------------------- */
body.ibom-staff-page .role-wrap {
  width: min(1240px, calc(100% - 32px));
  max-width: 1240px;
  margin: 24px auto;
  padding: 0;
}

body.ibom-staff-page .role-hero {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--ib55-gold-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #111, #080808);
  box-shadow: var(--ib55-shadow);
}

body.ibom-staff-page :where(.role-top, .section-head, .role-actions) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.ibom-staff-page .role-tabs {
  margin: 14px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

body.ibom-staff-page .role-tab {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--gold);
  background: #0d0d0d;
  font-weight: 800;
}

body.ibom-staff-page .role-grid,
body.ibom-staff-page .role-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

body.ibom-staff-page :where(.role-card, .role-action, .role-section) {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

body.ibom-staff-page .role-section {
  margin-top: 14px;
  overflow: hidden;
}

/* Administrator console — supplied admin reference mapped to live PHP ----- */
body.admin-page > .header {
  position: fixed;
  top: 0;
  z-index: 1500;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: #000;
}

body.admin-page > .header .nav {
  width: min(1480px, calc(100% - 28px));
  max-width: 1480px;
  height: 64px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 12px;
}

body.admin-page > .header .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 900;
}

body.admin-page > .header .brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

body.admin-page > .header .menu {
  margin-left: auto;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 6px;
}

body.admin-page > .header .menu a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--gold);
  font-weight: 700;
}

body.admin-page .layout {
  width: 100%;
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

body.admin-page .layout > .sidebar {
  position: sticky;
  top: 64px;
  width: 260px;
  height: calc(100svh - 64px);
  padding: 12px 10px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  color: var(--gold);
  background: #000;
}

body.admin-page .layout > .sidebar a {
  width: 100%;
  margin: 0 0 4px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  color: var(--gold);
  font-size: .88rem;
  font-weight: 700;
}

body.admin-page .layout > .sidebar a:hover,
body.admin-page .layout > .sidebar a.active {
  color: #fff;
  background: #151515;
}

body.admin-page .layout > .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 2.4vw, 30px);
}

body.admin-page .grid.kpis,
body.admin-page .kpis {
  width: 100%;
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

body.admin-page .kpi {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}

body.admin-page .kpi .value,
body.admin-page .kpi .val {
  margin-top: 7px;
  color: #ffd666;
  font-size: 1.3rem;
  font-weight: 900;
}

body.admin-page .tabs {
  width: 100%;
  margin: 14px 0;
  padding: 2px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

body.admin-page .tab-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: #0d0d0d;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

body.admin-page .tab-btn.active,
body.admin-page .tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: #141414;
}

body.admin-page .tab:not(.active) {
  display: none;
}

body.admin-page .tab.active {
  display: block;
}

body.admin-page :where(.controls, .toolbar, .filter-bar, .filter-row, .row, .card-actions) {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

body.admin-page :where(.controls, .toolbar, .filter-bar, .filter-row) > :where(input, select) {
  width: auto;
  min-width: 150px;
  margin: 0;
  flex: 1 1 170px;
}

body.admin-page :where(.controls, .toolbar, .filter-bar, .filter-row) > :where(button, .btn) {
  flex: 0 0 auto;
}

/* Browser admin utilities ------------------------------------------------- */
body.ibom-api-admin-page {
  padding: clamp(16px, 3vw, 30px);
}

body.ibom-api-admin-page > .container {
  width: min(1100px, 100%);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

body.ibom-api-admin-page :where(.toolbar, .row) {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* Explicit page-family application.  Each page also retains its individual
   body.ibom-page-* token from V54 for page-specific containment. */
body:is(.ibom-page-cart, .ibom-page-orders, .ibom-page-withdrawals) .table-wrap {
  box-shadow: var(--ib55-shadow);
}

body:is(.ibom-page-dashboard, .ibom-page-fund-wallet, .ibom-page-kyc) :where(.wallet-card, .mini-card, .holding, .kyc-block) {
  border-color: var(--border);
  background: linear-gradient(160deg, #111, #0a0a0a);
}

body:is(.ibom-page-faq, .ibom-page-privacy, .ibom-page-terms) :where(.faq-card, .faq-mini, .terms-card, .terms-section) {
  border-color: var(--border);
  background: linear-gradient(160deg, #111, #0a0a0a);
}

body:is(.ibom-page-chat-support, .ibom-page-support-dashboard, .ibom-page-support-tickets) :where(.chat-grid, .chat-sidebar, .chat-main, .bubble) {
  border-color: var(--border);
}

/* Responsive verification ------------------------------------------------ */
@media (max-width: 1100px) {
  body.ibom-site > header .nav-links,
  body.ibom-site > header .nav-btns {
    display: none;
  }

  body.ibom-site > header .mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.ibom-site > header .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1500;
    max-height: calc(100svh - 64px);
    padding: 12px 16px 18px;
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    border-top: 1px solid var(--border);
    background: #050505;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .48);
  }

  body.ibom-site > header .mobile-menu a,
  body.ibom-site > header .mobile-menu-section-label {
    padding: 10px 11px;
    border-radius: 9px;
  }

  body.ibom-customer-page .dashboard-shell,
  body.admin-page .layout {
    display: block;
  }

  body.ibom-customer-page .dashboard-sidebar,
  body.admin-page .layout > .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1900;
    width: min(300px, 88vw);
    height: 100svh;
    padding: 16px 12px;
    transform: translateX(-108%);
    transition: transform .24s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .58);
  }

  body.ibom-customer-page .dashboard-sidebar:is(.open, .is-open, .sidebar-open),
  body.admin-page .layout > .sidebar:is(.open, .is-open, .sidebar-open) {
    transform: translateX(0);
  }

  body.ibom-customer-page .dashboard-main,
  body.admin-page .layout > .main {
    width: 100%;
    margin-left: 0;
  }

  body.admin-page .admin-menu-btn,
  body.ibom-customer-page .dashboard-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  body.ibom-site > header .navbar,
  body.ibom-staff-page .role-wrap {
    width: calc(100% - 20px);
  }

  body.ibom-site > header .mobile-menu {
    grid-template-columns: 1fr;
  }

  body.ibom-auth-page :where(.ibom-auth-card, .form.card) {
    padding: 20px 16px;
    border-radius: 14px;
  }

  body.ibom-auth-page .ibom-auth-card > .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .two-col,
  body.ibom-page-cart .two-col,
  body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .form-grid,
  body.admin-page .form-grid {
    grid-template-columns: 1fr;
  }

  body.ibom-site .price-breakdown .price-line,
  body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .wallet-checkout-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(108px, 46%);
    align-items: center !important;
    gap: 8px !important;
  }

  body.ibom-site .price-breakdown .price-line > :first-child,
  body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .wallet-checkout-row > :first-child {
    min-width: 0;
  }

  body.ibom-site .price-breakdown .price-line > :last-child,
  body:is(.ibom-page-checkout, .ibom-page-buy-to-own-summary) .wallet-checkout-row > :last-child {
    min-width: 0;
    max-width: 100%;
    justify-self: end;
    text-align: right;
    overflow-wrap: anywhere;
  }

  body.ibom-staff-page .role-section {
    padding: 10px;
    overflow-x: auto;
  }

  body.admin-page :where(.controls, .toolbar, .filter-bar, .filter-row) {
    align-items: stretch;
  }

  body.admin-page :where(.controls, .toolbar, .filter-bar, .filter-row) > * {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  body.ibom-site > header .logo img {
    width: 38px;
    height: 38px;
  }

  body.ibom-site .price-breakdown {
    padding: 10px !important;
  }

  body.ibom-site .price-breakdown .price-line {
    font-size: .82rem !important;
  }

  body.ibom-customer-page .dashboard-main,
  body.admin-page .layout > .main {
    padding: 12px;
  }

  body:is(.ibom-page-products, .ibom-page-product) .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:is(.ibom-page-products, .ibom-page-product) .card-actions .btn,
  body.ibom-api-admin-page :where(.toolbar, .row) > * {
    width: 100%;
  }

  body.admin-page .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-page .tab-btn {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ibom-site *,
  body.admin-page *,
  body.ibom-api-admin-page * {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}
