/*
 * BurmaBoost PerfectPanel Theme v5.0 — mobile containment + safe form routes
 * Target file: Admin > Themes > Bootstrap templates > CSS > style.css
 * Keep bootstrap.css and the panel's JavaScript files unchanged.
 */

:root {
  --bb-primary: #5665f4;
  --bb-primary-dark: #3f4edc;
  --bb-primary-soft: #edf0ff;
  --bb-violet: #8867f2;
  --bb-cyan: #27a6d5;
  --bb-ink: #1e2942;
  --bb-text: #354158;
  --bb-muted: #7a8497;
  --bb-line: #dfe6f0;
  --bb-line-strong: #cbd5e4;
  --bb-canvas: #f4f7fc;
  --bb-surface: #ffffff;
  --bb-soft: #f8f9fd;
  --bb-success: #17a873;
  --bb-success-soft: #ebfaf4;
  --bb-danger: #dc526d;
  --bb-danger-soft: #fff0f3;
  --bb-warning: #d99a24;
  --bb-warning-soft: #fff8e8;
  --bb-info: #2b91c7;
  --bb-info-soft: #edf8fd;
  --bb-radius-xs: 10px;
  --bb-radius-sm: 14px;
  --bb-radius: 19px;
  --bb-radius-lg: 24px;
  --bb-shadow-sm: 0 3px 10px rgba(38, 51, 84, .055);
  --bb-shadow: 0 16px 40px rgba(38, 50, 89, .09);
  --bb-shadow-primary: 0 12px 26px rgba(78, 91, 224, .25);
  --bb-sidebar-width: 270px;
  --bb-topbar-height: 68px;
  --bb-bottom-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bb-canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body.bb-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--bb-text);
  background:
    radial-gradient(circle at 8% 4%, rgba(94, 111, 247, .10), transparent 290px),
    radial-gradient(circle at 94% 28%, rgba(39, 166, 213, .075), transparent 320px),
    var(--bb-canvas);
  font-family: "Pyidaungsu", "Myanmar Text", "Noto Sans Myanmar", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.bb-body a { color: var(--bb-primary); text-decoration: none; }
body.bb-body a:hover, body.bb-body a:focus { color: var(--bb-primary-dark); text-decoration: none; }
body.bb-body button, body.bb-body input, body.bb-body select, body.bb-body textarea { font: inherit; }
body.bb-body button, body.bb-body a { -webkit-tap-highlight-color: transparent; }
body.bb-body img { max-width: 100%; height: auto; }
body.bb-body h1, body.bb-body h2, body.bb-body h3, body.bb-body h4, body.bb-body h5, body.bb-body h6,
body.bb-body p { margin-top: 0; }
body.bb-body h1, body.bb-body h2, body.bb-body h3, body.bb-body h4 { color: var(--bb-ink); font-weight: 650; }
body.bb-body strong, body.bb-body b { font-weight: 650; }

.hidden, [hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bb-svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.bb-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* Brand */
.bb-brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--bb-ink) !important; white-space: nowrap; }
.bb-brand-mark {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #6978ff 0%, #5262f2 56%, #4050dc 100%);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(73, 89, 225, .23), inset 0 1px rgba(255,255,255,.35);
  font-family: Inter, Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}
.bb-brand-mark > span { position: absolute; right: 7px; bottom: 5px; color: #e8ebff; font-size: 11px; line-height: 1; }
.bb-brand-text { overflow: hidden; color: #172039; font-family: Inter, Arial, sans-serif; font-size: 19px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; text-overflow: ellipsis; }
.bb-brand-text > span { color: var(--bb-primary); }
.bb-brand-text small { color: var(--bb-muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }

/* Buttons */
.bb-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 42px;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}
.bb-icon-button:focus-visible { outline: 3px solid rgba(83,100,245,.24); outline-offset: 2px; }

.bb-btn, body.bb-body .btn {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bb-ink);
  background-image: none;
  border: 1px solid transparent;
  border-radius: 13px;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  transition: box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}
.bb-btn:hover, body.bb-body .btn:hover { box-shadow: 0 8px 20px rgba(47,59,103,.12); }
.bb-btn-primary, body.bb-body .btn-primary, body.bb-body button[type="submit"].btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #6171ff 0%, var(--bb-primary) 55%, #4554e4 100%);
  border-color: transparent;
  box-shadow: var(--bb-shadow-primary);
}
.bb-btn-primary:hover, .bb-btn-primary:focus,
body.bb-body .btn-primary:hover, body.bb-body .btn-primary:focus {
  color: #fff !important;
  background: linear-gradient(135deg, #5363ee, #4050dc);
  border-color: transparent;
}
.bb-btn-ghost, body.bb-body .btn-default {
  color: var(--bb-text) !important;
  background: #fff;
  border-color: var(--bb-line);
  box-shadow: var(--bb-shadow-sm);
}
.bb-btn-danger, body.bb-body .btn-danger { color: #fff !important; background: var(--bb-danger); border-color: var(--bb-danger); }
.bb-btn-sm, body.bb-body .btn-sm, body.bb-body .btn-xs { min-height: 34px; padding: 7px 11px; border-radius: 11px; font-size: 12px; }
.bb-btn-block, body.bb-body .btn-block { width: 100%; }
body.bb-body .btn[disabled], body.bb-body .btn.disabled { opacity: .58; pointer-events: none; }

/* Signed-in layout */
.bb-app-shell { position: relative; width: 100%; max-width: 100%; min-width: 0; min-height: 100vh; overflow-x: hidden; }
.bb-sidebar {
  position: fixed;
  z-index: 70;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--bb-sidebar-width);
  padding: 18px 14px 16px;
  flex-direction: column;
  background: rgba(255,255,255,.98);
  border-right: 1px solid var(--bb-line);
  box-shadow: 12px 0 34px rgba(38,50,90,.055);
}
.bb-sidebar-brand { display: flex; min-height: 52px; padding: 0 6px 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bb-line); }
.bb-sidebar-close { display: none; color: var(--bb-muted); background: var(--bb-soft); }
.bb-sidebar-user { display: flex; margin: 16px 2px 12px; padding: 12px; align-items: center; gap: 11px; background: linear-gradient(135deg, #f4f6ff, #f8faff); border: 1px solid #e4e8fb; border-radius: 17px; }
.bb-avatar, .bb-profile-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #6574ff, #4655e5);
  border-radius: 50%;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.bb-sidebar-user > span:last-child { min-width: 0; }
.bb-sidebar-user strong, .bb-sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-sidebar-user strong { color: var(--bb-ink); font-size: 13.5px; }
.bb-sidebar-user small { margin-top: 2px; color: var(--bb-muted); font-size: 11.5px; }
.bb-side-nav { min-height: 0; padding: 2px; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bb-nav-link {
  display: flex;
  min-height: 43px;
  margin: 3px 0;
  padding: 9px 11px;
  align-items: center;
  gap: 11px;
  color: var(--bb-text) !important;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bb-nav-link:hover { color: var(--bb-primary) !important; background: #f6f7ff; }
.bb-nav-link.is-active { color: var(--bb-primary) !important; background: var(--bb-primary-soft); border-color: #e0e4ff; font-weight: 600; }
.bb-nav-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #cbd3e1; border-radius: 50%; }
.bb-nav-link.is-active .bb-nav-dot { background: var(--bb-primary); box-shadow: 0 0 0 5px rgba(83,100,245,.11); }
.bb-sidebar-footer { padding: 12px 2px 0; border-top: 1px solid var(--bb-line); }
.bb-nav-logout, .bb-nav-logout:hover { color: var(--bb-danger) !important; }

.bb-drawer-backdrop { position: fixed; z-index: 65; inset: 0; visibility: hidden; background: rgba(18,27,48,.46); opacity: 0; transition: opacity .2s ease, visibility .2s ease; }

.bb-topbar {
  position: fixed;
  z-index: 55;
  top: 0;
  right: 0;
  left: var(--bb-sidebar-width);
  display: flex;
  height: var(--bb-topbar-height);
  padding: 0 24px;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(115deg, #6172fb 0%, #5363f1 42%, #4654df 72%, #704fe2 120%);
  box-shadow: 0 10px 28px rgba(64,77,198,.20);
}
.bb-menu-button { display: none; color: #fff; background: rgba(255,255,255,.11); }
.bb-menu-button:hover { background: rgba(255,255,255,.18); }
.bb-topbar-brand { display: none; }
.bb-topbar-actions { display: flex; min-width: 0; margin-left: auto; align-items: center; gap: 10px; }
.bb-currency { min-width: 0; }
.bb-balance-button {
  display: flex;
  min-width: 132px;
  max-width: 270px;
  height: 46px;
  padding: 5px 13px 5px 7px;
  align-items: center;
  gap: 8px;
  color: var(--bb-ink);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 17px;
  box-shadow: 0 7px 18px rgba(24,37,111,.12);
  cursor: pointer;
}
.bb-balance-icon { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--bb-primary); background: var(--bb-primary-soft); border-radius: 12px; }
.bb-balance-value { min-width: 0; overflow: hidden; direction: ltr; font-family: Inter, "Noto Sans Myanmar", sans-serif; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bb-balance-chevron { width: 14px; height: 14px; margin-left: auto; color: var(--bb-muted); }
.bb-top-avatar { position: relative; display: inline-grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: var(--bb-primary) !important; background: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; box-shadow: 0 7px 18px rgba(24,37,111,.12); font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 700; }
.bb-top-avatar i { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; background: #1fba7f; border: 2px solid #fff; border-radius: 50%; }
.bb-currency-menu { right: 0; left: auto; min-width: 190px; max-height: 300px; overflow-y: auto; }

.bb-main {
  width: calc(100% - var(--bb-sidebar-width));
  max-width: calc(100% - var(--bb-sidebar-width));
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--bb-sidebar-width);
  padding-top: var(--bb-topbar-height);
  background:
    radial-gradient(circle at 12% 0%, rgba(99,116,248,.09), transparent 330px),
    radial-gradient(circle at 95% 22%, rgba(39,166,213,.065), transparent 360px);
}
.bb-bottom-nav { display: none; }

/* Page structure */
.bb-page { width: min(100%, 1240px); max-width: 100%; min-width: 0; margin: 0 auto; padding: 26px 24px 42px; }
.bb-page-medium { max-width: 1040px; }
.bb-page-narrow { max-width: 820px; }
.bb-page-header { display: flex; min-width: 0; margin-bottom: 20px; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bb-page-header > div { min-width: 0; }
.bb-page-title { margin: 0 0 5px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.32; letter-spacing: -.015em; }
.bb-page-subtitle { margin: 0; color: var(--bb-muted); font-size: 13px; line-height: 1.65; }

.bb-card {
  min-width: 0;
  padding: 21px;
  color: var(--bb-text);
  background: linear-gradient(155deg, #fff 0%, #fff 72%, #fbfcff 100%);
  border: 1px solid rgba(211,220,234,.92);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-sm);
}
.bb-card + .bb-card { margin-top: 16px; }
.bb-card-soft { background: linear-gradient(145deg, #f8f9ff, #f5f8ff); border-color: #e2e6f8; }
.bb-card-flush { padding: 0; overflow: hidden; }
.bb-card-title { display: flex; margin: 0 0 17px; align-items: center; gap: 8px; color: var(--bb-ink); font-size: 15px; font-weight: 650; line-height: 1.45; }
.bb-card-title .bb-icon { color: var(--bb-primary); }
.bb-content { overflow-wrap: anywhere; }
.bb-content h1, .bb-content h2, .bb-content h3 { margin: 1.4em 0 .55em; font-weight: 650; }
.bb-content h1:first-child, .bb-content h2:first-child, .bb-content h3:first-child { margin-top: 0; }
.bb-content p:last-child { margin-bottom: 0; }
.bb-content img, .bb-content iframe { max-width: 100%; border-radius: 12px; }
.bb-content pre { max-width: 100%; padding: 14px; overflow: auto; background: #151c2d; border: 0; border-radius: 14px; color: #e9edff; font-size: 12px; }

.bb-grid { display: grid; gap: 16px; }
.bb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-stack { display: grid; gap: 15px; }
.bb-form-actions { display: flex; margin-top: 18px; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Statistics */
.bb-stats { display: grid; margin: 0 0 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: linear-gradient(135deg,#fff,#fbfcff); border: 1px solid #dce4ef; border-radius: var(--bb-radius); box-shadow: 0 8px 24px rgba(43,56,96,.065); overflow: hidden; }
.bb-stat { min-width: 0; padding: 17px 19px; border-right: 1px solid var(--bb-line); }
.bb-stat:nth-child(1) { background: linear-gradient(145deg, rgba(86,101,244,.045), transparent 72%); }
.bb-stat:nth-child(2) { background: linear-gradient(145deg, rgba(39,166,213,.04), transparent 72%); }
.bb-stat:nth-child(3) { background: linear-gradient(145deg, rgba(136,103,242,.04), transparent 72%); }
.bb-stat:last-child { border-right: 0; }
.bb-stat-label, .bb-stat-meta { display: block; color: var(--bb-muted); font-size: 11.5px; }
.bb-stat-label { margin-bottom: 6px; font-weight: 550; }
.bb-stat-value { display: block; max-width: 100%; overflow: hidden; color: var(--bb-ink); font-family: Inter, "Noto Sans Myanmar", sans-serif; font-size: 18px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.bb-stat-meta { margin-top: 5px; color: var(--bb-cyan); font-weight: 550; }

/* Forms */
body.bb-body .form-group { margin-bottom: 17px; }
body.bb-body .control-label { display: flex; min-width: 0; margin-bottom: 8px; align-items: center; justify-content: space-between; gap: 8px; color: var(--bb-ink); font-size: 13px; font-weight: 600; line-height: 1.45; }
body.bb-body .form-control {
  display: block;
  width: 100%;
  height: 52px;
  padding: 10px 14px;
  color: var(--bb-text);
  background: #fff;
  border: 1px solid var(--bb-line-strong);
  border-radius: 13px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.bb-body textarea.form-control { height: auto; min-height: 116px; resize: vertical; }
body.bb-body select.form-control { padding-right: 36px; cursor: pointer; }
body.bb-body .form-control::placeholder { color: #9aa3b4; opacity: 1; }
body.bb-body .form-control:focus { color: var(--bb-ink); background: #fff; border-color: var(--bb-primary); box-shadow: 0 0 0 4px rgba(83,100,245,.105); outline: none; }
body.bb-body .form-control[readonly], body.bb-body .form-control[disabled] { color: #667086; background: #f1f4f9; cursor: not-allowed; }
.bb-input-wrap { position: relative; min-width: 0; }
.bb-input-wrap > .bb-icon { position: absolute; z-index: 2; top: 50%; left: 15px; color: var(--bb-primary); transform: translateY(-50%); pointer-events: none; }
.bb-input-wrap > .bb-icon + .form-control { padding-left: 45px; }
.bb-input-action { position: absolute; z-index: 3; top: 50%; right: 7px; display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; color: var(--bb-muted); background: transparent; border: 0; border-radius: 11px; transform: translateY(-50%); }
.bb-input-action:hover { color: var(--bb-primary); background: var(--bb-primary-soft); }
.bb-input-wrap > .form-control:has(+ .bb-input-action), .bb-input-wrap > .form-control.bb-has-action { padding-right: 48px; }
body.bb-body .input-group { width: 100%; }
body.bb-body .input-group .form-control:first-child { border-radius: 15px 0 0 15px; }
body.bb-body .input-group-btn:last-child > .btn { min-height: 52px; border-radius: 0 15px 15px 0; }
.bb-check { display: flex; align-items: flex-start; gap: 9px; color: var(--bb-text); font-size: 12.5px; line-height: 1.55; cursor: pointer; }
.bb-check input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 17px; accent-color: var(--bb-primary); }
.bb-help { margin: 7px 0 0; color: var(--bb-muted); font-size: 11.5px; line-height: 1.6; }

/* Alerts and badges */
body.bb-body .alert { position: relative; margin-bottom: 16px; padding: 13px 15px; border: 1px solid; border-radius: 14px; font-size: 12.5px; line-height: 1.55; }
body.bb-body .alert .close { position: absolute; top: 5px; right: 8px; color: inherit; opacity: .55; }
body.bb-body .alert-danger { color: #a43d52; background: var(--bb-danger-soft); border-color: #f2cbd4; }
body.bb-body .alert-success { color: #127451; background: var(--bb-success-soft); border-color: #c8ecdf; }
body.bb-body .alert-warning { color: #855d12; background: var(--bb-warning-soft); border-color: #f0dfb7; }
body.bb-body .alert-info { color: #1f6f98; background: var(--bb-info-soft); border-color: #c9e6f3; }
.bb-badge { display: inline-flex; min-height: 25px; padding: 4px 9px; align-items: center; gap: 5px; color: #5f687b; background: #eef1f6; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.bb-badge-primary { color: var(--bb-primary); background: var(--bb-primary-soft); }
.bb-badge-success { color: #128158; background: var(--bb-success-soft); }
.bb-badge-danger { color: #b33f57; background: var(--bb-danger-soft); }
.bb-badge-warning { color: #8c6315; background: var(--bb-warning-soft); }
.bb-badge-info { color: #23799f; background: var(--bb-info-soft); }

/* New order */
.bb-order-layout { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); align-items: start; gap: 18px; }
.bb-order-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 22px;
  background: linear-gradient(#fff,#fff) padding-box, linear-gradient(145deg, rgba(86,101,244,.45), rgba(39,166,213,.16), rgba(136,103,242,.22)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 42px rgba(42,54,96,.09);
}
.bb-order-search { margin-bottom: 20px; }
.bb-order-notes { display: grid; gap: 15px; }
.bb-order-notes .bb-card + .bb-card { margin-top: 0; }
.bb-order-notes ul { display: grid; margin: 0; padding: 0; gap: 12px; list-style: none; }
.bb-order-notes li { display: flex; align-items: flex-start; gap: 9px; color: #5f697c; font-size: 12px; line-height: 1.65; }
.bb-order-notes li .bb-icon { width: 17px; height: 17px; margin-top: 2px; color: var(--bb-success); }
.bb-platforms {
  display: flex !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: 2px 2px 8px;
  flex-flow: row nowrap !important;
  align-items: center;
  gap: 9px;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
}
.bb-platforms::-webkit-scrollbar { display: none; }
.bb-platform-chip {
  display: inline-flex;
  min-width: 54px;
  height: 52px;
  padding: 0 13px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bb-text);
  background: linear-gradient(145deg, #fff, #fafcff);
  border: 1px solid var(--bb-line-strong);
  border-radius: 15px;
  box-shadow: 0 5px 14px rgba(37,49,82,.07);
  font-size: 12.5px;
  font-weight: 550;
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.bb-platform-chip:hover { border-color: #bfc9da; box-shadow: 0 7px 18px rgba(37,49,82,.10); }
.bb-platform-chip.is-active { color: var(--bb-primary); background: linear-gradient(135deg,#f8f9ff,#eef1ff); border-color: #8e9aff; box-shadow: 0 0 0 3px rgba(83,100,245,.07), 0 7px 16px rgba(72,84,194,.10); }
.bb-platform-logo { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; line-height: 1; }
.bb-platform-logo svg, .bb-native-select-icon svg, .bb-inline-option-icon svg { width: 18px; height: 18px; color: #fff; }
.bb-platform-all { color: #fff; background: #2b3650; }
.bb-platform-tiktok { color: #fff; background: linear-gradient(145deg, #1b2334, #080b12); box-shadow: inset 2px 0 rgba(37,244,238,.42), inset -2px 0 rgba(254,44,85,.36); }
.bb-platform-instagram { color: #fff; background: linear-gradient(145deg, #7b4cdd, #df3d82 55%, #f3a643); }
.bb-platform-telegram { color: #fff; background: #2ca9df; }
.bb-platform-facebook { color: #fff; background: #2786df; }
.bb-platform-youtube { color: #fff; background: #f31835; }
.bb-platform-x { color: #fff; background: #151821; }
.bb-service-description { padding: 13px 15px; color: #596477; background: #f7f9fc; border: 1px solid var(--bb-line); border-radius: 13px; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.bb-success-order { display: grid; margin-bottom: 18px; gap: 14px; }
.bb-success-mark { display: inline-grid; width: 45px; height: 45px; place-items: center; color: var(--bb-success); background: var(--bb-success-soft); border-radius: 15px; }

/* Inline category/service list: opens below the field without a radio popup. */
.bb-native-select { position: relative; min-width: 0; }
.bb-native-select-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}
body.bb-body .bb-native-select > select.form-control {
  min-height: 52px;
  padding-right: 38px;
  padding-left: 52px;
  color: var(--bb-ink);
  background-color: #fff;
  -webkit-appearance: menulist;
  appearance: auto;
  text-overflow: ellipsis;
}
body.bb-body .bb-native-select > select.form-control:focus {
  border-color: var(--bb-primary);
  box-shadow: 0 0 0 4px rgba(86,101,244,.10), 0 8px 20px rgba(48,61,111,.06);
}
.bb-inline-ready > select.bb-inline-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.bb-inline-ready > .bb-native-select-icon { top: 10px; transform: none; }
.bb-inline-trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  padding: 10px 39px 10px 52px;
  align-items: center;
  color: var(--bb-ink);
  background: #fff;
  border: 1px solid var(--bb-line-strong);
  border-radius: 13px;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}
.bb-inline-trigger:focus, .bb-inline-trigger[aria-expanded="true"] {
  border-color: var(--bb-primary);
  box-shadow: 0 0 0 4px rgba(86,101,244,.10);
  outline: none;
}
.bb-inline-trigger-label {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  font-size: 14px;
  line-height: 1.48;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-inline-trigger-arrow {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 13px;
  width: 16px;
  height: 16px;
  color: var(--bb-muted);
  pointer-events: none;
  transition: transform .15s ease;
}
.bb-inline-trigger[aria-expanded="true"] + .bb-inline-trigger-arrow { transform: rotate(180deg); }
.bb-inline-menu {
  display: none;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bb-line-strong);
  border-radius: 14px;
  box-shadow: 0 13px 30px rgba(34,47,83,.11);
}
.bb-inline-menu.is-open { display: block; }
.bb-inline-list {
  max-height: 318px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.bb-inline-option {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  color: var(--bb-text);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--bb-line);
  border-radius: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 50px;
}
.bb-inline-option:last-child { border-bottom: 0; }
.bb-inline-option:hover { background: #f8f9ff; }
.bb-inline-option[aria-selected="true"] { color: var(--bb-primary-dark); background: var(--bb-primary-soft); font-weight: 600; }
.bb-inline-option-icon { display: inline-grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; }
.bb-inline-option-label { min-width: 0; overflow-wrap: anywhere; }
.bb-inline-empty { padding: 18px 13px; color: var(--bb-muted); text-align: center; font-size: 12px; }

/* PerfectPanel adds service-specific fields after page load. Keep every
   generated row/input inside the order card, even with very long text. */
.bb-neworder-page,
.bb-neworder-page form,
.bb-neworder-page .form-group,
.bb-neworder-page .bb-native-select,
.bb-neworder-page #fields,
.bb-neworder-page #fields > *,
.bb-neworder-page #service_description,
.bb-neworder-page .bb-service-description {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.bb-neworder-page #fields .row {
  width: 100%;
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.bb-neworder-page #fields [class^="col-"],
.bb-neworder-page #fields [class*=" col-"] {
  min-width: 0;
  max-width: 100%;
}
.bb-neworder-page #fields input,
.bb-neworder-page #fields select,
.bb-neworder-page #fields textarea,
.bb-neworder-page #fields img,
.bb-neworder-page #fields iframe,
.bb-neworder-page #service_description img,
.bb-neworder-page #service_description iframe {
  max-width: 100% !important;
}
.bb-neworder-page #fields,
.bb-neworder-page #service_description,
.bb-neworder-page .bb-service-description {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Toolbars and tables */
.bb-toolbar { display: flex; min-width: 0; margin-bottom: 16px; align-items: center; justify-content: space-between; gap: 12px; }
.bb-toolbar > .bb-input-wrap, .bb-toolbar > form.bb-input-wrap { width: min(100%, 360px); }
.bb-toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bb-tabs { display: flex; min-width: 0; max-width: 100%; padding: 4px; align-items: center; gap: 3px; overflow-x: auto; background: #eef1f7; border-radius: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bb-tabs::-webkit-scrollbar { display: none; }
.bb-tabs ul { display: contents; margin: 0; padding: 0; list-style: none; }
.bb-tabs li { display: contents; }
.bb-tabs a { display: inline-flex; min-height: 36px; padding: 7px 12px; flex: 0 0 auto; align-items: center; justify-content: center; color: #6c7588 !important; border-radius: 11px; font-size: 11.5px; font-weight: 550; white-space: nowrap; }
.bb-tabs a.is-active, .bb-tabs li.active a { color: var(--bb-primary) !important; background: #fff; box-shadow: 0 2px 7px rgba(34,45,78,.06); font-weight: 650; }
.bb-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-sm); -webkit-overflow-scrolling: touch; }
body.bb-body .table { width: 100%; margin: 0; color: var(--bb-text); background: transparent; border-collapse: separate; border-spacing: 0; font-size: 12px; }
body.bb-body .table > thead > tr > th { padding: 12px 13px; color: #687286; background: #f6f8fb; border: 0; border-bottom: 1px solid var(--bb-line); font-size: 10.5px; font-weight: 650; line-height: 1.4; text-transform: none; white-space: nowrap; }
body.bb-body .table > tbody > tr > td { padding: 12px 13px; vertical-align: middle; border: 0; border-bottom: 1px solid #ebeff5; line-height: 1.55; }
body.bb-body .table > tbody > tr:last-child > td { border-bottom: 0; }
body.bb-body .table > tbody > tr:hover > td { background: #fbfcff; }
.bb-table-category td { color: var(--bb-primary-dark); background: #f1f3ff !important; font-weight: 650; }
.bb-nowrap { white-space: nowrap; }
.bb-link-cell, .bb-service-name { min-width: 190px; max-width: 360px; overflow-wrap: anywhere; }
.bb-link-cell a { word-break: break-all; }
.bb-table-wrap details { margin-top: 6px; }
.bb-table-wrap details summary { font-size: 10.5px; }
.pagination { display: flex; margin: 18px 0 0; padding: 0; justify-content: center; gap: 5px; list-style: none; }
body.bb-body .pagination > li > a { display: grid; min-width: 36px; height: 36px; padding: 0; place-items: center; color: var(--bb-text); background: #fff; border: 1px solid var(--bb-line); border-radius: 11px; }
body.bb-body .pagination > .active > a { color: #fff; background: var(--bb-primary); border-color: var(--bb-primary); }

/* Dropdowns */
body.bb-body .dropdown-menu { min-width: 190px; padding: 7px; background: #fff; border: 1px solid var(--bb-line); border-radius: 14px; box-shadow: 0 15px 35px rgba(35,46,79,.14); }
body.bb-body .dropdown-menu > li > a { padding: 9px 11px; color: var(--bb-text); border-radius: 9px; font-size: 12px; white-space: normal; }
body.bb-body .dropdown-menu > li > a:hover, body.bb-body .dropdown-menu > li.active > a { color: var(--bb-primary); background: var(--bb-primary-soft); }

/* Auth and public pages */
.bb-guest-shell { min-height: 100vh; background: radial-gradient(circle at 12% 18%, rgba(98,115,255,.14), transparent 28rem), radial-gradient(circle at 88% 62%, rgba(70,182,226,.10), transparent 28rem), linear-gradient(180deg, #f5f7ff, #fbfcff 52%, #f6f8fc); }
.bb-guest-header { position: relative; z-index: 35; display: flex; width: min(1160px, calc(100% - 32px)); min-height: 72px; margin: 16px auto 0; padding: 11px 14px; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid rgba(215,222,236,.9); border-radius: 20px; box-shadow: var(--bb-shadow); }
.bb-guest-nav { display: flex; margin-left: auto; align-items: center; gap: 3px; }
.bb-guest-nav a { padding: 8px 11px; color: var(--bb-text) !important; border-radius: 10px; font-size: 12.5px; font-weight: 550; }
.bb-guest-nav a:hover, .bb-guest-nav a.is-active { color: var(--bb-primary) !important; background: var(--bb-primary-soft); }
.bb-guest-header-actions { display: flex; align-items: center; gap: 8px; }
.bb-guest-menu { display: none; color: var(--bb-ink); background: #f2f4f8; }
.bb-guest-main { min-height: calc(100vh - 190px); }
.bb-auth-section { display: grid; width: min(1120px, calc(100% - 32px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 52px 0; grid-template-columns: minmax(0, 1fr) minmax(390px, 500px); align-items: center; gap: clamp(34px, 7vw, 90px); }
.bb-auth-copy { max-width: 540px; }
.bb-auth-kicker { display: inline-flex; margin-bottom: 17px; padding: 7px 11px; align-items: center; gap: 7px; color: var(--bb-primary); background: var(--bb-primary-soft); border-radius: 999px; font-family: Inter, "Noto Sans Myanmar", sans-serif; font-size: 10.5px; font-weight: 650; letter-spacing: .035em; }
.bb-auth-copy h1 { margin-bottom: 16px; font-size: clamp(32px, 4.2vw, 54px); font-weight: 680; line-height: 1.23; letter-spacing: -.025em; }
.bb-auth-copy h1 span { color: var(--bb-primary); }
.bb-auth-copy > p { max-width: 520px; margin-bottom: 24px; color: var(--bb-muted); font-size: 14px; line-height: 1.8; }
.bb-auth-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.bb-auth-feature { display: flex; padding: 11px 13px; align-items: center; gap: 8px; color: var(--bb-text); background: rgba(255,255,255,.72); border: 1px solid var(--bb-line); border-radius: 13px; font-size: 11.5px; }
.bb-auth-feature .bb-icon { width: 17px; height: 17px; color: var(--bb-success); }
.bb-auth-card { padding: clamp(22px, 3.5vw, 34px); background: rgba(255,255,255,.95); border: 1px solid rgba(215,222,236,.95); border-radius: 25px; box-shadow: 0 24px 58px rgba(48,61,111,.12); }
.bb-auth-intro { display: flex; margin-bottom: 24px; align-items: center; gap: 13px; }
.bb-auth-intro h2 { margin: 0 0 3px; font-size: 21px; font-weight: 650; }
.bb-auth-intro p { margin: 0; color: var(--bb-muted); font-size: 12px; }
.bb-auth-row { display: flex; margin: -1px 0 19px; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.bb-auth-submit { min-height: 50px !important; }
.bb-auth-switch { display: flex; min-height: 48px; margin-top: 13px; padding: 10px 14px; align-items: center; justify-content: center; gap: 8px; color: var(--bb-primary) !important; background: #f8f9ff; border: 1px solid #dce1fb; border-radius: 15px; font-size: 12.5px; font-weight: 600; }
.bb-security-note { display: flex; margin-top: 16px; padding: 12px; align-items: flex-start; gap: 10px; color: #6f788b; background: #f6f8fd; border: 1px solid var(--bb-line); border-radius: 14px; font-size: 10.8px; line-height: 1.65; }
.bb-security-note .bb-icon { width: 18px; height: 18px; color: var(--bb-primary); }
.bb-auth-content { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--bb-line); font-size: 11.5px; }
.bb-footer { width: min(1120px, calc(100% - 32px)); margin: 20px auto 0; padding: 30px 0 36px; color: var(--bb-muted); text-align: center; border-top: 1px solid var(--bb-line); font-size: 12px; }
.bb-footer-brand { margin-bottom: 13px; }
.bb-footer > div { display: flex; margin-bottom: 13px; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* Utility components */
.bb-empty { padding: 42px 20px; color: var(--bb-muted); text-align: center; }
.bb-empty > .bb-icon { width: 38px; height: 38px; margin-bottom: 12px; color: #9da7bb; }
.bb-empty h3 { margin-bottom: 6px; font-size: 16px; }
.bb-empty p { margin-bottom: 15px; font-size: 12px; }
.bb-profile-head { display: flex; margin-bottom: 18px; align-items: center; gap: 13px; }
.bb-profile-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; }
.bb-profile-head h2 { margin: 0 0 4px; font-size: 18px; }
.bb-profile-head p { margin: 0; color: var(--bb-muted); font-size: 12px; }
.bb-wallet-hero { display: grid; padding: 22px; gap: 4px; color: #fff; background: linear-gradient(140deg, #6070ff, #4655e4); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-primary); }
.bb-wallet-hero > .bb-icon { width: 30px; height: 30px; margin-bottom: 7px; }
.bb-wallet-hero small { color: rgba(255,255,255,.78); font-size: 11px; }
.bb-wallet-hero strong { max-width: 100%; overflow: hidden; font-family: Inter, sans-serif; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.bb-wallet-hero span { color: rgba(255,255,255,.72); font-size: 10.5px; }
.bb-payment-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.75fr); align-items: start; gap: 18px; }
.bb-bonus-list { margin: 0; padding: 0; list-style: none; }
.bb-bonus-list li { display: flex; padding: 10px 0; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--bb-line); font-size: 11.5px; }
.bb-bonus-list li:last-child { border-bottom: 0; }
.bb-key-box { display: flex; min-width: 0; padding: 12px 13px; align-items: center; gap: 9px; background: #f7f9fc; border: 1px solid var(--bb-line); border-radius: 13px; }
.bb-key-box code { min-width: 0; overflow: auto; flex: 1; color: var(--bb-text); background: transparent; font-size: 11.5px; white-space: nowrap; }
.bb-copy-button { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--bb-primary); background: var(--bb-primary-soft); border: 0; border-radius: 11px; }
.bb-ticket-layout { display: grid; grid-template-columns: 330px minmax(0,1fr); align-items: start; gap: 18px; }
.bb-ticket-list { display: grid; gap: 8px; }
.bb-ticket-item { display: block; padding: 12px; color: var(--bb-text) !important; background: #fff; border: 1px solid var(--bb-line); border-radius: 13px; }
.bb-ticket-item:hover { border-color: #cdd4fa; }
.bb-message-list { display: grid; gap: 12px; }
.bb-message { display: flex; }
.bb-message.is-user { justify-content: flex-end; }
.bb-message-bubble { max-width: min(78%, 620px); padding: 12px 14px; background: #f1f4f8; border-radius: 15px 15px 15px 4px; font-size: 12px; }
.bb-message.is-user .bb-message-bubble { color: #fff; background: var(--bb-primary); border-radius: 15px 15px 4px 15px; }
.bb-message-meta { margin-top: 5px; color: var(--bb-muted); font-size: 9.5px; }
.bb-message.is-user .bb-message-meta { color: rgba(255,255,255,.72); }
.bb-toast { position: fixed; z-index: 300; right: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 11px 14px; color: #fff; background: #202a42; border-radius: 12px; box-shadow: var(--bb-shadow); opacity: 0; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; font-size: 12px; }
.bb-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .bb-order-layout { grid-template-columns: minmax(0, 1fr); }
  .bb-order-notes { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bb-order-notes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bb-payment-grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 960px) {
  .bb-sidebar { width: min(84vw, 310px); transform: translateX(-104%); transition: transform .22s ease; }
  .bb-sidebar-close { display: inline-grid; }
  .bb-drawer-open .bb-sidebar { transform: translateX(0); }
  .bb-drawer-open .bb-drawer-backdrop { visibility: visible; opacity: 1; }
  .bb-topbar { left: 0; padding: 0 14px; }
  .bb-menu-button { display: inline-grid; }
  .bb-topbar-brand { display: inline-flex; min-width: 0; align-items: center; }
  .bb-topbar-brand .bb-brand-text { display: none; }
  .bb-main { width: 100%; max-width: 100%; margin-left: 0; padding-bottom: calc(var(--bb-bottom-height) + env(safe-area-inset-bottom)); overflow-x: hidden; }
  .bb-bottom-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(var(--bb-bottom-height) + env(safe-area-inset-bottom));
    padding: 7px 9px max(7px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0,1fr));
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--bb-line);
    box-shadow: 0 -8px 24px rgba(35,47,86,.07);
  }
  .bb-bottom-nav a { position: relative; display: flex; min-width: 0; height: 54px; padding: 5px 2px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #657087 !important; border-radius: 13px; font-size: 9.5px; font-weight: 550; }
  .bb-bottom-nav a .bb-icon { width: 21px; height: 21px; }
  .bb-bottom-nav a.is-active { color: var(--bb-primary) !important; background: var(--bb-primary-soft); }
  .bb-bottom-nav a b { position: absolute; top: 2px; right: calc(50% - 22px); display: grid; min-width: 16px; height: 16px; padding: 0 4px; place-items: center; color: #fff; background: var(--bb-danger); border-radius: 99px; font-family: Inter, sans-serif; font-size: 8px; }
  .bb-auth-section { padding-top: 36px; grid-template-columns: minmax(0,1fr) minmax(370px,480px); gap: 30px; }
}

@media (max-width: 760px) {
  :root { --bb-topbar-height: 64px; --bb-bottom-height: 66px; }
  body.bb-body { font-size: 13.5px; line-height: 1.56; }
  .bb-topbar { padding: 0 10px; gap: 8px; }
  .bb-icon-button { width: 40px; height: 40px; flex-basis: 40px; }
  .bb-topbar-brand .bb-brand-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 13px; font-size: 18px; }
  .bb-topbar-actions { gap: 7px; }
  .bb-balance-button { min-width: 0; max-width: min(48vw, 205px); height: 42px; padding: 4px 10px 4px 5px; border-radius: 15px; }
  .bb-balance-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 11px; }
  .bb-balance-value { font-size: 12.5px; }
  .bb-balance-chevron { display: none; }
  .bb-top-avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 13px; }
  .bb-page { padding: 18px 13px 28px; }
  .bb-page-header { margin-bottom: 16px; align-items: center; }
  .bb-page-header > .btn { flex: 0 0 auto; }
  .bb-page-title { margin-bottom: 4px; font-size: 22px; line-height: 1.35; }
  .bb-page-subtitle { font-size: 11.5px; }
  .bb-card { padding: 17px; border-radius: 18px; }
  .bb-card-title { margin-bottom: 14px; font-size: 14px; }
  .bb-grid-2, .bb-grid-3 { grid-template-columns: minmax(0,1fr); }
  .bb-stats { grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 18px; }
  .bb-stat { padding: 14px; }
  .bb-stat:nth-child(2) { border-right: 0; }
  .bb-stat:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--bb-line); border-right: 0; }
  .bb-stat-value { font-size: 15px; }
  .bb-stat-label, .bb-stat-meta { font-size: 10.5px; }
  .bb-platforms { width: 100%; margin-right: 0; margin-left: 0; padding-right: 1px; padding-left: 1px; }
  .bb-platform-chip { min-width: 52px; height: 49px; padding: 0 11px; border-radius: 15px; }
  .bb-platform-logo { width: 27px; height: 27px; }
  .bb-order-card { padding: 17px; }
  .bb-neworder-page #fields [class^="col-"],
  .bb-neworder-page #fields [class*=" col-"] { width: 100%; float: none; padding-right: 0; padding-left: 0; }
  .bb-order-notes { grid-template-columns: minmax(0,1fr); }
  .bb-order-notes > :last-child:nth-child(odd) { grid-column: auto; }
  .bb-toolbar { align-items: stretch; flex-direction: column; }
  .bb-toolbar > .bb-input-wrap, .bb-toolbar > form.bb-input-wrap { width: 100%; }
  .bb-tabs { width: 100%; }
  .bb-form-actions > .btn { flex: 1 1 auto; }
  .bb-ticket-layout { grid-template-columns: minmax(0,1fr); }

  /* Orders, tickets and history become compact readable cards. */
  .bb-mobile-cards { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .bb-mobile-cards table, .bb-mobile-cards tbody { display: block; width: 100%; }
  .bb-mobile-cards thead { display: none; }
  .bb-mobile-cards table > tbody > tr { display: block; margin-bottom: 12px; padding: 7px 13px; background: #fff; border: 1px solid var(--bb-line); border-radius: 18px; box-shadow: var(--bb-shadow-sm); }
  body.bb-body .bb-mobile-cards .table > tbody > tr:hover > td { background: transparent; }
  body.bb-body .bb-mobile-cards .table > tbody > tr > td { display: grid; min-width: 0; padding: 8px 0; grid-template-columns: minmax(88px, 34%) minmax(0,1fr); align-items: start; gap: 10px; border-bottom: 1px dashed #e6eaf1; color: var(--bb-text); text-align: left; overflow-wrap: anywhere; }
  body.bb-body .bb-mobile-cards .table > tbody > tr > td:last-child { border-bottom: 0; }
  .bb-mobile-cards td::before { content: attr(data-label); color: var(--bb-muted); font-size: 10.5px; font-weight: 600; line-height: 1.55; }
  .bb-mobile-cards .bb-link-cell, .bb-mobile-cards .bb-service-name { min-width: 0; max-width: none; }
  .bb-mobile-cards .bb-nowrap { white-space: normal; }
  .bb-mobile-cards .bb-toolbar-group { justify-content: flex-start; }

  .bb-guest-header { width: calc(100% - 22px); min-height: 66px; margin-top: 11px; padding: 9px 10px; border-radius: 18px; }
  .bb-guest-header .bb-brand-text { font-size: 16px; }
  .bb-guest-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; padding: 9px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--bb-line); border-radius: 16px; box-shadow: var(--bb-shadow); }
  .bb-guest-nav.is-open { display: flex; }
  .bb-guest-nav a { padding: 10px 12px; }
  .bb-guest-menu { display: inline-grid; }
  .bb-guest-header-actions > .bb-btn { display: none; }
  .bb-auth-section { display: block; width: calc(100% - 22px); min-height: 0; padding: 28px 0 16px; }
  .bb-auth-copy { display: none; }
  .bb-auth-card { width: min(100%, 520px); margin: 0 auto; padding: 20px 16px; border-radius: 21px; }
  .bb-auth-intro { margin-bottom: 20px; }
  .bb-auth-intro h2 { font-size: 19px; }
  .bb-footer { width: calc(100% - 26px); padding: 25px 0 30px; }
  .bb-payment-grid { grid-template-columns: minmax(0,1fr); }
}

/* `clip` prevents Android browsers from keeping the whole document at a
   previous horizontal position. Hidden remains above as an older fallback. */
@supports (overflow: clip) {
  html,
  body.bb-body,
  .bb-app-shell,
  .bb-main { overflow-x: clip !important; }
}

@media (max-width: 390px) {
  .bb-topbar { gap: 6px; }
  .bb-balance-button { max-width: 45vw; }
  .bb-balance-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .bb-page { padding-right: 11px; padding-left: 11px; }
  .bb-page-title { font-size: 20px; }
  .bb-page-header .btn { min-height: 32px; padding: 6px 9px; font-size: 10.5px; }
  .bb-card { padding: 15px; }
  body.bb-body .form-control { height: 50px; font-size: 13.5px; }
  body.bb-body .bb-native-select > select.form-control { padding-left: 49px; font-size: 13px; }
  .bb-native-select-icon { left: 9px; width: 30px; height: 30px; border-radius: 9px; }
  .bb-inline-trigger { min-height: 50px; padding-left: 49px; }
  .bb-inline-trigger-label { font-size: 13px; }
  .bb-inline-trigger-arrow { top: 17px; }
  .bb-inline-list { max-height: 290px; }
  .bb-inline-option { min-height: 48px; padding: 9px 10px; font-size: 12.5px; contain-intrinsic-size: 48px; }
  .bb-platforms { width: 100%; margin-right: 0; margin-left: 0; padding-right: 1px; padding-left: 1px; }
  .bb-platform-chip { min-width: 49px; height: 47px; padding: 0 10px; }
  .bb-platform-logo { width: 25px; height: 25px; font-size: 14px; }
  .bb-bottom-nav a { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .bb-sidebar, .bb-topbar, .bb-bottom-nav, .bb-toolbar, .bb-page-header .btn { display: none !important; }
  .bb-main { margin: 0; padding: 0; }
  .bb-page { max-width: none; padding: 0; }
  .bb-card, .bb-table-wrap { box-shadow: none; }
}

/* =========================================================
   BurmaBoost — restore the old Account + Balance card UI
   Data values remain unchanged.
   ========================================================= */

.bb-neworder-page .bb-order-account {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: 14px 15px;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .82fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #fbfcff 100%);
  border: 1px solid var(--bb-line);
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(43, 56, 96, .065);
}

.bb-neworder-page .bb-order-user,
.bb-neworder-page .bb-order-wallet {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.bb-neworder-page .bb-order-user-avatar {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #6574ff, #4655e5);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(73, 89, 225, .22);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.bb-neworder-page .bb-order-user-copy,
.bb-neworder-page .bb-order-wallet > span:last-child {
  display: block;
  min-width: 0;
  flex: 1;
}

.bb-neworder-page .bb-order-user small,
.bb-neworder-page .bb-order-wallet small {
  display: block;
  margin: 0 0 2px;
  overflow: hidden;
  color: var(--bb-muted);
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-neworder-page .bb-order-user strong,
.bb-neworder-page .bb-order-wallet strong {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--bb-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-neworder-page .bb-order-wallet {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--bb-line);
  border-radius: 15px;
  box-shadow: var(--bb-shadow-sm);
}

.bb-neworder-page .bb-order-wallet > span:first-child:not(:last-child),
.bb-neworder-page .bb-order-wallet > svg:first-child {
  display: inline-grid;
  width: 35px;
  height: 35px;
  padding: 7px;
  flex: 0 0 35px;
  place-items: center;
  color: var(--bb-primary) !important;
  background: var(--bb-primary-soft);
  border-radius: 11px;
}

.bb-neworder-page .bb-order-wallet strong {
  direction: ltr;
  font-family: Inter, "Noto Sans Myanmar", sans-serif;
  text-align: left;
}

@media (max-width: 760px) {
  .bb-neworder-page .bb-order-account {
    padding: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(145px, .82fr);
    gap: 8px;
    border-radius: 18px;
  }

  .bb-neworder-page .bb-order-user { gap: 9px; }

  .bb-neworder-page .bb-order-user-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .bb-neworder-page .bb-order-wallet {
    padding: 8px 9px;
    gap: 7px;
  }

  .bb-neworder-page .bb-order-wallet > span:first-child:not(:last-child),
  .bb-neworder-page .bb-order-wallet > svg:first-child {
    width: 31px;
    height: 31px;
    padding: 6px;
    flex-basis: 31px;
  }

  .bb-neworder-page .bb-order-user small,
  .bb-neworder-page .bb-order-wallet small { font-size: 9.5px; }

  .bb-neworder-page .bb-order-user strong,
  .bb-neworder-page .bb-order-wallet strong { font-size: 12.5px; }
}

