/* ═══════════════════════════════════════════════════════════════
   NowssB Social Design System
   Overrides app/app.css Instagram-style rules.
   All !important required to beat: global *{border-radius:0!important}
   and any inline styles set by SS.open().
   Colors: #060c18 navy · #e8d5a3 gold · #c8e8f5 blue
═══════════════════════════════════════════════════════════════ */

/* ── BASE backgrounds ── */
.ig,
#sub-people,
#sub-ig-profile,
#sub-social-home {
  background: #060c18 !important;
}

/* Subtle ambient glow over the navy bg */
#sub-people::before,
#sub-ig-profile::before,
#sub-social-home::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 35% at 15% 8%, rgba(232,213,163,.05) 0%, transparent 60%),
    radial-gradient(ellipse 55% 30% at 85% 88%, rgba(200,232,245,.04) 0%, transparent 55%);
}

/* ── TOP BAR ── */
.ig-topbar {
  background: rgba(6,12,24,.97) !important;
  border-bottom: 1px solid rgba(232,213,163,.08) !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.ig-topbar .ig-username {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #e8d5a3 !important;
}

/* ── SEARCH ── */
.ig-searchwrap {
  background: #060c18 !important;
}

.ig-searchbar {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 20px !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  color: rgba(255,255,255,.55) !important;
}

.ig-searchbar input::placeholder {
  color: rgba(255,255,255,.28) !important;
}

/* ── EXPLORE GRID — rounded tiles, bigger gap ── */
.ig-tile {
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.04) !important;
}

.ig-explore {
  gap: 5px !important;
  padding: 5px !important;
}

/* ── USER ROWS — glass cards ── */
.ig-userrow {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 16px !important;
  margin: 4px 12px !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding: 12px 14px !important;
}

.ig-userrow .ig-u {
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
}

.ig-userrow .ig-n {
  color: rgba(255,255,255,.42) !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ── AVATAR RING — gold → blue headphone gradient ── */
.ig-prof-avatar-ring {
  background: linear-gradient(135deg, #e8d5a3, #c8e8f5) !important;
  padding: 3px !important;
  box-shadow:
    0 0 18px rgba(232,213,163,.22),
    0 0 36px rgba(200,232,245,.1) !important;
}

.ig-prof-avatar-ring img,
.ig-prof-avatar-ring .ig-av-fallback {
  border: 3px solid #060c18 !important;
}

/* ── SMALL AVATARS in user rows ── */
.ig-userrow .ig-av {
  border-radius: 50% !important;
  border: 2px solid rgba(232,213,163,.25) !important;
}

/* ── FOLLOW BUTTON ── */
.ig-mini-follow {
  background: linear-gradient(135deg, #e8d5a3, #c4a35a) !important;
  color: #060c18 !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
  border: none !important;
}

.ig-mini-follow.following {
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.65) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

/* ── PROFILE ACTION BUTTONS ── */
.ig-btn {
  border-radius: 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
}

.ig-btn.primary {
  background: linear-gradient(135deg, #e8d5a3, #c4a35a) !important;
  color: #060c18 !important;
  border: none !important;
}

.ig-btn.primary.following {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.65) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}

.ig-btn.gray {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}

.ig-btn.icon {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}

/* ── PROFILE PAGE ── */
/* Placeholder gradient ONLY when no banner image is set — the !important here
   was clobbering the inline background-image (uploaded/prebuilt banner). */
.ig-prof-banner:not([style*="url"]) {
  background: linear-gradient(160deg, #0d1a3a 0%, #1a0a2e 55%, #060c18 100%) !important;
}

.ig-prof-top {
  background: #060c18 !important;
}

.ig-prof-name {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-size: 16px !important;
}

.ig-prof-cat {
  color: rgba(232,213,163,.65) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
}

.ig-stat .n {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 800 !important;
  color: #e8d5a3 !important;
}

.ig-stat .l {
  color: rgba(255,255,255,.42) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .3px !important;
}

/* ── PROFILE TABS ── */
.ig-tabs {
  background: #060c18 !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}

.ig-tab {
  color: rgba(255,255,255,.3) !important;
  border-bottom: 2px solid transparent !important;
}

.ig-tab.active {
  color: #e8d5a3 !important;
  border-bottom-color: #e8d5a3 !important;
}

/* ── PROFILE GRID — rounded tiles ── */
.ig-grid {
  gap: 4px !important;
  padding: 4px !important;
}

.ig-grid .ig-tile {
  border-radius: 12px !important;
}

/* ── HIGHLIGHTS ── */
.ig-hl-circle {
  border: 2px solid rgba(232,213,163,.28) !important;
  background: rgba(255,255,255,.04) !important;
  border-radius: 50% !important;
}

.ig-hl-label {
  font-family: 'DM Sans', sans-serif !important;
  color: rgba(255,255,255,.55) !important;
  font-size: 11px !important;
}

/* ── SOCIAL BOTTOM NAV ── */
#ig-social-nav {
  background: rgba(6,12,24,.97) !important;
  border-top: 1px solid rgba(232,213,163,.08) !important;
}

.ig-social-btn span {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .6px !important;
  text-transform: uppercase !important;
}

/* ── VERIFIED BADGE (replaced with headphone SVG in JS) ── */
.nwsb-badge-hp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.nwsb-badge-tier    { color: #c8e8f5; }
.nwsb-badge-ult     { color: #e8d5a3; filter: drop-shadow(0 0 4px rgba(232,213,163,.55)); }
.nwsb-badge-massive { color: #e8d5a3; filter: drop-shadow(0 0 8px rgba(232,213,163,.8)) drop-shadow(0 0 14px rgba(232,213,163,.4)); }

/* ── SOCIAL HOME SCREEN ── */
#sub-social-home {
  position: absolute !important;
  inset: 0 !important;
}

.nwsb-home-scroll {
  position: absolute;
  inset: 0;
  top: 48px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 16px);
}
.nwsb-home-scroll::-webkit-scrollbar { display: none; }

/* Hero glass cube */
.nwsb-hero {
  margin: 14px 14px 0;
  border-radius: 22px !important;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,213,163,.14);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Evolution / origin imagery banner inside the cube */
.nwsb-hero-img {
  position: relative;
  height: 196px;
  background:
    linear-gradient(to bottom, rgba(6,12,24,0) 0%, rgba(6,12,24,.04) 78%, rgba(6,12,24,.12) 100%),
    url('assets/media/image/8fd717970e58ea295a9f9024bdf84dc5a4cb9c840d79aabf-4eedcce3.webp') center / cover no-repeat;
}

.nwsb-hero-body {
  position: relative;
  padding: 18px 20px 18px;
  margin-top: 0;
}

.nwsb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(232,213,163,.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.nwsb-hero-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e8d5a3;
  margin: 0;
  padding: 5px 11px;
  border-radius: 20px !important;
  background: rgba(6,12,24,.55);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  border: 1px solid rgba(232,213,163,.3);
}

.nwsb-hero-title {
  position: relative;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.nwsb-hero-sub {
  position: relative;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
  margin-bottom: 16px;
}

.nwsb-hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 14px;
}

.nwsb-hero-stat {
  flex: 1;
  text-align: center;
  padding: 12px 4px 14px;
  border-right: 1px solid rgba(255,255,255,.07);
}

.nwsb-hero-stat:last-child {
  border-right: none;
}

.nwsb-hero-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #e8d5a3;
  display: block;
}

.nwsb-hero-stat-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-top: 5px;
}

/* Section headings */
.nwsb-section-hd {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: 18px 14px 8px;
}

/* People strip on social home */
.nwsb-home-people {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 8px;
}

/* Placeholder reels strip */
.nwsb-reels-strip {
  display: flex;
  gap: 10px;
  padding: 0 14px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nwsb-reels-strip::-webkit-scrollbar { display: none; }

.nwsb-reel-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 160px;
  border-radius: 16px !important;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.nwsb-reel-thumb-word {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  padding: 8px 8px 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  position: relative;
  z-index: 2;
}

.nwsb-reel-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,24,.85) 0%, transparent 55%);
}

/* ═══════════════════════════════════════════
   REELS FEED — Phase 2
═══════════════════════════════════════════ */

/* Reels feed sub-screen */
#sub-reels-feed {
  background: #060c18 !important;
}

.nwsb-reels-feed-scroll {
  position: absolute;
  inset: 0;
  top: 48px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px calc(72px + env(safe-area-inset-bottom, 0px));
}
.nwsb-reels-feed-scroll::-webkit-scrollbar { display: none; }

/* Vertical reel card */
.nwsb-reel-card {
  position: relative;
  border-radius: 20px !important;
  overflow: hidden;
  min-height: 340px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.nwsb-reel-card-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Gradient overlay for readability */
.nwsb-reel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,12,24,.96) 0%,
    rgba(6,12,24,.55) 40%,
    rgba(6,12,24,.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

.nwsb-reel-card-body {
  position: relative;
  z-index: 2;
  padding: 18px 18px 18px;
}

.nwsb-reel-word {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  line-height: 1.05;
}

.nwsb-reel-syllables {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(232,213,163,.75);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.nwsb-reel-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.nwsb-reel-score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(232,213,163,.12);
  border: 1px solid rgba(232,213,163,.28);
  border-radius: 20px !important;
  padding: 5px 14px;
}

.nwsb-reel-score-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #e8d5a3;
  line-height: 1;
}

.nwsb-reel-score-suffix {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(232,213,163,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nwsb-reel-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.nwsb-reel-av {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 2px solid rgba(232,213,163,.35);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
}

.nwsb-reel-av-init {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 2px solid rgba(232,213,163,.35);
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #e8d5a3;
}

.nwsb-reel-username {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

/* Post as Reel button — injected into player score wrap */
.nwsb-post-reel-btn {
  margin-top: 12px;
  width: 100%;
  padding: 11px 20px;
  border-radius: 14px !important;
  border: 1px solid rgba(232,213,163,.28);
  background: rgba(232,213,163,.1);
  color: #e8d5a3;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, opacity .15s;
}

.nwsb-post-reel-btn:active {
  opacity: .8;
}

.nwsb-post-reel-btn:disabled {
  opacity: .4;
  cursor: default;
}

/* Empty state in reels feed */
.nwsb-reels-empty {
  text-align: center;
  padding: 60px 30px;
}

.nwsb-reels-empty-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
}

.nwsb-reels-empty-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  line-height: 1.55;
}

/* Free-claim button on reel cards */
.nwsb-reel-claim-btn {
  margin-left: auto;
  padding: 6px 16px;
  border-radius: 20px !important;
  border: 1px solid rgba(200,232,245,.35);
  background: rgba(200,232,245,.12);
  color: #c8e8f5;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.nwsb-reel-claim-btn:active { opacity: .8; }
.nwsb-reel-claim-btn.claimed {
  border-color: rgba(232,213,163,.35);
  background: rgba(232,213,163,.12);
  color: #e8d5a3;
}

/* Stats button on profile */
.nwsb-stats-btn { flex: 0 0 auto !important; padding: 0 16px !important; }

/* ═══════════════════════════════════════════
   PHASE 4 — VERIFICATION BADGE STYLES
═══════════════════════════════════════════ */

/* Hide Instagram blue check everywhere in the social section */
.ig .ig-verified,
#sub-people .ig-verified,
#sub-ig-profile .ig-verified {
  display: none !important;
}

/* Headphone badge base */
.nwsb-badge-hp {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 3px;
}

/* Tier badge — blue (paid subscriber) */
.nwsb-badge-tier {
  color: #c8e8f5;
  stroke: #c8e8f5;
}

/* Ultimate badge — gold (50+ words & sentences) */
.nwsb-badge-ult {
  color: #e8d5a3;
  stroke: #e8d5a3;
  filter: drop-shadow(0 0 4px rgba(232,213,163,.5));
}

/* Massive badge — bright gold + glow (1000+) */
.nwsb-badge-massive {
  color: #e8d5a3;
  stroke: #e8d5a3;
  filter: drop-shadow(0 0 8px rgba(232,213,163,.9)) drop-shadow(0 0 18px rgba(232,213,163,.4));
}

/* Profile top-bar verified area */
#ig-prof-verified-top .nwsb-badge-hp {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════
   PHASE 5 — IMAGE-EXPLAINER SLOTS + SOCIAL SETTINGS
═══════════════════════════════════════════ */

/* Image-explainer placeholder grid (user adds their own imagery later) */
.nwsb-explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
}

.nwsb-explainer-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px !important;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 12px, rgba(255,255,255,.04) 12px 24px);
  border: 1px dashed rgba(232,213,163,.2);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Slot with a real image — show it cover, dark gradient at the bottom for the label */
.nwsb-explainer-slot.has-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
}
.nwsb-explainer-slot.has-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,24,.82) 0%, rgba(6,12,24,.25) 36%, transparent 60%);
  pointer-events: none;
}

.nwsb-explainer-slot span {
  position: relative;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e8d5a3;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  padding: 10px 12px;
}

/* Social settings sheet (self-contained, separate from app Settings) */
#nwsb-social-settings {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0,0,0,.65);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  display: none;
  align-items: flex-end;
}
#nwsb-social-settings.open { display: flex; }

.nwsb-ss-panel {
  width: 100%;
  background: #0a1628;
  border-radius: 22px 22px 0 0;
  border-top: 1.5px solid rgba(232,213,163,.22);
  padding: 0 0 calc(20px + env(safe-area-inset-bottom,0px));
  font-family: 'DM Sans', sans-serif;
  max-height: 80vh;
  overflow-y: auto;
}

.nwsb-ss-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,.14);
  border-radius: 2px;
  margin: 14px auto 8px;
}

.nwsb-ss-title {
  font-size: 18px;
  font-weight: 800;
  color: #e8d5a3;
  letter-spacing: .5px;
  padding: 8px 22px 4px;
}

.nwsb-ss-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  padding: 0 22px 16px;
}

.nwsb-ss-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.nwsb-ss-row-body { flex: 1; min-width: 0; }
.nwsb-ss-row-label { font-size: 15px; font-weight: 600; color: #fff; }
.nwsb-ss-row-sub   { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }

.nwsb-ss-toggle {
  /* the global [onclick]{min-height:44px} rule (no !important) still composes
     with height via the box model -- min-height wins whenever it's larger,
     stretching this into a near-square. Force both to !important. */
  width: 46px !important; height: 26px !important; min-height: 0 !important;
  border-radius: 13px !important;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  transition: background .2s;
}
.nwsb-ss-toggle.on { background: #e8d5a3; }
.nwsb-ss-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50% !important;
  background: rgba(255,255,255,.55);
  transition: left .2s, background .2s;
}
.nwsb-ss-toggle.on .nwsb-ss-toggle-knob { left: 23px; background: #060c18; }

.nwsb-ss-close {
  margin: 8px 22px 0;
  padding: 14px;
  text-align: center;
  border-radius: 14px !important;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT SCREEN — glassmorphism redesign
   This feature predates the global `*{border-radius:0!important}` reset,
   so every rounded surface here (avatar, bubbles, input pill, send button,
   Rate pill) was silently squared off — none of it carried !important.
   Header is split into two rows: back/title/call/video, then avatar+name.
═══════════════════════════════════════════════════════════════ */
.chat-screen {
  background:
    linear-gradient(180deg, rgba(6,12,24,.90) 0%, rgba(6,12,24,.94) 40%, rgba(6,12,24,.97) 100%),
    url('assets/media/image/b8736b76b90cdd421b4603f101bea1187832ce43f6ff9ed3-c2a2463d.webp') center/cover no-repeat !important;
}

.chat-topbar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: max(env(safe-area-inset-top,16px),16px) 14px 12px !important;
  background: rgba(10,14,26,0.55) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
          backdrop-filter: blur(14px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(255,255,255,0.14) !important;
}
.chat-topbar-row1 { display: flex; align-items: center; gap: 10px; }
.chat-topbar-title {
  flex: 1;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #e8d5a3;
}
.chat-icobtn {
  width: 34px !important; height: 34px !important;
  min-width: 34px !important; min-height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0 !important;
}
.chat-icobtn:active { background: rgba(255,255,255,0.18) !important; }

/* Glassmorphism divider between the header row and the profile picture row */
.chat-topbar-row2 {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.chat-topbar-who { flex: 1; min-width: 0; }

.chat-av {
  border-radius: 50% !important;
  width: 42px !important; height: 42px !important;
  border: 1.5px solid rgba(255,255,255,.2);
}

#chatRateBtn {
  border-radius: 20px !important;
  flex-shrink: 0;
  padding: 6px 14px !important;
  background: rgba(232,213,163,.14) !important;
  border: 1px solid rgba(232,213,163,.4) !important;
  color: #e8d5a3 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
  white-space: nowrap;
  line-height: 1.4;
  cursor: pointer;
}

/* Messages */
.chat-bubble { border-radius: 18px !important; }
.chat-me  { border-radius: 18px 18px 4px 18px !important; }
.chat-them { border-radius: 18px 18px 18px 4px !important; }
.chat-bubble.has-img { background: transparent !important; border: none !important; padding: 3px !important; }
.chat-bubble-img { display: block; width: 190px; max-width: 60vw; border-radius: 14px !important; object-fit: cover; }

.chat-voice-msg { display: flex; align-items: center; gap: 8px; min-width: 140px; color: inherit; }
.chat-voice-msg svg { flex-shrink: 0; }
.chat-voice-wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 20px; }
.chat-voice-wave span { display: block; width: 2.5px; border-radius: 2px !important; background: currentColor; opacity: .55; }
.chat-voice-dur { font-size: 11px; opacity: .7; flex-shrink: 0; }

/* Input bar — frosted glass pill, matches the reference toolbar:
   camera · text field · (mic / gallery / stickers / plus) OR send-when-typing */
.chat-input-bar {
  gap: 8px !important;
  background: rgba(10,14,26,0.6) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
          backdrop-filter: blur(14px) saturate(1.2) !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
}
.chat-input { border-radius: 22px !important; background: rgba(255,255,255,0.07) !important; min-width: 0; }
.chat-send-btn { border-radius: 50% !important; flex-shrink: 0; }

.chat-input-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chat-tool-btn {
  width: 34px !important; height: 34px !important;
  min-width: 34px !important; min-height: 34px !important;
  border-radius: 50% !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.72);
  cursor: pointer; flex-shrink: 0;
}
.chat-tool-btn:active { color: #e8d5a3; }
#chatMicBtn.recording {
  color: #e74c3c;
  animation: chatMicPulse 1s ease-in-out infinite;
}
@keyframes chatMicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.chat-sticker-tray {
  flex-shrink: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px;
  background: rgba(10,14,26,0.6) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
          backdrop-filter: blur(14px) saturate(1.2) !important;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.chat-sticker-item {
  width: 40px !important; height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.chat-sticker-item:active { background: rgba(255,255,255,.14) !important; }

/* ── Voice/video call overlay (simulated) ── */
#chatCallOverlay {
  background: linear-gradient(180deg, rgba(6,10,20,.55) 0%, rgba(6,10,20,.82) 60%, rgba(4,7,15,.95) 100%);
}
.chat-call-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: #0a0e16;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(0.45) saturate(1.1);
  transform: scale(1.15);
}
.chat-call-scrim { position: absolute; inset: 0; background: rgba(6,10,20,.35); }
.chat-call-content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: max(env(safe-area-inset-top,20px),20px) 24px max(env(safe-area-inset-bottom,30px),30px);
}
.chat-call-kind {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(232,213,163,.85);
  margin-top: 15vh;
  margin-bottom: 30px;
}
.chat-call-avwrap {
  position: relative;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.chat-call-av {
  width: 110px !important; height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  position: relative; z-index: 2;
}
.chat-call-pulse {
  position: absolute; inset: 0;
  border-radius: 50% !important;
  border: 1.5px solid rgba(232,213,163,.5);
  animation: chatCallPulse 2.2s ease-out infinite;
}
.chat-call-pulse.d2 { animation-delay: 1.1s; }
@keyframes chatCallPulse {
  0%   { transform: scale(1);    opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}
.chat-call-name { font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.chat-call-status { font-family: 'DM Sans', sans-serif; font-size: 14px; color: rgba(255,255,255,.55); margin-top: 4px; }

.chat-call-actions { display: flex; align-items: center; justify-content: center; gap: 50px; margin-top: auto; }
.chat-call-end, .chat-call-decline, .chat-call-accept {
  width: 62px; height: 62px;
  border-radius: 50% !important;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-call-end, .chat-call-decline { background: #e74c3c; box-shadow: 0 8px 24px rgba(231,76,60,.45); }
.chat-call-accept { background: #2ecc71; box-shadow: 0 8px 24px rgba(46,204,113,.45); }

/* Real video-call streams (only shown once RTC attaches a MediaStream) */
.chat-call-remote-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.chat-call-local-video {
  position: absolute; z-index: 2;
  top: max(env(safe-area-inset-top,20px),20px); right: 16px;
  width: 100px; height: 140px;
  border-radius: 14px !important;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════════════════
   NOWSSB CONNECT — one-time account setup wizard
═══════════════════════════════════════════════════════════════ */
#nwsbConnectSetup { font-family: 'DM Sans', sans-serif; }
.nwsbcs-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }

.nwsbcs-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }

/* Stage 1 — intro */
.nwsbcs-hero-img {
  height: 42vh; min-height: 260px; max-height: 380px;
  background-size: cover; background-position: center;
  border-radius: 0 0 28px 28px !important;
  position: relative;
}
.nwsbcs-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,12,24,0) 55%, rgba(6,12,24,.92) 100%);
  border-radius: 0 0 28px 28px !important;
}
.nwsbcs-brand-row { display: flex; align-items: center; gap: 8px; padding: 22px 24px 4px; }
.nwsbcs-brand-logo { width: 22px; height: 22px; border-radius: 50% !important; object-fit: cover; }
.nwsbcs-brand-name { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.nwsbcs-title { font-size: 25px; font-weight: 800; color: #fff; line-height: 1.28; padding: 8px 24px 22px; }
.nwsbcs-feature { display: flex; align-items: flex-start; gap: 14px; padding: 12px 24px; }
.nwsbcs-feature-ico {
  width: 34px; height: 34px; border-radius: 50% !important; flex-shrink: 0;
  background: rgba(232,213,163,.12); border: 1px solid rgba(232,213,163,.3);
  display: flex; align-items: center; justify-content: center;
}
.nwsbcs-feature-txt { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.4; padding-top: 6px; }
.nwsbcs-fine { font-size: 11px; color: rgba(255,255,255,.35); padding: 20px 24px 6px; line-height: 1.55; }

.nwsbcs-cta {
  margin: 14px 20px max(env(safe-area-inset-bottom,16px),16px);
  padding: 15px; border: none; border-radius: 26px !important;
  background: linear-gradient(135deg,#e8d5a3,#c8a96e);
  color: #060c18; font-size: 15px; font-weight: 800;
  font-family: 'DM Sans', sans-serif; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(200,169,110,.3);
}

/* Stage 2 — profile setup */
.nwsbcs-top {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: max(env(safe-area-inset-top,16px),16px) 16px 12px;
}
.nwsbcs-back {
  width: 34px !important; height: 34px !important;
  min-width: 34px !important; min-height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0 !important;
}
.nwsbcs-top-title { flex: 1; text-align: center; font-size: 15px; font-weight: 800; color: #fff; }

.nwsbcs-avatar-wrap { width: 88px; height: 88px; margin: 8px auto 22px; position: relative; cursor: pointer; }
.nwsbcs-avatar {
  width: 100%; height: 100%; border-radius: 50% !important;
  background: linear-gradient(135deg,rgba(232,213,163,.16),rgba(200,232,245,.1));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.2);
}
.nwsbcs-avatar-cam {
  position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; border-radius: 50% !important;
  background: #e8d5a3; display: flex; align-items: center; justify-content: center;
  border: 2px solid #060c18;
}

.nwsbcs-field { padding: 0 22px 20px; }
.nwsbcs-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 9px; }
.nwsbcs-optional { text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.25); }
.nwsbcs-input {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px !important; padding: 13px 14px; color: #fff; font-size: 14px;
  font-family: 'DM Sans', sans-serif; outline: none; resize: none; box-sizing: border-box;
}
.nwsbcs-input::placeholder { color: rgba(255,255,255,.3); }

.nwsbcs-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.nwsbcs-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 20px !important;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600; cursor: pointer;
  text-align: center; line-height: 1.3;
}
.nwsbcs-chip.selected { background: rgba(232,213,163,.16); border-color: rgba(232,213,163,.5); color: #e8d5a3; }

.nwsbcs-themerow { display: flex; gap: 12px; }

.nwsbcs-banner {
  height: 110px; border-radius: 16px !important;
  background-color: rgba(255,255,255,.06);
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; overflow: hidden;
}
.nwsbcs-banner span {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); font-family: 'DM Sans', sans-serif;
}

/* ── Shared theme-option image card — Connect setup wizard, Connect Hub
   "Connect Theme" settings, and Edit Profile's "Profile Theme" row all use
   this same real-screenshot preview instead of a plain text pill.
   Plain glassmorphism frame only — no neumorphic fill/shadow behind the
   image, and the full 1:1 source image shown uncropped (contain, not
   cover), never letterboxed against an added background. ── */
.nwsb-theme-opt {
  flex: 1; min-width: 0; cursor: pointer;
  border-radius: 18px !important; padding: 14px 10px 10px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: transparent;
  margin: 0; font-family: 'DM Sans', sans-serif;
  box-shadow: none;
  display: flex; flex-direction: column; align-items: center;
}
.nwsb-theme-opt.active { border-color: #e8d5a3; }
.nwsb-theme-opt-img {
  width: 78%; aspect-ratio: 1 / 1;
  border-radius: 12px !important;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  background-color: transparent;
  /* mix-blend-mode:multiply used to live here as a fallback for stripping
     white corners — but multiply against this screen's dark/black
     background multiplies every color toward black too, making the whole
     preview invisible. The real corner-stripping (nwsbStripCornerBg in
     nowssb-social.js, canvas alpha removal) is the only mechanism needed;
     it works the same regardless of what's behind it. */
  margin-bottom: 8px; box-shadow: none;
}
.nwsb-theme-opt-label { font-size: 12.5px; font-weight: 700; color: #fff; text-align: center; }

/* Edit Profile's panel is always a light neumorphic surface — flip the
   glass frame + label to their light equivalents there. */
#ss-panel-profile-edit .nwsb-theme-opt { border-color: rgba(0,0,0,.1); background: rgba(0,0,0,.03); }
#ss-panel-profile-edit .nwsb-theme-opt-label { color: #1a1a2e; }
#ss-panel-profile-edit .nwsb-theme-opt.active { border-color: #c8a96e; background: rgba(200,169,110,.1); }

/* Stage 3 — welcome / complete — dark navy-to-black gradient, same
   cinematic "intro" mood as the Player Guide (part054.js/.pwg-screen). */
.nwsbcs-stage-welcome {
  background: linear-gradient(180deg, #1c2c5e 0%, #101a3c 32%, #060c18 68%, #000 100%);
}
.nwsbcs-welcome-eyebrow-wrap {
  position: absolute; top: max(env(safe-area-inset-top,16px),16px); left: 20px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.nwsbcs-welcome-eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.nwsbcs-welcome-eyebrow-sub {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.78);
}
/* Divider line on the left of the customize icon, matching the header's
   logo-divider-title treatment used elsewhere on this screen. A plain
   sibling (not a ::before on the button) since .ms-bg-customize-btn has
   overflow:hidden and would clip anything positioned outside its own box. */
.nwsbcs-welcome-customize-wrap { display: flex; align-items: center; gap: 13px; }
.nwsbcs-welcome-customize-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
/* Logo + divider + big bold wordmark — sits directly above the checkmark,
   as part of the same centered group (not pinned separately at the top). */
.nwsbcs-welcome-header {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 4px;
}
.nwsbcs-welcome-header-logo { width: 68px; height: 68px; border-radius: 50% !important; object-fit: cover; flex-shrink: 0; }
.nwsbcs-welcome-header-divider { width: 1px; height: 42px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.nwsbcs-welcome-header-title { font-family: 'DM Sans', sans-serif; font-size: 26px; font-weight: 800; color: #fff; }

/* Header + checkmark + "You're all set!" sit together, centered, middle. */
.nwsbcs-welcome-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.nwsbcs-welcome-check-wrap { position: relative; width: 52px; height: 52px; }
.nwsbcs-welcome-check-ring, .nwsbcs-welcome-check-ring::before {
  position: absolute; inset: 0; border-radius: 50% !important;
  border: 2px solid rgba(232,213,163,0.55);
  animation: nwsbcsCheckPulse 1.8s ease-out infinite;
}
.nwsbcs-welcome-check-ring::before { content: ''; animation-delay: 0.6s; }
@keyframes nwsbcsCheckPulse {
  0%   { transform: scale(1);    opacity: 0.9; }
  100% { transform: scale(1.9);  opacity: 0; }
}
.nwsbcs-welcome-check {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50% !important;
  background: linear-gradient(135deg,#e8d5a3,#c8a96e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(200,169,110,.35);
}
.nwsbcs-welcome-title { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.15; }

/* Bottom block — "Welcome to NowssB Connect" then the person's name,
   bigger and bolder than the line above it. */
.nwsbcs-welcome-bottom { flex-shrink: 0; text-align: left; padding: 0 28px 4px; }
.nwsbcs-welcome-sub { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.65); margin-bottom: 2px; }
.nwsbcs-welcome-name { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.15; }

/* Footer — circular back button (left) + pill CTA (right), matching the
   Motorola reference's bottom-right nav treatment. */
.nwsbcs-welcome-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0;
  padding: 18px 24px max(env(safe-area-inset-bottom,20px),20px);
}
.nwsbcs-welcome-back {
  width: 52px; height: 52px; box-sizing: border-box; border-radius: 50% !important;
  background: transparent; border: 1.5px solid #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
/* .ncb-carousel's shared box-shadow is a light-mode neumorphic shadow
   (white highlight + soft grey) meant for Normal Home's light background —
   shows as a wrong white glow here since the welcome page is dark. */
#ncbCarouselWelcome { box-shadow: 0 14px 32px rgba(0,0,0,0.4) !important; }
.nwsbcs-welcome-cta { position: relative; width: auto; margin: 0; padding: 14px 16px 14px 30px; display: flex; align-items: center; gap: 10px; }
.nwsbcs-welcome-cta::before {
  content: ''; position: absolute; left: -13px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; background: rgba(255,255,255,0.25);
}
.nwsbcs-welcome-cta-arrow {
  width: 26px; height: 26px; border-radius: 50% !important; background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
