/*
 * Groupbuyaitools aMember Pro theme
 * Branded UI system for the Groupbuyaitools member portal.
 * No assets or CSS from the supplied legacy theme are used.
 */

:root {
  --bst-blue: #2582f4;
  --bst-blue-strong: #146ee8;
  --bst-indigo: #6558f5;
  --bst-cyan: #14b8e6;
  --bst-mint: #20bf8f;
  --bst-red: #ef4444;
  --bst-amber: #f59e0b;
  --bst-ink: #101828;
  --bst-ink-2: #344054;
  --bst-muted: #667085;
  --bst-soft: #98a2b3;
  --bst-line: #e5e9f1;
  --bst-line-strong: #d8deea;
  --bst-canvas: #f5f7fb;
  --bst-panel: #ffffff;
  --bst-panel-2: #f9fafc;
  --bst-sidebar: 276px;
  --bst-topbar: 76px;
  --bst-radius-xs: 9px;
  --bst-radius-sm: 13px;
  --bst-radius: 18px;
  --bst-radius-lg: 24px;
  --bst-radius-xl: 30px;
  --bst-shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --bst-shadow-sm: 0 8px 24px rgba(16, 24, 40, .06);
  --bst-shadow: 0 18px 55px rgba(16, 24, 40, .09);
  --bst-focus: 0 0 0 4px rgba(37, 130, 244, .14);
  --bst-ease: 180ms cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--bst-ink);
  background: var(--bst-canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.bst-no-scroll { overflow: hidden; }
a { color: var(--bst-blue-strong); text-decoration: none; }
a:hover { color: var(--bst-blue); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.bst-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;
}

/* App shell */
.bst-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--bst-sidebar) minmax(0, 1fr);
}
.bst-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--bst-sidebar);
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  background: var(--bst-panel);
  border-right: 1px solid var(--bst-line);
  transition: transform var(--bst-ease), width var(--bst-ease);
}
.bst-sidebar-brand {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 5px;
  margin-bottom: 16px;
}
.bst-sidebar-brand img { width: 213px; height: auto; display: block; }
.bst-icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--bst-muted);
  background: var(--bst-panel);
  border: 1px solid var(--bst-line);
  border-radius: 14px;
  cursor: pointer;
  transition: color var(--bst-ease), background var(--bst-ease), border-color var(--bst-ease), transform var(--bst-ease);
  box-shadow: var(--bst-shadow-xs);
}
.bst-icon-button:hover { color: var(--bst-blue-strong); background: var(--bst-panel-2); border-color: var(--bst-line-strong); transform: translateY(-1px); }
.bst-icon-button svg { width: 19px; height: 19px; stroke-width: 1.8; }
.bst-agent-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #1495fb 0%, #2d78f2 52%, #6658f5 100%);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(37, 130, 244, .24);
  overflow: hidden;
}
.bst-agent-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 110px;
  height: 110px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.bst-agent-card svg { width: 20px; height: 20px; }
.bst-agent-card strong { font-size: 14px; font-weight: 720; letter-spacing: -.1px; }
.bst-nav-label {
  margin: 26px 12px 9px;
  color: var(--bst-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bst-nav { display: grid; gap: 4px; }
.bst-nav-link {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: var(--bst-muted);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 560;
  transition: color var(--bst-ease), background var(--bst-ease), transform var(--bst-ease);
}
.bst-nav-link:hover { color: var(--bst-ink); background: var(--bst-panel-2); transform: translateX(2px); }
.bst-nav-link.is-active { color: var(--bst-ink); background: color-mix(in srgb, var(--bst-blue) 8%, var(--bst-panel)); font-weight: 680; }
.bst-nav-link.is-active .bst-nav-icon { color: var(--bst-blue-strong); }
.bst-nav-icon { width: 21px; height: 21px; display: inline-grid; place-items: center; color: var(--bst-soft); }
.bst-nav-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.bst-nav-badge {
  margin-left: auto;
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  color: var(--bst-blue-strong);
  background: rgba(37, 130, 244, .1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.bst-sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.bst-credit-pill {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--bst-line);
  border-radius: 999px;
  color: var(--bst-muted);
  background: var(--bst-panel);
  box-shadow: var(--bst-shadow-xs);
  font-size: 13px;
}
.bst-credit-pill svg { width: 16px; height: 16px; color: var(--bst-blue); }
.bst-credit-pill strong { color: var(--bst-ink); }
.bst-credit-pill a { margin-left: auto; font-size: 12px; font-weight: 700; }
.bst-sidebar-user {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
  background: var(--bst-panel-2);
}
.bst-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bst-blue), var(--bst-indigo));
  border: 2px solid rgba(255,255,255,.82);
  outline: 1px solid rgba(37,130,244,.18);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
.bst-sidebar-user-copy { min-width: 0; }
.bst-sidebar-user-copy strong, .bst-sidebar-user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bst-sidebar-user-copy strong { font-size: 13px; line-height: 1.3; }
.bst-sidebar-user-copy span { margin-top: 2px; color: var(--bst-muted); font-size: 11px; }
.bst-signout-mini { color: var(--bst-soft); display: grid; place-items: center; }
.bst-signout-mini:hover { color: var(--bst-red); }
.bst-signout-mini svg { width: 18px; height: 18px; }

.bst-workspace {
  min-width: 0;
  grid-column: 2;
  padding: 14px 16px 18px;
}
.bst-topbar {
  position: sticky;
  top: 14px;
  z-index: 60;
  min-height: var(--bst-topbar);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--bst-panel) 94%, transparent);
  border: 1px solid var(--bst-line);
  border-radius: 25px 25px 0 0;
  box-shadow: var(--bst-shadow-xs);
  backdrop-filter: blur(16px);
}
.bst-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bst-mobile-menu { display: none; }
.bst-global-search {
  width: min(100%, 330px);
  height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: var(--bst-panel);
  border: 1px solid var(--bst-line);
  border-radius: 15px;
  transition: border-color var(--bst-ease), box-shadow var(--bst-ease), width var(--bst-ease);
}
.bst-global-search:focus-within { border-color: rgba(37,130,244,.55); box-shadow: var(--bst-focus); }
.bst-global-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--bst-soft); }
.bst-global-search input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  color: var(--bst-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
}
.bst-search-key { color: var(--bst-soft); border: 1px solid var(--bst-line); border-radius: 6px; padding: 1px 5px; font-size: 10px; }
.bst-topbar-title { margin: 0; color: var(--bst-ink); font-size: 16px; font-weight: 760; letter-spacing: -.25px; text-align: center; }
.bst-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.bst-user-menu { position: relative; }
.bst-user-trigger {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 5px;
  color: var(--bst-ink-2);
  background: var(--bst-panel);
  border: 1px solid var(--bst-line);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--bst-shadow-xs);
}
.bst-user-trigger .bst-avatar { width: 30px; height: 30px; border-width: 1px; font-size: 10px; }
.bst-user-trigger span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.bst-user-trigger svg { width: 15px; height: 15px; color: var(--bst-soft); transition: transform var(--bst-ease); }
.bst-user-menu.is-open .bst-user-trigger > svg { transform: rotate(180deg); }
.bst-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 235px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(.98);
  transform-origin: top right;
  background: var(--bst-panel);
  border: 1px solid var(--bst-line);
  border-radius: 17px;
  box-shadow: var(--bst-shadow);
  transition: opacity var(--bst-ease), visibility var(--bst-ease), transform var(--bst-ease);
}
.bst-user-menu.is-open .bst-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.bst-dropdown-head { padding: 10px 11px 12px; border-bottom: 1px solid var(--bst-line); margin-bottom: 5px; }
.bst-dropdown-head strong, .bst-dropdown-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bst-dropdown-head strong { font-size: 13px; }
.bst-dropdown-head span { margin-top: 3px; color: var(--bst-muted); font-size: 11px; }
.bst-dropdown-link { min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--bst-ink-2); border-radius: 10px; font-size: 13px; }
.bst-dropdown-link:hover { color: var(--bst-ink); background: var(--bst-panel-2); }
.bst-dropdown-link.is-danger:hover { color: var(--bst-red); background: rgba(239,68,68,.08); }
.bst-dropdown-link svg { width: 17px; height: 17px; }

.bst-main {
  min-height: calc(100vh - 108px);
  padding: 32px 26px 42px;
  background: var(--bst-canvas);
  border: 1px solid var(--bst-line);
  border-top: 0;
  border-radius: 0 0 25px 25px;
}
.bst-main-inner { max-width: 1500px; margin: 0 auto; }
.bst-page-footer { padding: 20px 6px 3px; color: var(--bst-soft); font-size: 12px; text-align: center; }

/* Welcome dashboard */
.bst-welcome {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 44px 34px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 84% 78%, rgba(46,151,255,.18), transparent 34%),
    radial-gradient(circle at 22% 2%, rgba(101,88,245,.08), transparent 29%),
    linear-gradient(135deg, var(--bst-panel) 0%, color-mix(in srgb, var(--bst-panel) 92%, #eaf4ff) 100%);
  border: 1px solid var(--bst-line);
  border-radius: 26px;
  box-shadow: var(--bst-shadow-xs);
}
.bst-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .52;
  background-image: radial-gradient(circle, rgba(37,130,244,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 78%);
}
.bst-welcome-copy { width: min(100%, 810px); }
.bst-new-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 3px 12px 3px 5px;
  margin-bottom: 23px;
  color: #fff;
  background: linear-gradient(135deg, #1697fa, #2f7ef1);
  border: 3px solid rgba(37,130,244,.14);
  background-clip: padding-box;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 7px 22px rgba(37,130,244,.18);
}
.bst-new-pill b { padding: 3px 8px; color: var(--bst-ink); background: #fff; border-radius: 999px; font-size: 9px; letter-spacing: .06em; }
.bst-welcome h1 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -2px; }
.bst-welcome h1 span { background: linear-gradient(90deg, #168cf5, #6658f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bst-welcome p { margin: 11px 0 28px; color: var(--bst-muted); font-size: 16px; }
.bst-hero-search {
  width: min(100%, 620px);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 auto;
  padding: 0 18px;
  background: var(--bst-panel);
  border: 1px solid var(--bst-line-strong);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(16,24,40,.06);
  transition: border-color var(--bst-ease), box-shadow var(--bst-ease), transform var(--bst-ease);
}
.bst-hero-search:focus-within { border-color: rgba(37,130,244,.62); box-shadow: var(--bst-focus), 0 14px 38px rgba(16,24,40,.08); transform: translateY(-1px); }
.bst-hero-search svg { width: 21px; height: 21px; color: var(--bst-muted); }
.bst-hero-search input { min-width: 0; width: 100%; border: 0 !important; outline: 0 !important; color: var(--bst-ink) !important; background: transparent !important; box-shadow: none !important; font-size: 14px !important; }

.bst-offer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  padding: 17px 20px;
  background: linear-gradient(90deg, var(--bst-panel), color-mix(in srgb, var(--bst-panel) 88%, #eaf4ff));
  border: 1px solid var(--bst-line);
  border-radius: 18px;
  box-shadow: var(--bst-shadow-xs);
}
.bst-offer-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #1498fa, #266ff1); border-radius: 13px; }
.bst-offer-icon svg { width: 24px; height: 24px; }
.bst-offer-copy { min-width: 0; }
.bst-offer-kicker { display: block; margin-bottom: 2px; color: var(--bst-blue-strong); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.bst-offer strong { display: block; color: var(--bst-ink); font-size: 14px; }
.bst-offer p { margin: 2px 0 0; color: var(--bst-muted); font-size: 12px; }
.bst-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  color: #fff !important;
  background: var(--bst-ink);
  border: 1px solid var(--bst-ink);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: transform var(--bst-ease), box-shadow var(--bst-ease), opacity var(--bst-ease);
}
.bst-button:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,24,40,.15); }
.bst-button.is-blue { background: linear-gradient(135deg, var(--bst-blue), var(--bst-blue-strong)); border-color: transparent; }
.bst-button.is-ghost { color: var(--bst-ink-2) !important; background: var(--bst-panel); border-color: var(--bst-line-strong); }
.bst-button svg { width: 16px; height: 16px; }
.bst-offer .bst-button { margin-left: auto; flex: 0 0 auto; }

.bst-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.bst-stat-card { min-height: 166px; padding: 21px; background: var(--bst-panel); border: 1px solid var(--bst-line); border-radius: 18px; box-shadow: var(--bst-shadow-xs); }
.bst-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bst-stat-label { color: var(--bst-muted); font-size: 12px; font-weight: 600; }
.bst-stat-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--bst-muted); background: var(--bst-panel-2); border-radius: 10px; }
.bst-stat-icon svg { width: 17px; height: 17px; }
.bst-stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 12px; font-size: 30px; font-weight: 760; letter-spacing: -1px; }
.bst-stat-value small { color: var(--bst-muted); font-size: 13px; font-weight: 550; letter-spacing: 0; }
.bst-stat-line { height: 4px; margin-top: 9px; overflow: hidden; background: var(--bst-panel-2); border-radius: 999px; }
.bst-stat-line span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--bst-blue), var(--bst-cyan)); border-radius: inherit; }
.bst-stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 29px; color: var(--bst-muted); font-size: 11px; }
.bst-stat-foot a { font-weight: 700; }
.bst-health { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.bst-health::before { content: ""; width: 10px; height: 10px; background: var(--bst-mint); border-radius: 50%; box-shadow: 0 0 0 6px rgba(32,191,143,.11); }

/* Dashboard blocks */
.bst-dashboard-widgets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.bst-widget { grid-column: span 6; min-width: 0; background: var(--bst-panel); border: 1px solid var(--bst-line); border-radius: 21px; box-shadow: var(--bst-shadow-xs); overflow: hidden; }
.bst-widget[id*="resources"], .bst-widget:only-child { grid-column: 1 / -1; }
.bst-widget-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 23px 13px; }
.bst-widget-head h2 { margin: 0; color: var(--bst-ink); font-size: 20px; letter-spacing: -.5px; }
.bst-widget-body { padding: 0 23px 23px; }
.bst-widget .alert { margin: 0; }
.bst-widget .am-block { border: 0; }
.bst-section-copy { margin: -7px 0 18px; color: var(--bst-muted); font-size: 13px; }

.bst-tools-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.bst-tools-filter { height: 42px; display: flex; align-items: center; gap: 9px; flex: 1; padding: 0 13px; background: var(--bst-panel-2); border: 1px solid var(--bst-line); border-radius: 12px; }
.bst-tools-filter:focus-within { border-color: rgba(37,130,244,.55); box-shadow: var(--bst-focus); }
.bst-tools-filter svg { width: 17px; height: 17px; color: var(--bst-soft); }
.bst-tools-filter input { min-width: 0; width: 100%; border: 0 !important; outline: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--bst-ink) !important; font-size: 13px !important; }
.bst-tools-count { height: 42px; display: inline-flex; align-items: center; padding: 0 13px; color: var(--bst-blue-strong); background: rgba(37,130,244,.08); border-radius: 12px; font-size: 12px; font-weight: 750; }
.bst-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bst-tool-card { min-width: 0; border: 1px solid var(--bst-line); border-radius: 16px; background: var(--bst-panel); overflow: hidden; transition: transform var(--bst-ease), border-color var(--bst-ease), box-shadow var(--bst-ease); }
.bst-tool-card:hover { transform: translateY(-3px); border-color: rgba(37,130,244,.32); box-shadow: var(--bst-shadow-sm); }
.bst-tool-card.is-hidden { display: none; }
.bst-tool-link { height: 100%; display: flex; flex-direction: column; color: var(--bst-ink) !important; }
.bst-tool-media { height: 105px; display: grid; place-items: center; padding: 18px; background: linear-gradient(145deg, var(--bst-panel-2), color-mix(in srgb, var(--bst-panel-2) 78%, #eaf4ff)); border-bottom: 1px solid var(--bst-line); }
.bst-tool-media img { width: 100%; height: 70px; object-fit: contain; }
.bst-tool-placeholder { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--bst-blue), var(--bst-indigo)); border-radius: 17px; font-size: 20px; font-weight: 800; }
.bst-tool-copy { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 14px; }
.bst-tool-copy > div { min-width: 0; }
.bst-tool-copy h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bst-ink); font-size: 13px; font-weight: 720; }
.bst-tool-copy span { display: block; margin-top: 3px; color: var(--bst-muted); font-size: 10px; }
.bst-tool-arrow { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; margin-left: auto; color: var(--bst-blue-strong); background: rgba(37,130,244,.08); border-radius: 9px; }
.bst-tool-arrow svg { width: 14px; height: 14px; }
.bst-tool-empty { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--bst-muted); border: 1px dashed var(--bst-line-strong); border-radius: 16px; background: var(--bst-panel-2); }
.bst-tool-empty strong { display: block; color: var(--bst-ink); margin-bottom: 4px; }

/* Generic member pages */
.bst-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.bst-page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.7px; }
.bst-page-head p { margin: 5px 0 0; color: var(--bst-muted); }
.bst-page-panel { padding: 25px; background: var(--bst-panel); border: 1px solid var(--bst-line); border-radius: 21px; box-shadow: var(--bst-shadow-xs); }
.bst-page-panel > .am-body-content, .bst-page-panel .am-body-content-content { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* aMember forms and common components */
.am-form, .am-form form, form.am-form, .am-auth-form { max-width: none !important; width: 100%; }
.am-form fieldset, .am-auth-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.am-form legend, .am-auth-form legend { display: none; }
.am-form .am-row, .am-auth-form .am-row, .am-form-row, .form-group {
  display: grid !important;
  grid-template-columns: minmax(145px, 29%) minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
  padding: 11px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.am-auth-form .am-row { grid-template-columns: 1fr; gap: 7px; }
.am-form .am-element-title, .am-auth-form .am-element-title, .am-form label, .control-label {
  width: auto !important;
  padding: 9px 0 0 !important;
  color: var(--bst-ink-2) !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  text-align: left !important;
}
.am-auth-form .am-element-title { padding-top: 0 !important; }
.am-form .am-element, .am-auth-form .am-element { min-width: 0; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.am-form input[type="text"], .am-form input[type="email"], .am-form input[type="password"], .am-form input[type="number"], .am-form input[type="tel"], .am-form input[type="url"], .am-form select, .am-form textarea,
.am-auth-form input[type="text"], .am-auth-form input[type="email"], .am-auth-form input[type="password"], .am-auth-form input[type="number"], .am-auth-form input[type="tel"], .am-auth-form input[type="url"], .am-auth-form select, .am-auth-form textarea,
.bst-page-panel input[type="text"], .bst-page-panel input[type="email"], .bst-page-panel input[type="password"], .bst-page-panel select, .bst-page-panel textarea {
  width: 100% !important;
  min-height: 47px;
  padding: 10px 13px !important;
  color: var(--bst-ink) !important;
  background: var(--bst-panel) !important;
  border: 1px solid var(--bst-line-strong) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  box-shadow: none !important;
  transition: border-color var(--bst-ease), box-shadow var(--bst-ease), background var(--bst-ease);
}
.am-form textarea, .am-auth-form textarea, .bst-page-panel textarea { min-height: 116px; resize: vertical; }
.am-form input:focus, .am-form select:focus, .am-form textarea:focus, .am-auth-form input:focus, .am-auth-form select:focus, .am-auth-form textarea:focus, .bst-page-panel input:focus, .bst-page-panel select:focus, .bst-page-panel textarea:focus { border-color: rgba(37,130,244,.62) !important; box-shadow: var(--bst-focus) !important; }
.am-form input::placeholder, .am-auth-form input::placeholder { color: var(--bst-soft) !important; }
.am-form input[type="checkbox"], .am-form input[type="radio"], .am-auth-form input[type="checkbox"], .am-auth-form input[type="radio"] { width: 17px; height: 17px; accent-color: var(--bst-blue); vertical-align: -3px; }
.am-form input[type="submit"], .am-form button[type="submit"], .am-form .am-button, .am-auth-form input[type="submit"], .am-auth-form button[type="submit"], .bst-page-panel input[type="submit"], .bst-page-panel button[type="submit"], .am-button, button.am-button, a.am-button {
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 20px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--bst-blue), var(--bst-blue-strong)) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(37,130,244,.2) !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  transition: transform var(--bst-ease), box-shadow var(--bst-ease), filter var(--bst-ease) !important;
}
.am-form input[type="submit"]:hover, .am-form button[type="submit"]:hover, .am-auth-form input[type="submit"]:hover, .am-auth-form button[type="submit"]:hover, .am-button:hover { transform: translateY(-1px); filter: saturate(1.08); box-shadow: 0 12px 28px rgba(37,130,244,.26) !important; }
.am-row-buttons .am-element { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.am-auth-form .am-row-buttons .am-element { display: grid; grid-template-columns: 1fr auto; }
.am-auth-form .am-row-buttons input[type="submit"] { width: 100%; }
.am-form-login-switch-wrapper { text-align: right; }
.am-form-login-switch { color: var(--bst-blue-strong) !important; font-size: 12px; font-weight: 700; }
#am-form-login-remember { padding: 10px 0 0 !important; color: var(--bst-muted) !important; font-size: 12px !important; font-weight: 550 !important; }
.am-help, .am-element .comment, .am-form-description, .am-element-desc { color: var(--bst-muted) !important; font-size: 11px !important; }
.am-error, .am-errors, .error, .am-field-error, .am-error-message { color: var(--bst-red) !important; }
ul.am-errors { margin: 0 0 17px !important; padding: 12px 14px 12px 34px !important; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.18); border-radius: 12px; }
.am-info, .am-notice, .am-alert, .am-flash-message, .alert { margin: 0 0 16px; padding: 13px 15px; color: var(--bst-ink-2); background: rgba(37,130,244,.07); border: 1px solid rgba(37,130,244,.16); border-radius: 12px; }
.alert-success, .am-success { background: rgba(32,191,143,.08) !important; border-color: rgba(32,191,143,.2) !important; }
.alert-danger { background: rgba(239,68,68,.08) !important; border-color: rgba(239,68,68,.18) !important; }

/* Tables, grids, invoices */
.am-grid-container, .am-grid, .am-table, table { max-width: 100%; }
.bst-page-panel table, .bst-widget table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--bst-line); border-radius: 13px; }
.bst-page-panel th, .bst-widget th { padding: 12px 13px; color: var(--bst-muted); background: var(--bst-panel-2); border-bottom: 1px solid var(--bst-line); font-size: 11px; font-weight: 750; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.bst-page-panel td, .bst-widget td { padding: 13px; color: var(--bst-ink-2); border-bottom: 1px solid var(--bst-line); font-size: 12px; }
.bst-page-panel tr:last-child td, .bst-widget tr:last-child td { border-bottom: 0; }
.bst-page-panel tr:hover td, .bst-widget tr:hover td { background: color-mix(in srgb, var(--bst-blue) 3%, var(--bst-panel)); }
.am-pagination, .pagination { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.am-pagination a, .pagination a, .pagination span { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--bst-line); border-radius: 9px; color: var(--bst-ink-2); background: var(--bst-panel); }

/* Product options on signup */
.am-product-terms, .am-product-desc { color: var(--bst-muted); }
.am-product { padding: 14px !important; margin: 8px 0 !important; background: var(--bst-panel-2) !important; border: 1px solid var(--bst-line) !important; border-radius: 13px !important; }
.am-product:hover { border-color: rgba(37,130,244,.32) !important; }

/* Auth pages */
.bst-auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); background: var(--bst-panel); }
.bst-auth-showcase {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0c6de9 0%, #247fe9 38%, #5a52ed 100%);
}
.bst-auth-showcase::before, .bst-auth-showcase::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.bst-auth-showcase::before { width: 560px; height: 560px; top: -260px; right: -240px; background: rgba(255,255,255,.13); }
.bst-auth-showcase::after { width: 460px; height: 460px; bottom: -210px; left: -210px; background: rgba(6,31,92,.18); }
.bst-auth-brand { display: inline-flex; align-items: center; width: fit-content; padding: 9px 13px; background: rgba(255,255,255,.94); border-radius: 16px; box-shadow: 0 15px 38px rgba(4,33,95,.16); }
.bst-auth-brand img { width: 210px; display: block; }
.bst-auth-pitch { max-width: 550px; margin: auto 0; padding: 70px 0; }
.bst-auth-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 8px 11px; color: rgba(255,255,255,.94); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.17); border-radius: 999px; font-size: 11px; font-weight: 750; backdrop-filter: blur(10px); }
.bst-auth-kicker::before { content: ""; width: 7px; height: 7px; background: #61f3c1; border-radius: 50%; box-shadow: 0 0 0 5px rgba(97,243,193,.14); }
.bst-auth-pitch h2 { margin: 0; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.03; letter-spacing: -2.5px; }
.bst-auth-pitch p { max-width: 490px; margin: 20px 0 0; color: rgba(255,255,255,.78); font-size: 16px; }
.bst-auth-points { display: grid; gap: 12px; margin-top: 32px; }
.bst-auth-point { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.9); font-size: 13px; }
.bst-auth-point i { width: 23px; height: 23px; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 8px; font-style: normal; }
.bst-auth-note { color: rgba(255,255,255,.62); font-size: 11px; }
.bst-auth-main { min-height: 100vh; display: grid; place-items: center; padding: 36px; background:
  radial-gradient(circle at 100% 0%, rgba(37,130,244,.08), transparent 32%),
  var(--bst-panel); }
.bst-auth-card { width: min(100%, 490px); }
.bst-auth-card.is-signup { width: min(100%, 720px); }
.bst-auth-mobile-brand { display: none; justify-content: center; margin-bottom: 26px; }
.bst-auth-mobile-brand img { width: 205px; }
.bst-auth-heading { margin-bottom: 27px; }
.bst-auth-heading h1 { margin: 0; color: var(--bst-ink); font-size: 33px; line-height: 1.14; letter-spacing: -1.1px; }
.bst-auth-heading p { margin: 9px 0 0; color: var(--bst-muted); font-size: 14px; }
.bst-auth-surface { padding: 28px; background: var(--bst-panel); border: 1px solid var(--bst-line); border-radius: 22px; box-shadow: var(--bst-shadow-sm); }
.bst-auth-footer { margin-top: 22px; color: var(--bst-muted); font-size: 12px; text-align: center; }
.bst-auth-footer a { font-weight: 750; }
.bst-auth-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; color: var(--bst-soft); font-size: 10px; }
.bst-auth-trust svg { width: 14px; height: 14px; }
.bst-password-wrap { position: relative; }
.bst-password-wrap input { padding-right: 45px !important; }
.bst-password-toggle { position: absolute; top: 50%; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; transform: translateY(-50%); color: var(--bst-soft); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.bst-password-toggle:hover { color: var(--bst-ink); background: var(--bst-panel-2); }
.bst-password-toggle svg { width: 17px; height: 17px; }
.bst-login-offer { margin-bottom: 16px; }
.bst-login-offer .am-info { margin: 0; }
.bst-signup-form .am-form .am-row { grid-template-columns: minmax(155px, 27%) minmax(0, 1fr); }
.bst-signup-form .am-row-buttons .am-element { justify-content: flex-start; }
.bst-signup-form .am-row-buttons input[type="submit"] { min-width: 180px; }

/* Public generic shell */
.bst-public-page { min-height: 100vh; padding: 26px; background: radial-gradient(circle at 90% 0%, rgba(37,130,244,.09), transparent 32%), var(--bst-canvas); }
.bst-public-bar { max-width: 1180px; height: 68px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto 24px; padding: 0 20px; background: var(--bst-panel); border: 1px solid var(--bst-line); border-radius: 20px; box-shadow: var(--bst-shadow-xs); }
.bst-public-bar img { width: 220px; }
.bst-public-content { max-width: 1000px; margin: 0 auto; padding: 28px; background: var(--bst-panel); border: 1px solid var(--bst-line); border-radius: 22px; box-shadow: var(--bst-shadow-sm); }
.bst-public-title { margin: 0 0 20px; font-size: 27px; letter-spacing: -.7px; }

/* Flash layer */
.am-flash { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.am-flash-mask { display: none; }
.am-flash-content { position: absolute; right: 22px; bottom: 22px; width: min(380px, calc(100% - 44px)); }
.am-flash-content > * { pointer-events: auto; box-shadow: var(--bst-shadow); }


/* Responsive */
@media (max-width: 1200px) {
  .bst-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bst-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bst-widget.is-subscriptions .bst-subscription-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .bst-topbar { grid-template-columns: 1fr auto; }
  .bst-topbar-title { display: none; }
  .bst-widget { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --bst-sidebar: 276px; }
  .bst-app { display: block; }
  .bst-sidebar { transform: translateX(-103%); box-shadow: var(--bst-shadow); }
  .bst-sidebar.is-open { transform: translateX(0); }
  .bst-sidebar-collapse { display: none; }
  .bst-sidebar-scrim { position: fixed; inset: 0; z-index: 70; display: block; opacity: 0; visibility: hidden; background: rgba(16,24,40,.42); backdrop-filter: blur(3px); transition: opacity var(--bst-ease), visibility var(--bst-ease); }
  .bst-sidebar-scrim.is-open { opacity: 1; visibility: visible; }
  .bst-workspace { padding: 10px; }
  .bst-topbar { top: 10px; min-height: 68px; grid-template-columns: minmax(0,1fr) auto; padding: 0 12px; border-radius: 20px 20px 0 0; }
  .bst-mobile-menu { display: inline-grid; }
  .bst-global-search { max-width: 360px; }
  .bst-main { padding: 24px 18px 36px; border-radius: 0 0 20px 20px; }
  .bst-auth-page { grid-template-columns: 1fr; }
  .bst-auth-showcase { display: none; }
  .bst-auth-main { padding: 32px 18px; }
  .bst-auth-mobile-brand { display: flex; }
}
@media (max-width: 720px) {
  .bst-topbar-actions .bst-user-trigger span, .bst-topbar-actions .bst-user-trigger > svg { display: none; }
  .bst-global-search { width: 100%; }
  .bst-search-key { display: none; }
  .bst-welcome { min-height: 300px; padding: 36px 18px; }
  .bst-welcome h1 { letter-spacing: -1.4px; }
  .bst-offer { align-items: flex-start; flex-wrap: wrap; }
  .bst-offer .bst-button { width: 100%; margin-left: 0; }
  .bst-stat-grid { grid-template-columns: 1fr; }
  .bst-stat-card { min-height: 145px; }
  .bst-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bst-tools-toolbar { align-items: stretch; flex-direction: column; }
  .bst-tools-count { width: fit-content; }
  .bst-page-panel { padding: 18px; }
  .am-form .am-row, .am-form-row, .form-group, .bst-signup-form .am-form .am-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .am-form .am-element-title, .am-form label, .control-label { padding-top: 0 !important; }
  .bst-auth-surface { padding: 21px; }
}
@media (max-width: 480px) {
  .bst-workspace { padding: 0; }
  .bst-topbar { top: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .bst-main { padding: 18px 13px 30px; border-left: 0; border-right: 0; border-radius: 0; }
  .bst-global-search { height: 40px; }
  .bst-welcome { min-height: 270px; border-radius: 20px; }
  .bst-welcome h1 { font-size: 33px; }
  .bst-welcome p { font-size: 14px; }
  .bst-new-pill { margin-bottom: 17px; }
  .bst-hero-search { height: 52px; }
  .bst-tool-grid { grid-template-columns: 1fr; }
  .bst-tool-media { height: 95px; }
  .bst-auth-main { padding: 24px 13px; }
  .bst-auth-heading h1 { font-size: 29px; }
  .bst-auth-surface { padding: 19px 16px; border-radius: 18px; }
  .am-auth-form .am-row-buttons .am-element { grid-template-columns: 1fr; }
  .am-form-login-switch-wrapper { text-align: center; }
  .bst-public-page { padding: 12px; }
  .bst-public-bar { margin-bottom: 12px; border-radius: 16px; }
  .bst-public-bar img { width: 190px; }
  .bst-public-content { padding: 20px 16px; border-radius: 17px; }
}


/* Dashboard corrections for the light-only interface. */
html, body { color-scheme: light; }

/* The desktop sidebar is intentionally fixed and no longer collapses. */
.bst-sidebar-brand {
  justify-content: flex-start;
  padding: 0 5px;
}
.bst-sidebar-brand > a {
  min-width: 0;
  display: flex;
  align-items: center;
}
.bst-sidebar-brand .bst-logo {
  width: 213px;
  max-width: 100%;
  height: auto;
  display: block !important;
}
.bst-sidebar-collapse,
[data-bst-sidebar-collapse] { display: none !important; }

/* Keep the hub label readable in every interaction state. */
.bst-agent-card,
.bst-agent-card:link,
.bst-agent-card:visited,
.bst-agent-card:hover,
.bst-agent-card:focus,
.bst-agent-card:active,
.bst-agent-card strong {
  color: #fff !important;
}
.bst-agent-card:hover { transform: translateY(-1px); }

/* Every dashboard account block now uses the available landscape width. */
.bst-dashboard-widgets {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px;
}
.bst-dashboard-widgets > .bst-widget,
.bst-widget,
.bst-widget.is-subscriptions,
.bst-widget.is-email-preferences {
  width: 100%;
  grid-column: 1 / -1 !important;
}

/* Active subscriptions: a short card grid with the unused aMember filter removed. */
.bst-widget.is-subscriptions {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-color: #dce6f5;
  border-radius: 15px;
}
.bst-widget.is-subscriptions::before {
  content: none;
  display: none;
}
.bst-widget.is-subscriptions .bst-widget-head {
  padding: 12px 14px 5px;
}
.bst-widget.is-subscriptions .bst-widget-head h2 {
  font-size: 15px;
  letter-spacing: -.3px;
}
.bst-widget.is-subscriptions .bst-widget-body {
  width: 100%;
  padding: 0 14px 13px;
}
.bst-widget.is-subscriptions .bst-subscription-filter {
  display: none !important;
}
.bst-widget.is-subscriptions .bst-subscription-filter-input {
  display: none !important;
}
.bst-widget.is-subscriptions input[placeholder*="filter" i],
.bst-widget.is-subscriptions input[aria-label*="filter" i] { display: none !important; }
.bst-widget.is-subscriptions .am-filter,
.bst-widget.is-subscriptions .am-input-filter,
.bst-widget.is-subscriptions [class*="subscription-filter"],
.bst-widget.is-subscriptions label:has(input[placeholder*="filter" i]),
.bst-widget.is-subscriptions .bst-widget-body > :has(input[placeholder*="filter" i]) { display: none !important; }
.bst-widget.is-subscriptions .bst-subscription-list {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
}
.bst-widget.is-subscriptions .bst-subscription-item {
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 6px 9px 6px 31px !important;
  color: var(--bst-ink-2) !important;
  font-size: 11px !important;
  line-height: 1.28 !important;
  list-style: none !important;
  background: linear-gradient(145deg, #fff, #f9fbff) !important;
  border: 1px solid #e1e7f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(22, 36, 66, .045) !important;
}
.bst-widget.is-subscriptions .bst-subscription-item * {
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.bst-widget.is-subscriptions .bst-subscription-item::before {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 11px;
  width: 6px;
  height: 6px;
  display: block !important;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #20b486;
  box-shadow: 0 0 0 3px rgba(32, 180, 134, .13);
}
.bst-widget.is-subscriptions .bst-subscription-item a {
  color: inherit !important;
}

/* E-mail preferences: full-width footer panel, compact and deliberate. */
.bst-widget.is-email-preferences {
  margin-top: 0;
  background: linear-gradient(90deg, #ffffff 0%, #f7faff 100%);
  border-color: #dce6f5;
}
.bst-widget.is-email-preferences .bst-widget-head {
  padding: 20px 28px 7px;
}
.bst-widget.is-email-preferences .bst-widget-head h2 {
  font-size: 19px;
  letter-spacing: -.35px;
}
.bst-widget.is-email-preferences .bst-widget-body {
  width: 100%;
  padding: 0 28px 21px;
}
.bst-widget.is-email-preferences .bst-widget-body > *,
.bst-widget.is-email-preferences form,
.bst-widget.is-email-preferences fieldset {
  width: 100% !important;
  max-width: none !important;
}
.bst-widget.is-email-preferences .am-row,
.bst-widget.is-email-preferences .am-form-row,
.bst-widget.is-email-preferences .form-group {
  min-height: 46px;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  background: #fff !important;
  border: 1px solid #e5eaf2 !important;
  border-radius: 12px !important;
}
.bst-widget.is-email-preferences .am-row .am-element,
.bst-widget.is-email-preferences .am-form-row .am-element,
.bst-widget.is-email-preferences .form-group .am-element {
  min-height: 0 !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.bst-widget.is-email-preferences input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto;
  margin: 0 !important;
  accent-color: var(--bst-blue);
}
.bst-widget.is-email-preferences label {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bst-ink-2) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

@media (max-width: 720px) {
  .bst-widget.is-subscriptions .bst-widget-head,
  .bst-widget.is-subscriptions .bst-widget-body { padding-left: 14px; padding-right: 14px; }
  .bst-widget.is-email-preferences .bst-widget-head,
  .bst-widget.is-email-preferences .bst-widget-body { padding-left: 20px; padding-right: 20px; }
}

/* Clear, high-contrast access action on each tool card. */
.bst-tool-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  color: #fff !important;
  background: linear-gradient(135deg, var(--bst-blue), var(--bst-indigo));
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  box-shadow: 0 7px 16px rgba(37,130,244,.22);
  transition: transform var(--bst-ease), box-shadow var(--bst-ease), filter var(--bst-ease);
}
.bst-tool-arrow svg { width: 18px; height: 18px; stroke-width: 2; }
.bst-tool-card:hover .bst-tool-arrow {
  transform: translate(1px, -1px);
  filter: saturate(1.08);
  box-shadow: 0 10px 22px rgba(37,130,244,.30);
}

/* Product-aware colors for placeholders and access arrows. */
.bst-tool-card {
  --bst-tool-accent: #2582f4;
  --bst-tool-accent-2: #5b50e6;
}
.bst-tool-card.bst-tool-tone-semrush { --bst-tool-accent: #ff642d; --bst-tool-accent-2: #ff934f; }
.bst-tool-card.bst-tool-tone-chatgpt { --bst-tool-accent: #10a37f; --bst-tool-accent-2: #087f68; }
.bst-tool-card.bst-tool-tone-envato { --bst-tool-accent: #82b440; --bst-tool-accent-2: #5d912d; }
.bst-tool-card.bst-tool-tone-google { --bst-tool-accent: #4285f4; --bst-tool-accent-2: #34a853; }
.bst-tool-card.bst-tool-tone-grok { --bst-tool-accent: #111827; --bst-tool-accent-2: #475569; }
.bst-tool-card.bst-tool-tone-runway { --bst-tool-accent: #6d28d9; --bst-tool-accent-2: #db2777; }
.bst-tool-card.bst-tool-tone-gemini { --bst-tool-accent: #4285f4; --bst-tool-accent-2: #8b5cf6; }
.bst-tool-card.bst-tool-tone-claude { --bst-tool-accent: #c86448; --bst-tool-accent-2: #9f4e3a; }
.bst-tool-card .bst-tool-media {
  background: linear-gradient(145deg, color-mix(in srgb, var(--bst-tool-accent) 8%, #fff), #f8faff);
}
.bst-tool-card .bst-tool-placeholder,
.bst-tool-card .bst-tool-arrow {
  background: linear-gradient(135deg, var(--bst-tool-accent), var(--bst-tool-accent-2)) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--bst-tool-accent) 24%, transparent) !important;
}
.bst-tool-card:hover .bst-tool-arrow {
  box-shadow: 0 11px 24px color-mix(in srgb, var(--bst-tool-accent) 32%, transparent) !important;
}

@media (max-width: 820px) {
  .bst-widget.is-subscriptions .bst-subscription-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
  .bst-widget.is-subscriptions .bst-subscription-list { grid-template-columns: 1fr !important; }
}

/* Brand asset and dashboard polish for Groupbuyaitools */
.bst-sidebar-brand {
  height: 58px;
  margin-bottom: 0;
}
.bst-sidebar-brand .bst-logo {
  width: 232px !important;
  max-width: 100%;
  height: 55px;
  max-height: 55px;
  object-fit: cover;
  object-position: left center;
}
.bst-auth-brand img {
  width: 236px !important;
  height: 56px;
  max-height: 56px;
  object-fit: cover;
}
.bst-auth-mobile-brand img {
  width: 224px !important;
  height: 53px;
  max-height: 53px;
  object-fit: cover;
}
.bst-public-bar img {
  width: 232px !important;
  height: 55px;
  max-height: 55px;
  object-fit: cover;
}

.gbai-brand-image {
  width: 238px;
  max-width: 100%;
  height: 57px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
}
.bst-sidebar-brand .gbai-brand-image { width: 232px !important; height: 55px; max-height: 55px; }
.bst-auth-brand .gbai-brand-image { width: 236px !important; height: 56px; max-height: 56px; }
.bst-auth-mobile-brand .gbai-brand-image { width: 224px !important; height: 53px; max-height: 53px; }
.bst-public-bar .gbai-brand-image { width: 232px !important; height: 55px; max-height: 55px; }

/* The wordmark replaces the old blue AI Studio banner. */
.bst-agent-card { display: none !important; }

/* Missing or broken product artwork falls back to the website wordmark. */
.bst-tool-media .bst-tool-default-logo {
  width: min(86%, 230px) !important;
  height: 55px !important;
  max-height: 68px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  filter: none;
}

/* Canva/tool action: keep the external-link arrow exactly centered in its button. */
.bst-tool-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 12px;
}
.bst-tool-arrow,
.bst-tool-copy .bst-tool-arrow {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center;
  align-self: center;
  line-height: 0 !important;
}
.bst-tool-arrow svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
  margin: 0;
  transform: none !important;
}

/* E-mail preferences: compact landscape footer row on desktop. */
.bst-widget.is-email-preferences {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  align-items: center;
}
.bst-widget.is-email-preferences .bst-widget-head {
  padding: 22px 12px 22px 28px !important;
}
.bst-widget.is-email-preferences .bst-widget-body {
  padding: 14px 28px 14px 12px !important;
}
.bst-widget.is-email-preferences .am-row,
.bst-widget.is-email-preferences .am-form-row,
.bst-widget.is-email-preferences .form-group {
  min-height: 52px;
  padding: 10px 16px !important;
}

@media (max-width: 720px) {
  .bst-sidebar-brand .bst-logo { width: 220px !important; }
  .bst-widget.is-email-preferences { grid-template-columns: 1fr; }
  .bst-widget.is-email-preferences .bst-widget-head { padding: 20px 20px 7px !important; }
  .bst-widget.is-email-preferences .bst-widget-body { padding: 0 20px 20px !important; }
}

/* Groupbuyaitools brand */
.gbai-simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.55px;
  white-space: nowrap;
}
.gbai-simple-brand i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  background: linear-gradient(135deg, #3d7cff, #7758f6 56%, #a74ef2);
  box-shadow: 0 9px 24px rgba(83, 89, 238, .3);
}
.gbai-simple-brand b { color: #4f7cff; font-weight: 800; }
.bst-auth-brand,
.bst-auth-mobile-brand,
.bst-public-bar > a:first-child { text-decoration: none !important; }
.bst-auth-showcase .gbai-simple-brand b { color: #9cb7ff; }

/* Member AI Studio launcher */
.gbai-studio-launch {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(410px, 1.2fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 22px;
  padding: 26px;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 10%, rgba(164, 110, 255, .34), transparent 36%),
    radial-gradient(circle at 24% 120%, rgba(51, 152, 255, .28), transparent 42%),
    linear-gradient(128deg, #17235d 0%, #203783 48%, #4c2a86 100%);
  box-shadow: 0 18px 46px rgba(24, 46, 115, .2);
  overflow: hidden;
}
.gbai-launch-copy { align-self: center; }
.gbai-launch-copy > span,
.gbai-studio-head > div > span {
  display: block;
  margin-bottom: 8px;
  color: #a9c7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.gbai-launch-copy h2,
.gbai-studio-head h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -.75px;
  line-height: 1.15;
}
.gbai-launch-copy p,
.gbai-studio-head p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .69);
  font-size: 13px;
  line-height: 1.65;
}
.gbai-launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gbai-launch-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 17px;
  color: #fff !important;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.gbai-launch-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.gbai-launch-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
}
.gbai-launch-card i svg { width: 21px; height: 21px; stroke-width: 1.8; }
.gbai-launch-card strong,
.gbai-launch-card small { display: block; }
.gbai-launch-card strong { margin-bottom: 5px; font-size: 14px; }
.gbai-launch-card small { color: rgba(255, 255, 255, .65); font-size: 11px; line-height: 1.45; }
.gbai-launch-card > b {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #d9e5ff;
  background: rgba(6, 13, 45, .28);
  font-size: 9px;
  letter-spacing: .25px;
}

/* Embedded chat and image generator */
.gbai-ai-studio {
  margin: 0 0 22px;
  border: 1px solid #e5eaf4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 44px rgba(30, 47, 87, .08);
  overflow: hidden;
}
.bst-ai-page .bst-main-inner { max-width: 1240px; }
.gbai-single-studio { min-height: calc(100vh - 190px); margin-bottom: 0; }
.gbai-single-studio.is-chat .gbai-studio-head {
  background:
    radial-gradient(circle at 86% 8%, rgba(57, 189, 255, .26), transparent 42%),
    linear-gradient(120deg, #11235a, #2459ad);
}
.gbai-single-studio.is-image .gbai-studio-head {
  background:
    radial-gradient(circle at 86% 8%, rgba(231, 111, 255, .3), transparent 42%),
    linear-gradient(120deg, #251354, #653a9f);
}
.gbai-single-studio .gbai-studio-panel { min-height: 460px; }
.gbai-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 28px 23px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 5%, rgba(124, 91, 245, .32), transparent 45%),
    linear-gradient(120deg, #172052, #243e89);
}
.gbai-studio-head > div > span { margin-bottom: 7px; }
.gbai-studio-head h2 { font-size: 24px; }
.gbai-studio-head p { max-width: 650px; }
.gbai-balance {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  text-align: right;
  background: rgba(255, 255, 255, .1);
}
.gbai-balance small { display: block; margin-bottom: 2px; color: #b9c9ef; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.gbai-balance strong { font-size: 25px; letter-spacing: -.8px; }
.gbai-balance strong::after { content: " tokens"; color: #aebfe9; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.gbai-studio-tabs {
  display: flex;
  gap: 5px;
  padding: 10px 28px 0;
  border-bottom: 1px solid #e8edf5;
  background: #fbfcff;
}
.gbai-studio-tabs button {
  appearance: none;
  position: relative;
  padding: 12px 16px 14px;
  border: 0;
  color: #6a7590;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.gbai-studio-tabs button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.gbai-studio-tabs button.is-active { color: #315fe6; }
.gbai-studio-tabs button.is-active::after { background: #416ff2; }
.gbai-studio-panel { min-height: 388px; padding: 26px 28px 28px; }
.gbai-studio-panel[hidden] { display: none !important; }

.gbai-chat-stream {
  height: 235px;
  margin-bottom: 17px;
  padding: 3px 4px 3px 0;
  overflow: auto;
  scroll-behavior: smooth;
}
.gbai-message { display: flex; gap: 11px; max-width: 82%; margin-bottom: 15px; }
.gbai-message.is-user { flex-direction: row-reverse; margin-left: auto; }
.gbai-message > i {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3f7af2, #7959e9);
  font-size: 12px;
  font-style: normal;
}
.gbai-message.is-user > i { background: #1c2946; }
.gbai-message > div { padding: 11px 14px; border: 1px solid #e7ebf3; border-radius: 4px 14px 14px; background: #f7f9fd; }
.gbai-message.is-user > div { border-color: #dbe4ff; border-radius: 14px 4px 14px 14px; background: #eef3ff; }
.gbai-message small { display: block; margin-bottom: 4px; color: #4b5b7b; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.gbai-message p { margin: 0; color: #293550; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.gbai-chat-form { padding: 13px; border: 1px solid #dfe5ef; border-radius: 15px; background: #fbfcff; }
.gbai-chat-form textarea,
.gbai-image-form textarea,
.gbai-image-form select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #24304a;
  background: transparent;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.gbai-chat-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #edf0f5; }
.gbai-chat-form > div span { color: #8490a7; font-size: 10px; }
.gbai-chat-form button,
.gbai-image-form > button,
.gbai-alert a {
  appearance: none;
  border: 0;
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, #356ff1, #6257e9);
  box-shadow: 0 7px 17px rgba(65, 97, 222, .22);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
}
.gbai-chat-form button { padding: 10px 15px; }
.gbai-chat-form button:disabled,
.gbai-image-form > button:disabled { opacity: .58; cursor: wait; }

.gbai-studio-panel[data-gbai-panel="image"] { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(320px, 1.28fr); gap: 25px; }
.gbai-image-form { display: grid; align-content: start; gap: 14px; }
.gbai-image-form label > span { display: block; margin-bottom: 7px; color: #495672; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .45px; }
.gbai-image-form textarea,
.gbai-image-form select { padding: 11px 12px; border: 1px solid #dfe5ef; border-radius: 11px; background: #fbfcff; }
.gbai-image-form textarea:focus,
.gbai-image-form select:focus { border-color: #7b9af4; box-shadow: 0 0 0 3px rgba(65, 111, 242, .09); }
.gbai-image-form > button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; }
.gbai-image-form > button small { padding: 3px 6px; border-radius: 999px; color: #d9e3ff; background: rgba(255, 255, 255, .14); font-size: 8px; }
.gbai-image-result {
  min-height: 310px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px dashed #ced8e9;
  border-radius: 16px;
  text-align: center;
  background:
    linear-gradient(45deg, rgba(232, 237, 247, .45) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(232, 237, 247, .45) 25%, transparent 25%),
    #f8faff;
  background-size: 18px 18px;
}
.gbai-image-result i { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 15px; color: #5f79bd; background: #e9effd; }
.gbai-image-result i svg { width: 23px; }
.gbai-image-result strong { color: #364360; font-size: 13px; }
.gbai-image-result p { max-width: 260px; margin: 7px 0 0; color: #8c97aa; font-size: 11px; line-height: 1.55; }
.gbai-image-result img { width: 100%; max-height: 510px; border-radius: 12px; object-fit: contain; box-shadow: 0 12px 35px rgba(26, 45, 86, .15); }
.gbai-demo-image {
  position: relative;
  width: min(100%, 510px);
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 14px;
  color: #fff;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 27%, rgba(255, 206, 156, .9), transparent 15%),
    radial-gradient(circle at 70% 36%, rgba(133, 116, 255, .82), transparent 28%),
    radial-gradient(circle at 63% 85%, rgba(48, 181, 214, .72), transparent 30%),
    linear-gradient(145deg, #1d2b62, #8c4f99 54%, #e49872);
  box-shadow: 0 18px 40px rgba(44, 54, 108, .22);
}
.gbai-demo-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(7, 13, 38, .7));
}
.gbai-demo-image > * { position: relative; z-index: 1; }
.gbai-demo-image strong { color: #fff; font-size: 19px; letter-spacing: -.35px; }
.gbai-demo-image p { max-width: 420px; margin: 6px 0 11px; color: rgba(255, 255, 255, .8); font-size: 11px; }
.gbai-demo-image small { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #dce6ff; background: rgba(9, 17, 51, .28); font-size: 8px; }
.gbai-alert { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f1d39b; border-radius: 10px; color: #775017; background: #fff8e9; font-size: 11px; line-height: 1.5; }
.gbai-alert[hidden] { display: none !important; }
.gbai-alert a { display: inline-flex; margin-left: 7px; padding: 5px 9px; box-shadow: none; }

@media (max-width: 980px) {
  .gbai-studio-launch { grid-template-columns: 1fr; }
  .gbai-studio-panel[data-gbai-panel="image"] { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gbai-studio-launch { padding: 21px; border-radius: 18px; }
  .gbai-launch-grid { grid-template-columns: 1fr; }
  .gbai-studio-head { align-items: flex-start; padding: 22px 20px; }
  .gbai-balance { min-width: 98px; padding: 10px 12px; }
  .gbai-studio-tabs { padding-right: 14px; padding-left: 14px; }
  .gbai-studio-panel { min-height: 350px; padding: 21px 18px 23px; }
  .gbai-message { max-width: 94%; }
  .gbai-chat-form > div { align-items: flex-end; }
  .gbai-studio-panel[data-gbai-panel="image"] { gap: 18px; }
  .gbai-image-result { min-height: 250px; }
}
