/* ==========================================================================
   Blue Oasis LMS — design system
   Shell (sidebar + topbar), components, motion, and upgrades that restyle the
   Tailwind markup already in every page. Scoped to body.bo-app.
   ========================================================================== */

:root {
  --bo-navy-900: #06122A;
  --bo-navy-800: #0A1F44;
  --bo-navy-700: #0E2B5C;
  --bo-navy-600: #143873;
  --bo-blue-600: #1F63EB;
  --bo-blue-500: #3B7BF6;
  --bo-blue-50:  #EFF5FF;
  --bo-ink:      #0F1B35;
  --bo-ink-soft: #475467;
  --bo-ink-mute: #8A94A6;
  --bo-line:     #E7EDF6;
  --bo-page:     #F5F8FC;
  --bo-card:     #FFFFFF;
  --bo-radius:   16px;
  --bo-sidebar-w: 15.5rem;
  --bo-topbar-h: 64px;
  --bo-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px -8px rgba(16,24,40,.08);
  --bo-shadow-lift: 0 14px 34px -14px rgba(16,40,90,.25);
  --bo-grad: linear-gradient(135deg, #3B7BF6 0%, #1F63EB 55%, #1A4FD6 100%);
  --bo-ease: cubic-bezier(.2,.8,.2,1);
}

/* Slightly more compact everywhere: every rem-based size scales with this. */
html:has(body.bo-app) { font-size: 15px; }
body.bo-app {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  background: var(--bo-page) !important;
  color: var(--bo-ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Zero-specificity defaults: any colour/size class a page sets still wins. */
:where(.bo-app) :where(h1, h2, h3, h4, h5, h6) { font-family: 'Poppins', sans-serif; color: var(--bo-ink); letter-spacing: -0.01em; }
/* ...but inside a white-text area (dark banners) headings keep the inherited colour. */
:where(.bo-app .text-white, .bo-app .bo-hero-card, .bo-app .text-gray-50, .bo-app .text-gray-100) :where(h1, h2, h3, h4, h5, h6) { color: inherit; }
.bo-app ::selection { background: rgba(59,123,246,.18); }
.bo-app *::-webkit-scrollbar { width: 8px; height: 8px; }
.bo-app *::-webkit-scrollbar-thumb { background: #CBD5E4; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.bo-app *::-webkit-scrollbar-thumb:hover { background-color: #9AAAC4; }
.bo-app *::-webkit-scrollbar-track { background: transparent; }
.bo-app [class^="ph"], .bo-app [class*=" ph-"] { line-height: 1; vertical-align: -0.125em; }

/* ------------------------------------------------------------------ shell */

.bo-sidebar {
  position: relative;
  width: var(--bo-sidebar-w);
  flex: 0 0 var(--bo-sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bo-navy-800) 0%, #0B2350 55%, var(--bo-navy-900) 100%);
  color: #C9D6EE;
  overflow: hidden;
  z-index: 40;
}
.bo-sidebar::before { /* soft light in the corner */
  content: ""; position: absolute; inset: -30% -40% auto auto; width: 70%; height: 45%;
  background: radial-gradient(closest-side, rgba(59,123,246,.28), transparent); pointer-events: none;
}
.bo-sidebar-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; pointer-events: none; opacity: .9; }
.bo-brand { display: flex; align-items: center; gap: .65rem; padding: 1.35rem 1.35rem 1rem; text-decoration: none; position: relative; z-index: 1; }
.bo-brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.bo-brand span { font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; color: #fff; }
.bo-brand span b { color: #8FB6FF; font-weight: 600; }
.bo-nav { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: .35rem .85rem 1rem; scrollbar-width: none; }
.bo-nav::-webkit-scrollbar { display: none; }
.bo-nav-label { margin: 1.1rem .7rem .45rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7F93BA; }
.bo-nav a.bo-nav-item {
  display: flex; align-items: center; gap: .8rem; padding: .66rem .85rem; margin: .12rem 0;
  border-radius: 12px; color: #C9D6EE; font-size: .92rem; font-weight: 500; text-decoration: none;
  transition: background .2s var(--bo-ease), color .2s, transform .2s var(--bo-ease);
}
.bo-nav a.bo-nav-item i { font-size: 1.28rem; width: 1.4rem; text-align: center; opacity: .95; }
.bo-nav a.bo-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.bo-nav a.bo-nav-item.is-active {
  background: var(--bo-grad); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(59,123,246,.9), inset 0 1px 0 rgba(255,255,255,.18);
}
.bo-nav .bo-count { margin-left: auto; min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem; border-radius: 99px; background: #F04438; color: #fff; font-size: .7rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.bo-nav .bo-count.amber { background: #F79009; color: #1A1204; }
.bo-nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: .9rem .6rem; }
.bo-side-foot { position: relative; z-index: 1; padding: .9rem; }
.bo-premium {
  position: relative; overflow: hidden; border-radius: 16px; padding: 1rem 1rem 1.05rem;
  background: linear-gradient(140deg, rgba(79,120,255,.55), rgba(111,76,255,.55));
  border: 1px solid rgba(255,255,255,.14); color: #E6EEFF; backdrop-filter: blur(6px);
}
.bo-premium::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); }
.bo-premium h4 { color: #fff; font-size: .9rem; font-weight: 600; display: flex; gap: .45rem; align-items: center; margin: 0 0 .35rem; }
.bo-premium p { font-size: .76rem; line-height: 1.45; color: #D5E1FF; margin: 0 0 .75rem; }
.bo-premium a { display: inline-flex; align-items: center; gap: .35rem; background: #fff; color: var(--bo-navy-700); font-weight: 600; font-size: .78rem; padding: .45rem .85rem; border-radius: 10px; text-decoration: none; transition: transform .2s var(--bo-ease), box-shadow .2s; }
.bo-premium a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); }
.bo-logout {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
  padding: .7rem 1rem; border-radius: 12px; font-weight: 500; font-size: .9rem; text-decoration: none;
  color: #E5ECFA; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, color .2s, transform .2s var(--bo-ease);
}
.bo-logout:hover { background: #E5484D; border-color: #E5484D; color: #fff; }
.bo-logout.is-danger { background: linear-gradient(135deg,#F2555A,#E5383E); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(229,56,62,.9); }

/* Topbar — fixed over the main column. */
.bo-topbar {
  position: fixed; top: 0; right: 0; left: var(--bo-sidebar-w); height: var(--bo-topbar-h); z-index: 30;
  display: flex; align-items: center; gap: .8rem; padding: 0 1.5rem;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bo-line);
}
body:not(:has(#sidebar)) .bo-topbar { left: 0; }
.bo-burger { display: none; }
.bo-search { position: relative; flex: 1; max-width: 560px; }
.bo-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #7C8AA5; font-size: 1.1rem; pointer-events: none; }
.bo-search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid transparent; background: #F1F4F9;
  padding: 0 3.2rem 0 2.6rem; font-size: .88rem; color: var(--bo-ink); outline: none; transition: all .2s;
}
.bo-search input::placeholder { color: #8A94A6; }
.bo-search input:focus { background: #fff; border-color: #BFD6FE; box-shadow: 0 0 0 4px rgba(59,123,246,.12); }
.bo-search kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font: 600 .7rem/1 'Poppins', sans-serif; color: #7C8AA5; background: #fff; border: 1px solid #E1E7F0; padding: .3rem .45rem; border-radius: 7px; }
.bo-top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.bo-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: #33415C; font-size: 1.3rem; background: transparent; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .15s; text-decoration: none;
}
.bo-icon-btn:hover { background: #EEF3FB; color: var(--bo-blue-600); }
.bo-icon-btn:active { transform: scale(.94); }
.bo-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 2px #fff; }
.bo-badge-num { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #F04438; color: #fff; font-size: .62rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.bo-user { position: relative; }
.bo-user-btn { display: flex; align-items: center; gap: .6rem; padding: .3rem .55rem .3rem .3rem; border-radius: 14px; border: 0; background: transparent; cursor: pointer; transition: background .2s; }
.bo-user-btn:hover, .bo-user.is-open .bo-user-btn { background: #EEF3FB; }
.bo-avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; color: #fff; background: var(--bo-grad); overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #DCE6F7; }
.bo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bo-user-name { text-align: left; line-height: 1.15; }
.bo-user-name b { display: block; font-weight: 600; font-size: .86rem; color: var(--bo-ink); white-space: nowrap; }
.bo-user-name small { font-size: .7rem; color: #12B76A; display: inline-flex; align-items: center; gap: .3rem; }
.bo-user-name small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #12B76A; }
.bo-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 236px; padding: .45rem; border-radius: 14px; background: #fff;
  border: 1px solid var(--bo-line); box-shadow: 0 24px 48px -16px rgba(16,24,40,.25);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .18s, transform .18s var(--bo-ease); z-index: 60;
}
.bo-user.is-open .bo-menu, .bo-pop.is-open .bo-menu { opacity: 1; transform: none; pointer-events: auto; }
.bo-menu-head { padding: .6rem .7rem .7rem; border-bottom: 1px solid #EEF2F8; margin-bottom: .35rem; }
.bo-menu-head b { display: block; color: var(--bo-ink); font-size: .88rem; font-weight: 600; }
.bo-menu-head small { color: var(--bo-ink-mute); font-size: .74rem; }
.bo-menu a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; color: #344054; font-size: .86rem; text-decoration: none; transition: background .15s, color .15s; }
.bo-menu a i { font-size: 1.15rem; color: #6B7A99; }
.bo-menu a:hover { background: #F2F6FD; color: var(--bo-blue-600); }
.bo-menu a:hover i { color: var(--bo-blue-600); }
.bo-menu a.is-danger:hover { background: #FEF3F2; color: #D92D20; }
.bo-menu a.is-danger:hover i { color: #D92D20; }
.bo-menu hr { border: 0; border-top: 1px solid #EEF2F8; margin: .35rem 0; }
.bo-lang-slot:empty { display: none; }
.bo-lang-slot .bo-lang-switcher { position: static !important; }

/* Main column: push content under the fixed topbar. */
.bo-app #sidebar + div { padding-top: var(--bo-topbar-h); background: var(--bo-page) !important; scroll-behavior: smooth; }
.bo-app .bo-page-wrap { padding-top: var(--bo-topbar-h); }

@media (max-width: 767px) {
  .bo-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .28s var(--bo-ease); box-shadow: 20px 0 40px -20px rgba(0,0,0,.5); z-index: 70; }
  .bo-sidebar.is-open { transform: none; }
  .bo-scrim { position: fixed; inset: 0; background: rgba(6,18,42,.45); backdrop-filter: blur(2px); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .bo-scrim.is-open { opacity: 1; pointer-events: auto; }
  .bo-topbar { left: 0; padding: 0 .75rem; gap: .4rem; }
  .bo-burger { display: inline-flex; }
  .bo-search kbd, .bo-user-name, .bo-user-btn > i { display: none; }
  .bo-search input { height: 38px; font-size: .85rem; }
}

/* ------------------------------------------------------ page-level upgrades
   Existing pages are plain Tailwind; these rules give them the new look. */

.bo-main { min-width: 0; }
.bo-main > .py-6, .bo-main > .p-6, .bo-main > div > .py-6 { padding-top: 1.6rem; }

:where(.bo-app) h1:not([class]) { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.bo-main h1.text-3xl, .bo-main h1.text-4xl, .bo-main h1.text-5xl { font-size: 1.75rem; }
.bo-main .text-gray-900, .bo-main .text-gray-800 { color: var(--bo-ink); }
/* Dark UI slabs (lesson player bar, old admin headers) use the brand navy. */
.bo-app [class*="bg-gradient-to-"]:is(.from-gray-800, .from-gray-900, .from-slate-800, .from-slate-900, .from-black) {
  background-image: radial-gradient(120% 160% at 100% 0%, #1F4FB8 0%, #123A7A 38%, #0A1F44 75%, #06122A 100%);
}
.bo-app .bg-gray-800, .bo-app .bg-gray-900, .bo-app .bg-slate-800, .bo-app .bg-slate-900 { background-color: #0E2B5C; background-image: linear-gradient(135deg, #0A1F44 0%, #143873 100%); }
.bo-main .text-gray-600, .bo-main .text-gray-700 { color: var(--bo-ink-soft); }
.bo-main .text-gray-500, .bo-main .text-gray-400 { color: var(--bo-ink-mute); }

/* Cards */
.bo-main .bg-white[class*="shadow"], .bo-main .bg-white[class*="rounded-lg"], .bo-main .bg-white[class*="rounded-xl"], .bo-main .bg-white[class*="rounded-2xl"], .bo-card {
  background: var(--bo-card);
  border: 1px solid var(--bo-line);
  box-shadow: var(--bo-shadow);
  border-radius: var(--bo-radius);
}
.bo-main .bg-white.rounded-lg, .bo-main .bg-white.rounded-md { border-radius: 14px; }
.bo-main a.bg-white[class*="shadow"], .bo-main .bg-white.hover\:shadow-lg, .bo-main .bg-white.hover\:shadow-md, .bo-lift {
  transition: transform .25s var(--bo-ease), box-shadow .25s var(--bo-ease), border-color .25s;
}
.bo-main a.bg-white[class*="shadow"]:hover, .bo-main .bg-white.hover\:shadow-lg:hover, .bo-main .bg-white.hover\:shadow-md:hover, .bo-lift:hover {
  transform: translateY(-3px); box-shadow: var(--bo-shadow-lift); border-color: #D4E0F4;
}
.bo-main .bg-gray-50 { background-color: #F7F9FD; }
.bo-main .bg-gray-100 { background-color: #F1F4F9; }
.bo-main .border-gray-200, .bo-main .border-gray-100 { border-color: var(--bo-line); }
.bo-main .divide-gray-200 > :not([hidden]) ~ :not([hidden]), .bo-main .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #EEF2F8; }

/* Tables */
.bo-main table { border-collapse: separate; border-spacing: 0; width: 100%; }
.bo-main thead th, .bo-main thead td {
  background: #F7F9FD !important; color: #667085 !important; font-size: .7rem !important; font-weight: 600 !important;
  letter-spacing: .08em; text-transform: uppercase; padding: .75rem 1rem !important; border-bottom: 1px solid var(--bo-line) !important; white-space: nowrap;
}
.bo-main tbody td { padding-top: .8rem !important; padding-bottom: .8rem !important; font-size: .87rem; color: #344054; border-bottom: 1px solid #F0F3F9; }
.bo-main tbody tr { transition: background .15s; }
.bo-main tbody tr:hover { background: #F8FAFF; }
.bo-main tbody tr:last-child td { border-bottom: 0; }
.bo-main .overflow-x-auto:has(> table), .bo-main .overflow-hidden:has(> table) { border-radius: 14px; }

/* Form controls */
.bo-app input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]):not(.bo-raw),
.bo-app select:not(.bo-raw), .bo-app textarea:not(.bo-raw) {
  border: 1px solid #DCE3EE; border-radius: 11px; background-color: #fff; color: var(--bo-ink);
  font-size: .9rem; transition: border-color .18s, box-shadow .18s, background .18s; box-shadow: 0 1px 2px rgba(16,24,40,.03);
}
.bo-app input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]):not(.bo-raw):not([class*="py-"]):not([class*="p-"]),
.bo-app select:not(.bo-raw):not([class*="py-"]):not([class*="p-"]) { padding: .6rem .85rem; }
.bo-app textarea:not(.bo-raw):not([class*="p-"]):not([class*="py-"]) { padding: .7rem .85rem; }
.bo-app input:focus:not(.bo-raw), .bo-app select:focus:not(.bo-raw), .bo-app textarea:focus:not(.bo-raw) {
  outline: none !important; border-color: #6D9CF8 !important; box-shadow: 0 0 0 4px rgba(59,123,246,.14) !important;
}
.bo-app input::placeholder, .bo-app textarea::placeholder { color: #98A2B3; }
.bo-app label { color: #344054; }
.bo-app input[type=checkbox], .bo-app input[type=radio] { accent-color: var(--bo-blue-600); width: 1.05rem; height: 1.05rem; }
.bo-app input[type=file] { font-size: .85rem; color: var(--bo-ink-soft); }
.bo-app input[type=file]::file-selector-button { margin-right: .75rem; border: 1px solid #D4DEEE; background: #F3F7FE; color: var(--bo-blue-600); font: 600 .8rem 'Poppins', sans-serif; padding: .5rem .9rem; border-radius: 10px; cursor: pointer; transition: background .2s; }
.bo-app input[type=file]::file-selector-button:hover { background: #E6EFFD; }
.bo-app select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2367748E' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.2rem !important; }

/* Buttons */
.bo-app a, .bo-app button { -webkit-tap-highlight-color: transparent; }
.bo-app button, .bo-app [type=submit], .bo-app a[class*="bg-"] { transition: transform .18s var(--bo-ease), box-shadow .2s, background .2s, filter .2s, color .2s, border-color .2s; }
.bo-app :is(a, button, input[type=submit]):is(.bg-primary-600, .bg-primary-500, .bg-blue-600, .bg-blue-500, .bg-indigo-600, .bg-sky-600) {
  background-image: var(--bo-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(31,99,235,.85);
}
.bo-app :is(a, button, input[type=submit]):is(.bg-primary-600, .bg-primary-500, .bg-blue-600, .bg-blue-500, .bg-indigo-600, .bg-sky-600):hover {
  filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(31,99,235,.9);
}
.bo-app :is(a, button):is(.bg-red-600, .bg-red-500) { background-image: linear-gradient(135deg,#F2555A,#E5383E); box-shadow: 0 8px 18px -10px rgba(229,56,62,.8); }
.bo-app :is(a, button):is(.bg-green-600, .bg-green-500, .bg-emerald-600) { background-image: linear-gradient(135deg,#22C55E,#16A34A); box-shadow: 0 8px 18px -10px rgba(22,163,74,.8); }
.bo-main :is(a, button):active { transform: translateY(0) scale(.98); }
.bo-main :is(a, button)[class*="rounded-md"], .bo-main :is(a, button)[class*="rounded-lg"] { border-radius: 11px; }

/* Pagination / pills */
.bo-main nav[aria-label*="agination"] a, .bo-main nav[aria-label*="agination"] span { border-radius: 10px; }

/* Flash messages (admin partial) */
.bo-main [role="alert"] { border-radius: 14px; }

/* ------------------------------------------------------------ components */

.bo-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; padding: 0 1.05rem; border-radius: 11px; font: 600 .86rem 'Poppins', sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .18s var(--bo-ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.bo-btn i { font-size: 1.1rem; }
.bo-btn-primary { background: var(--bo-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(31,99,235,.9); }
.bo-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -12px rgba(31,99,235,.95); color: #fff; }
.bo-btn-soft { background: #EEF4FF; color: var(--bo-blue-600); }
.bo-btn-soft:hover { background: #E1ECFE; }
.bo-btn-ghost { background: #fff; color: #344054; border-color: #DCE3EE; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.bo-btn-ghost:hover { border-color: #BFD0EA; color: var(--bo-blue-600); background: #FAFCFF; }
.bo-btn-danger { background: linear-gradient(135deg,#F2555A,#E5383E); color: #fff; }
.bo-btn-sm { height: 34px; padding: 0 .8rem; font-size: .8rem; border-radius: 10px; }
.bo-btn-block { width: 100%; }
.bo-btn:active { transform: scale(.98); }

.bo-page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.4rem; }
.bo-page-head h1 { margin: 0; }
.bo-page-head p { margin: .3rem 0 0; color: var(--bo-ink-soft); font-size: .92rem; }
.bo-crumb { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--bo-ink-soft); text-decoration: none; margin-bottom: .55rem; transition: color .2s, gap .2s; }
.bo-crumb:hover { color: var(--bo-blue-600); gap: .5rem; }

.bo-section { background: #fff; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); box-shadow: var(--bo-shadow); }
.bo-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; border-bottom: 1px solid #EEF2F8; }
.bo-section-head h2, .bo-section-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.bo-section-head h2 i, .bo-section-head h3 i { color: var(--bo-blue-600); font-size: 1.3rem; }
.bo-section-body { padding: 1.2rem 1.3rem; }
.bo-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--bo-blue-600); font-weight: 500; font-size: .84rem; text-decoration: none; transition: gap .2s; }
.bo-link:hover { gap: .55rem; }

.bo-stat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); box-shadow: var(--bo-shadow); text-decoration: none; transition: transform .25s var(--bo-ease), box-shadow .25s; }
a.bo-stat:hover { transform: translateY(-3px); box-shadow: var(--bo-shadow-lift); }
.bo-stat .bo-stat-label { font-size: .82rem; color: var(--bo-ink-soft); font-weight: 500; }
.bo-stat .bo-stat-value { font-size: 1.45rem; font-weight: 700; color: var(--bo-ink); line-height: 1.2; }
.bo-stat .bo-stat-sub { font-size: .74rem; color: #12B76A; font-weight: 500; display: inline-flex; gap: .2rem; align-items: center; }
.bo-stat .bo-stat-arrow { margin-left: auto; color: var(--bo-blue-600); font-size: 1.1rem; transition: transform .2s; }
a.bo-stat:hover .bo-stat-arrow { transform: translateX(3px); }

.bo-tile { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; }
.bo-tile.sm { width: 40px; height: 40px; font-size: 1.2rem; }
.bo-tile.sq { border-radius: 14px; }
.bo-tile.blue   { background: #E8F0FF; color: #1F63EB; }
.bo-tile.green  { background: #E3F8EC; color: #12A150; }
.bo-tile.purple { background: #F0EAFF; color: #7C3AED; }
.bo-tile.amber  { background: #FFF4DE; color: #D98A00; }
.bo-tile.rose   { background: #FFE9EC; color: #E5383E; }
.bo-tile.teal   { background: #E0F7F5; color: #0E9384; }
.bo-tile.navy   { background: #E6ECF7; color: #0E2B5C; }

.bo-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 500; background: #EEF4FF; color: #1F5ED8; white-space: nowrap; }
.bo-chip.green { background: #E3F8EC; color: #0E8A45; }
.bo-chip.purple { background: #F0EAFF; color: #6D28D9; }
.bo-chip.amber { background: #FFF4DE; color: #B06B00; }
.bo-chip.gray { background: #F1F4F9; color: #475467; }
.bo-chip.rose { background: #FFE9EC; color: #C4262C; }
.bo-chip.line { background: #fff; border: 1px solid #DCE6F5; color: #3C5A99; }

.bo-tabs { display: flex; gap: .45rem; flex-wrap: wrap; }
.bo-tab { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 1rem; border-radius: 99px; border: 1px solid #DCE3EE; background: #fff; color: #475467; font-size: .84rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: all .2s; }
.bo-tab:hover { border-color: #AFC5EA; color: var(--bo-blue-600); }
.bo-tab.is-active { background: var(--bo-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 16px -10px rgba(31,99,235,.9); }
.bo-utabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--bo-line); }
.bo-utabs a, .bo-utabs button { position: relative; padding: .75rem 0; background: none; border: 0; color: #667085; font-weight: 500; font-size: .9rem; text-decoration: none; cursor: pointer; }
.bo-utabs .is-active { color: var(--bo-blue-600); }
.bo-utabs .is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--bo-grad); }

.bo-empty { text-align: center; padding: 2.4rem 1.2rem; }
.bo-empty .bo-empty-art { width: 150px; height: 110px; margin: 0 auto 1rem; }
.bo-empty h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; }
.bo-empty p { color: var(--bo-ink-mute); font-size: .88rem; margin: 0 0 1.1rem; }

.bo-plan-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); overflow: hidden; box-shadow: var(--bo-shadow); transition: transform .28s var(--bo-ease), box-shadow .28s var(--bo-ease); }
.bo-plan-card:hover { transform: translateY(-4px); box-shadow: var(--bo-shadow-lift); }
.bo-plan-cover { position: relative; aspect-ratio: 16/8.4; overflow: hidden; background: linear-gradient(135deg,#0A1F44,#1C3B88); }
.bo-plan-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bo-ease); }
.bo-plan-card:hover .bo-plan-cover img { transform: scale(1.05); }
.bo-plan-cover .bo-price { position: absolute; top: .7rem; right: .7rem; background: #fff; color: var(--bo-ink); font-weight: 700; font-size: .78rem; padding: .3rem .6rem; border-radius: 99px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.bo-plan-cover .bo-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.4rem; color: #fff; }
.bo-plan-cover .bo-cover-fallback b { font-size: 1.15rem; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.bo-plan-cover .bo-cover-fallback small { margin-top: .35rem; font-size: .72rem; opacity: .8; }
.bo-plan-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.bo-plan-body h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.bo-plan-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .76rem; color: var(--bo-ink-mute); }
.bo-plan-meta .bo-coach { display: inline-flex; align-items: center; gap: .45rem; color: var(--bo-ink-soft); }
.bo-mini-av { width: 24px; height: 24px; border-radius: 50%; background: #E8F0FF; color: #1F5ED8; font-size: .62rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.bo-mini-av img { width: 100%; height: 100%; object-fit: cover; }
.bo-plan-body p { font-size: .83rem; color: var(--bo-ink-soft); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bo-plan-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .4rem; height: 38px; border-radius: 10px; background: #F1F6FF; color: var(--bo-blue-600); font-weight: 600; font-size: .82rem; text-decoration: none; transition: background .2s, gap .2s; }
.bo-plan-cta:hover { background: #E3EDFF; gap: .65rem; }
.bo-progress { height: 7px; border-radius: 99px; background: #EAF0F8; overflow: hidden; }
.bo-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--bo-grad); transition: width 1s var(--bo-ease); }

.bo-hero-card { position: relative; overflow: hidden; border-radius: 20px; padding: 1.4rem; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #2E6BF2 0%, #1A4FD6 40%, #0E2B5C 100%); box-shadow: 0 20px 40px -20px rgba(14,43,92,.8); }
.bo-hero-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.07); }

.bo-list-item { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.3rem; text-decoration: none; transition: background .15s; border-top: 1px solid #F0F3F9; }
.bo-list-item:first-child { border-top: 0; }
.bo-list-item:hover { background: #F8FAFF; }
.bo-list-item .bo-li-title { font-size: .87rem; font-weight: 600; color: var(--bo-ink); }
.bo-list-item .bo-li-sub { font-size: .76rem; color: var(--bo-ink-mute); }
.bo-list-item .bo-li-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--bo-ink-mute); white-space: nowrap; }

.bo-field label { display: block; font-size: .83rem; font-weight: 500; color: #344054; margin-bottom: .4rem; }
.bo-field label .req { color: #F04438; }
.bo-input-icon { position: relative; }
.bo-input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #7C8AA5; font-size: 1.1rem; pointer-events: none; }
.bo-input-icon > input { padding-left: 2.5rem !important; }
.bo-input-icon > .bo-eye { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #7C8AA5; font-size: 1.15rem; cursor: pointer; padding: .3rem; border-radius: 8px; }
.bo-input-icon > .bo-eye:hover { color: var(--bo-blue-600); background: #F1F5FD; }
.bo-hint { font-size: .74rem; color: var(--bo-ink-mute); margin-top: .35rem; }

/* ----------------------------------------------------------------- motion */

@keyframes boRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes boFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes boSpin { to { transform: rotate(360deg); } }
@keyframes boShimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes boPop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.bo-rise { animation: boRise .55s var(--bo-ease) both; animation-delay: var(--d, 0ms); }
.bo-fade { animation: boFade .45s ease both; }
.bo-pop { animation: boPop .35s var(--bo-ease) both; }

.bo-skel { background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FD 37%, #EEF2F8 63%); background-size: 800px 100%; animation: boShimmer 1.3s linear infinite; border-radius: 10px; }
.bo-main img:not([src]), .bo-main img.is-loading { background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FD 37%, #EEF2F8 63%); background-size: 800px 100%; animation: boShimmer 1.3s linear infinite; }

/* Top progress bar during navigation / form submits */
#bo-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: linear-gradient(90deg, #60A5FA, #1F63EB, #7C3AED); box-shadow: 0 0 12px rgba(59,123,246,.7); transition: width .4s var(--bo-ease), opacity .3s; opacity: 0; }
#bo-progress.is-on { opacity: 1; }

/* Button busy state (set by bo-ui.js on submit) */
.bo-busy { position: relative; pointer-events: none; color: transparent !important; }
.bo-busy > * { visibility: hidden; }
.bo-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.05rem; height: 1.05rem; margin: -.525rem 0 0 -.525rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: boSpin .7s linear infinite; }
.bo-btn-ghost.bo-busy::after, .bo-btn-soft.bo-busy::after { border-color: rgba(31,99,235,.25); border-top-color: #1F63EB; }

/* Page loader veil (first paint only) */
.bo-veil { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; background: var(--bo-page); transition: opacity .35s ease, visibility .35s; }
.bo-veil.is-gone { opacity: 0; visibility: hidden; }
.bo-veil .bo-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #DCE6F7; border-top-color: var(--bo-blue-600); animation: boSpin .8s linear infinite; }

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

/* Pages without a sidebar (e.g. public plan pages) still clear the topbar. */
body.bo-app:not(:has(#sidebar)) { padding-top: var(--bo-topbar-h); }

/* Shell fixes */
.bo-icon-btn.bo-burger { display: none; }
@media (max-width: 767px) { .bo-icon-btn.bo-burger { display: inline-flex; } }
.bo-brand img { object-fit: cover; padding: 0; background: #F4F1E8; }
.bo-lang-slot .bo-lang-btn {
  height: 38px; padding: 0 .75rem !important; border-radius: 11px !important; background: #fff !important; color: #33415C !important;
  border: 1px solid #DCE3EE !important; box-shadow: 0 1px 2px rgba(16,24,40,.04) !important; font: 600 .78rem 'Poppins', sans-serif !important;
  display: inline-flex; align-items: center; gap: .35rem;
}
.bo-lang-slot .bo-lang-btn:hover { border-color: #AFC5EA !important; color: var(--bo-blue-600) !important; }
.bo-stat .bo-tile { width: 46px; height: 46px; font-size: 1.35rem; }
.bo-stat .bo-stat-label { white-space: nowrap; }
.bo-plan-cover img { position: relative; z-index: 1; display: block; }
.bo-plan-cover .bo-price { z-index: 2; }

/* --------------------------------------------------------------- auth pages */
.bo-auth-body { background: #fff !important; }
.bo-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.bo-auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2.4rem 3rem; color: #D5E1FF;
  background: radial-gradient(120% 90% at 100% 0%, #2E6BF2 0%, #1A4FD6 22%, #0E2B5C 58%, #06122A 100%);
}
.bo-auth-glow { position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(143,182,255,.35), transparent); pointer-events: none; animation: boGlow 9s ease-in-out infinite alternate; }
@keyframes boGlow { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
.bo-auth-art .bo-brand { position: relative; z-index: 2; }
.bo-auth-copy { position: relative; z-index: 2; max-width: 460px; }
.bo-auth-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: .74rem; font-weight: 500; color: #E3ECFF; }
.bo-auth-copy h2 { margin: 1.1rem 0 .8rem; font-size: 2.6rem; line-height: 1.08; font-weight: 700; color: #fff !important; letter-spacing: -0.03em; }
.bo-auth-copy p { font-size: 1rem; line-height: 1.65; color: #C4D4F5; margin: 0 0 1.5rem; }
.bo-auth-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.bo-auth-copy li { display: flex; align-items: center; gap: .8rem; font-size: .92rem; color: #E6EEFF; }
.bo-auth-copy li span { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: 1.2rem; color: #9FC0FF; flex: 0 0 auto; }
.bo-auth-quote { position: relative; z-index: 2; margin: 0; max-width: 460px; padding: 1.1rem 1.25rem; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.bo-auth-quote blockquote { margin: 0 0 .7rem; font-size: .92rem; line-height: 1.55; color: #F0F5FF; }
.bo-auth-quote figcaption { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: #AFC5EE; }
.bo-auth-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; width: 100%; z-index: 1; pointer-events: none; }
.bo-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1.5rem 1.2rem; background: radial-gradient(90% 60% at 50% 0%, #F3F7FF 0%, #fff 70%); }
.bo-auth-card { width: 100%; max-width: 430px; }
.bo-auth-card h1 { font-size: 1.85rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.bo-auth-sub { margin: .45rem 0 1.6rem; color: var(--bo-ink-soft); font-size: .93rem; }
.bo-auth-sub a { color: var(--bo-blue-600); font-weight: 600; text-decoration: none; }
.bo-auth-sub a:hover { text-decoration: underline; }
.bo-auth-card form { display: grid; gap: 1rem; }
.bo-auth-card .bo-input-icon input { height: 46px; }
.bo-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.bo-auth-row label { display: inline-flex; align-items: center; gap: .5rem; color: #475467; cursor: pointer; }
.bo-auth-row a, .bo-auth-foot a { color: var(--bo-blue-600); font-weight: 600; text-decoration: none; }
.bo-auth-row a:hover, .bo-auth-foot a:hover { text-decoration: underline; }
.bo-auth-foot { margin-top: 1.4rem; text-align: center; font-size: .88rem; color: var(--bo-ink-soft); }
.bo-auth-legal { margin-top: 2rem; font-size: .75rem; color: var(--bo-ink-mute); }
.bo-auth-legal a { color: inherit; }
.bo-auth-mobile-brand { display: none; }
.bo-or { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; font-size: .78rem; color: var(--bo-ink-mute); }
.bo-or::before, .bo-or::after { content: ""; flex: 1; height: 1px; background: #E7EDF6; }
.bo-google { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; height: 46px; border-radius: 12px; border: 1px solid #DCE3EE; background: #fff; color: #1F2A44; font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: all .2s; }
.bo-google:hover { border-color: #B8CAE8; background: #FAFCFF; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(16,40,90,.3); }
.bo-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .95rem; border-radius: 12px; font-size: .86rem; line-height: 1.5; margin-bottom: 1rem; }
.bo-alert i { font-size: 1.2rem; margin-top: .05rem; flex: 0 0 auto; }
.bo-alert-error { background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }
.bo-alert-success { background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }
.bo-alert-info { background: #EFF5FF; color: #1849A9; border: 1px solid #C7DAFE; }
.bo-alert a { font-weight: 600; color: inherit; }
.bo-otp { letter-spacing: .6em; text-align: center; font-size: 1.35rem !important; font-weight: 600; height: 54px !important; }
@media (max-width: 900px) {
  .bo-auth { grid-template-columns: 1fr; }
  .bo-auth-art { display: none; }
  .bo-auth-mobile-brand { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; color: var(--bo-ink); font-weight: 600; text-decoration: none; }
  .bo-auth-mobile-brand img { width: 34px; height: 34px; border-radius: 50%; }
  .bo-auth-main { justify-content: flex-start; padding-top: 2rem; }
}
body.bo-app.bo-auth-body { padding-top: 0 !important; }
.bo-auth-body .bo-lang-switcher { top: 16px !important; right: 16px !important; }

/* ---- Brand mapping for older indigo/purple utility colours ---- */
.bo-app [class*="bg-gradient-to-"].from-indigo-600, .bo-app [class*="bg-gradient-to-"].from-indigo-500, .bo-app [class*="bg-gradient-to-"].from-purple-600, .bo-app [class*="bg-gradient-to-"].from-violet-600 {
  background-image: radial-gradient(120% 160% at 100% 0%, #3B7BF6 0%, #1F63EB 38%, #143873 80%, #0A1F44 100%);
}
.bo-app [class*="bg-gradient-to-"].from-indigo-100, .bo-app [class*="bg-gradient-to-"].from-indigo-50, .bo-app [class*="bg-gradient-to-"].from-purple-50 {
  background-image: radial-gradient(90% 60% at 50% 0%, #E6EFFF 0%, #F5F8FC 60%);
}
.bo-app .text-indigo-600, .bo-app .text-indigo-700, .bo-app .text-purple-600 { color: var(--bo-blue-600); }
.bo-app .text-indigo-200, .bo-app .text-indigo-100 { color: #CFE0FF; }
.bo-app .bg-indigo-50, .bo-app .hover\:bg-indigo-50:hover { background-color: #EFF5FF; }
.bo-app .border-indigo-300, .bo-app .hover\:border-indigo-300:hover { border-color: #9DBCF8; }

/* Answer / option cards: a clear selected state (radio + checkbox labels) */
.bo-app label:has(> input[type=radio]), .bo-app label:has(> input[type=checkbox]):is([class*="border"], [class*="p-3"], [class*="p-4"]) {
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s var(--bo-ease);
}
.bo-app label[class*="border"]:has(> input[type=radio]:checked), .bo-app label[class*="border"]:has(> input[type=checkbox]:checked) {
  border-color: #3B7BF6 !important; background-color: #EFF5FF !important; box-shadow: 0 0 0 3px rgba(59,123,246,.14);
}
.bo-app label[class*="border"]:has(> input[type=radio]):hover, .bo-app label[class*="border"]:has(> input[type=checkbox]):hover { transform: translateX(2px); }
.bo-page-head h1:not([class]) { font-size: 1.55rem; font-weight: 600; line-height: 1.25; color: var(--bo-ink); }

/* Sidebar: the nav scrolls with a hidden scrollbar, so fade its bottom edge to
   hint there is more; on shorter screens the promo card drops its blurb. */
.bo-nav { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); }
@media (max-height: 940px) { .bo-premium p { display: none; } .bo-premium h4 { margin-bottom: .6rem; } }
@media (max-height: 720px) { .bo-premium { display: none; } }
/* Phones: the topbar search is narrow, so show just the icon and a short hint. */
@media (max-width: 640px) { .bo-search input::placeholder { color: transparent; } .bo-search kbd { display: none; } }
