/**
 * Shared CraftBelt site chrome — used on Safety / Utilities / Profile / PassPort
 * so the whole product feels like one V3 site with Premium Home.
 *
 * Brand assets (official marketing only — never invent SVG marks):
 *   /craftbelt/assets/CraftBelt_transparent.png    — full transparent badge (preferred in chrome)
 *   /craftbelt/assets/craftbelt_app_icon_1024.png  — square app icon only when a tile is required
 */

/**
 * CRAFTBELT PASSPORT™ heading — white → warm fade on CRAFTBELT, solid orange PASSPORT™.
 * Prefer this text treatment over any invented logo mark beside PassPort screens.
 */
.cb-pass-heading {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

.cb-pass-heading__brand {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 48%,
    #f6d3a8 72%,
    #e8a060 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cb-pass-heading__product {
  color: #e86f24;
  -webkit-text-fill-color: #e86f24;
}

/* Larger PassPort / marketing lockups */
.cb-pass-heading--lg {
  font-size: 22px;
  letter-spacing: 0.6px;
  gap: 0.4em;
}

.cb-pass-heading--xl {
  font-size: 28px;
  letter-spacing: 0.7px;
}

.cb-site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  box-sizing: border-box;
  padding:
    calc(8px + env(safe-area-inset-top, 0px))
    14px
    10px;
  border-bottom: 1px solid rgba(196, 165, 116, 0.18);
  background: linear-gradient(180deg, rgba(28, 20, 15, 0.99), rgba(16, 12, 10, 0.97));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f7f1e8;
  font-family: Outfit, system-ui, sans-serif;
}

.cb-site-chrome__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cb-site-chrome__brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #f7f1e8;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cb-site-chrome__brand img {
  width: auto;
  height: 56px;
  max-width: min(160px, 42vw);
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.cb-site-chrome__accent {
  color: #e86f24;
}

.cb-site-chrome__connected {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 160px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(196, 165, 116, 0.18);
  background: rgba(10, 8, 6, 0.45);
}

.cb-site-chrome__connected .cb-connected__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.cb-site-chrome__connected .cb-connected__label {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4a574;
}

.cb-site-chrome__connected .cb-connected__name {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #f7f1e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-site-chrome__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.cb-site-chrome__home {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(232, 111, 36, 0.35);
  background: rgba(232, 111, 36, 0.12);
  color: #fdba74;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cb-site-chrome__role {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #9a8776;
}

/* When Hub-authed, hide solo onboarding / mock SMS / legacy bottom bars */
html[data-cb-hub='1'] #onboardingPanel,
html[data-cb-hub='1'] #initialLanguageSelectOverlay,
html[data-cb-hub='1'] #mockSmsNotification,
html[data-cb-hub='1'] #appNavbar,
html[data-cb-hub='1'] .bottom-navbar,
html[data-cb-hub='1'] .pc-bottom-bar {
  display: none !important;
}

html[data-cb-hub='1'] .statusbar,
html[data-cb-hub='1'] .smartphone-notch {
  display: none !important;
}

/* Hub certs strip on Safety */
.cb-hub-certs {
  margin: 12px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 160, 0.16);
  background:
    linear-gradient(145deg, rgba(232, 111, 36, 0.1), transparent 55%),
    rgba(26, 21, 18, 0.72);
}

.cb-hub-certs__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fdba74;
}

.cb-hub-certs__list {
  margin: 0;
  padding-left: 18px;
  color: #f7f1e8;
  font-size: 12px;
  line-height: 1.45;
}

.cb-hub-certs__empty {
  font-size: 12px;
  color: #9a8776;
}

/* Premium menu (injected) — full screen on phone */
.cb-premium-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 2, 1, 0.62);
}

.cb-premium-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(14px + env(safe-area-inset-top, 0px))
    14px
    calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #1c1511 0%, #100d0b 100%);
  color: #f7f1e8;
  font-family: Outfit, system-ui, sans-serif;
  box-sizing: border-box;
}

html[data-cb-ui='tablet'] .cb-premium-menu,
html[data-cb-ui='desktop'] .cb-premium-menu {
  left: auto;
  width: min(420px, 100vw);
  border-left: 1px solid rgba(196, 165, 116, 0.2);
}

.cb-premium-backdrop[hidden],
.cb-premium-menu[hidden] {
  display: none !important;
}

.cb-premium-menu__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 196, 160, 0.12);
}

.cb-premium-menu__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #fdba74;
}

.cb-premium-menu__sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: #9a8776;
}

.cb-premium-menu__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(232, 196, 160, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #9a8776;
  font-size: 22px;
  cursor: pointer;
}

.cb-premium-menu__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: auto;
}

.cb-premium-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 196, 160, 0.12);
  background: rgba(26, 21, 18, 0.72);
  color: inherit;
  text-decoration: none;
}

.cb-premium-menu__item[aria-current='page'] {
  border-color: rgba(232, 111, 36, 0.45);
  background: rgba(232, 111, 36, 0.12);
}

.cb-premium-menu__n {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(232, 111, 36, 0.18);
  color: #fdba74;
  font-size: 10px;
  font-weight: 900;
}

.cb-premium-menu__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.cb-premium-menu__hint {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #9a8776;
}

.cb-premium-menu__chev {
  margin-left: auto;
  color: #fdba74;
  font-size: 18px;
}

.cb-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 196, 160, 0.24);
  background: rgba(232, 111, 36, 0.16);
  color: #fdba74;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.cb-menu-btn__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.cb-menu-btn__bars i {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

html.cb-premium-open {
  overflow: hidden;
}
