/* =============================================================================
   PSOO BuddyPress — Futuristic Glassmorphic Design System  v1.2.0
   Design tokens, animations, 3D transforms, neon glow, layered depth.
   ============================================================================= */

/* ── Design tokens ── */
:root {
  --psoo-cyan:        #6ec1e4;
  --psoo-magenta:     #b608c9;
  --psoo-gold:        #ffcc00;
  --psoo-green:       #97e46e;
  --psoo-obsidian:    #09091c;
  --psoo-deep:        #0a0d22;
  --psoo-surface:     rgba(10, 13, 34, 0.88);
  --psoo-surface-2:   rgba(14, 18, 44, 0.72);
  --psoo-border:      rgba(110, 193, 228, 0.20);
  --psoo-border-hot:  rgba(110, 193, 228, 0.55);
  --psoo-text:        rgba(224, 240, 255, 0.90);
  --psoo-text-dim:    rgba(224, 240, 255, 0.50);
  --psoo-blur:        blur(20px) saturate(160%);
  --psoo-radius-lg:   20px;
  --psoo-radius-xl:   28px;
  --psoo-radius-pill: 100px;
  --psoo-shadow-deep: 0 24px 60px rgba(9,11,32,0.65), 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(110,193,228,0.07);
  --psoo-shadow-glow: 0 0 24px rgba(110,193,228,0.18), 0 0 48px rgba(110,193,228,0.08);
  --psoo-shadow-mag:  0 0 24px rgba(182,8,201,0.22), 0 0 60px rgba(182,8,201,0.10);
}

/* =============================================================================
   KEYFRAME LIBRARY
   ============================================================================= */

@keyframes psoo-fade-up {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes psoo-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes psoo-slide-in-left {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes psoo-scale-in {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes psoo-glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(110,193,228,0.15), 0 0 0 1px rgba(110,193,228,0.10); }
  50%       { box-shadow: 0 0 28px rgba(110,193,228,0.30), 0 0 0 1px rgba(110,193,228,0.25); }
}
@keyframes psoo-border-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes psoo-shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  100% { transform: translateX(200%)  skewX(-12deg); }
}
@keyframes psoo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes psoo-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
@keyframes psoo-scan-line {
  0%   { top: 0; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}
@keyframes psoo-entry-stagger {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   FULL-WIDTH LAYOUT — complete Youzify layout override
   Targets every container in the Youzify group page hierarchy so our full-width
   tabs fill the viewport without any JS viewport-offset tricks.

   HTML hierarchy (from youzify/templates/groups/single/home.php):
     #youzify
       #youzify-bp.youzify[.youzify-vertical-layout etc]
         .youzify-content
           #youzify-group-header          ← Bridge Header lives here
           .youzify-group-content
             .youzify-inner-content
               .youzify-page-main-content ← OUR TAB CONTENT lives here
                 .youzify-right-sidebar-layout / .youzify-left-sidebar-layout
                   .yz-main-column / .yz-column-main
                   .yz-sidebar  (hidden)
   ============================================================================= */

/* ── 1. Hide all sidebar variants ── */
body.psoo-full-width-active .yz-sidebar,
body.psoo-full-width-active .yz-column-right,
body.psoo-full-width-active .youzify-sidebar,
body.psoo-full-width-active .yz-right-column,
body.psoo-full-width-active .youzify-group-sidebar,
body.psoo-full-width-active .yz-group-sidebar {
  display: none !important;
}

/* ── 2. Strip ALL Youzify layout constraints from every ancestor layer ── */
body.psoo-full-width-active #youzify,
body.psoo-full-width-active #youzify-bp,
body.psoo-full-width-active .youzify,
body.psoo-full-width-active .youzify-content,
body.psoo-full-width-active .youzify-group-content,
body.psoo-full-width-active .youzify-inner-content,
body.psoo-full-width-active .youzify-page-main-content,
body.psoo-full-width-active .youzify-container,
body.psoo-full-width-active .youzify-row,
body.psoo-full-width-active .youzify-main-column,
body.psoo-full-width-active .yz-main-column,
body.psoo-full-width-active .yz-column-main,
body.psoo-full-width-active .yz-column-content,
body.psoo-full-width-active #buddypress,
body.psoo-full-width-active #item-body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  flex: none !important;
  display: block !important;
  overflow: visible !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

/* ── 3. Flatten Youzify grid/flex column layouts ── */
body.psoo-full-width-active .youzify-right-sidebar-layout,
body.psoo-full-width-active .youzify-left-sidebar-layout,
body.psoo-full-width-active .youzify-3columns-layout,
body.psoo-full-width-active .youzify-vertical-layout .youzify-content {
  display: block !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
  grid-gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── 4. Fully visible scrolling context on wrappers ── */
body.psoo-full-width-active .youzify-content-wrap,
body.psoo-full-width-active .yz-content-wrap {
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── 5. Remove top padding Youzify adds to .youzify-page-main-content ── */
body.psoo-full-width-active .youzify-page-main-content {
  padding-top: 0 !important;
}

/* ── 6. Our full-width content wrapper ── */
.psoo-full-width {
  position: static !important;  /* No JS-calculated negative left offset needed */
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  z-index: 10;
  padding: 0;
  left: auto !important;        /* Cancel any residual JS-injected left value */
}
.psoo-full-width > *,
.psoo-full-width .psoo-pm-wrap,
.psoo-full-width .psoo-bp-table,
.psoo-full-width .psoo-checkout-section,
.psoo-full-width .psoo-bp-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* ── Page gutter for Workspace and Project Plans tabs ──
   The PM app and orders wrapper both start at x:0 when Youzify's containers
   are zeroed out. Add matching 32px horizontal padding so content aligns with
   the rest of the page on desktop. */
.psoo-project-manager-tab .psoo-pm-wrap {
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 768px) {
  .psoo-project-manager-tab .psoo-pm-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ── Workspace tab: strip any Youzify top interference ──
   The Youzify group navmenu renders between #youzify-group-header and
   .youzify-page-main-content. Belt-and-suspenders collapse it to zero
   height/space so nothing bleeds into the top of the workspace content.
   (display:none is set again in the BP BRIDGE section below for belt.) */
body.psoo-has-project-header .youzify-group-navmenu,
body.psoo-has-project-header #youzify-profile-navmenu {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Ensure the workspace content wrapper itself carries no inherited top spacing */
body.psoo-has-project-header .psoo-project-manager-tab {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =============================================================================
   PROJECT PLANS TAB  (orders list + detail drawer)
   ============================================================================= */

/* Wrapper */
.psoo-bp-wrapper {
  padding: 28px 32px;
  background: var(--psoo-obsidian);
  animation: psoo-fade-up 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

/* Page title */
.psoo-bp-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--psoo-text);
  position: relative;
  display: inline-block;
}
.psoo-bp-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  border-radius: 2px;
}

/* Alert */
.psoo-bp-alert {
  background: rgba(204,0,0,0.12);
  border: 1px solid rgba(204,0,0,0.38);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  backdrop-filter: var(--psoo-blur);
  animation: psoo-fade-in 0.3s ease both;
}

/* ── Orders table ── */
.psoo-bp-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: linear-gradient(155deg, rgba(12,15,38,0.95), rgba(9,11,28,0.90)) !important;
  border: 1px solid var(--psoo-border) !important;
  border-radius: var(--psoo-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--psoo-shadow-deep) !important;
  backdrop-filter: var(--psoo-blur) !important;
  animation: psoo-scale-in 0.5s cubic-bezier(0.22,1,0.36,1) both !important;
  position: relative !important;
}

/* Subtle scan-line shimmer on the table */
.psoo-bp-table::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110,193,228,0.6), var(--psoo-magenta), transparent);
  animation: psoo-border-flow 4s ease infinite;
  background-size: 200% 100%;
  border-radius: var(--psoo-radius-lg) var(--psoo-radius-lg) 0 0;
  pointer-events: none;
  z-index: 2;
}

.psoo-bp-table thead tr {
  background: rgba(110,193,228,0.06) !important;
}
.psoo-bp-table thead th {
  text-align: left !important;
  color: var(--psoo-cyan) !important;
  padding: 15px 20px !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(110,193,228,0.14) !important;
}
.psoo-bp-table tbody td {
  padding: 15px 20px !important;
  border-bottom: 1px solid rgba(110,193,228,0.07) !important;
  color: var(--psoo-text) !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  transition: background 0.2s !important;
}
.psoo-bp-table tbody tr:last-child td { border-bottom: 0 !important; }
.psoo-bp-table tbody tr {
  animation: psoo-entry-stagger 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-bp-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.psoo-bp-table tbody tr:nth-child(2) { animation-delay: 0.10s; }
.psoo-bp-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.psoo-bp-table tbody tr:nth-child(4) { animation-delay: 0.20s; }
.psoo-bp-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.psoo-bp-table tbody tr:nth-child(n+6) { animation-delay: 0.30s; }
.psoo-bp-table tbody tr:hover td {
  background: rgba(110,193,228,0.06) !important;
}

/* Open/Close button */
.psoo-bp-view.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, var(--psoo-cyan) 0%, var(--psoo-magenta) 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #090b1b !important;
  padding: 7px 16px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 20px rgba(110,193,228,0.28), 0 2px 8px rgba(0,0,0,0.3) !important;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease, background 0.22s ease !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}
.psoo-bp-view.button::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.psoo-bp-view.button:hover::after { left: 130%; }
.psoo-bp-view.button:hover {
  background: linear-gradient(135deg, var(--psoo-magenta) 0%, var(--psoo-cyan) 100%) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(182,8,201,0.35), 0 4px 12px rgba(0,0,0,0.3) !important;
}
.psoo-bp-view.button.is-open {
  background: rgba(110,193,228,0.12) !important;
  color: var(--psoo-cyan) !important;
  box-shadow: 0 0 0 1px rgba(110,193,228,0.35) !important;
  border: none !important;
}

/* ── Details drawer ── */
.psoo-bp-details[aria-hidden="true"] { display: none; }
.psoo-bp-details[aria-hidden="false"] { display: table-row; }
.psoo-bp-details > td {
  padding: 0 !important;
  background: rgba(9,11,28,0.50) !important;
  border-bottom: 1px solid rgba(110,193,228,0.10) !important;
}

/* ── Order detail card ── */
.psoo-bp-orderview,
.psoo-bp-orderview.psoo-bp-orderview--light {
  margin: 20px !important;
  background: linear-gradient(155deg, rgba(12,15,40,0.96), rgba(9,11,28,0.94)) !important;
  color: var(--psoo-text) !important;
  border: 1px solid rgba(110,193,228,0.24) !important;
  border-radius: var(--psoo-radius-xl) !important;
  padding: 28px 32px !important;
  box-shadow: var(--psoo-shadow-deep), var(--psoo-shadow-glow) !important;
  backdrop-filter: var(--psoo-blur) !important;
  animation: psoo-scale-in 0.45s cubic-bezier(0.22,1,0.36,1) both !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Top prismatic border on the card */
.psoo-bp-orderview::before,
.psoo-bp-orderview.psoo-bp-orderview--light::before {
  content: '' !important;
  position: absolute !important;
  top: 0; left: 0; right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta), var(--psoo-cyan)) !important;
  background-size: 200% 100% !important;
  animation: psoo-border-flow 5s ease infinite !important;
  border-radius: var(--psoo-radius-xl) var(--psoo-radius-xl) 0 0 !important;
}

/* Scan-line shimmer running down the card */
.psoo-bp-orderview::after,
.psoo-bp-orderview.psoo-bp-orderview--light::after {
  content: '' !important;
  position: absolute !important;
  top: 0; left: 0 !important;
  width: 100%; height: 60px !important;
  background: linear-gradient(180deg, rgba(110,193,228,0.04), transparent) !important;
  animation: psoo-scan-line 6s linear infinite !important;
  pointer-events: none !important;
}

/* Order detail header */
.psoo-bp-ov-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(110,193,228,0.12);
  position: relative;
}
.psoo-bp-ov-badge {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(110,193,228,0.20), rgba(182,8,201,0.20));
  border: 1px solid rgba(110,193,228,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(110,193,228,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: psoo-float 4s ease-in-out infinite;
}
.psoo-bp-ov-badge svg rect { fill: rgba(110,193,228,0.12); }
.psoo-bp-ov-badge svg path { stroke: var(--psoo-cyan); }
.psoo-bp-ov-head h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #f0f4ff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.psoo-bp-ov-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.psoo-bp-ov-actions .button,
.psoo-bp-ov-actions .button.button-primary {
  display: inline-flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, var(--psoo-cyan) 0%, var(--psoo-magenta) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #090b1b !important;
  padding: 9px 20px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(110,193,228,0.25), 0 2px 8px rgba(0,0,0,0.25) !important;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease !important;
  position: relative !important;
  overflow: hidden !important;
}
.psoo-bp-ov-actions .button::after,
.psoo-bp-ov-actions .button.button-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.16);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.psoo-bp-ov-actions .button:hover::after,
.psoo-bp-ov-actions .button.button-primary:hover::after { left: 130%; }
.psoo-bp-ov-actions .button:hover,
.psoo-bp-ov-actions .button.button-primary:hover {
  background: linear-gradient(135deg, var(--psoo-magenta) 0%, var(--psoo-cyan) 100%) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 14px 32px rgba(182,8,201,0.35), 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* ── Items table inside order detail ── */
.psoo-bp-order-items {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(9,11,28,0.45);
  border: 1px solid rgba(110,193,228,0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(110,193,228,0.08);
}
.psoo-bp-order-items thead tr { background: rgba(110,193,228,0.06); }
.psoo-bp-order-items thead th {
  color: var(--psoo-cyan);
  padding: 13px 20px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(110,193,228,0.12);
}
.psoo-bp-order-items tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(110,193,228,0.07);
  vertical-align: middle;
  color: var(--psoo-text);
  font-size: 14px;
  transition: background 0.2s;
}
.psoo-bp-order-items tbody tr:last-child td { border-bottom: 0; }
.psoo-bp-order-items tbody tr { animation: psoo-entry-stagger 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.psoo-bp-order-items tbody tr:nth-child(1) { animation-delay: 0.08s; }
.psoo-bp-order-items tbody tr:nth-child(2) { animation-delay: 0.14s; }
.psoo-bp-order-items tbody tr:nth-child(3) { animation-delay: 0.20s; }
.psoo-bp-order-items tbody tr:nth-child(n+4) { animation-delay: 0.26s; }

.psoo-col-qty   { width: 80px;  text-align: center; font-weight: 900; color: #e2e8f0; }
.psoo-col-total { width: 160px; text-align: right;  font-weight: 900; color: #e2e8f0; }

.psoo-bp-order-items tbody tr.psoo-item-top td {
  background: rgba(110,193,228,0.04);
}
.psoo-bp-order-items tbody tr.psoo-item-top:hover td {
  background: rgba(110,193,228,0.08);
}
.psoo-bp-order-items tbody tr.psoo-item-top td.psoo-prod-title {
  padding: 18px 20px 18px 24px;
}
.psoo-bp-order-items tbody tr.psoo-item-top td.psoo-prod-title .psoo-item-title a {
  color: #f0f4ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  transition: color 0.2s;
}
.psoo-bp-order-items tbody tr.psoo-item-top td.psoo-prod-title .psoo-item-title a:hover {
  color: var(--psoo-cyan);
}
.psoo-bp-order-items tbody tr.psoo-item-top td.psoo-col-qty,
.psoo-bp-order-items tbody tr.psoo-item-top td.psoo-col-total {
  font-size: 15px; font-weight: 800; color: #e2e8f0;
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td {
  background: rgba(9,11,28,0.28);
  vertical-align: middle;
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-desc { padding: 16px 24px; }
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-desc .psoo-item-desc {
  display: flex;
  align-items: center;
  min-height: 100px;
  color: rgba(203,213,225,0.80);
  font-size: 13px;
  line-height: 1.65;
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-media {
  width: 200px; min-width: 120px; max-width: 200px;
  padding: 10px !important; vertical-align: middle;
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-media .psoo-media-box {
  display: flex; align-items: center; justify-content: center; min-height: 100px;
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-media .psoo-media-link {
  display: inline-flex; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(110,193,228,0.12);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-media .psoo-media-link:hover {
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(110,193,228,0.25);
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-media .psoo-prod-thumb {
  display: block; width: 100%; max-width: 180px; max-height: 180px;
  border-radius: 14px; object-fit: cover;
  border: 1px solid rgba(110,193,228,0.15);
}
.psoo-bp-order-items tbody tr.psoo-item-bottom td.psoo-prod-media .psoo-thumb-fallback {
  width: 100px; height: 100px;
  background: rgba(110,193,228,0.07);
  border-radius: 14px;
  border: 1px dashed rgba(110,193,228,0.25);
}

/* ── Totals block ── */
.psoo-bp-totals {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(110,193,228,0.12);
  animation: psoo-fade-up 0.4s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-bp-total-row { display: flex; align-items: center; justify-content: space-between; }
.psoo-bp-total-row span { color: var(--psoo-text-dim); font-size: 13px; }
.psoo-bp-total-row strong { color: #e2e8f0; font-weight: 900; font-size: 14px; }

/* ── Customer note ── */
.psoo-bp-note {
  margin-top: 20px;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(251,191,36,0.08);
  animation: psoo-fade-up 0.4s 0.25s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-bp-note-head { font-weight: 900; color: #fbbf24; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.psoo-bp-note-body { color: rgba(251,191,36,0.85); font-size: 13px; line-height: 1.6; }

/* ── Focus ring ── */
.psoo-bp-wrapper .button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(110,193,228,0.45);
}

/* =============================================================================
   PROPOSALS TAB
   ============================================================================= */

/* ── Entrance animations ── */
@keyframes psoo-entrance-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.psoo-proposals-badges {
  animation: psoo-fade-in 0.45s 0.08s both !important;
}
/* PM panel: use entrance-up but keep our !important opacity override
   SCOPED to proposals-tab to avoid colliding with .psoo-pm-panel used
   as tab-panel containers in the PM dashboard (which rely on display:none toggle) */
.psoo-proposals-tab .psoo-pm-panel {
  animation: psoo-entrance-up 0.55s cubic-bezier(.16,1,.3,1) 0.18s both !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.psoo-group-admin-panel {
  animation: psoo-entrance-up 0.55s cubic-bezier(.16,1,.3,1) 0.28s both !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.psoo-visibility-panel {
  animation: psoo-entrance-up 0.5s cubic-bezier(.16,1,.3,1) 0.32s both;
}
.psoo-admin-viewer-panel {
  animation: psoo-entrance-up 0.5s cubic-bezier(.16,1,.3,1) 0.42s both;
}

.psoo-proposals-screen {
  padding: 28px 32px;
  width: 95%;
  max-width: none;
  margin: 0 auto;
  color: var(--psoo-text);
  font-family: inherit;
  background: transparent;
  min-height: 0;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.psoo-proposals-screen * {
  pointer-events: auto;
}

/* ── Connection badges ── */
.psoo-proposals-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  animation: psoo-fade-in 0.4s 0.1s forwards;
}
.psoo-prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--psoo-radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.psoo-prop-badge:hover { transform: translateY(-2px); }
.psoo-prop-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 35%; height: 100%;
  background: rgba(255,255,255,0.08);
  transform: skewX(-18deg);
  animation: psoo-shimmer 4s 1s ease-in-out infinite;
}
.psoo-prop-badge--linked {
  background: rgba(110,193,228,0.10);
  border-color: rgba(110,193,228,0.40);
  color: var(--psoo-cyan);
  box-shadow: 0 4px 16px rgba(110,193,228,0.12), inset 0 1px 0 rgba(110,193,228,0.08);
}
.psoo-prop-badge--unlinked {
  background: rgba(182,8,201,0.08);
  border-color: rgba(182,8,201,0.32);
  color: rgba(182,8,201,0.88);
  box-shadow: 0 4px 16px rgba(182,8,201,0.10);
}
.psoo-prop-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: psoo-dot-pulse 2.5s ease-in-out infinite;
}
.psoo-prop-badge--linked  .psoo-prop-badge-dot { background: var(--psoo-cyan); box-shadow: 0 0 8px var(--psoo-cyan); }
.psoo-prop-badge--unlinked .psoo-prop-badge-dot { background: #b608c9; box-shadow: 0 0 8px #b608c9; }

/* ── Proposal selector ── */
.psoo-proposal-selector {
  background: linear-gradient(155deg, rgba(12,15,40,0.92), rgba(9,11,28,0.88));
  border: 1px solid var(--psoo-border);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 32px;
  backdrop-filter: var(--psoo-blur);
  box-shadow: var(--psoo-shadow-deep);
  animation: psoo-fade-up 0.5s 0.1s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
  overflow: hidden;
}
.psoo-proposal-selector::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,193,228,0.5), transparent);
}
.psoo-proposal-selector h3,
.psoo-proposal-selector h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--psoo-text);
}
.psoo-prop-select-hint {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--psoo-text-dim);
  line-height: 1.5;
}

/* Status filter + search row */
.psoo-prop-search-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.psoo-prop-status-filter-wrap {
  flex-shrink: 0;
}
.psoo-prop-status-filter {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(9,11,28,0.70) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236ec1e4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  border: 1px solid rgba(110,193,228,0.22) !important;
  border-radius: 12px !important;
  color: var(--psoo-text) !important;
  padding: 11px 36px 11px 14px !important;
  font-size: 13px !important;
  font-weight: 700;
  outline: none !important;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s !important;
  backdrop-filter: blur(8px) !important;
  min-width: 148px;
}
.psoo-prop-status-filter:focus {
  border-color: rgba(110,193,228,0.55) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,0.12) !important;
}
.psoo-prop-search-row .psoo-prop-search-wrap { flex: 1 1 0; }

/* Typeahead search */
.psoo-prop-search-wrap { position: relative; }
.psoo-prop-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(9,11,28,0.70) !important;
  border: 1px solid rgba(110,193,228,0.22) !important;
  border-radius: 12px !important;
  color: var(--psoo-text) !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
  backdrop-filter: blur(8px) !important;
}
.psoo-prop-search-input:focus {
  border-color: rgba(110,193,228,0.55) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,0.12), 0 0 20px rgba(110,193,228,0.08) !important;
}
.psoo-prop-search-input::placeholder { color: rgba(110,193,228,0.30) !important; }

.psoo-prop-search-results {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(10,13,36,0.98);
  border: 1px solid rgba(110,193,228,0.25);
  border-radius: 14px;
  z-index: 300;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  backdrop-filter: var(--psoo-blur);
  box-shadow: 0 16px 48px rgba(0,0,0,0.60), 0 0 0 1px rgba(110,193,228,0.06);
  animation: psoo-scale-in 0.22s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-prop-search-results.is-open { display: block; }
.psoo-prop-result {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--psoo-text);
  border-bottom: 1px solid rgba(110,193,228,0.07);
  transition: background 0.15s, padding-left 0.15s;
}
.psoo-prop-result:last-child { border-bottom: none; }
.psoo-prop-result:hover, .psoo-prop-result:focus {
  background: rgba(110,193,228,0.09);
  padding-left: 22px;
  outline: none;
}
.psoo-prop-result-id { font-size: 11px; color: rgba(110,193,228,0.45); margin-left: 8px; }
.psoo-prop-result-title { display: block; font-weight: 700; margin-bottom: 4px; }
.psoo-prop-result-desc {
  display: block;
  font-size: 11.5px;
  color: var(--psoo-text-dim);
  margin-top: 3px;
  line-height: 1.4;
}
.psoo-prop-result-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(110,193,228,0.10);
  border: 1px solid rgba(110,193,228,0.22);
  color: rgba(110,193,228,0.70);
  margin-top: 4px;
}
.psoo-prop-result-badge--template {
  background: rgba(0,210,255,0.12);
  border-color: rgba(0,210,255,0.35);
  color: rgba(0,210,255,0.90);
}
.psoo-prop-search-msg {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--psoo-text-dim);
  font-style: italic;
}

/* Currently selected */
.psoo-prop-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 16px;
  background: rgba(110,193,228,0.06);
  border: 1px solid rgba(110,193,228,0.18);
  border-radius: 12px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(110,193,228,0.06);
  animation: psoo-fade-in 0.3s ease both;
}
.psoo-prop-current-name {
  font-weight: 700;
  color: var(--psoo-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psoo-prop-clear-btn {
  flex-shrink: 0;
  background: rgba(182,8,201,0.12) !important;
  border: 1px solid rgba(182,8,201,0.35) !important;
  color: rgba(182,8,201,0.88) !important;
  border-radius: 8px !important;
  padding: 4px 13px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s !important;
}
.psoo-prop-clear-btn:hover {
  background: rgba(182,8,201,0.24) !important;
  transform: scale(1.04) !important;
}

/* ── Proposal body ── */
.psoo-proposal-body {
  background: linear-gradient(155deg, rgba(12,15,40,0.96), rgba(9,11,28,0.93));
  border: 1px solid rgba(110,193,228,0.18);
  border-radius: var(--psoo-radius-xl);
  padding: 36px 40px;
  backdrop-filter: var(--psoo-blur);
  box-shadow: var(--psoo-shadow-deep), var(--psoo-shadow-glow);
  animation: psoo-scale-in 0.5s 0.15s cubic-bezier(0.22,1,0.36,1) forwards;
  position: relative;
  overflow: hidden;
}
.psoo-proposal-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta), var(--psoo-cyan));
  background-size: 200% 100%;
  animation: psoo-border-flow 5s ease infinite;
}
.psoo-proposal-body-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.psoo-proposal-body-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #e8f0ff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.psoo-prop-edit-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--psoo-cyan) 0%, var(--psoo-magenta) 100%) !important;
  color: #090b1b !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 9px 20px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.22s cubic-bezier(0.22,1,0.36,1) !important;
  box-shadow: 0 8px 24px rgba(110,193,228,0.22) !important;
  overflow: hidden !important;
  position: relative !important;
}
.psoo-prop-edit-btn::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.16);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.psoo-prop-edit-btn:hover::after { left: 130%; }
.psoo-prop-edit-btn:hover { transform: translateY(-2px) scale(1.04) !important; opacity: 0.90; }

.psoo-proposal-short-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--psoo-text-dim);
  margin-bottom: 28px;
  font-style: italic;
  border-left: 3px solid rgba(110,193,228,0.35);
  padding-left: 16px;
  animation: psoo-slide-in-left 0.4s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-proposal-content {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(224,240,255,0.82);
  margin-bottom: 36px;
}
.psoo-proposal-content h1, .psoo-proposal-content h2, .psoo-proposal-content h3, .psoo-proposal-content h4 { color: #e0f0ff; margin-top: 28px; }
.psoo-proposal-content a { color: var(--psoo-cyan); text-decoration: underline; transition: color 0.2s; }
.psoo-proposal-content a:hover { color: #fff; }
.psoo-proposal-content hr { border: none; border-top: 1px solid rgba(110,193,228,0.12); margin: 24px 0; }

/* ── Milestones ── */
.psoo-proposal-milestones-heading {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110,193,228,0.65);
  margin: 0 0 18px;
}
.psoo-proposal-milestones {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.psoo-proposal-milestone {
  background: rgba(9,11,28,0.58);
  border: 1px solid rgba(110,193,228,0.13);
  border-radius: 18px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  animation: psoo-fade-up 0.5s cubic-bezier(0.22,1,0.36,1) both;
  transform-style: preserve-3d;
}
.psoo-proposal-milestone:nth-child(1) { animation-delay: 0.05s; }
.psoo-proposal-milestone:nth-child(2) { animation-delay: 0.10s; }
.psoo-proposal-milestone:nth-child(3) { animation-delay: 0.15s; }
.psoo-proposal-milestone:nth-child(4) { animation-delay: 0.20s; }
.psoo-proposal-milestone:nth-child(n+5) { animation-delay: 0.25s; }
.psoo-proposal-milestone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  opacity: 0.4;
  transition: opacity 0.3s;
}
.psoo-proposal-milestone:hover {
  border-color: rgba(110,193,228,0.28);
  transform: translateY(-3px) translateZ(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.40), 0 0 20px rgba(110,193,228,0.08);
}
.psoo-proposal-milestone:hover::before { opacity: 0.75; }

.psoo-proposal-milestone-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.psoo-proposal-milestone-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(110,193,228,0.22), rgba(182,8,201,0.22));
  border: 1px solid rgba(110,193,228,0.32);
  font-size: 12px; font-weight: 900; color: var(--psoo-cyan);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(110,193,228,0.14);
}
.psoo-proposal-milestone-title { font-weight: 800; font-size: 15px; color: #e8f0ff; flex: 1; }
.psoo-milestone-status {
  display: inline-block; padding: 3px 11px; border-radius: var(--psoo-radius-pill);
  font-size: 10px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase;
}
.psoo-milestone-status--pending   { background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.30); color: #fbbf24; }
.psoo-milestone-status--active    { background: rgba(110,193,228,0.10); border: 1px solid rgba(110,193,228,0.32); color: var(--psoo-cyan); animation: psoo-glow-pulse 2.5s ease-in-out infinite; }
.psoo-milestone-status--complete  { background: rgba(34,197,94,0.10);  border: 1px solid rgba(34,197,94,0.32);  color: #22c55e; }
.psoo-milestone-status--cancelled { background: rgba(182,8,201,0.08);  border: 1px solid rgba(182,8,201,0.28);  color: #b608c9; }
.psoo-proposal-milestone-desc { font-size: 13px; color: var(--psoo-text-dim); margin-bottom: 16px; line-height: 1.65; }

/* Milestone product list */
.psoo-proposal-milestone-products { display: flex; flex-direction: column; gap: 8px; }
.psoo-milestone-product {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: rgba(110,193,228,0.04);
  border: 1px solid rgba(110,193,228,0.09);
  border-radius: 10px;
  font-size: 13px;
  transition: background 0.2s, transform 0.2s;
}
.psoo-milestone-product:hover { background: rgba(110,193,228,0.08); transform: translateX(4px); }
.psoo-milestone-product-name { color: rgba(224,240,255,0.82); font-weight: 700; }
.psoo-milestone-product-order-status {
  font-size: 10px; padding: 2px 9px; border-radius: var(--psoo-radius-pill);
  font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase;
}
.psoo-milestone-product-order-status--pending     { background: rgba(251,191,36,0.09); color: #fbbf24; }
.psoo-milestone-product-order-status--processing  { background: rgba(110,193,228,0.09); color: var(--psoo-cyan); }
.psoo-milestone-product-order-status--completed   { background: rgba(34,197,94,0.09);  color: #22c55e; }
.psoo-milestone-product-order-status--cancelled,
.psoo-milestone-product-order-status--failed      { background: rgba(182,8,201,0.07);  color: #b608c9; }
.psoo-milestone-product-order-status--on-hold     { background: rgba(251,191,36,0.07); color: #f59e0b; }

/* Gate / empty states */
.psoo-proposals-gate,
.psoo-proposals-empty {
  text-align: center; padding: 70px 24px;
  color: var(--psoo-text-dim); font-size: 14px;
}
.psoo-proposals-gate-icon,
.psoo-proposals-empty-icon {
  font-size: 44px; margin-bottom: 18px; display: block;
  opacity: 0.4; animation: psoo-float 4s ease-in-out infinite;
}
.psoo-proposals-gate p, .psoo-proposals-empty p { margin: 0; line-height: 1.65; }

/* ── Edit iframe popup ── */
.psoo-proposal-edit-popup {
  display: none;
  position: fixed; inset: 0;
  z-index: 99999;
  background: rgba(5,7,20,0.85);
  backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
.psoo-proposal-edit-popup.is-open {
  display: flex;
  animation: psoo-fade-in 0.25s ease both;
}
.psoo-proposal-edit-frame-wrap {
  position: relative;
  width: 95vw;
  height: min(92vh, 1000px);
  background: rgba(10,13,36,0.99);
  border: 1px solid rgba(110,193,228,0.26);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.75), var(--psoo-shadow-glow);
  animation: psoo-scale-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-proposal-edit-popup-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(110,193,228,0.10);
  flex-shrink: 0;
  background: rgba(10,13,36,0.95);
}
.psoo-proposal-edit-popup-title {
  font-size: 11px; font-weight: 900; color: rgba(110,193,228,0.75);
  letter-spacing: 0.10em; text-transform: uppercase;
}
.psoo-proposal-edit-popup-close {
  background: rgba(182,8,201,0.12) !important;
  border: 1px solid rgba(182,8,201,0.35) !important;
  color: rgba(182,8,201,0.88) !important;
  border-radius: 8px !important;
  padding: 5px 15px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer; letter-spacing: 0.06em;
  transition: background 0.2s !important;
}
.psoo-proposal-edit-popup-close:hover { background: rgba(182,8,201,0.28) !important; }
.psoo-proposal-edit-iframe { flex: 1; border: none; width: 100%; background: #fff; }

/* =============================================================================
   PAYMENTS TAB — ACTIVATION PAGE
   ============================================================================= */

.psoo-payments-screen {
  color: #e0f0ff;
  font-family: 'Inter', system-ui, sans-serif;
}
.psoo-pay-accent-magenta { color: #b608c9; }
.psoo-pay-accent-gold    { color: #ffcc00; }

.psoo-pay-activation {
  background: var(--psoo-obsidian);
  padding: 90px 40px 80px;
  min-height: 60vh;
  animation: psoo-fade-up 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

/* Hero */
.psoo-pay-hero {
  text-align: center;
  margin-bottom: 90px;
  animation: psoo-fade-up 0.9s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
}
.psoo-pay-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(110,193,228,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.psoo-pay-hero-status {
  font-family: monospace;
  color: #b608c9;
  letter-spacing: 5px;
  font-size: 11px;
  margin-bottom: 22px;
  text-transform: uppercase;
  animation: psoo-fade-in 0.6s 0.2s both;
}
.psoo-pay-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1.02;
  margin: 0 0 20px;
  color: #fff;
  text-transform: uppercase;
  animation: psoo-fade-up 0.8s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-hero-sub {
  font-size: 1.25rem;
  color: var(--psoo-cyan);
  font-weight: 600;
  margin: 0 0 64px;
  letter-spacing: 0.5px;
  animation: psoo-fade-in 0.6s 0.25s both;
}

/* CTA button */
.psoo-btn-gateway {
  display: inline-block;
  background: var(--psoo-green);
  color: #000;
  padding: 22px 54px;
  border-radius: var(--psoo-radius-pill);
  border: none;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 44px rgba(151,228,110,0.32), 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), background 0.25s, box-shadow 0.25s;
  text-decoration: none;
  animation: psoo-fade-up 0.7s 0.3s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
  overflow: hidden;
}
.psoo-btn-gateway::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.22);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}
.psoo-btn-gateway:hover::after { left: 130%; }
.psoo-btn-gateway:hover {
  transform: scale(1.06) translateY(-6px);
  background: #fff;
  color: #000;
  box-shadow: 0 20px 56px rgba(151,228,110,0.50), 0 6px 20px rgba(0,0,0,0.3);
}
.psoo-pay-gate-msg {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 26px;
  background: rgba(182,8,201,0.07);
  border: 1px solid rgba(182,8,201,0.28);
  border-radius: 16px;
  color: var(--psoo-text-dim);
  font-size: 14px;
  line-height: 1.65;
  backdrop-filter: blur(8px);
}

/* Features grid */
.psoo-pay-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 90px;
  align-items: center;
  perspective: 1000px;
}
.psoo-pay-main-brief {
  background: linear-gradient(135deg, rgba(110,193,228,0.06), rgba(182,8,201,0.06));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 38px;
  padding: 50px;
  backdrop-filter: var(--psoo-blur);
  box-shadow: var(--psoo-shadow-deep);
  animation: psoo-fade-up 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.psoo-pay-main-brief:hover {
  transform: translateY(-4px) rotateX(1deg);
  box-shadow: var(--psoo-shadow-deep), 0 0 40px rgba(110,193,228,0.08);
}
.psoo-pay-main-brief::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  opacity: 0.5;
}
.psoo-pay-main-brief h2 { font-size: 2rem; font-weight: 900; margin: 0 0 20px; color: #fff; }
.psoo-pay-main-brief p  { font-size: 1.05rem; line-height: 1.75; color: #cbd5e1; margin: 0; }

/* Logic stack */
.psoo-pay-logic-stack { display: flex; flex-direction: column; gap: 20px; }
.psoo-pay-logic-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  transition: border-color 0.3s, background 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  animation: psoo-fade-up 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-logic-card:nth-child(1) { animation-delay: 0.15s; }
.psoo-pay-logic-card:nth-child(2) { animation-delay: 0.25s; }
.psoo-pay-logic-card:nth-child(3) { animation-delay: 0.35s; }
.psoo-pay-logic-card::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 35%; height: 100%;
  background: rgba(255,255,255,0.05);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}
.psoo-pay-logic-card:hover::after { left: 130%; }
.psoo-pay-logic-card:hover {
  border-color: rgba(110,193,228,0.35);
  background: rgba(110,193,228,0.07);
  transform: translateX(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(110,193,228,0.06);
}
.psoo-pay-logic-card h3 {
  font-size: 1rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; margin: 0 0 10px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.psoo-pay-logic-card h3::before { content: "\2022"; color: var(--psoo-green); font-size: 1.6rem; line-height: 1; }
.psoo-pay-logic-card p { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; margin: 0; }

/* Equity section */
.psoo-pay-equity-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 80px;
  animation: psoo-fade-up 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-advantage-card {
  background: linear-gradient(135deg, rgba(255,204,0,0.08) 0%, rgba(11,14,20,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 5px solid var(--psoo-gold);
  border-radius: 38px;
  padding: 50px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  margin-bottom: 70px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.40), 0 0 60px rgba(255,204,0,0.04);
  backdrop-filter: var(--psoo-blur);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.psoo-pay-advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 80px rgba(255,204,0,0.07);
}
.psoo-pay-advantage-text h2 { font-size: 2.1rem; font-weight: 950; text-transform: uppercase; margin: 0 0 18px; color: var(--psoo-gold); }
.psoo-pay-advantage-text p  { font-size: 1.05rem; line-height: 1.7; color: #cbd5e1; margin: 0; max-width: 640px; }
.psoo-pay-token-icon {
  flex-shrink: 0; opacity: 0.9;
  animation: psoo-float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,204,0,0.3));
}

.psoo-pay-fee-header { text-align: center; margin-bottom: 40px; }
.psoo-pay-fee-header h2 { font-size: 2.4rem; font-weight: 950; text-transform: uppercase; letter-spacing: -1px; margin: 0 0 10px; color: #fff; }
.psoo-pay-fee-header p  { color: #94a3b8; margin: 0; font-size: 1rem; }

.psoo-pay-fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
  perspective: 800px;
}
.psoo-pay-fee-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: 36px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275), background 0.25s, border-color 0.25s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  animation: psoo-scale-in 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-fee-card:nth-child(1) { animation-delay: 0.10s; }
.psoo-pay-fee-card:nth-child(2) { animation-delay: 0.20s; }
.psoo-pay-fee-card:nth-child(3) { animation-delay: 0.30s; }
.psoo-pay-fee-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--psoo-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.psoo-pay-fee-card:hover::before { opacity: 1; }
.psoo-pay-fee-card:hover {
  transform: translateY(-14px) rotateX(4deg) scale(1.02);
  background: rgba(255,255,255,0.06);
  border-color: var(--psoo-cyan);
  box-shadow: 0 24px 50px rgba(0,0,0,0.50), 0 0 30px rgba(255,204,0,0.07);
}
.psoo-pay-fee-pct { font-size: 3.2rem; font-weight: 950; color: var(--psoo-gold); display: block; margin-bottom: 10px; text-shadow: 0 0 20px rgba(255,204,0,0.25); }
.psoo-pay-fee-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 3px; margin: 0 0 14px; color: var(--psoo-cyan); }
.psoo-pay-fee-card p  { font-size: 0.88rem; line-height: 1.6; color: #94a3b8; margin: 0; }

.psoo-pay-revshare-cta {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.psoo-pay-revshare-cta p { font-size: 1.05rem; margin: 0 0 24px; color: #cbd5e1; }
.psoo-btn-revshare {
  display: inline-block;
  background: transparent;
  color: var(--psoo-gold);
  padding: 22px 54px;
  border: 2px solid var(--psoo-gold);
  border-radius: var(--psoo-radius-pill);
  font-weight: 950; text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; font-size: 15px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.psoo-btn-revshare:hover {
  background: var(--psoo-gold); color: #000;
  box-shadow: 0 0 40px rgba(255,204,0,0.45);
  transform: scale(1.04);
}

/* =============================================================================
   PAYMENTS TAB — DASHBOARD
   ============================================================================= */

.psoo-pay-dashboard {
  background: var(--psoo-obsidian);
  min-height: 60vh;
  animation: psoo-fade-up 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

/* Dashboard header */
.psoo-pay-dash-header {
  background: linear-gradient(155deg, rgba(10,13,36,0.99), rgba(9,11,28,0.97));
  border-bottom: 1px solid rgba(110,193,228,0.12);
  padding: 30px 36px 0;
  backdrop-filter: var(--psoo-blur);
  position: relative;
  overflow: hidden;
}
.psoo-pay-dash-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta), var(--psoo-cyan));
  background-size: 200% 100%;
  animation: psoo-border-flow 6s ease infinite;
}
.psoo-pay-dash-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.psoo-pay-status-badge {
  display: inline-block;
  font-family: monospace; font-size: 10px; letter-spacing: 4px;
  color: var(--psoo-green);
  background: rgba(151,228,110,0.08);
  border: 1px solid rgba(151,228,110,0.28);
  border-radius: var(--psoo-radius-pill);
  padding: 4px 12px; margin-bottom: 10px;
  animation: psoo-glow-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(151,228,110,0);
}
@keyframes psoo-green-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(151,228,110,0.15); }
  50%       { box-shadow: 0 0 20px rgba(151,228,110,0.30); }
}
.psoo-pay-status-badge { animation: psoo-green-pulse 2.5s ease-in-out infinite; }
.psoo-pay-dash-title { margin: 0; font-size: 1.7rem; font-weight: 950; color: #fff; letter-spacing: -0.02em; }

/* Sub-tab nav */
.psoo-pay-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.psoo-pay-tabs::-webkit-scrollbar { display: none; }
.psoo-pay-tab {
  padding: 12px 22px;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  color: var(--psoo-text-dim);
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
  border-radius: 8px 8px 0 0;
  position: relative; overflow: hidden;
}
.psoo-pay-tab:hover { color: rgba(224,240,255,0.85); background: rgba(110,193,228,0.04); }
.psoo-pay-tab.is-active {
  color: var(--psoo-cyan);
  border-bottom-color: var(--psoo-cyan);
  background: rgba(110,193,228,0.06);
}
.psoo-pay-tab.is-active::after {
  content: '';
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  border-radius: 2px 2px 0 0;
}

/* Panels */
.psoo-pay-tab-panels { padding: 36px; }
.psoo-pay-panel { display: none; }
.psoo-pay-panel.is-active {
  display: block;
  animation: psoo-fade-up 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

/* Section headings */
.psoo-pay-section-head { margin-bottom: 30px; }
.psoo-pay-section-head h3 {
  margin: 0 0 8px; font-size: 1.15rem; font-weight: 900; color: #e8f0ff;
  position: relative; display: inline-block;
}
.psoo-pay-section-head h3::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  border-radius: 2px;
}
.psoo-pay-section-head p { margin: 12px 0 0; font-size: 13px; color: var(--psoo-text-dim); line-height: 1.65; }

/* Shared inputs */
.psoo-pay-input {
  background: rgba(9,11,28,0.72) !important;
  border: 1px solid rgba(110,193,228,0.20) !important;
  border-radius: 12px !important;
  color: var(--psoo-text) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
  box-sizing: border-box;
  backdrop-filter: blur(8px) !important;
}
.psoo-pay-input:focus {
  border-color: rgba(110,193,228,0.55) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,0.10), 0 0 20px rgba(110,193,228,0.06) !important;
}
.psoo-pay-input::placeholder { color: rgba(110,193,228,0.28) !important; }
.psoo-pay-label {
  display: block; font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(110,193,228,0.65); margin-bottom: 7px;
}

/* Shared buttons */
.psoo-btn-primary {
  background: linear-gradient(135deg, var(--psoo-cyan) 0%, var(--psoo-magenta) 100%) !important;
  color: #090b1b !important; border: none !important; border-radius: 11px !important;
  padding: 11px 24px !important; font-size: 13px !important; font-weight: 900 !important;
  cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase;
  transition: opacity 0.2s, transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s !important;
  box-shadow: 0 8px 24px rgba(110,193,228,0.20) !important;
  position: relative !important; overflow: hidden !important;
}
.psoo-btn-primary::after {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.16);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.psoo-btn-primary:hover::after { left: 130%; }
.psoo-btn-primary:hover { opacity: 0.90; transform: translateY(-2px) scale(1.02) !important; box-shadow: 0 14px 32px rgba(182,8,201,0.28) !important; }

.psoo-btn-sm {
  background: rgba(110,193,228,0.09) !important;
  border: 1px solid rgba(110,193,228,0.28) !important;
  color: var(--psoo-cyan) !important;
  border-radius: 8px !important;
  padding: 6px 15px !important; font-size: 12px !important; font-weight: 800 !important;
  cursor: pointer; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.psoo-btn-sm:hover {
  background: rgba(110,193,228,0.18) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(110,193,228,0.14) !important;
}

/* Empty state */
.psoo-pay-empty {
  padding: 50px 20px; text-align: center;
  color: var(--psoo-text-dim); font-size: 13px; font-style: italic;
}

/* ── Gateway Cards ── */
.psoo-pay-gateways-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px; margin-bottom: 36px;
  perspective: 800px;
}
.psoo-pay-gateway-card {
  background: rgba(9,11,28,0.60);
  border: 1px solid rgba(110,193,228,0.11);
  border-radius: 18px; padding: 22px;
  transition: border-color 0.3s, background 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  animation: psoo-fade-up 0.5s cubic-bezier(0.22,1,0.36,1) both;
  position: relative; overflow: hidden;
}
.psoo-pay-gateway-card:nth-child(1) { animation-delay: 0.05s; }
.psoo-pay-gateway-card:nth-child(2) { animation-delay: 0.10s; }
.psoo-pay-gateway-card:nth-child(3) { animation-delay: 0.15s; }
.psoo-pay-gateway-card:nth-child(4) { animation-delay: 0.20s; }
.psoo-pay-gateway-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  opacity: 0; transition: opacity 0.3s;
}
.psoo-pay-gateway-card:hover::before { opacity: 0.6; }
.psoo-pay-gateway-card.is-enabled {
  border-color: rgba(151,228,110,0.32);
  background: rgba(151,228,110,0.04);
  box-shadow: 0 0 24px rgba(151,228,110,0.06);
}
.psoo-pay-gateway-card:hover {
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.40), 0 0 20px rgba(110,193,228,0.06);
}
.psoo-pay-gateway-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.psoo-pay-gateway-icon { font-size: 22px; }
.psoo-pay-gateway-label { flex: 1; font-weight: 800; font-size: 14px; color: #e0f0ff; }
.psoo-pay-gateway-status-dot { width: 9px; height: 9px; border-radius: 50%; }
.psoo-pay-gateway-status-dot.is-on  { background: var(--psoo-green); box-shadow: 0 0 10px var(--psoo-green); animation: psoo-dot-pulse 2s ease-in-out infinite; }
.psoo-pay-gateway-status-dot.is-off { background: rgba(224,240,255,0.12); }

/* Toggle */
.psoo-pay-toggle { position: relative; width: 38px; height: 21px; flex-shrink: 0; cursor: pointer; }
.psoo-pay-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.psoo-pay-toggle-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.09);
  border-radius: 21px;
  transition: background 0.25s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.psoo-pay-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.psoo-pay-toggle input:checked ~ .psoo-pay-toggle-track { background: var(--psoo-green); box-shadow: 0 0 12px rgba(151,228,110,0.35), inset 0 2px 4px rgba(0,0,0,0.2); }
.psoo-pay-toggle input:checked ~ .psoo-pay-toggle-track::after { transform: translateX(17px); }

.psoo-pay-fee-row { display: flex; align-items: center; gap: 8px; }
.psoo-pay-fee-row .psoo-pay-input { width: 84px; }
.psoo-pay-fee-unit { font-size: 13px; color: var(--psoo-text-dim); }
.psoo-pay-fee-display { font-size: 20px; font-weight: 950; color: var(--psoo-cyan); text-shadow: 0 0 12px rgba(110,193,228,0.25); }

/* Withdrawal row */
.psoo-pay-withdraw-row {
  background: rgba(9,11,28,0.45);
  border: 1px solid rgba(110,193,228,0.11);
  border-radius: 16px; padding: 24px 26px; margin-top: 10px;
  animation: psoo-fade-up 0.5s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-withdraw-row h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #e0f0ff; }
.psoo-pay-withdraw-row > p { margin: 0 0 16px; font-size: 12px; color: var(--psoo-text-dim); }
.psoo-pay-radio-group { display: flex; flex-direction: column; gap: 12px; }
.psoo-pay-radio-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; color: rgba(224,240,255,0.75); transition: color 0.2s; }
.psoo-pay-radio-label:hover { color: #e0f0ff; }
.psoo-pay-radio-label input[type="radio"] { accent-color: var(--psoo-cyan); width: 17px; height: 17px; }
.psoo-pay-withdraw-feedback { margin-top: 12px; font-size: 12px; color: var(--psoo-green); min-height: 18px; }

/* ── Products panel ── */
.psoo-pay-product-search-wrap { position: relative; margin-bottom: 22px; }
.psoo-pay-product-search-wrap .psoo-pay-input { width: 100%; }
.psoo-pay-product-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(10,13,36,0.99);
  border: 1px solid rgba(110,193,228,0.22);
  border-radius: 14px; z-index: 200; max-height: 260px; overflow-y: auto;
  display: none; backdrop-filter: var(--psoo-blur);
  box-shadow: 0 16px 48px rgba(0,0,0,0.60);
  animation: psoo-scale-in 0.22s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-product-results.is-open { display: block; }
.psoo-pay-product-result-item {
  padding: 10px 16px; cursor: pointer; font-size: 13px; color: var(--psoo-text);
  border-bottom: 1px solid rgba(110,193,228,0.06);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s, padding-left 0.15s;
}
.psoo-pay-product-result-item:last-child { border-bottom: none; }
.psoo-pay-product-result-item:hover { background: rgba(110,193,228,0.09); padding-left: 22px; }
.psoo-pay-product-result-price { font-size: 12px; color: rgba(110,193,228,0.55); }
.psoo-pay-product-result-msg { padding: 11px 16px; font-size: 13px; color: var(--psoo-text-dim); font-style: italic; }
.psoo-pay-product-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: rgba(9,11,28,0.48); border: 1px solid rgba(110,193,228,0.09);
  border-radius: 12px; margin-bottom: 9px;
  transition: background 0.2s, transform 0.2s;
  animation: psoo-fade-up 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-product-row:hover { background: rgba(110,193,228,0.06); transform: translateX(4px); }
.psoo-pay-product-name  { flex: 1; font-size: 13px; font-weight: 700; color: rgba(224,240,255,0.85); }
.psoo-pay-product-price { font-size: 12px; color: rgba(110,193,228,0.55); }

/* ── Sales table ── */
.psoo-pay-commissions-table-wrap { overflow-x: auto; }
.psoo-pay-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px;
  background: rgba(9,11,28,0.45);
  border: 1px solid rgba(110,193,228,0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--psoo-shadow-deep);
  animation: psoo-fade-up 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-table th {
  text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.12em; color: rgba(110,193,228,0.65);
  border-bottom: 1px solid rgba(110,193,228,0.12);
  background: rgba(110,193,228,0.04);
}
.psoo-pay-table td {
  padding: 12px 16px; color: var(--psoo-text);
  border-bottom: 1px solid rgba(110,193,228,0.06);
  transition: background 0.2s;
}
.psoo-pay-table tr:last-child td { border-bottom: none; }
.psoo-pay-table tbody tr:hover td { background: rgba(110,193,228,0.05); }

/* ── Vendor expense form ── */
.psoo-pay-expense-form {
  background: rgba(9,11,28,0.45);
  border: 1px solid rgba(110,193,228,0.11);
  border-radius: 16px; padding: 24px; margin-bottom: 26px;
  backdrop-filter: blur(10px);
  box-shadow: var(--psoo-shadow-deep);
  animation: psoo-fade-up 0.5s cubic-bezier(0.22,1,0.36,1) both;
  position: relative; overflow: hidden;
}
.psoo-pay-expense-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,193,228,0.4), transparent);
}
.psoo-pay-form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.psoo-pay-form-col { flex: 1; min-width: 160px; }
.psoo-pay-form-col--sm { flex: 0 0 145px; }
.psoo-pay-form-col .psoo-pay-input { width: 100%; }
.psoo-pay-expense-feedback { margin-top: 12px; font-size: 12px; color: var(--psoo-green); min-height: 18px; }
.psoo-pay-expense-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px;
  background: rgba(9,11,28,0.48); border: 1px solid rgba(110,193,228,0.09);
  border-radius: 12px; margin-bottom: 9px; flex-wrap: wrap;
  animation: psoo-slide-in-left 0.4s cubic-bezier(0.22,1,0.36,1) both;
  transition: background 0.2s, transform 0.2s;
}
.psoo-pay-expense-row:hover { background: rgba(110,193,228,0.06); transform: translateX(4px); }
.psoo-pay-expense-info { flex: 1; }
.psoo-pay-expense-desc { font-size: 13px; font-weight: 700; color: rgba(224,240,255,0.88); }
.psoo-pay-expense-product-tag {
  display: inline-block; margin-left: 9px; font-size: 10px; padding: 2px 9px;
  background: rgba(110,193,228,0.09); border: 1px solid rgba(110,193,228,0.18);
  border-radius: var(--psoo-radius-pill); color: var(--psoo-cyan);
}
.psoo-pay-expense-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.psoo-pay-expense-amount { font-weight: 900; font-size: 13px; color: var(--psoo-green); text-shadow: 0 0 10px rgba(151,228,110,0.20); }
.psoo-pay-expense-date { font-size: 11px; color: var(--psoo-text-dim); }

/* ── Profit Share cards ── */
.psoo-pay-profit-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px; margin-bottom: 36px;
  perspective: 800px;
}
.psoo-pay-profit-card {
  background: rgba(9,11,28,0.58);
  border: 1px solid rgba(110,193,228,0.13);
  border-radius: 18px; padding: 28px; text-align: center;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  animation: psoo-scale-in 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-profit-card:nth-child(1) { animation-delay: 0.05s; }
.psoo-pay-profit-card:nth-child(2) { animation-delay: 0.13s; }
.psoo-pay-profit-card:nth-child(3) { animation-delay: 0.21s; }
.psoo-pay-profit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  opacity: 0.35; transition: opacity 0.3s;
}
.psoo-pay-profit-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(110,193,228,0.06), transparent 70%);
  pointer-events: none;
}
.psoo-pay-profit-card:hover {
  border-color: rgba(110,193,228,0.32);
  transform: translateY(-8px) rotateX(3deg) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 24px rgba(110,193,228,0.08);
}
.psoo-pay-profit-card:hover::before { opacity: 0.75; }
.psoo-pay-profit-card-icon {
  font-size: 32px; display: block; margin-bottom: 14px;
  animation: psoo-float 4s ease-in-out infinite;
}
.psoo-pay-profit-card:nth-child(2) .psoo-pay-profit-card-icon { animation-delay: 0.8s; }
.psoo-pay-profit-card:nth-child(3) .psoo-pay-profit-card-icon { animation-delay: 1.6s; }
.psoo-pay-profit-card h4 { margin: 0 0 10px; font-size: 12px; font-weight: 900; color: #e8f0ff; text-transform: uppercase; letter-spacing: 0.08em; }
.psoo-pay-profit-card p  { margin: 0 0 18px; font-size: 12px; color: var(--psoo-text-dim); line-height: 1.55; }

.psoo-pay-withdrawal-summary {
  background: rgba(9,11,28,0.45);
  border: 1px solid rgba(255,204,0,0.14);
  border-radius: 16px; padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(255,204,0,0.04);
  animation: psoo-fade-up 0.5s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.psoo-pay-withdrawal-summary h4 { margin: 0 0 7px; font-size: 13px; font-weight: 900; color: var(--psoo-gold); }
.psoo-pay-withdrawal-summary p  { margin: 0 0 9px; font-size: 13px; color: rgba(224,240,255,0.72); }
.psoo-pay-tab-link { font-size: 12px; color: var(--psoo-cyan); text-decoration: underline; cursor: pointer; transition: color 0.2s; }
.psoo-pay-tab-link:hover { color: #fff; }

/* Rename button */
.psoo-pay-rename-btn {
  background: rgba(255,204,0,0.08) !important;
  border: 1px solid rgba(255,204,0,0.28) !important;
  color: var(--psoo-gold) !important;
}
.psoo-pay-rename-btn:hover {
  background: rgba(255,204,0,0.16) !important;
  box-shadow: 0 4px 16px rgba(255,204,0,0.12) !important;
}

/* ── Rename modal ── */
.psoo-pay-modal {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(5,7,20,0.85); backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
.psoo-pay-modal.is-open {
  display: flex;
  animation: psoo-fade-in 0.25s ease both;
}
.psoo-pay-modal-inner {
  width: min(480px, 94vw);
  background: linear-gradient(155deg, rgba(12,15,40,0.99), rgba(9,11,28,0.98));
  border: 1px solid rgba(110,193,228,0.22);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 32px 72px rgba(0,0,0,0.70), var(--psoo-shadow-glow);
  animation: psoo-scale-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
}
.psoo-pay-modal-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
  background-size: 200% 100%;
  animation: psoo-border-flow 4s ease infinite;
}
.psoo-pay-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid rgba(110,193,228,0.10);
}
.psoo-pay-modal-title { font-size: 11px; font-weight: 900; color: rgba(110,193,228,0.75); text-transform: uppercase; letter-spacing: 0.12em; }
.psoo-pay-modal-close { background: none !important; border: none !important; color: var(--psoo-text-dim) !important; font-size: 22px !important; cursor: pointer; padding: 0 6px !important; line-height: 1 !important; transition: color 0.2s !important; }
.psoo-pay-modal-close:hover { color: #b608c9 !important; }
.psoo-pay-modal-body { padding: 28px; }
.psoo-pay-modal-body .psoo-pay-input { width: 100%; margin-bottom: 14px; }
.psoo-pay-modal-feedback { font-size: 12px; color: var(--psoo-green); min-height: 18px; margin-bottom: 16px; }

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   GROUP HEADER — POINT TYPE TOKEN CARD
   ============================================================================= */

.terminal-token-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255,204,0,.08) 0%, rgba(255,204,0,.03) 100%);
  border: 1px solid rgba(255,204,0,.22);
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.terminal-token-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255,204,0,.07) 0%, transparent 60%);
  pointer-events: none;
}
.terminal-token-card:hover { border-color: rgba(255,204,0,.45); }
/* Full-width banner variant — the token card now renders as its own top
   row in the header (see gdc_gs_render_group_token_banner()). */
.terminal-token-card--banner {
  flex: 0 1 66%;
  width: 66%;
  margin: 0 auto;
  padding: 12px 20px;
}
.bridge-row--token { justify-content: center; }
@media (max-width: 800px) {
  .terminal-token-card--banner { width: 100%; flex-basis: 100%; }
}

.terminal-token-visual { flex-shrink: 0; }
.terminal-token-coin {
  width: 34px; height: 34px;
  background: rgba(255,204,0,.12);
  border: 1px solid rgba(255,204,0,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(255,204,0,.15);
}
.terminal-token-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,204,0,.35);
}
.terminal-token-info {
  flex: 1;
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.terminal-token-name {
  font-size: 13px; font-weight: 700;
  color: #ffcc00;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.terminal-token-edit-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,204,0,.12);
  border: 1px solid rgba(255,204,0,.35);
  border-radius: 6px;
  color: #ffcc00;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
.terminal-token-edit-btn:hover {
  background: rgba(255,204,0,.26);
  border-color: rgba(255,204,0,.6);
  color: #fff0a0;
  text-decoration: none;
}

/* =============================================================================
   PROFIT SHARE — INNER SUB-TABS
   ============================================================================= */

.psoo-profit-share-wrap {
  padding: 0;
}

/* Sub-tab nav */
.psoo-profit-sub-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 20px 28px 0;
  border-bottom: 1px solid rgba(255,204,0,.12);
  background: rgba(255,204,0,.03);
}
.psoo-profit-sub-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: rgba(224,240,255,.5);
  cursor: pointer;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  text-transform: uppercase;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  position: relative; bottom: -1px;
}
.psoo-profit-sub-tab:hover {
  color: #ffcc00;
  background: rgba(255,204,0,.06);
  border-color: rgba(255,204,0,.15);
}
.psoo-profit-sub-tab.is-active {
  color: #ffcc00;
  background: var(--psoo-obsidian, #0b0e14);
  border-color: rgba(255,204,0,.25);
  border-bottom-color: var(--psoo-obsidian, #0b0e14);
}

/* Sub-panels */
.psoo-profit-sub-panels { padding: 0; }
.psoo-profit-sub-panel { display: none; padding: 28px; }
.psoo-profit-sub-panel.is-active { display: block; }

/* ── Details panel ── */
.psoo-profit-details-wrap,
.psoo-profit-utilities-wrap,
.psoo-profit-balances-wrap,
.psoo-sweat-equity-wrap { max-width: 780px; }

.psoo-profit-section-label {
  font-size: 10px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,204,0,.6);
  margin: 22px 0 10px;
  border-bottom: 1px solid rgba(255,204,0,.1);
  padding-bottom: 6px;
}
.psoo-profit-hint {
  font-weight: 400;
  font-size: 11px;
  color: rgba(224,240,255,.4);
  margin-left: 4px;
}
.psoo-profit-field-group { margin-bottom: 16px; }
.psoo-profit-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.psoo-profit-textarea {
  resize: vertical;
  min-height: 72px;
}
.psoo-profit-input--sm { max-width: 140px; }
.psoo-profit-details-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px;
}

/* Token image picker */
.psoo-profit-img-picker {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.psoo-profit-img-preview {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,204,0,.25);
  background: rgba(255,204,0,.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.psoo-profit-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.psoo-profit-img-placeholder { display: flex; align-items: center; justify-content: center; }

/* View-only detail rows */
.psoo-profit-details-view { display: flex; flex-direction: column; gap: 14px; }
.psoo-profit-detail-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}
.psoo-profit-detail-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,204,0,.6);
  flex: 0 0 140px;
}
.psoo-profit-detail-value { font-size: 14px; color: var(--psoo-text, #e0f0ff); }

/* Feedback message */
.psoo-profit-feedback {
  font-size: 12px;
  transition: color 0.2s;
}
.psoo-profit-feedback.is-success { color: #00ff88; }
.psoo-profit-feedback.is-error   { color: #ff6b6b; }

/* ── Utilities panel ── */
.psoo-profit-utility-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.psoo-profit-utility-card.is-enabled { border-color: rgba(255,204,0,.2); }

.psoo-profit-utility-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.psoo-profit-utility-icon { flex-shrink: 0; }
.psoo-profit-utility-text { flex: 1; min-width: 0; }
.psoo-profit-utility-name {
  font-size: 14px; font-weight: 700;
  color: var(--psoo-text, #e0f0ff);
}
.psoo-profit-utility-desc {
  font-size: 12px;
  color: rgba(224,240,255,.5);
  margin-top: 2px;
}
.psoo-profit-utility-toggle-wrap { flex-shrink: 0; }
.psoo-profit-utility-state-badge {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}
.psoo-profit-utility-state-badge.is-on  { background: rgba(0,255,136,.12); color: #00ff88; }
.psoo-profit-utility-state-badge.is-off { background: rgba(255,255,255,.06); color: rgba(224,240,255,.4); }

/* Expandable settings */
.psoo-profit-utility-settings {
  display: none;
  border-top: 1px solid rgba(255,255,255,.06);
}
.psoo-profit-utility-settings.is-open { display: block; }
.psoo-profit-utility-settings-inner { padding: 16px 18px 18px; }

/* ── Balances panel ── */
.psoo-profit-balances-table-wrap { overflow-x: auto; margin-top: 8px; }
.psoo-profit-balances-table { width: 100%; min-width: 480px; }
.psoo-profit-balances-table .psoo-col-rank { width: 40px; }
.psoo-profit-member-cell {
  display: flex; align-items: center; gap: 8px;
}
.psoo-profit-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.psoo-profit-bal-cell  { font-weight: 700; color: #ffcc00; }
.psoo-profit-rank      { color: rgba(224,240,255,.4); font-size: 12px; }

.psoo-profit-pct-cell { min-width: 100px; }
.psoo-profit-pct-bar-wrap {
  display: flex; align-items: center; gap: 8px;
}
.psoo-profit-pct-bar {
  height: 6px;
  background: linear-gradient(90deg, #ffcc00, rgba(255,204,0,.4));
  border-radius: 3px;
  min-width: 2px;
  max-width: 80px;
  transition: width 0.3s;
}
.psoo-profit-pct-label {
  font-size: 11px;
  color: rgba(255,204,0,.8);
  white-space: nowrap;
}
.psoo-profit-total-row { border-top: 1px solid rgba(255,204,0,.2); }
.psoo-profit-total-row td { color: rgba(255,204,0,.8); font-weight: 700; }

/* ── Sweat Equity panel ── */
.psoo-sweat-intro {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(182,8,201,.05);
  border: 1px solid rgba(182,8,201,.18);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 26px;
}
.psoo-sweat-intro-icon { flex-shrink: 0; margin-top: 2px; }
.psoo-sweat-intro-body h3 {
  margin: 0 0 8px;
  font-size: 16px; font-weight: 800;
  color: var(--psoo-text, #e0f0ff);
}
.psoo-sweat-intro-body p {
  font-size: 13px; line-height: 1.65;
  color: rgba(224,240,255,.7);
  margin: 0 0 12px;
}
.psoo-sweat-how-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.psoo-sweat-how-list li {
  font-size: 12px; color: rgba(224,240,255,.6);
  padding-left: 16px; position: relative;
}
.psoo-sweat-how-list li::before {
  content: "›";
  position: absolute; left: 0;
  color: #b608c9;
}

/* Active contract */
.psoo-sweat-status-bar {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #00ff88;
  margin-bottom: 18px;
}
.psoo-sweat-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  animation: psoo-pulse 2s ease-in-out infinite;
}
@keyframes psoo-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.psoo-sweat-contract-title {
  font-size: 18px; font-weight: 800;
  color: var(--psoo-text, #e0f0ff);
  margin: 0 0 6px;
}
.psoo-sweat-contract-desc {
  font-size: 13px; color: rgba(224,240,255,.6);
  margin: 0 0 18px;
}
.psoo-sweat-ms-view {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.psoo-sweat-ms-view-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.psoo-sweat-ms-view-head strong { font-size: 13px; font-weight: 700; }
.psoo-sweat-ms-total {
  font-size: 12px; font-weight: 700;
  color: #ffcc00;
  background: rgba(255,204,0,.1);
  border-radius: 100px;
  padding: 2px 10px;
}
.psoo-sweat-task-view {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.psoo-sweat-task-view:last-child { border-bottom: none; }
.psoo-sweat-task-dot { flex-shrink: 0; }
.psoo-sweat-task-name { flex: 1; font-size: 13px; color: rgba(224,240,255,.8); }
.psoo-sweat-task-reward-badge {
  font-size: 11px; font-weight: 700;
  background: rgba(255,204,0,.1);
  color: rgba(255,204,0,.8);
  border-radius: 100px;
  padding: 2px 8px;
  white-space: nowrap;
}
.psoo-sweat-task--done .psoo-sweat-task-name { text-decoration: line-through; opacity: 0.5; }

/* Contract builder */
.psoo-sweat-builder-head {
  display: flex; align-items: flex-start; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.psoo-sweat-builder-head h4 {
  margin: 0; font-size: 15px; font-weight: 800;
  color: var(--psoo-text, #e0f0ff);
}
.psoo-sweat-launch-req {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,204,0,.08);
  border: 1px solid rgba(255,204,0,.2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px; color: rgba(255,204,0,.9);
}

.psoo-sweat-field-group { margin-bottom: 16px; }
.psoo-sweat-milestones-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(182,8,201,.8);
  border-bottom: 1px solid rgba(182,8,201,.15);
  padding-bottom: 8px;
  margin: 22px 0 14px;
}

.psoo-sweat-milestone-builder {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.psoo-sweat-ms-builder-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.psoo-sweat-ms-builder-head .psoo-pay-input { flex: 1; font-weight: 700; }
.psoo-sweat-remove-ms {
  background: rgba(182,8,201,.12);
  border: 1px solid rgba(182,8,201,.3);
  border-radius: 6px;
  color: rgba(182,8,201,.8);
  cursor: pointer;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
  transition: background 0.18s;
}
.psoo-sweat-remove-ms:hover { background: rgba(182,8,201,.28); }

.psoo-sweat-task-builder {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.psoo-sweat-task-builder:last-child { border-bottom: none; }
.psoo-sweat-task-builder .psoo-sweat-task-name { flex: 1; }
.psoo-sweat-reward-wrap {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.psoo-sweat-token-label {
  font-size: 11px; color: rgba(255,204,0,.7);
  white-space: nowrap;
}
.psoo-sweat-remove-task {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 16px; font-weight: 700;
  padding: 0 4px;
  transition: color 0.18s;
}
.psoo-sweat-remove-task:hover { color: #ff6b6b; }

.psoo-sweat-add-task {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.7;
}
.psoo-sweat-add-task:hover { opacity: 1; }

.psoo-sweat-builder-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {
  .psoo-bp-wrapper { padding: 20px 16px; }
  .psoo-proposals-screen { padding: 24px 16px; }
  .psoo-proposal-body { padding: 24px 20px; }
  .psoo-proposal-body-header { flex-direction: column; align-items: flex-start; }
  .psoo-proposal-edit-frame-wrap { width: 98vw; height: 85vh; }

  .psoo-pay-features-grid   { grid-template-columns: 1fr; }
  .psoo-pay-advantage-card  { flex-direction: column; text-align: center; }
  .psoo-pay-fee-grid        { grid-template-columns: 1fr; }
  .psoo-pay-activation      { padding: 54px 20px 60px; }
  .psoo-pay-tab-panels      { padding: 24px 20px; }
  .psoo-pay-dash-header     { padding: 22px 20px 0; }
  .psoo-pay-main-brief      { padding: 32px; }
  .psoo-pay-advantage-card  { padding: 32px; }
}
@media (max-width: 600px) {
  .psoo-pay-hero-title       { font-size: 2.2rem; }
  .psoo-pay-form-row         { flex-direction: column; }
  .psoo-pay-form-col--sm     { flex: 1; }
  .psoo-pay-gateways-grid    { grid-template-columns: 1fr 1fr; }
  .psoo-pay-tab              { padding: 10px 14px; font-size: 12px; }
}
@media (max-width: 768px) {
  .psoo-full-width { padding: 0; }
}

/* =============================================================================
   BP BRIDGE GROUP HEADER
   Glassmorphic, 3-D tilt, perimeter glow — replaces Youzify group header.
   ============================================================================= */

/* ── Youzify + BuddyPress layout overrides ── */
/* Scope group-only nav suppression to group pages via psoo-has-project-header body class.
   #youzify-profile-navmenu must NOT be hidden globally — it is used on member profile pages. */
body.psoo-has-project-header #item-nav,
body.psoo-has-project-header .youzify-group-navmenu,
body.psoo-has-project-header #youzify-profile-navmenu,
body.psoo-has-project-header .youzify-group-header-navigation,
body.psoo-has-project-header .yz-group-nav,
body.psoo-has-project-header .bp-navs.group-subnav {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Strip default Youzify styling from the header wrapper our Bridge replaces */
#youzify-group-header {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
/* Hide Youzify's own cover-image structure if filter somehow still lets it render */
#youzify-group-header .youzify-header-cover,
#youzify-group-header #cover-image-container,
#youzify-group-header #item-header-cover-image,
#youzify-group-header #header-cover-image {
  display: none !important;
}

/* ── Group page: always-on Youzify neutralisation ──
   body.psoo-has-project-header is added by PHP (psoo_project_group_body_class)
   on every BuddyPress group page where Youzify is active, so these rules apply
   immediately without waiting for JS — no body.psoo-full-width-active needed.
   They scope exclusively to group pages so Youzify still works on member profiles. */
body.psoo-has-project-header #youzify,
body.psoo-has-project-header #youzify-bp,
body.psoo-has-project-header .youzify,
body.psoo-has-project-header .youzify-content,
body.psoo-has-project-header .youzify-group-content,
body.psoo-has-project-header .youzify-inner-content,
body.psoo-has-project-header .youzify-page-main-content,
body.psoo-has-project-header .youzify-main-column,
body.psoo-has-project-header .youzify-column-content,
body.psoo-has-project-header .yz-main-column,
body.psoo-has-project-header .yz-column-main,
body.psoo-has-project-header .yz-column-content,
body.psoo-has-project-header #youzify-group-body,
body.psoo-has-project-header #buddypress,
body.psoo-has-project-header #item-body {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Flatten Youzify CSS grid column layouts on group pages */
body.psoo-has-project-header .youzify-right-sidebar-layout,
body.psoo-has-project-header .youzify-left-sidebar-layout,
body.psoo-has-project-header .youzify-3columns-layout,
body.psoo-has-project-header .youzify-vertical-layout .youzify-content {
  display: block !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
  grid-gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide all sidebar variants on group pages */
body.psoo-has-project-header .youzify-sidebar-column,
body.psoo-has-project-header .yz-sidebar,
body.psoo-has-project-header .yz-column-right,
body.psoo-has-project-header .youzify-group-sidebar,
body.psoo-has-project-header .yz-group-sidebar {
  display: none !important;
}

/* ── Outer container ── */
.bp-bridge-header-container {
  position: relative;
  width: 100%;
  padding: 36px 32px;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--psoo-text);
  overflow: hidden;
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--psoo-obsidian);
  background-size: cover;
  background-position: center;
}

/* Dark gradient overlay over the cover image */
.bp-bridge-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%,   rgba(9,9,28,0.55) 0%, rgba(9,9,28,0.92) 100%),
              linear-gradient(180deg, rgba(9,9,28,0.45) 0%, rgba(9,9,28,0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Row layout ── */
.bridge-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ── Shared glass panel ── */
.bridge-panel {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --glow-strength: 0;
  position: relative;
  background: rgba(12, 16, 44, 0.70);
  border: 1px solid rgba(110, 193, 228, 0.16);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  /* 3-D tilt applied by JS — always keep transform-style */
  transform-style: preserve-3d;
  will-change: transform;
}

/* Perimeter glow via ::before — driven by CSS vars set by JS */
.bridge-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(110, 193, 228, calc(0.14 * var(--glow-strength))),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* ── Identity shield (row 1, left) ── */
.identity-shield {
  flex: 1.2 1 300px;
  display: flex;
  align-items: center; /* center-height align with the sibling cards */
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
}
.identity-shield .profile-wrap { align-self: center; }
.identity-shield .profile-wrap {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(110,193,228,0.30);
  overflow: hidden;
  box-shadow: 0 0 24px rgba(110,193,228,0.18);
  position: relative;
  z-index: 1;
}
.identity-shield .profile-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.identity-shield .avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(110,193,228,0.25), rgba(182,8,201,0.25));
  font-size: 28px; font-weight: 900; color: var(--psoo-cyan);
}
.identity-text { position: relative; z-index: 1; }
.identity-status {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(110,193,228,0.55);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.identity-name {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #e8f0ff;
}
.identity-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(224,240,255,0.45);
  max-width: 340px;
}

/* ── Identity badges ── */
.identity-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.identity-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.identity-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.identity-members-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(110,193,228,0.10);
  border: 1px solid rgba(110,193,228,0.22);
  color: rgba(110,193,228,0.80);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.identity-members-badge svg { opacity: 0.75; }
.identity-active {
  margin: 5px 0 0;
  font-size: 11px;
  color: rgba(224,240,255,0.35);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative; z-index: 1;
}
.identity-active svg { opacity: 0.5; flex-shrink: 0; }

/* ── Identity action buttons (Report Group, Join, Leave etc.) ── */
.identity-actions {
  position: relative; z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(110,193,228,0.10);
  width: 100%;
}
/* Style BP group header buttons inside our panel */
.identity-actions .generic-button a,
.identity-actions .generic-button button,
.identity-actions a.button,
.identity-actions button.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 1px solid rgba(110,193,228,0.25) !important;
  background: rgba(110,193,228,0.08) !important;
  color: rgba(110,193,228,0.82) !important;
  transition: background 0.2s, border-color 0.2s, transform 0.2s !important;
  box-shadow: none !important;
}
.identity-actions .generic-button a:hover,
.identity-actions a.button:hover {
  background: rgba(110,193,228,0.16) !important;
  border-color: rgba(110,193,228,0.45) !important;
  transform: translateY(-1px) !important;
  color: #e8f0ff !important;
}
/* Report Group — accent magenta */
.identity-actions .generic-button.report-group a,
.identity-actions a[href*="report"] {
  border-color: rgba(182,8,201,0.28) !important;
  background: rgba(182,8,201,0.07) !important;
  color: rgba(182,8,201,0.80) !important;
}

/* ── Connected app module (row 1, right) ── */
.assigned-app-module {
  flex: 1 1 260px; /* was 0 1 240px — grow with its siblings */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 28px;
}
.assigned-app-module.is-empty { opacity: 0.72; }
.app-icon-wrap {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(110,193,228,0.08);
  border: 1px solid rgba(110,193,228,0.22);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-decoration: none;
  position: relative; z-index: 1;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.app-icon-wrap:hover {
  border-color: rgba(110,193,228,0.55);
  box-shadow: 0 0 24px rgba(110,193,228,0.22);
  transform: scale(1.06);
}
.app-favicon { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.app-monogram {
  position: absolute;
  inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: var(--psoo-cyan);
}
.app-favicon + .app-monogram { opacity: 0; }
.app-text { position: relative; z-index: 1; }
.app-label {
  display: block;
  font-size: 9.5px; font-weight: 900;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(110,193,228,0.45);
  margin-bottom: 4px;
}
.app-name {
  display: block;
  font-size: 14px; font-weight: 800;
  color: #e8f0ff; line-height: 1.25;
}
.app-hint {
  display: block;
  font-size: 11px; color: rgba(110,193,228,0.32); margin-top: 4px;
  font-style: italic;
}
/* Connected-state CTA — replaces the favicon link + bold app-name
   pair so the asset card hands the customer one decisive action
   (jump to the live site) instead of showing the same name twice. */
.app-view-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(56,189,248,.16);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(56,189,248,.45);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-view-site-btn:hover,
.app-view-site-btn:focus {
  background: linear-gradient(135deg,#38bdf8,#7dd3fc);
  color: #0f172a;
  border-color: rgba(56,189,248,.6);
  outline: none;
  box-shadow: 0 18px 46px rgba(14,116,144,.4);
  transform: translateY(-1px);
}
/* 109-28 (D31): "Connect your Web App" in the empty middle card, group admins only.
   Same pill as View Site; the empty card's dimming does not apply to it. */
.assigned-app-module.is-empty:has(.app-connect-btn) { opacity: 1; }
.assigned-app-module.is-empty:has(.app-connect-btn) .app-name,
.assigned-app-module.is-empty:has(.app-connect-btn) .app-hint { opacity: 0.72; }
.app-connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(56,189,248,.16);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(56,189,248,.45);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-connect-btn:hover,
.app-connect-btn:focus {
  background: linear-gradient(135deg,#38bdf8,#7dd3fc);
  color: #0f172a;
  border-color: rgba(56,189,248,.6);
  outline: none;
  box-shadow: 0 18px 46px rgba(14,116,144,.4);
  transform: translateY(-1px);
}
/* 109-30b (D31): the button's target, gend-society's #gend-society-connect-panel anchor on the group's Compute Gas
   tab, clears the fixed header (the rule lived in gend-society's group-connect-link stylesheet, removed in 109-30). */
.gs-connect-panel-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 130px;
}

/* ── Consultant terminal (row 2, left) ── */
.consultant-terminal {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* center-height align with the sibling cards */
  gap: 18px;
  padding: 24px 28px;
}
.terminal-proposal {
  display: flex; align-items: flex-start; gap: 10px;
  position: relative; z-index: 1;
}
.terminal-proposal svg { flex-shrink: 0; margin-top: 2px; }
.terminal-label {
  display: block;
  font-size: 9.5px; font-weight: 900;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(110,193,228,0.45);
  margin-bottom: 4px;
}
.terminal-proposal-title {
  display: block;
  font-size: 13px; font-weight: 800;
  color: #e8f0ff; text-decoration: none; line-height: 1.3;
  transition: color 0.2s;
}
.terminal-proposal-title:hover { color: var(--psoo-cyan); }
/* Avatar + name wrap in a profile link — keep the row layout identical
   and light up the name on hover. */
.consultant-profile-link {
  display: flex; align-items: center; gap: 14px;
  min-width: 0; text-decoration: none; color: inherit;
}
.consultant-profile-link:hover .terminal-pm-name {
  color: var(--psoo-cyan, #6ec1e4);
  text-shadow: 0 0 10px rgba(110,193,228,.5);
}
/* Consultant chat icon — same line as the Lead Architect identity; opens
   the chat widget's mini DM box bottom-right (replaces the old full-width
   "Initialize Private Console" CTA once a consultant is assigned). */
.terminal-pm-chat-btn {
  margin-left: auto;
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(110,193,228,.35);
  background: rgba(110,193,228,.1);
  color: #6ec1e4;
  cursor: pointer;
  position: relative; z-index: 1;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .2s ease, color .2s ease;
}
.terminal-pm-chat-btn:hover {
  color: #fff;
  border-color: rgba(182,8,201,.6);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 16px rgba(182,8,201,.5), 0 0 30px rgba(110,193,228,.25);
}
.consultant-top {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
}
.consultant-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(110,193,228,0.28);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(110,193,228,0.15);
  flex-shrink: 0;
}
.consultant-avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(110,193,228,0.20), rgba(182,8,201,0.20));
  border: 2px solid rgba(110,193,228,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: var(--psoo-cyan);
  flex-shrink: 0;
}
.terminal-pm-name {
  display: block;
  font-size: 14px; font-weight: 800; color: #e8f0ff; line-height: 1.25;
}
.btn-message-consultant {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--psoo-cyan) 0%, var(--psoo-magenta) 100%);
  border: none; border-radius: 12px;
  color: #080a1e; font-weight: 900; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 18px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(110,193,228,0.22), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease;
  overflow: hidden; align-self: flex-start;
}
.btn-message-consultant::after {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.16);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.btn-message-consultant:hover::after { left: 130%; }
.btn-message-consultant:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(182,8,201,0.32), 0 4px 12px rgba(0,0,0,0.3);
  color: #080a1e;
  text-decoration: none;
}
.btn-assign-pm {
  background: linear-gradient(135deg, rgba(110,193,228,0.15), rgba(182,8,201,0.15));
  border: 1px solid rgba(110,193,228,0.30);
  color: var(--psoo-cyan);
  box-shadow: none;
}

/* ── Invest button (below Group Token when raise is open) ─────────── */
.btn-invest-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ffcc00 0%, #ffa600 50%, #b608c9 100%);
  box-shadow: 0 8px 24px rgba(255,204,0,0.18), 0 2px 8px rgba(182,8,201,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-invest-now:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(255,204,0,0.28), 0 4px 14px rgba(182,8,201,0.28);
  filter: brightness(1.05);
}
.btn-invest-now:active { transform: translateY(0) scale(1); }
.btn-invest-now svg { stroke: currentColor; flex-shrink: 0; }

/* ── Invest modal ─────────────────────────────────────────────────── */
.psoo-invest-modal {
  position: fixed;
  inset: 0;
  z-index: 1000050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  box-sizing: border-box;
}
.psoo-invest-modal.is-open { display: flex; }
.psoo-invest-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 16, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.psoo-invest-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: linear-gradient(170deg, rgba(11,14,28,0.96), rgba(8,10,22,0.98));
  border: 1px solid rgba(110,193,228,0.30);
  border-radius: 22px;
  padding: 32px 36px;
  color: #f8fbff;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}
.psoo-invest-modal__close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: 0;
  color: #f8fbff;
  font-size: 26px; line-height: 1; cursor: pointer;
  padding: 0 6px;
}
.psoo-invest-modal__close:hover { color: #ffcc00; }
.psoo-invest-modal h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffcc00, #b608c9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.psoo-invest-modal__sub { margin: 0 0 18px; color: #a5b4fc; font-size: 0.88rem; }
.psoo-invest-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.psoo-invest-stat { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; }
.psoo-invest-stat__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.psoo-invest-stat__value { color: #fff; font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.psoo-invest-progress { background: rgba(255,255,255,0.06); border-radius: 999px; height: 8px; overflow: hidden; margin: 4px 0 16px; }
.psoo-invest-progress__bar { height: 100%; background: linear-gradient(90deg, #ffcc00, #b608c9); transition: width 0.4s; }
.psoo-invest-form { display: flex; flex-direction: column; gap: 10px; }
.psoo-invest-form label { font-size: 0.78rem; color: #cbd5f5; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.psoo-invest-form .with-suffix { position: relative; }
.psoo-invest-form .with-suffix input {
  width: 100%; box-sizing: border-box;
  padding: 12px 64px 12px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: #fff; font-size: 1.05rem; font-weight: 600;
}
.psoo-invest-form .with-suffix input:focus { outline: 0; border-color: rgba(255,204,0,0.55); box-shadow: 0 0 0 2px rgba(255,204,0,0.18); }
.psoo-invest-form .with-suffix .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #ffcc00; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; }
.psoo-invest-form .max-btn { background: rgba(255,204,0,0.12); border: 1px solid rgba(255,204,0,0.30); color: #ffcc00; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 0.7rem; font-weight: 700; }
.psoo-invest-quote { background: rgba(255,204,0,0.06); border: 1px solid rgba(255,204,0,0.18); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; color: #e6edf7; font-size: 0.92rem; }
.psoo-invest-quote strong { color: #ffcc00; font-weight: 800; }
.psoo-invest-submit {
  margin-top: 6px;
  padding: 14px 20px;
  border: 0; border-radius: 12px;
  font-size: 0.95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #080a1e; cursor: pointer;
  background: linear-gradient(135deg, #ffcc00, #ffa600);
  box-shadow: 0 12px 28px rgba(255,204,0,0.25);
  transition: transform 0.18s, box-shadow 0.18s;
}
.psoo-invest-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255,204,0,0.35); }
.psoo-invest-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.psoo-invest-feedback { min-height: 18px; font-size: 0.85rem; margin-top: 8px; }
.psoo-invest-feedback.is-error { color: #ff8b8b; }
.psoo-invest-feedback.is-success { color: #6ee7b7; }
.psoo-invest-loading { color: #94a3b8; padding: 14px 0; text-align: center; font-style: italic; }

/* ── Bridge nav menu (row 2, right) ── */
.bridge-menu {
  flex: 2 1 380px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.menu-item {
  flex: 1 1 130px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-radius: 14px !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  color: rgba(224,240,255,0.72) !important;
  cursor: pointer;
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s cubic-bezier(0.22,1,0.36,1);
  min-width: 0;
}
.menu-item svg {
  flex-shrink: 0;
  opacity: 0.60;
  transition: opacity 0.22s;
}
.menu-item:hover {
  color: #e8f0ff !important;
  background: rgba(110,193,228,0.10) !important;
  border-color: rgba(110,193,228,0.30) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}
.menu-item:hover svg { opacity: 1; }
.menu-item.is-active {
  background: rgba(110,193,228,0.13) !important;
  border-color: rgba(110,193,228,0.38) !important;
  color: #e8f0ff !important;
  box-shadow: 0 4px 20px rgba(110,193,228,0.14), inset 0 1px 0 rgba(110,193,228,0.10) !important;
}
.menu-item.is-active svg { opacity: 1; }
/* Accent left border — inline style sets the colour, these rules fix the shape.
   We override any global border shorthand that might reset it. */
.menu-item[style*="border-left"] {
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 0 14px 14px 0 !important;
}
.menu-item[style*="border-left"].is-active {
  border-top-color: rgba(110,193,228,0.15) !important;
  border-right-color: rgba(110,193,228,0.15) !important;
  border-bottom-color: rgba(110,193,228,0.15) !important;
}
/* Active glow tint uses the item's own accent colour via a subtle bg */
.menu-item.is-active { background: rgba(255,255,255,0.05) !important; }
.menu-item.is-admin { opacity: 0.72; }

/* =============================================================================
   BRIDGE STICKY NAV BAR
   Injected at <body> level so it spans the full viewport width.
   Slides in with a 3-D perspective-flip when the Bridge Header scrolls away.
   ============================================================================= */

#bridge-sticky-bar {
  position: fixed;
  top: 0; /* overridden by JS to sit below WP admin bar + site header */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9990;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* center the menu items in the sticky bar — the
                              gend-society avatar/visit-site sit at the left
                              as a separate fixed element, so centering here
                              keeps the nav balanced rather than hugging an
                              edge. */
  gap: 6px;
  padding: 8px 28px;
  box-sizing: border-box;
  background: rgba(6, 7, 20, 0.97);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(110, 193, 228, 0.14);
  box-shadow: 0 6px 32px rgba(0,0,0,0.60), 0 1px 0 rgba(110,193,228,0.08);

  /* 3-D entry: start tilted back (like looking down at an angle) */
  transform: perspective(900px) rotateX(-14deg) translateY(-100%);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.35s ease;
  will-change: transform, opacity;
}

/* Fully-flat, visible state */
#bridge-sticky-bar.is-visible {
  transform: perspective(900px) rotateX(0deg) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Items inside the sticky bar — compact version of .menu-item */
#bridge-sticky-bar .menu-item {
  flex: 0 1 auto !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
  border-radius: 0 10px 10px 0 !important;
  /* Disable the 3-D tilt on sticky items */
  transform: none !important;
  transition: color 0.2s, background 0.2s, border-color 0.2s !important;
}
#bridge-sticky-bar .menu-item.no-tilt { transform: none !important; }
#bridge-sticky-bar .menu-item:hover {
  transform: none !important;
  background: rgba(110,193,228,0.12) !important;
}
#bridge-sticky-bar .menu-item.is-active {
  background: rgba(255,255,255,0.06) !important;
}
#bridge-sticky-bar .menu-item svg {
  width: 13px;
  height: 13px;
}

/* Thin animated top-edge line when visible */
#bridge-sticky-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,193,228,0.55), rgba(182,8,201,0.45), transparent);
  background-size: 200% 100%;
  animation: psoo-border-flow 5s ease infinite;
  pointer-events: none;
}

@media (max-width: 768px) {
  #bridge-sticky-bar { padding: 6px 14px; gap: 4px; }
  #bridge-sticky-bar .menu-item { padding: 6px 10px !important; font-size: 11px !important; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bp-bridge-header-container { padding: 24px 20px; gap: 16px; }
  .assigned-app-module { flex: 1 1 200px; }
}
@media (max-width: 768px) {
  .bridge-row { flex-direction: column; }
  .identity-shield,
  .assigned-app-module,
  .consultant-terminal { flex: none; width: 100%; }
  .bridge-menu { flex: none; width: 100%; }
  .identity-name { font-size: 1.2rem; }
  .bp-bridge-header-container { padding: 20px 16px; }
}
@media (max-width: 480px) {
  .menu-item { flex: 1 1 90px; font-size: 11.5px; padding: 11px 12px; }
}

/* =============================================================================
   PROPOSALS TAB v2 — PM Panel, Group Admin Panel, Confirmations
   ============================================================================= */

/* ── Base button helpers ── */
.psoo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s;
  line-height: 1; white-space: nowrap;
}
.psoo-btn:disabled { opacity: .45; cursor: not-allowed; }
.psoo-btn-new-proposal {
  background: rgba(0,210,255,.14) !important; border-color: rgba(0,210,255,.55) !important; color: #00d2ff !important;
}
.psoo-btn-new-proposal:hover { background: rgba(0,210,255,.25) !important; border-color: #00d2ff !important; }
.psoo-btn-ghost {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(224,240,255,.7);
}
.psoo-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.psoo-btn-confirm-activate {
  background: rgba(0,210,255,.18); border-color: rgba(0,210,255,.5); color: #00d2ff;
}
.psoo-btn-confirm-activate:hover { background: rgba(0,210,255,.3); }
.psoo-btn-danger {
  background: rgba(182,8,201,.15); border-color: rgba(182,8,201,.45); color: #b608c9;
}
.psoo-btn-danger:hover { background: rgba(182,8,201,.3); }
.psoo-btn-save-visibility {
  background: rgba(151,228,110,.12); border-color: rgba(151,228,110,.4); color: #97e46e;
}
.psoo-btn-save-visibility:hover { background: rgba(151,228,110,.22); }
.psoo-btn-viewer-view {
  background: rgba(110,193,228,.12); border-color: rgba(110,193,228,.4); color: #6ec1e4; flex-shrink: 0;
}
.psoo-btn-viewer-view:hover { background: rgba(110,193,228,.22); }

/* ── PM Panel ── */
/* Scoped to proposals tab — prevents colliding with PM dashboard tab panels */
.psoo-proposals-tab .psoo-pm-panel {
  margin: 0 0 32px;
  display: flex !important; flex-direction: column; gap: 20px;
  background: rgba(10,16,44,.95) !important;
  border: 1px solid rgba(110,193,228,.45) !important;
  border-top: 2px solid #6ec1e4 !important;
  border-radius: 20px;
  padding: 20px 22px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  /* animation defined above via entrance-up — no none override here */
}
.psoo-proposals-tab .psoo-pm-panel * { pointer-events: auto; }

/* New Proposal section */
.psoo-new-proposal-section { position: relative; }
.psoo-template-search-panel {
  margin-top: 14px;
  background: rgba(14,18,44,.72); border: 1px solid rgba(0,210,255,.18);
  border-radius: 16px; padding: 20px 22px;
  animation: psoo-fade-up .25s ease forwards;
}
.psoo-prop-select-head h4 {
  font-size: 14px; font-weight: 700; color: #e0f0ff; margin: 0 0 4px;
}
.psoo-prop-select-hint {
  font-size: 12.5px; color: rgba(224,240,255,.5); margin: 0 0 14px;
}
.psoo-prop-search-row {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
}

/* All Proposals section */
.psoo-all-proposals-section {
  background: rgba(15,20,52,.92) !important;
  border: 1px solid rgba(110,193,228,.32) !important;
  border-radius: 20px; overflow: hidden;
  opacity: 1 !important; visibility: visible !important; animation: none !important;
}
.psoo-proposals-list-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid rgba(110,193,228,.18);
  background: rgba(10,15,40,.85);
}
.psoo-proposals-list-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #e0f0ff !important; margin: 0;
}
.psoo-proposals-status-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.psoo-status-tab {
  padding: 5px 12px; border-radius: 100px; border: 1px solid transparent;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
  background: transparent; color: rgba(224,240,255,.5);
}
.psoo-status-tab:hover { color: #e0f0ff; background: rgba(255,255,255,.06); }
.psoo-status-tab.is-active {
  background: rgba(110,193,228,.15); border-color: rgba(110,193,228,.45); color: #6ec1e4;
}
.psoo-proposals-list-search-wrap {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.3); border: 1px solid var(--psoo-border);
  border-radius: 8px; padding: 6px 10px; flex: 1; min-width: 160px;
  color: rgba(224,240,255,.4);
}
.psoo-proposals-list-search {
  background: none; border: none; outline: none; flex: 1;
  font-size: 12.5px; color: #e0f0ff;
}
.psoo-proposals-list-search::placeholder { color: rgba(224,240,255,.3); }

/* List items */
.psoo-proposals-list-container { padding: 8px 0; min-height: 60px; }
.psoo-proposals-list-loading, .psoo-proposals-list-empty {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 24px 20px; font-size: 13px; color: rgba(224,240,255,.4);
}
.psoo-proposal-list-item {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(110,193,228,.07);
  transition: background .15s, opacity .25s;
}
.psoo-proposal-list-item:last-child { border-bottom: none; }
.psoo-proposal-list-item:hover { background: rgba(110,193,228,.04); }
.psoo-proposal-list-item.is-active { background: rgba(0,210,255,.05); }
.psoo-proposal-list-item.psoo-item-removing { opacity: 0; pointer-events: none; }

.psoo-pli-info {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0;
}
.psoo-pli-title {
  font-size: 13px; font-weight: 600; color: #e0f0ff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
.psoo-pli-active-badge {
  display: inline-flex; align-items: center;
  background: rgba(0,210,255,.15); border: 1px solid rgba(0,210,255,.4); color: #00d2ff;
  padding: 2px 8px; border-radius: 100px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.psoo-pli-status-badge {
  display: inline-flex; align-items: center;
  background: rgba(var(--status-color,.7),.1);
  border: 1px solid color-mix(in srgb, var(--status-color) 40%, transparent);
  color: var(--status-color);
  padding: 2px 8px; border-radius: 100px; font-size: 10.5px; font-weight: 600;
}
/* Fallback for browsers without color-mix */
.psoo-pli-status-badge { background: rgba(110,193,228,.1); border-color: rgba(110,193,228,.35); color: #6ec1e4; }

.psoo-pli-actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap;
}
.psoo-pli-set-active {
  background: rgba(0,210,255,.1); border-color: rgba(0,210,255,.3); color: #00d2ff;
  padding: 6px 12px; font-size: 12px;
}
.psoo-pli-set-active:hover { background: rgba(0,210,255,.22); }
.psoo-pli-edit {
  background: rgba(110,193,228,.1); border-color: rgba(110,193,228,.3); color: #6ec1e4;
  padding: 6px 12px; font-size: 12px;
}
.psoo-pli-edit:hover { background: rgba(110,193,228,.2); }
.psoo-pli-delete {
  background: rgba(182,8,201,.08); border-color: rgba(182,8,201,.3); color: #b608c9;
  padding: 6px 10px; font-size: 12px;
}
.psoo-pli-delete:hover { background: rgba(182,8,201,.2); }
.psoo-pli-workspace, .psoo-btn-workspace-link {
  background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); color: #34d399;
  padding: 6px 12px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.psoo-pli-workspace:hover, .psoo-btn-workspace-link:hover { background: rgba(16,185,129,.18); color: #34d399; }

/* ── Group Admin Panel ── */
.psoo-group-admin-panel {
  display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* animation defined above via entrance-up */
}
.psoo-group-admin-panel * { pointer-events: auto; }

/* Visibility panel */
.psoo-visibility-panel {
  background: rgba(15,20,52,.92); border: 1px solid rgba(110,193,228,.32);
  border-radius: 20px; padding: 20px 22px;
}
.psoo-visibility-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.psoo-visibility-header h4 {
  font-size: 14px; font-weight: 700; color: #e0f0ff; margin: 0;
}
.psoo-visibility-options {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.psoo-visibility-option {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); transition: all .15s;
  background: rgba(255,255,255,.03); position: relative;
}
.psoo-visibility-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.psoo-vis-check {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(110,193,228,.4); flex-shrink: 0; transition: all .15s;
}
.psoo-visibility-option.is-selected {
  background: rgba(110,193,228,.1); border-color: rgba(110,193,228,.45);
}
.psoo-visibility-option.is-selected .psoo-vis-check {
  background: #6ec1e4; border-color: #6ec1e4;
  box-shadow: 0 0 8px rgba(110,193,228,.4);
}
.psoo-vis-label { font-size: 12.5px; color: rgba(224,240,255,.75); font-weight: 500; }
.psoo-visibility-option.is-selected .psoo-vis-label { color: #e0f0ff; }

.psoo-visibility-select-members {
  background: rgba(0,0,0,.25); border: 1px solid rgba(110,193,228,.12);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.psoo-vis-member-search-wrap {
  position: relative; display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.35); border: 1px solid var(--psoo-border);
  border-radius: 8px; padding: 7px 10px; color: rgba(224,240,255,.4);
}
.psoo-vis-member-search {
  background: none; border: none; outline: none; flex: 1;
  font-size: 12.5px; color: #e0f0ff;
}
.psoo-vis-member-search::placeholder { color: rgba(224,240,255,.3); }
.psoo-vis-member-results {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 90;
  background: rgba(14,18,44,.97); border: 1px solid var(--psoo-border);
  border-radius: 10px; overflow: hidden; max-height: 200px; overflow-y: auto;
}
.psoo-vis-member-results.is-open { display: block; }
.psoo-vis-member-result {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 12.5px; color: #e0f0ff;
}
.psoo-vis-member-result:hover { background: rgba(110,193,228,.1); }
.psoo-vis-member-result img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.psoo-vis-selected-members { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.psoo-vis-member-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(110,193,228,.12); border: 1px solid rgba(110,193,228,.3);
  border-radius: 100px; padding: 4px 10px 4px 6px;
}
.psoo-vis-member-chip img { border-radius: 50%; width: 22px; height: 22px; object-fit: cover; }
.psoo-vis-chip-name { font-size: 12px; color: #e0f0ff; }
.psoo-vis-member-remove {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: rgba(224,240,255,.4); display: flex; align-items: center;
}
.psoo-vis-member-remove:hover { color: #b608c9; }

.psoo-visibility-footer {
  display: flex; align-items: center; gap: 12px; padding-top: 4px;
}
.psoo-visibility-feedback { font-size: 12.5px; font-weight: 600; }

/* Admin Viewer panel */
.psoo-admin-viewer-panel {
  background: rgba(15,20,52,.92); border: 1px solid rgba(110,193,228,.32);
  border-radius: 20px; overflow: hidden;
}
.psoo-admin-viewer-header {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; border-bottom: 1px solid rgba(110,193,228,.18);
  background: rgba(10,15,40,.85);
}
.psoo-admin-viewer-header h4 {
  font-size: 14px; font-weight: 700; color: #e0f0ff; margin: 0;
}
.psoo-viewer-current-label {
  margin-left: auto; font-size: 12px; color: rgba(224,240,255,.5);
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.psoo-admin-viewer-filter-bar {
  padding: 14px 18px; border-bottom: 1px solid rgba(110,193,228,.08);
  background: rgba(0,0,0,.2);
}
.psoo-admin-viewer-filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.psoo-admin-viewer-status {
  background: rgba(0,0,0,.4); border: 1px solid var(--psoo-border);
  border-radius: 8px; padding: 7px 10px; color: #e0f0ff;
  font-size: 12.5px; cursor: pointer; min-width: 130px;
}
.psoo-admin-viewer-search-wrap {
  display: flex; align-items: center; gap: 7px; flex: 1; position: relative;
  background: rgba(0,0,0,.35); border: 1px solid var(--psoo-border);
  border-radius: 8px; padding: 7px 10px; color: rgba(224,240,255,.4);
}
.psoo-admin-viewer-search {
  background: none; border: none; outline: none; flex: 1;
  font-size: 12.5px; color: #e0f0ff;
}
.psoo-admin-viewer-search::placeholder { color: rgba(224,240,255,.3); }
.psoo-admin-viewer-results {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 90;
  background: rgba(14,18,44,.97); border: 1px solid var(--psoo-border);
  border-radius: 10px; overflow: hidden; max-height: 220px; overflow-y: auto;
}
.psoo-admin-viewer-results.is-open { display: block; }
.psoo-admin-viewer-result {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; cursor: pointer; font-size: 13px; color: #e0f0ff;
}
.psoo-admin-viewer-result:hover { background: rgba(110,193,228,.1); }
.psoo-admin-viewer-body { padding: 20px; }

/* ── Confirmation Popups ── */
.psoo-confirm-popup {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.psoo-confirm-popup.is-open { display: flex; }
.psoo-confirm-overlay {
  position: absolute; inset: 0;
  background: rgba(5,7,20,.75); backdrop-filter: blur(6px);
}
.psoo-confirm-dialog {
  position: relative; z-index: 1;
  background: rgba(14,18,44,.97); border: 1px solid var(--psoo-border);
  border-radius: 20px; padding: 32px 28px; max-width: 400px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  animation: psoo-scale-in .25s cubic-bezier(.16,1,.3,1) forwards;
  text-align: center;
}
.psoo-confirm-dialog--danger { border-color: rgba(182,8,201,.35); }
.psoo-confirm-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px;
  background: rgba(0,210,255,.1); border: 1px solid rgba(0,210,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #00d2ff;
}
.psoo-confirm-icon--danger {
  background: rgba(182,8,201,.1); border-color: rgba(182,8,201,.35); color: #b608c9;
}
.psoo-confirm-title {
  font-size: 17px; font-weight: 800; color: #e0f0ff; margin: 0 0 10px; letter-spacing: -.3px;
}
.psoo-confirm-msg { font-size: 13.5px; color: rgba(224,240,255,.6); margin: 0 0 24px; line-height: 1.5; }
.psoo-confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ── Spinner ── */
.psoo-spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(110,193,228,.2); border-top-color: #6ec1e4;
  animation: psoo-spin .7s linear infinite;
}
@keyframes psoo-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 600px) {
  .psoo-proposals-list-toolbar { flex-direction: column; align-items: flex-start; }
  .psoo-pli-actions { width: 100%; }
  .psoo-admin-viewer-filter-row { flex-direction: column; align-items: stretch; }
  .psoo-confirm-actions { flex-direction: column; }
}

/* =============================================================================
   PM MODAL — Dark Glassmorphic Override (Youzify/BuddyPress group context)
   Overrides pm-admin.css base styles with the PSOO cyan design language and
   !important guards against theme interference.
   ============================================================================= */

/* ── Entrance keyframe ── */
@keyframes psoo-modal-vault-open {
  0%   { opacity: 0; transform: translateY(28px) scale(0.94); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes psoo-modal-field-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes psoo-modal-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Overlay ── */
.psoo-pm-modal__overlay {
  background: rgba(4,5,18,.82) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  animation: psoo-modal-overlay-in 0.25s ease forwards !important;
}

/* ── Modal box — core shell ── */
.psoo-pm-modal__box {
  background: rgba(9,11,28,.97) !important;
  border: 1px solid rgba(110,193,228,.30) !important;
  border-top: 2px solid #6ec1e4 !important;
  border-radius: 22px !important;
  box-shadow:
    0 32px 80px rgba(0,0,0,.75),
    0 0 0 1px rgba(110,193,228,.08),
    0 0 40px rgba(110,193,228,.06) !important;
  color: #e0f0ff !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  animation: psoo-modal-vault-open 0.45s cubic-bezier(.16,1,.3,1) forwards !important;
  /* Shimmer pseudo-element via outline trick */
  outline: none !important;
}

/* ── Header ── */
.psoo-pm-modal__header {
  background: rgba(14,18,44,.60) !important;
  border-bottom: 1px solid rgba(110,193,228,.18) !important;
  padding: 20px 26px !important;
}
.psoo-pm-modal__title {
  color: #e0f0ff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -.3px !important;
  text-shadow: 0 0 20px rgba(110,193,228,.35) !important;
}

/* ── Close button ── */
.psoo-pm-modal__close {
  color: rgba(224,240,255,.55) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(110,193,228,.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .2s !important;
}
.psoo-pm-modal__close:hover {
  color: #e0f0ff !important;
  background: rgba(110,193,228,.12) !important;
  border-color: rgba(110,193,228,.40) !important;
}

/* ── Form scroll area ── */
.psoo-pm-modal__form,
.psoo-pm-modal__body {
  background: transparent !important;
  color: #e0f0ff !important;
}

/* ── Field labels ── */
.psoo-pm-field label {
  color: rgba(110,193,228,.80) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
  margin-bottom: 7px !important;
  display: block !important;
}

/* ── Inputs, textareas, selects ── */
.psoo-pm-field input[type="text"],
.psoo-pm-field input[type="date"],
.psoo-pm-field input[type="number"],
.psoo-pm-field input[type="email"],
.psoo-pm-field textarea,
.psoo-pm-field select,
.psoo-pm-modal__form input[type="text"],
.psoo-pm-modal__form input[type="date"],
.psoo-pm-modal__form textarea,
.psoo-pm-modal__form select {
  background: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  border-radius: 10px !important;
  color: #e0f0ff !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
  transition: border-color .2s, box-shadow .2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.psoo-pm-field input::placeholder,
.psoo-pm-field textarea::placeholder,
.psoo-pm-modal__form input::placeholder,
.psoo-pm-modal__form textarea::placeholder {
  color: rgba(224,240,255,.30) !important;
}
.psoo-pm-field input:focus,
.psoo-pm-field textarea:focus,
.psoo-pm-field select:focus,
.psoo-pm-modal__form input:focus,
.psoo-pm-modal__form textarea:focus,
.psoo-pm-modal__form select:focus {
  border-color: rgba(110,193,228,.60) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,.10), 0 0 12px rgba(110,193,228,.08) !important;
  background: rgba(14,20,52,.90) !important;
}

/* ── Color input ── */
.psoo-pm-field input[type="color"] {
  height: 40px !important;
  border-radius: 10px !important;
  background: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  cursor: pointer !important;
  padding: 3px !important;
}

/* ── Checkbox label (is-template row) ── */
.psoo-pm-field label[for="psoo-pm-project-is-template"],
.psoo-pm-field label:has(input[type="checkbox"]) {
  color: #e0f0ff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}
.psoo-pm-field p.description,
.psoo-pm-field > p[style*="color:#64748b"],
.psoo-pm-field > p[style*="color: #64748b"] {
  color: rgba(224,240,255,.45) !important;
  font-size: 12px !important;
  margin: 4px 0 0 0 !important;
}

/* ── Select arrow ── */
.psoo-pm-field select,
.psoo-pm-modal__form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236ec1e4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  padding-right: 36px !important;
}

/* ── Add Member button ── */
.psoo-pm-modal__form .button.button-small,
#psoo-pm-add-member-btn {
  background: rgba(110,193,228,.10) !important;
  border: 1px solid rgba(110,193,228,.30) !important;
  color: #6ec1e4 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  transition: background .2s, border-color .2s !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
#psoo-pm-add-member-btn:hover {
  background: rgba(110,193,228,.18) !important;
  border-color: rgba(110,193,228,.55) !important;
}

/* ── Member row selects ── */
.psoo-pm-member-row select {
  background: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  color: #e0f0ff !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
}
.psoo-pm-member-row .button {
  background: rgba(182,8,201,.10) !important;
  border: 1px solid rgba(182,8,201,.25) !important;
  color: #b608c9 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ── Footer ── */
.psoo-pm-modal__footer {
  border-top: 1px solid rgba(110,193,228,.15) !important;
  padding-top: 18px !important;
  margin-top: 12px !important;
}

/* ── Buttons inside modal ── */
.psoo-pm-modal .psoo-pm-btn--ghost,
.psoo-pm-modal__form .psoo-pm-btn--ghost {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  color: rgba(224,240,255,.70) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  transition: all .2s !important;
}
.psoo-pm-modal .psoo-pm-btn--ghost:hover,
.psoo-pm-modal__form .psoo-pm-btn--ghost:hover {
  background: rgba(110,193,228,.08) !important;
  border-color: rgba(110,193,228,.40) !important;
  color: #e0f0ff !important;
}
.psoo-pm-modal .psoo-pm-btn--primary,
.psoo-pm-modal__form .psoo-pm-btn--primary {
  background: linear-gradient(135deg, rgba(110,193,228,.85), rgba(80,160,210,.90)) !important;
  border: none !important;
  color: #07101e !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(110,193,228,.28) !important;
  text-shadow: none !important;
  transition: all .22s !important;
}
.psoo-pm-modal .psoo-pm-btn--primary:hover,
.psoo-pm-modal__form .psoo-pm-btn--primary:hover {
  background: linear-gradient(135deg, #6ec1e4, #4fa8d8) !important;
  box-shadow: 0 6px 24px rgba(110,193,228,.40) !important;
  transform: translateY(-1px) !important;
}

/* ── Staggered field entrance animations ── */
.psoo-pm-modal:not([hidden]) .psoo-pm-field:nth-child(1)  { animation: psoo-modal-field-in .35s .10s both; }
.psoo-pm-modal:not([hidden]) .psoo-pm-field:nth-child(2)  { animation: psoo-modal-field-in .35s .17s both; }
.psoo-pm-modal:not([hidden]) .psoo-pm-field:nth-child(3),
.psoo-pm-modal:not([hidden]) .psoo-pm-field-row:nth-child(3) { animation: psoo-modal-field-in .35s .24s both; }
.psoo-pm-modal:not([hidden]) .psoo-pm-field:nth-child(4)  { animation: psoo-modal-field-in .35s .30s both; }
.psoo-pm-modal:not([hidden]) .psoo-pm-field:nth-child(5)  { animation: psoo-modal-field-in .35s .36s both; }
.psoo-pm-modal:not([hidden]) .psoo-pm-modal__footer        { animation: psoo-modal-field-in .35s .44s both; }

/* ── All inputs/textareas/selects anywhere inside the modal (catches .psoo-pm-input
   used in task modal body, subtask row, drawer, etc.) ── */
.psoo-pm-modal input[type="text"],
.psoo-pm-modal input[type="date"],
.psoo-pm-modal input[type="number"],
.psoo-pm-modal input[type="url"],
.psoo-pm-modal input[type="email"],
.psoo-pm-modal input[type="search"],
.psoo-pm-modal textarea,
.psoo-pm-modal select,
.psoo-pm-modal .psoo-pm-input {
  background: rgba(14,20,52,.70) !important;
  background-color: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  color: #e0f0ff !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
  color-scheme: dark !important;
}
.psoo-pm-modal input::placeholder,
.psoo-pm-modal textarea::placeholder {
  color: rgba(224,240,255,.30) !important;
}
.psoo-pm-modal input:focus,
.psoo-pm-modal textarea:focus,
.psoo-pm-modal select:focus {
  border-color: rgba(110,193,228,.55) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,.10) !important;
  background: rgba(14,20,52,.90) !important;
}

/* ── Select option elements — force dark native dropdown ── */
.psoo-pm-modal select option,
.psoo-pm-modal select optgroup {
  background-color: #0a0e28 !important;
  background: #0a0e28 !important;
  color: #e0f0ff !important;
}

/* ── Task modal sidebar headings ── */
.psoo-pm-task-section-title {
  color: rgba(110,193,228,.80) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  margin: 0 0 12px !important;
}

/* ── Task modal time widget ── */
.psoo-pm-time-tracker-widget h4 {
  color: rgba(224,240,255,.60) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin: 12px 0 8px !important;
}
.psoo-pm-time-manual input {
  background: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  color: #e0f0ff !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  width: 100% !important;
}

/* ── Task meta bar inputs/selects (inline transparent style) ── */
.psoo-pm-task-meta-item select,
.psoo-pm-task-meta-item input[type="date"] {
  color: rgba(224,240,255,.75) !important;
}

/* =============================================================================
   OLD .psoo-modal (Create Project Workspace / legacy popups) — Dark override
   ============================================================================= */

@keyframes psoo-old-modal-in {
  from { opacity: 0; transform: translateY(22px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.psoo-modal {
  background: rgba(4,5,18,.82) !important;
  backdrop-filter: blur(10px) !important;
}
.psoo-modal__dialog {
  background: rgba(9,11,28,.97) !important;
  border: 1px solid rgba(110,193,228,.28) !important;
  border-top: 2px solid #6ec1e4 !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 72px rgba(0,0,0,.70), 0 0 40px rgba(110,193,228,.06) !important;
  color: #e0f0ff !important;
  animation: psoo-old-modal-in .4s cubic-bezier(.16,1,.3,1) forwards !important;
}
.psoo-modal__head {
  background: rgba(14,18,44,.55) !important;
  border-bottom: 1px solid rgba(110,193,228,.15) !important;
  padding: 18px 24px !important;
}
.psoo-modal__head h3,
#psoo-modal-project-title,
#psoo-modal-group-title {
  color: #e0f0ff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-shadow: 0 0 20px rgba(110,193,228,.30) !important;
}
.psoo-modal__close {
  color: rgba(224,240,255,.55) !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(110,193,228,.18) !important;
  border-radius: 8px !important;
}
.psoo-modal__close:hover {
  color: #e0f0ff !important;
  background: rgba(110,193,228,.12) !important;
}
.psoo-modal__body {
  background: transparent !important;
  color: #e0f0ff !important;
  padding: 22px 24px !important;
}
.psoo-modal__body label,
.psoo-modal__body .psoo-label {
  color: rgba(110,193,228,.80) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
}
.psoo-modal__body input[type="text"],
.psoo-modal__body input[type="email"],
.psoo-modal__body textarea,
.psoo-modal__body select,
#psoo-new-project-name {
  background: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  color: #e0f0ff !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}
.psoo-modal__body input::placeholder,
#psoo-new-project-name::placeholder {
  color: rgba(224,240,255,.30) !important;
}
.psoo-modal__body input:focus,
.psoo-modal__body textarea:focus,
.psoo-modal__body select:focus,
#psoo-new-project-name:focus {
  border-color: rgba(110,193,228,.55) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,.10) !important;
  outline: none !important;
}
.psoo-modal__foot {
  border-top: 1px solid rgba(110,193,228,.14) !important;
  padding: 16px 24px !important;
  background: transparent !important;
}
.psoo-modal__foot .button-primary,
#psoo-modal-create-project,
#psoo-modal-create-group {
  background: linear-gradient(135deg, rgba(110,193,228,.85), rgba(80,160,210,.90)) !important;
  border: none !important;
  color: #07101e !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 18px rgba(110,193,228,.25) !important;
  text-shadow: none !important;
  cursor: pointer !important;
}
.psoo-modal__foot .button-primary:hover,
#psoo-modal-create-project:hover,
#psoo-modal-create-group:hover {
  background: linear-gradient(135deg, #6ec1e4, #4fa8d8) !important;
  box-shadow: 0 6px 24px rgba(110,193,228,.38) !important;
}
/* tasklist create button */
#psoo-modal-create-tasklist {
  background: linear-gradient(135deg, rgba(110,193,228,.85), rgba(80,160,210,.90)) !important;
  border: none !important;
  color: #07101e !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 18px rgba(110,193,228,.25) !important;
  text-shadow: none !important;
  cursor: pointer !important;
}
#psoo-modal-create-tasklist:hover {
  background: linear-gradient(135deg, #6ec1e4, #4fa8d8) !important;
}
/* Cancel buttons in old psoo-modal */
.psoo-modal__foot .button:not(.button-primary) {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(110,193,228,.20) !important;
  color: rgba(224,240,255,.65) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
}
.psoo-modal__foot .button:not(.button-primary):hover {
  background: rgba(110,193,228,.08) !important;
  border-color: rgba(110,193,228,.38) !important;
  color: #e0f0ff !important;
}
/* .psoo-field labels (used inside psoo-modal__body) */
.psoo-modal__body .psoo-field label,
.psoo-modal__body .psoo-label {
  color: rgba(110,193,228,.80) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  display: block !important;
  margin-bottom: 6px !important;
}
/* .psoo-input inside modals */
.psoo-modal__body .psoo-input {
  background: rgba(14,20,52,.70) !important;
  border: 1px solid rgba(110,193,228,.22) !important;
  color: #e0f0ff !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
}
.psoo-modal__body .psoo-input::placeholder {
  color: rgba(224,240,255,.30) !important;
}
.psoo-modal__body .psoo-input:focus {
  border-color: rgba(110,193,228,.55) !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,.10) !important;
  outline: none !important;
}

/* ── Staggered entrance for old psoo-modal fields ── */
.psoo-modal[aria-hidden="false"] .psoo-pm-field:nth-child(1),
.psoo-modal[aria-hidden="false"] .psoo-field:nth-child(1) { animation: psoo-modal-field-in .35s .12s both; }
.psoo-modal[aria-hidden="false"] .psoo-pm-field:nth-child(2),
.psoo-modal[aria-hidden="false"] .psoo-field:nth-child(2) { animation: psoo-modal-field-in .35s .20s both; }
.psoo-modal[aria-hidden="false"] .psoo-modal__foot         { animation: psoo-modal-field-in .35s .30s both; }

/* ═══════════════════════════════════════════════════════════════════════════
   YOUZIFY ISOLATION — Proposal viewer
   Prevent Youzify's group-body / .youzify cascade from overriding the
   rendered proposal content (heading banners, icon substitution, card
   backgrounds on Elementor sections, font-family bleed, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Heading normalisation ─────────────────────────────────────────────
   Youzify rules that must be beaten:
     #youzify-group-body h1:before → content:"\f0cb"; background:var(--yzfy-scheme-color) [RED ICON]
     #youzify-group-body h1        → background:white; height:50px; margin-left:60px
     #youzify-group-body h3        → --yzfy-heading-color / --yzfy-big-font-size
     body .youzify h3              → font-family: 'Open Sans'
     .youzify h2..h6               → margin: 0; padding: 0; line-height: 24px
   Selectors cover: psoo-proposal-body-inner (PHP wrapper), psoo-proposal-content
   (apply_filters target), psoo-admin-viewer-body (admin viewer), psoo-proposal-body
   (member view).
*/

/* ── 1a. Kill the injected icon ::before on h1 ────── */
#youzify-group-body .psoo-proposal-body-inner h1::before,
#youzify-group-body .psoo-proposal-body-inner h2::before,
#youzify-group-body .psoo-proposal-body-inner h3::before,
#youzify-group-body .psoo-proposal-content h1::before,
#youzify-group-body .psoo-proposal-content h2::before,
#youzify-group-body .psoo-proposal-content h3::before,
#youzify-group-body .psoo-admin-viewer-body h1::before,
#youzify-group-body .psoo-admin-viewer-body h2::before,
#youzify-group-body .psoo-admin-viewer-body h3::before,
body .youzify .psoo-proposal-body-inner h1::before,
body .youzify .psoo-proposal-body-inner h2::before,
body .youzify .psoo-proposal-body-inner h3::before,
body .youzify .psoo-proposal-content h1::before,
body .youzify .psoo-proposal-content h2::before,
body .youzify .psoo-proposal-content h3::before,
body .youzify .psoo-admin-viewer-body h1::before,
body .youzify .psoo-admin-viewer-body h2::before,
body .youzify .psoo-admin-viewer-body h3::before {
    content: none !important;
    display: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
}

/* ── 1b. Full heading reset (h1–h6 across all proposal contexts) ─── */
#youzify-group-body .psoo-proposal-body-inner h1,
#youzify-group-body .psoo-proposal-body-inner h2,
#youzify-group-body .psoo-proposal-body-inner h3,
#youzify-group-body .psoo-proposal-body-inner h4,
#youzify-group-body .psoo-proposal-body-inner h5,
#youzify-group-body .psoo-proposal-body-inner h6,
#youzify-group-body .psoo-proposal-content h1,
#youzify-group-body .psoo-proposal-content h2,
#youzify-group-body .psoo-proposal-content h3,
#youzify-group-body .psoo-proposal-content h4,
#youzify-group-body .psoo-proposal-content h5,
#youzify-group-body .psoo-proposal-content h6,
#youzify-group-body .psoo-admin-viewer-body h1,
#youzify-group-body .psoo-admin-viewer-body h2,
#youzify-group-body .psoo-admin-viewer-body h3,
#youzify-group-body .psoo-admin-viewer-body h4,
#youzify-group-body .psoo-admin-viewer-body h5,
#youzify-group-body .psoo-admin-viewer-body h6,
body .youzify .psoo-proposal-body-inner h1,
body .youzify .psoo-proposal-body-inner h2,
body .youzify .psoo-proposal-body-inner h3,
body .youzify .psoo-proposal-body-inner h4,
body .youzify .psoo-proposal-body-inner h5,
body .youzify .psoo-proposal-body-inner h6,
body .youzify .psoo-proposal-content h1,
body .youzify .psoo-proposal-content h2,
body .youzify .psoo-proposal-content h3,
body .youzify .psoo-proposal-content h4,
body .youzify .psoo-proposal-content h5,
body .youzify .psoo-proposal-content h6,
body .youzify .psoo-admin-viewer-body h1,
body .youzify .psoo-admin-viewer-body h2,
body .youzify .psoo-admin-viewer-body h3,
body .youzify .psoo-admin-viewer-body h4,
body .youzify .psoo-admin-viewer-body h5,
body .youzify .psoo-admin-viewer-body h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #e0f0ff !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    margin-left: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    box-shadow: none !important;
    text-shadow: none !important;
    position: static !important;
}

/* ── 2. Paragraph reset ───────────────────────────────────────────────────
   .youzify p → margin: initial; width: initial (resets to browser default
   which in some Youzify contexts is 0, killing spacing)
*/
.youzify .psoo-proposal-body-inner p,
#youzify-group-body .psoo-proposal-body-inner p,
.youzify .psoo-proposal-content p,
#youzify-group-body .psoo-proposal-content p,
.youzify .psoo-admin-viewer-body p,
#youzify-group-body .psoo-admin-viewer-body p {
    margin-bottom: 14px !important;
    line-height: 1.75 !important;
    width: auto !important;
    color: rgba(224, 240, 255, 0.82) !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* ── 3. SVG icon protection ───────────────────────────────────────────────
   Youzify replaces icon-font glyphs via ::before pseudo and sometimes
   sets display:none on <svg> elements inside .youzify containers.
*/
#youzify-group-body .psoo-proposal-body-inner svg,
#youzify-group-body .psoo-proposal-content svg,
#youzify-group-body .psoo-proposals-screen svg,
#youzify-group-body .psoo-admin-viewer-panel svg,
#youzify-group-body .psoo-admin-viewer-body svg,
body .youzify .psoo-proposal-body-inner svg,
body .youzify .psoo-proposal-content svg,
body .youzify .psoo-proposals-screen svg,
body .youzify .psoo-admin-viewer-panel svg,
body .youzify .psoo-admin-viewer-body svg {
    display: inline-block !important;
    visibility: visible !important;
    fill: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

/* ── 4. Elementor section / container backgrounds ─────────────────────────
   Youzify's card-bg variables (#fff or a light colour) get inherited by
   Elementor's section wrappers when rendered in the group context.
*/
#youzify-group-body .psoo-proposal-body-inner .elementor-section,
#youzify-group-body .psoo-proposal-body-inner .elementor-container,
#youzify-group-body .psoo-proposal-body-inner .elementor-column,
#youzify-group-body .psoo-proposal-body-inner .elementor-widget-container,
#youzify-group-body .psoo-proposal-body-inner .e-container,
#youzify-group-body .psoo-proposal-body-inner .e-flex,
#youzify-group-body .psoo-proposal-body-inner .e-grid,
#youzify-group-body .psoo-proposal-content .elementor-section,
#youzify-group-body .psoo-proposal-content .elementor-container,
#youzify-group-body .psoo-proposal-content .elementor-column,
#youzify-group-body .psoo-proposal-content .elementor-widget-container,
#youzify-group-body .psoo-proposal-content .e-container,
#youzify-group-body .psoo-proposal-content .e-flex,
#youzify-group-body .psoo-proposal-content .e-grid,
#youzify-group-body .psoo-admin-viewer-body .elementor-section,
#youzify-group-body .psoo-admin-viewer-body .elementor-container,
#youzify-group-body .psoo-admin-viewer-body .elementor-column,
#youzify-group-body .psoo-admin-viewer-body .elementor-widget-container,
#youzify-group-body .psoo-admin-viewer-body .e-container,
#youzify-group-body .psoo-admin-viewer-body .e-flex,
#youzify-group-body .psoo-admin-viewer-body .e-grid,
body .youzify .psoo-proposal-body-inner .elementor-section,
body .youzify .psoo-proposal-body-inner .elementor-container,
body .youzify .psoo-proposal-body-inner .elementor-column,
body .youzify .psoo-proposal-body-inner .elementor-widget-container,
body .youzify .psoo-proposal-body-inner .e-container,
body .youzify .psoo-proposal-body-inner .e-flex,
body .youzify .psoo-proposal-body-inner .e-grid,
body .youzify .psoo-proposal-content .elementor-section,
body .youzify .psoo-proposal-content .elementor-container,
body .youzify .psoo-proposal-content .elementor-column,
body .youzify .psoo-proposal-content .elementor-widget-container,
body .youzify .psoo-proposal-content .e-container,
body .youzify .psoo-proposal-content .e-flex,
body .youzify .psoo-proposal-content .e-grid,
body .youzify .psoo-admin-viewer-body .elementor-section,
body .youzify .psoo-admin-viewer-body .elementor-container,
body .youzify .psoo-admin-viewer-body .elementor-column,
body .youzify .psoo-admin-viewer-body .elementor-widget-container,
body .youzify .psoo-admin-viewer-body .e-container,
body .youzify .psoo-admin-viewer-body .e-flex,
body .youzify .psoo-admin-viewer-body .e-grid {
    background-color: transparent !important;
}

/* ── 4b. Elementor text/icon widgets — prevent Youzify color/font bleed ── */
#youzify-group-body .psoo-proposal-content .elementor-widget-text-editor,
#youzify-group-body .psoo-proposal-content .elementor-widget-heading,
#youzify-group-body .psoo-proposal-content .elementor-widget-icon,
#youzify-group-body .psoo-proposal-content .elementor-icon,
#youzify-group-body .psoo-admin-viewer-body .elementor-widget-text-editor,
#youzify-group-body .psoo-admin-viewer-body .elementor-widget-heading,
#youzify-group-body .psoo-admin-viewer-body .elementor-widget-icon,
#youzify-group-body .psoo-admin-viewer-body .elementor-icon,
body .youzify .psoo-proposal-content .elementor-widget-text-editor,
body .youzify .psoo-proposal-content .elementor-widget-heading,
body .youzify .psoo-proposal-content .elementor-widget-icon,
body .youzify .psoo-proposal-content .elementor-icon,
body .youzify .psoo-admin-viewer-body .elementor-widget-text-editor,
body .youzify .psoo-admin-viewer-body .elementor-widget-heading,
body .youzify .psoo-admin-viewer-body .elementor-icon {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* ── 5. Input / button font override (Youzify: body .youzify button → Open Sans) */
#youzify-group-body .psoo-proposal-body-inner button,
#youzify-group-body .psoo-proposal-body-inner input,
body .youzify .psoo-proposal-body-inner button,
body .youzify .psoo-proposal-body-inner input {
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* ── 6. Form inputs inside the viewer (Youzify gives them width:100%/height:55px) */
#youzify-group-body .psoo-proposal-body-inner input[type="text"],
#youzify-group-body .psoo-proposal-body-inner input[type="search"],
#youzify-group-body .psoo-proposal-body-inner input[type="email"],
body .youzify .psoo-proposal-body-inner input[type="text"],
body .youzify .psoo-proposal-body-inner input[type="search"],
body .youzify .psoo-proposal-body-inner input[type="email"] {
    width: auto !important;
    height: auto !important;
    padding: initial !important;
    background-color: initial !important;
    border: initial !important;
    color: initial !important;
}

/* ── 7. Force the admin viewer body to clip Youzify's layout sidebar injection */
.psoo-admin-viewer-body,
.psoo-proposal-body {
    overflow: hidden;
}

/* ── 8. The proposals-screen wrapper itself — reset any .youzify list-reset */
#youzify-group-body .psoo-proposal-body-inner ul,
#youzify-group-body .psoo-proposal-body-inner ol,
body .youzify .psoo-proposal-body-inner ul,
body .youzify .psoo-proposal-body-inner ol {
    padding-left: 1.4em !important;
    list-style: initial !important;
    margin-bottom: 14px !important;
}
#youzify-group-body .psoo-proposal-body-inner li,
body .youzify .psoo-proposal-body-inner li {
    list-style: inherit !important;
    color: rgba(224, 240, 255, 0.82) !important;
}

/* ── 9. Milestone section: ensure psoo- classes beat Youzify heading rules ── */
#youzify-group-body .psoo-proposal-milestones-title,
body .youzify .psoo-proposal-milestones-title {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: rgba(110,193,228,0.75) !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    background: transparent !important;
    border: none !important;
}

/* ── 10. psoo-btn inside the viewer must not inherit Youzify button resets ── */
#youzify-group-body .psoo-proposal-body-inner .psoo-btn,
body .youzify .psoo-proposal-body-inner .psoo-btn {
    font-family: 'Inter', system-ui, sans-serif !important;
    width: auto !important;
    height: auto !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ── 11. Payment status banner in the group proposal viewer ── */
/* The viewer uses overflow:hidden so sticky has no effect — keep it static */
.psoo-viewer-banner.stp-payment-status-banner {
    position: relative;
    top: auto;
    margin: 0 0 16px;
    border-radius: 6px;
}

/* The proposal body header already shows the title — hide it from the banner */
.psoo-viewer-banner .stp-banner-title {
    display: none;
}

/* Neutral state when no orders are linked yet */
.psoo-viewer-banner.stp-banner-no_orders {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

/* Action area: don't float right — stay inline with the message */
.psoo-viewer-banner-action.stp-banner-action {
    margin-left: 0;
}

/* Ensure the banner inner is a normal flex row that wraps cleanly */
.psoo-viewer-banner .stp-banner-inner {
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* =============================================================================
   PAYMENTS DASHBOARD — UNIFIED FUTURISTIC GLASS TREATMENT
   2026-05-30: every sub-tab panel (Collected, Gas Fees, AI Tokens, Product
   Expenses, Commissions, Vendors, Departments, Tax, Profit Share Token)
   gets the same glassmorphic chrome + staggered entrance so the entire
   Payments surface reads as one cohesive futuristic dashboard. The
   AI Tokens panel keeps its bespoke inline design (more specific
   selectors win); everything else picks up the rules below.
   ============================================================================= */

/* Section card — wraps each panel's main content blocks in a glass panel.
   The panel renderers already emit <section class="psoo-pay-section">
   or <div class="psoo-pay-section-head">; we promote those into
   glass cards with backdrop blur + gradient cap. */
/* #youzify-group-body prefix + !important: group-payments-tab.php prints
   its own "#youzify-group-body .psoo-payments-tab div { background:
   transparent !important }" reset (to strip Youzify's OWN unwanted
   backgrounds) that collaterally wipes any background we set on these
   divs too. An ID beats any number of classes/types no matter how many
   we stack, so matching that ID is the only way to actually win — a
   plain "html body" prefix (no ID) can never out-specificity it. */
html body .psoo-pay-tab-panels .psoo-pay-section,
html body .psoo-pay-tab-panels .psoo-pay-section-head,
#youzify-group-body .psoo-pay-tab-panels .psoo-pay-section,
#youzify-group-body .psoo-pay-tab-panels .psoo-pay-section-head {
    position: relative !important;
    margin: 0 0 18px !important;
    padding: 22px 24px !important;
    background: linear-gradient(155deg, rgba(9,11,28,0.92), rgba(5,7,20,0.88)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(22px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30) !important;
    overflow: hidden !important;
}
.psoo-pay-tab-panels .psoo-pay-section::before,
.psoo-pay-tab-panels .psoo-pay-section-head::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--psoo-cyan), var(--psoo-magenta));
    opacity: 0.85;
}
.psoo-pay-tab-panels .psoo-pay-section + .psoo-pay-section { margin-top: 18px; }

/* Section headers inside cards */
.psoo-pay-tab-panels .psoo-pay-section-header { margin-bottom: 16px; }
.psoo-pay-tab-panels .psoo-pay-section-header h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 950;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    color: #fff;
}
.psoo-pay-tab-panels .psoo-pay-section-header p {
    margin: 0;
    color: var(--psoo-text-dim, rgba(224, 240, 255, 0.55));
    font-size: 13px;
    line-height: 1.55;
}

/* Tables — glassy header band + hover row + tabular numerics */
.psoo-pay-tab-panels .psoo-pay-table,
.psoo-pay-tab-panels .psoo-pay-gas-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}
.psoo-pay-tab-panels .psoo-pay-table thead,
.psoo-pay-tab-panels .psoo-pay-gas-table thead {
    background: rgba(255, 255, 255, 0.025);
}
.psoo-pay-tab-panels .psoo-pay-table thead th,
.psoo-pay-tab-panels .psoo-pay-gas-table thead th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--psoo-text-dim, rgba(224, 240, 255, 0.6));
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.psoo-pay-tab-panels .psoo-pay-table tbody td,
.psoo-pay-tab-panels .psoo-pay-gas-table tbody td {
    font-size: 13px;
    color: #e2e8f0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}
.psoo-pay-tab-panels .psoo-pay-table tbody tr:last-child td,
.psoo-pay-tab-panels .psoo-pay-gas-table tbody tr:last-child td { border-bottom: 0; }
.psoo-pay-tab-panels .psoo-pay-table tbody tr,
.psoo-pay-tab-panels .psoo-pay-gas-table tbody tr {
    transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.psoo-pay-tab-panels .psoo-pay-table tbody tr:hover,
.psoo-pay-tab-panels .psoo-pay-gas-table tbody tr:hover {
    background: rgba(167, 139, 250, 0.06);
}

/* Empty-state pill that several panels emit (.psoo-pay-empty) */
.psoo-pay-tab-panels .psoo-pay-empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--psoo-text-dim, rgba(224, 240, 255, 0.55));
    font-size: 13px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

/* ── Staggered entrance — when a sub-tab activates, each top-level block
   inside the panel rises into place in sequence so the dashboard
   feels like it's assembling itself. */
@keyframes psoo-pay-rise {
    0%   { opacity: 0; transform: translateY(20px) scale(0.985); filter: blur(8px); }
    100% { opacity: 1; transform: none;                          filter: blur(0); }
}
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *,
.psoo-pay-tab-panels .psoo-pay-panel.is-active .psoo-pay-section,
.psoo-pay-tab-panels .psoo-pay-panel.is-active .psoo-pay-section-head {
    opacity: 0;
    animation: psoo-pay-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(1) { animation-delay: 0.04s; }
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(2) { animation-delay: 0.12s; }
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(3) { animation-delay: 0.20s; }
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(4) { animation-delay: 0.28s; }
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(5) { animation-delay: 0.36s; }
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(6) { animation-delay: 0.44s; }
.psoo-pay-tab-panels .psoo-pay-panel.is-active > *:nth-child(n+7) { animation-delay: 0.52s; }

/* AI Tokens panel keeps its own bespoke entrance — opt it out of the
   panel-level stagger so we don't fight two timelines. */
.psoo-pay-tab-panels .psoo-pay-panel[data-panel="ai-tokens"].is-active > * {
    opacity: 1;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .psoo-pay-tab-panels .psoo-pay-panel.is-active > *,
    .psoo-pay-tab-panels .psoo-pay-panel.is-active .psoo-pay-section,
    .psoo-pay-tab-panels .psoo-pay-panel.is-active .psoo-pay-section-head {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* Migration status card in the group top banner (static copy of the card CSS from vendor-app-manager; inline <style> is unsafe on group pages). */
    /* Brand tokens — match the gend.me brand sheet. Scoped under
       .gdc-mig-slim so they don't leak. */
    .gdc-mig-slim {
      --gdc-magenta: #b608c9;
      --gdc-blue:    #6ec1e4;
      --gdc-green:   #00ff88;
      --gdc-obsidian: #0b0e14;
      --gdc-glass-border: rgba(255, 255, 255, 0.12);

      background: var(--gdc-obsidian);
      padding: 26px 32px;
      border-radius: 24px;
      border: 1px solid var(--gdc-glass-border);
      color: #fff;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      box-shadow: 0 15px 40px rgba(0,0,0,0.55);
      margin: 0 0 18px;
      perspective: 1500px;
      transition: transform 0.15s ease-out, border-color .3s ease;
    }
    /* Banner variant — wider scope on the memberships list page */
    .gdc-mig-slim--banner { max-width: 1000px; margin: 0 auto 18px; }
    /* Card variant — sits inside the detail-popup body */
    .gdc-mig-slim--card { margin: 0 0 18px; }

    .gdc-mig-slim[data-state="complete"] { border-color: rgba(0, 255, 136, 0.35); box-shadow: 0 15px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,255,136,0.08); }
    .gdc-mig-slim[data-state="failed"]   { border-color: rgba(244, 63, 94, 0.4); }

    .gdc-mig-slim__header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 18px;
    }
    .gdc-mig-slim__header-text { flex: 1 1 auto; min-width: 0; }
    .gdc-mig-slim__title {
      font-size: 1.2rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.5px;
      margin: 0;
      color: #fff;
    }
    .gdc-mig-slim__sub {
      font-size: 0.82rem;
      opacity: 0.65;
      margin: 4px 0 0 0;
      color: #fff;
      line-height: 1.4;
    }

    /* Track */
    .gdc-mig-slim__track {
      position: relative;
      width: 100%;
      margin: 22px auto 6px;
    }
    .gdc-mig-slim__bar-bg,
    .gdc-mig-slim__bar-fill {
      position: absolute;
      top: 8px;
      left: 0;
      height: 4px;
      border-radius: 10px;
    }
    .gdc-mig-slim__bar-bg {
      width: 100%;
      background: rgba(255,255,255,0.06);
      z-index: 1;
    }
    .gdc-mig-slim__bar-fill {
      width: 5%;
      background: linear-gradient(90deg, var(--gdc-green), var(--gdc-blue));
      box-shadow: 0 0 15px rgba(0, 255, 136, 0.35);
      z-index: 2;
      transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .gdc-mig-slim[data-state="failed"] .gdc-mig-slim__bar-fill {
      background: linear-gradient(90deg, var(--gdc-magenta), #f43f5e);
      box-shadow: 0 0 15px rgba(244,63,94,0.3);
    }

    .gdc-mig-slim__steps {
      display: flex;
      justify-content: space-between;
      position: relative;
      z-index: 3;
    }
    .gdc-mig-slim__node {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1 1 0;
      min-width: 0;
    }
    .gdc-mig-slim__dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #1a1e26;
      border: 2px solid var(--gdc-glass-border);
      margin-bottom: 12px;
      transition: all 0.5s ease;
    }
    .gdc-mig-slim__label {
      font-size: 0.6rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      opacity: 0.4;
      white-space: nowrap;
      color: #fff;
    }

    /* Node states */
    .gdc-mig-slim__node.is-completed .gdc-mig-slim__dot {
      background: var(--gdc-green);
      border-color: var(--gdc-green);
      box-shadow: 0 0 10px var(--gdc-green);
    }
    .gdc-mig-slim__node.is-completed .gdc-mig-slim__label {
      opacity: 0.92;
      color: var(--gdc-green);
    }
    .gdc-mig-slim__node.is-active .gdc-mig-slim__dot {
      background: #fff;
      border-color: var(--gdc-blue);
      box-shadow: 0 0 15px var(--gdc-blue);
      animation: gdcSlimPulse 2s infinite;
    }
    .gdc-mig-slim__node.is-active .gdc-mig-slim__label {
      opacity: 1;
      color: var(--gdc-blue);
    }
    .gdc-mig-slim__node.is-failed .gdc-mig-slim__dot {
      background: #f43f5e;
      border-color: #f43f5e;
      box-shadow: 0 0 12px rgba(244,63,94,0.5);
    }
    .gdc-mig-slim__node.is-failed .gdc-mig-slim__label {
      opacity: 1;
      color: #fca5a5;
    }
    @keyframes gdcSlimPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.25); }
    }

    /* Open App / Retry button */
    .gdc-mig-slim__btn {
      padding: 10px 22px;
      background: var(--gdc-green);
      color: #000;
      border-radius: 50px;
      font-weight: 900;
      text-transform: uppercase;
      text-decoration: none;
      font-size: 0.72rem;
      letter-spacing: 1px;
      transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
      white-space: nowrap;
      border: 0;
      cursor: pointer;
      flex: 0 0 auto;
    }
    .gdc-mig-slim__btn:hover {
      transform: translateY(-2px);
      background: #fff;
      box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
      color: #000;
    }
    .gdc-mig-slim__btn--danger {
      background: var(--gdc-magenta);
      color: #fff;
    }
    .gdc-mig-slim__btn--danger:hover {
      background: #fff;
      color: var(--gdc-magenta);
      box-shadow: 0 5px 20px rgba(182, 8, 201, 0.4);
    }

    @media (max-width: 720px) {
      .gdc-mig-slim { padding: 22px 18px; border-radius: 18px; }
      .gdc-mig-slim__header { flex-direction: column; align-items: flex-start; }
      .gdc-mig-slim__btn { align-self: flex-start; }
      .gdc-mig-slim__label { font-size: 0.55rem; letter-spacing: 0.3px; }
    }

.gdc-gs-mig{width:100%;box-sizing:border-box;}
.gdc-gs-mig .gdc-mig-slim{margin:0 !important;}

/* =============================================================================
   PAYMENTS TAB — ACTIVATION LANDING (psoo_render_payments_activation_page)
   Every rule is scoped under the #psoo-payments-landing ID: Youzify's own
   group rules are ID-based (#youzify-group-body h2 {...}) and beat any
   class-only selector, which is what made the previous landing's headings
   and paragraphs overlap.
   ============================================================================= */
#psoo-payments-landing {
  --pl-blue: #6ec1e4;
  --pl-magenta: #b608c9;
  --pl-green: #00ff88;
  --pl-obsidian: #05070a;
  --pl-glass: rgba(11, 14, 20, 0.65);
  --pl-border: rgba(255, 255, 255, 0.08);
  --pl-muted: #8b949e;
  --pl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--pl-obsidian);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 0;
  min-height: 0;
  animation: none;
  text-align: left;
}
#psoo-payments-landing *, #psoo-payments-landing *::before, #psoo-payments-landing *::after { box-sizing: border-box; }
/* The group-tab Youzify reset (inline <style> in group-payments-tab.php) clears
   background on every div that isn't INSIDE .psoo-pay-activation, which
   includes this wrapper itself; the doubled ID out-ranks it. */
#psoo-payments-landing#psoo-payments-landing.psoo-pl { background-color: var(--pl-obsidian) !important; }

/* Background video */
#psoo-payments-landing .psoo-pl-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#psoo-payments-landing .psoo-pl-bg-video {
  position: sticky; position: -webkit-sticky; top: 0; left: 0; display: block;
  width: 100%; height: 100vh; object-fit: cover; opacity: 0.5;
  filter: contrast(1.1) brightness(0.85);
}
#psoo-payments-landing .psoo-pl-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(circle at center, rgba(5, 7, 10, 0.25) 0%, rgba(5, 7, 10, 0.8) 100%);
}

/* Scroll reveal: content stays visible unless psoo-bp.js has armed it */
#psoo-payments-landing.psoo-pl-js .psoo-pl-reveal {
  opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(8px);
  transition: opacity 1s var(--pl-ease), transform 1s var(--pl-ease), filter 1s ease-out;
  will-change: transform, opacity, filter;
}
#psoo-payments-landing.psoo-pl-js .psoo-pl-reveal.is-visible { opacity: 1; transform: none; filter: none; }
#psoo-payments-landing .psoo-pl-d1 { transition-delay: 0.1s; }

/* Typography */
#psoo-payments-landing .psoo-pl-container { max-width: 1400px; margin: 0 auto; position: relative; z-index: 10; padding: 120px 20px; }
#psoo-payments-landing .psoo-pl-tag {
  display: inline-block; margin: 0 0 20px; padding: 8px 20px;
  font-family: monospace; font-size: 13px; line-height: 1.4; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--pl-magenta); border: 1px solid rgba(182, 8, 201, 0.3);
  border-radius: 50px; background: rgba(182, 8, 201, 0.05);
}
#psoo-payments-landing .psoo-pl-tag-blue { color: var(--pl-blue); border-color: rgba(110, 193, 228, 0.3); background: rgba(110, 193, 228, 0.05); }
#psoo-payments-landing .psoo-pl-tag-green { color: var(--pl-green); border-color: rgba(0, 255, 136, 0.3); background: rgba(0, 255, 136, 0.05); }
#psoo-payments-landing .psoo-pl-heading {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 900; letter-spacing: -1px;
  line-height: 1.1; color: #fff; margin: 0 0 20px; text-transform: none;
  font-size: clamp(2.2rem, 4vw, 3.5rem); text-align: inherit;
}
#psoo-payments-landing .psoo-pl-lead { font-size: 1.25rem; color: var(--pl-muted); line-height: 1.7; margin: 0 auto 40px; max-width: 900px; }
#psoo-payments-landing .psoo-pl-lead strong { color: #fff; }
#psoo-payments-landing .psoo-pl-center { text-align: center; }
#psoo-payments-landing .psoo-pl-mb-80 { margin-bottom: 80px; }
#psoo-payments-landing .psoo-pl-mb-150 { margin-bottom: 150px; }
#psoo-payments-landing .psoo-pl-mono { font-family: monospace; }

/* Buttons (all of them are .psoo-activate-payments-btn) */
#psoo-payments-landing .psoo-pl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 22px 50px; border-radius: 100px; border: 1px solid transparent;
  font-family: inherit; font-weight: 900; font-size: 1.1rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 2px; text-decoration: none;
  cursor: pointer; transition: 0.4s var(--pl-ease);
}
#psoo-payments-landing .psoo-pl-btn-magenta { background: var(--pl-magenta); color: #fff; border-color: var(--pl-magenta); box-shadow: 0 10px 40px rgba(182, 8, 201, 0.4); }
#psoo-payments-landing .psoo-pl-btn-magenta:hover,
#psoo-payments-landing .psoo-pl-btn-magenta:focus-visible { transform: translateY(-5px) scale(1.05); background: #fff; color: var(--pl-magenta); border-color: #fff; box-shadow: 0 20px 50px rgba(255, 255, 255, 0.5); }
#psoo-payments-landing .psoo-pl-btn-glass { background: var(--pl-glass); color: #fff; border-color: var(--pl-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#psoo-payments-landing .psoo-pl-btn-glass:hover,
#psoo-payments-landing .psoo-pl-btn-glass:focus-visible { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-5px); }
#psoo-payments-landing .psoo-pl-btn-xl { padding: 25px 70px; font-size: 1.2rem; }
#psoo-payments-landing .psoo-pl-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
#psoo-payments-landing .psoo-pl-textlink {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 1.1rem; font-weight: 800; letter-spacing: 1px; line-height: 1.4;
  color: var(--pl-blue); text-decoration: none;
}
#psoo-payments-landing .psoo-pl-textlink:hover,
#psoo-payments-landing .psoo-pl-textlink:focus-visible { color: #fff; }
#psoo-payments-landing .psoo-pay-gate-msg { margin: 0 auto; }
#psoo-payments-landing .psoo-pay-gate-msg p { margin: 0; font-size: 14px; line-height: 1.65; color: #cbd5e1; }

/* Hero */
#psoo-payments-landing .psoo-pl-hero {
  min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 80px 20px 0; position: relative; z-index: 10;
}
#psoo-payments-landing .psoo-pl-hero-title { font-size: clamp(3rem, 8vw, 6.5rem); margin: 0 0 30px; text-align: center; text-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); }
/* "Financial Ecosystem": the h1's dark text-shadow was inherited by the span and
   painted over its clipped gradient, so the line rendered black on black. */
#psoo-payments-landing .psoo-pl-hero-title span {
  display: block; color: #e879f9; text-shadow: none;
  filter: drop-shadow(0 10px 30px rgba(182, 8, 201, 0.45));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #psoo-payments-landing .psoo-pl-hero-title span {
    background: linear-gradient(90deg, #ffffff 0%, #f0abfc 35%, #d946ef 65%, var(--pl-blue) 100%) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
#psoo-payments-landing .psoo-pl-hero-sub { max-width: 900px; font-size: 1.4rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin: 0 auto 50px; text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); }

/* Story blocks */
#psoo-payments-landing .psoo-pl-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin: 0 0 120px; }
#psoo-payments-landing .psoo-pl-story-reversed .psoo-pl-story-text { order: 2; }
#psoo-payments-landing .psoo-pl-story-text p { font-size: 1.15rem; color: var(--pl-muted); margin: 0 0 30px; line-height: 1.7; }
#psoo-payments-landing .psoo-pl-visual {
  position: relative; overflow: hidden; border-radius: 32px; padding: 50px;
  background: #080a0f; border: 1px solid var(--pl-border); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
#psoo-payments-landing .psoo-pl-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at top right, rgba(182, 8, 201, 0.1), transparent 70%);
}
#psoo-payments-landing .psoo-pl-visual > * { position: relative; z-index: 2; }

#psoo-payments-landing .psoo-pl-checks { list-style: none; padding: 0; margin: 0; }
#psoo-payments-landing .psoo-pl-checks li { display: flex; align-items: flex-start; gap: 15px; margin: 0 0 20px; padding: 0; font-size: 1.05rem; line-height: 1.5; font-weight: 600; color: #fff; }
#psoo-payments-landing .psoo-pl-checks li::before { content: none; }
#psoo-payments-landing .psoo-pl-checks svg { flex-shrink: 0; color: var(--pl-green); margin-top: 3px; }
#psoo-payments-landing .psoo-pl-checks-blue svg { color: var(--pl-blue); }
#psoo-payments-landing .psoo-pl-checks li strong { color: #fff; font-size: 1.1rem; }
#psoo-payments-landing .psoo-pl-checks li span { display: block; margin-top: 5px; color: var(--pl-muted); font-weight: 400; font-size: 0.95rem; line-height: 1.5; }

#psoo-payments-landing .psoo-pl-gateway-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
#psoo-payments-landing .psoo-pl-pill {
  padding: 20px; border-radius: 16px; text-align: center; font-size: 1.1rem; line-height: 1.3; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--pl-border); transition: 0.3s;
}
#psoo-payments-landing .psoo-pl-pill:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
#psoo-payments-landing .psoo-pl-pill-fiat { color: var(--pl-blue); border-color: rgba(110, 193, 228, 0.2); }
#psoo-payments-landing .psoo-pl-pill-crypto { color: var(--pl-magenta); border-color: rgba(182, 8, 201, 0.2); }
#psoo-payments-landing .psoo-pl-pill-native { grid-column: span 2; background: var(--pl-magenta); border-color: var(--pl-magenta); }
#psoo-payments-landing .psoo-pl-pill-native:hover { background: var(--pl-magenta); }

#psoo-payments-landing .psoo-pl-flow { display: flex; flex-direction: column; gap: 15px; }
#psoo-payments-landing .psoo-pl-flow-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); line-height: 1.4;
}
#psoo-payments-landing .psoo-pl-flow-row span { color: var(--pl-muted); }
#psoo-payments-landing .psoo-pl-flow-row strong { color: #fff; }
#psoo-payments-landing .psoo-pl-flow-arrow { text-align: center; color: var(--pl-green); line-height: 0; }
#psoo-payments-landing .psoo-pl-flow-green { background: rgba(0, 255, 136, 0.05); border-color: rgba(0, 255, 136, 0.2); }
#psoo-payments-landing .psoo-pl-flow-green strong { color: var(--pl-green); }
#psoo-payments-landing .psoo-pl-flow-blue { background: rgba(110, 193, 228, 0.05); border-color: rgba(110, 193, 228, 0.2); }
#psoo-payments-landing .psoo-pl-flow-blue strong { color: var(--pl-blue); }

/* Engine bento */
#psoo-payments-landing .psoo-pl-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0 0 150px; }
#psoo-payments-landing .psoo-pl-node {
  position: relative; overflow: hidden; padding: 50px; border-radius: 32px;
  background: #080a0f; border: 1px solid var(--pl-border); transition: 0.4s var(--pl-ease);
}
#psoo-payments-landing .psoo-pl-node:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
#psoo-payments-landing .psoo-pl-node-magenta { border-color: rgba(182, 8, 201, 0.3); background: radial-gradient(circle at top right, rgba(182, 8, 201, 0.05), #080a0f); }
#psoo-payments-landing .psoo-pl-node h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; line-height: 1.2; font-weight: 900; margin: 0 0 25px; color: #fff; text-transform: none; letter-spacing: normal; }
#psoo-payments-landing .psoo-pl-node-magenta h3 { color: var(--pl-magenta); }
#psoo-payments-landing .psoo-pl-node-icon {
  width: 50px; height: 50px; margin: 0 0 20px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
#psoo-payments-landing .psoo-pl-node-icon-blue { color: var(--pl-blue); background: rgba(110, 193, 228, 0.05); border-color: rgba(110, 193, 228, 0.2); }
#psoo-payments-landing .psoo-pl-node-icon-magenta { color: var(--pl-magenta); background: rgba(182, 8, 201, 0.1); border-color: rgba(182, 8, 201, 0.3); }
#psoo-payments-landing .psoo-pl-engine-list { list-style: none; padding: 0; margin: 0; }
#psoo-payments-landing .psoo-pl-engine-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--pl-muted); font-size: 1.05rem; line-height: 1.4;
}
#psoo-payments-landing .psoo-pl-engine-list li::before { content: none; }
#psoo-payments-landing .psoo-pl-engine-list li:last-child { border-bottom: 0; }
#psoo-payments-landing .psoo-pl-engine-list li strong { color: #fff; text-align: right; }
#psoo-payments-landing .psoo-pl-node-note { margin: 20px 0 0; font-size: 0.95rem; color: var(--pl-muted); line-height: 1.5; }

/* Fee economics */
#psoo-payments-landing .psoo-pl-economics { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0 0 150px; }
#psoo-payments-landing .psoo-pl-eco {
  position: relative; display: flex; flex-direction: column; padding: 60px; border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%), #080a0f;
  border: 1px solid var(--pl-border); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
#psoo-payments-landing .psoo-pl-eco::before { content: ''; position: absolute; inset: 0; border-radius: 36px; pointer-events: none; }
#psoo-payments-landing .psoo-pl-eco-green { border-color: rgba(0, 255, 136, 0.3); }
#psoo-payments-landing .psoo-pl-eco-green::before { background: radial-gradient(circle at top left, rgba(0, 255, 136, 0.05), transparent); }
#psoo-payments-landing .psoo-pl-eco-blue { border-color: rgba(110, 193, 228, 0.3); }
#psoo-payments-landing .psoo-pl-eco-blue::before { background: radial-gradient(circle at top right, rgba(110, 193, 228, 0.05), transparent); }
#psoo-payments-landing .psoo-pl-eco h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1.2; font-weight: 900; margin: 0 0 15px; color: #fff; text-transform: none; letter-spacing: normal; }
#psoo-payments-landing .psoo-pl-eco > p { color: var(--pl-muted); font-size: 1.05rem; line-height: 1.6; margin: 0; }
#psoo-payments-landing .psoo-pl-eco .psoo-pl-checks { margin-top: 30px; }
#psoo-payments-landing .psoo-pl-stats { display: flex; gap: 20px; margin-top: auto; padding-top: 30px; }
#psoo-payments-landing .psoo-pl-stat { flex: 1; padding: 30px; border-radius: 20px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.05); }
#psoo-payments-landing .psoo-pl-stat-blue { border-color: rgba(110, 193, 228, 0.4); background: rgba(110, 193, 228, 0.05); }
#psoo-payments-landing .psoo-pl-stat-num { font-family: monospace; font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -2px; margin: 0 0 15px; color: #fff; }
#psoo-payments-landing .psoo-pl-c-green { color: var(--pl-green); }
#psoo-payments-landing .psoo-pl-stat p { margin: 0; font-size: 0.9rem; color: var(--pl-muted); line-height: 1.5; }
#psoo-payments-landing .psoo-pl-stat p.psoo-pl-stat-strong { font-size: 0.95rem; color: #fff; }
#psoo-payments-landing .psoo-pl-stat p strong { color: #fff; }

/* Finale */
#psoo-payments-landing .psoo-pl-finale {
  text-align: center; margin-top: 100px; padding: 100px 20px; border-radius: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at center, rgba(182, 8, 201, 0.05) 0%, transparent 70%);
}
#psoo-payments-landing .psoo-pl-finale-title { font-size: clamp(2.6rem, 6vw, 4.5rem); text-transform: uppercase; line-height: 1; margin: 20px 0; text-align: center; }
#psoo-payments-landing .psoo-pl-finale .psoo-pl-lead { max-width: 650px; margin-bottom: 50px; }

@media (max-width: 1100px) {
  #psoo-payments-landing .psoo-pl-story { grid-template-columns: 1fr; gap: 40px; }
  #psoo-payments-landing .psoo-pl-story-reversed .psoo-pl-story-text { order: 0; }
  #psoo-payments-landing .psoo-pl-bento,
  #psoo-payments-landing .psoo-pl-economics { grid-template-columns: 1fr; }
  #psoo-payments-landing .psoo-pl-stats { flex-direction: column; }
}
@media (max-width: 768px) {
  #psoo-payments-landing .psoo-pl-container { padding: 80px 16px; }
  #psoo-payments-landing .psoo-pl-hero { min-height: 70vh; padding: 60px 16px 0; }
  #psoo-payments-landing .psoo-pl-hero-title { font-size: 3rem; }
  #psoo-payments-landing .psoo-pl-hero-sub { font-size: 1.15rem; }
  #psoo-payments-landing .psoo-pl-visual,
  #psoo-payments-landing .psoo-pl-eco,
  #psoo-payments-landing .psoo-pl-node { padding: 30px; }
  #psoo-payments-landing .psoo-pl-gateway-grid { grid-template-columns: 1fr; }
  #psoo-payments-landing .psoo-pl-pill-native { grid-column: auto; }
  #psoo-payments-landing .psoo-pl-btn { padding: 18px 32px; font-size: 1rem; letter-spacing: 1.5px; }
  #psoo-payments-landing .psoo-pl-mb-150 { margin-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  #psoo-payments-landing.psoo-pl-js .psoo-pl-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  #psoo-payments-landing .psoo-pl-bg-video { display: none; }
}

/* =============================================================================
   PAYMENTS TAB — ACTIVATION WALKTHROUGH (psoo_render_pst_activation_wizard)
   psoo-bp.js moves #psoo-pst-wizard to <body> when it opens, so these rules
   are scoped to its ID (strong enough to beat theme input/button styles).
   ============================================================================= */
html.psoo-pstw-lock { overflow: hidden; }
#psoo-pst-wizard {
  --w-magenta: #b608c9; --w-blue: #6ec1e4; --w-green: #00ff88;
  --w-border: rgba(255, 255, 255, 0.1); --w-muted: #8b949e;
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: 'Inter', system-ui, sans-serif; color: #fff; line-height: 1.5; text-align: left;
}
#psoo-pst-wizard[hidden], #psoo-pst-wizard [hidden] { display: none !important; }
#psoo-pst-wizard *, #psoo-pst-wizard *::before, #psoo-pst-wizard *::after { box-sizing: border-box; }
#psoo-pst-wizard .psoo-pstw-backdrop { position: absolute; inset: 0; background: rgba(2, 3, 6, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#psoo-pst-wizard .psoo-pstw-dialog {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #0b0e14; border: 1px solid rgba(182, 8, 201, 0.35); border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(182, 8, 201, 0.12);
}
#psoo-pst-wizard .psoo-pstw-x {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; border: 1px solid var(--w-border); background: rgba(255, 255, 255, 0.04);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
#psoo-pst-wizard .psoo-pstw-x:hover { background: rgba(255, 255, 255, 0.12); }
#psoo-pst-wizard .psoo-pstw-head { padding: 28px 32px 18px; border-bottom: 1px solid var(--w-border); }
#psoo-pst-wizard .psoo-pstw-kicker { display: block; font-family: monospace; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--w-magenta); margin: 0 0 6px; }
#psoo-pst-wizard .psoo-pstw-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 900; line-height: 1.2; color: #fff; margin: 0 0 18px; padding: 0 40px 0 0; background: none; text-align: left; text-transform: none; letter-spacing: normal; }
#psoo-pst-wizard .psoo-pstw-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
#psoo-pst-wizard .psoo-pstw-steps li {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 6px;
  border-radius: 100px; border: 1px solid var(--w-border); color: var(--w-muted); font-size: 0.85rem; font-weight: 600;
}
#psoo-pst-wizard .psoo-pstw-steps li::before { content: none; }
#psoo-pst-wizard .psoo-pstw-steps li span {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 0.75rem; color: #fff;
}
#psoo-pst-wizard .psoo-pstw-steps li.is-current { color: #fff; border-color: var(--w-magenta); }
#psoo-pst-wizard .psoo-pstw-steps li.is-current span { background: var(--w-magenta); }
#psoo-pst-wizard .psoo-pstw-steps li.is-done span { background: rgba(0, 255, 136, 0.2); color: var(--w-green); }
#psoo-pst-wizard .psoo-pstw-body { padding: 24px 32px; overflow-y: auto; flex: 1 1 auto; }
#psoo-pst-wizard .psoo-pstw-step { display: none; }
#psoo-pst-wizard .psoo-pstw-step.is-current { display: block; }
#psoo-pst-wizard .psoo-pstw-intro { color: #cbd5e1; font-size: 0.98rem; line-height: 1.6; margin: 0 0 20px; }
#psoo-pst-wizard .psoo-pstw-label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--w-muted); margin: 16px 0 6px; }
#psoo-pst-wizard .psoo-pstw-input {
  display: block; width: 100%; margin: 0; padding: 12px 14px; min-height: 0; height: auto;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--w-border); border-radius: 12px; box-shadow: none;
  color: #fff; font: inherit; font-size: 1rem; line-height: 1.4;
}
#psoo-pst-wizard textarea.psoo-pstw-input { resize: vertical; }
#psoo-pst-wizard .psoo-pstw-input:focus { outline: none; border-color: var(--w-magenta); box-shadow: 0 0 0 3px rgba(182, 8, 201, 0.25); }
#psoo-pst-wizard .psoo-pstw-input::placeholder { color: #5b6470; }
#psoo-pst-wizard .psoo-pstw-input-sm { max-width: 240px; }
#psoo-pst-wizard .psoo-pstw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#psoo-pst-wizard .psoo-pstw-hint { color: var(--w-muted); font-size: 0.85rem; margin: 6px 0 0; line-height: 1.5; }

#psoo-pst-wizard .psoo-pstw-alloc-tools { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
#psoo-pst-wizard .psoo-pstw-search { flex: 1; }
#psoo-pst-wizard .psoo-pstw-link { background: none; border: 0; padding: 4px; color: var(--w-blue); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
#psoo-pst-wizard .psoo-pstw-link:hover { color: #fff; }
#psoo-pst-wizard .psoo-pstw-alloc { display: flex; flex-direction: column; gap: 8px; }
#psoo-pst-wizard .psoo-pstw-member {
  display: grid; grid-template-columns: 32px 1fr 130px 64px; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
}
#psoo-pst-wizard .psoo-pstw-member.is-owner { border-color: rgba(182, 8, 201, 0.35); background: rgba(182, 8, 201, 0.06); }
#psoo-pst-wizard .psoo-pstw-avatar { width: 32px; height: 32px; border-radius: 50%; display: block; }
#psoo-pst-wizard .psoo-pstw-mname { display: block; margin: 0; font-weight: 600; font-size: 0.95rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: normal; }
#psoo-pst-wizard .psoo-pstw-mname small { display: block; color: var(--w-muted); font-weight: 400; font-size: 0.78rem; }
#psoo-pst-wizard .psoo-pstw-amt { padding: 8px 10px; text-align: right; }
#psoo-pst-wizard .psoo-pstw-owner-amt { text-align: right; font-weight: 800; font-family: monospace; font-size: 1rem; padding-right: 10px; }
#psoo-pst-wizard .psoo-pstw-pct { text-align: right; color: var(--w-muted); font-size: 0.85rem; font-family: monospace; }
#psoo-pst-wizard .psoo-pstw-totals { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(0, 255, 136, 0.06); border: 1px solid rgba(0, 255, 136, 0.2); color: #d1fae5; font-size: 0.9rem; }
#psoo-pst-wizard .psoo-pstw-totals.is-over { background: rgba(255, 80, 80, 0.08); border-color: rgba(255, 80, 80, 0.4); color: #fecaca; }

#psoo-pst-wizard .psoo-pstw-review { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--w-border); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.025); }
#psoo-pst-wizard .psoo-pstw-review dt,
#psoo-pst-wizard .psoo-pstw-review dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); line-height: 1.45; }
#psoo-pst-wizard .psoo-pstw-review dt { color: var(--w-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
#psoo-pst-wizard .psoo-pstw-review dd { color: #fff; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
#psoo-pst-wizard .psoo-pstw-review dt:nth-last-of-type(1),
#psoo-pst-wizard .psoo-pstw-review dd:nth-last-of-type(1) { border-bottom: 0; }
#psoo-pst-wizard .psoo-pstw-body { scrollbar-color: rgba(255, 255, 255, 0.25) transparent; scrollbar-width: thin; }
@media (max-width: 560px) {
    #psoo-pst-wizard .psoo-pstw-review { grid-template-columns: minmax(0, 1fr); }
    #psoo-pst-wizard .psoo-pstw-review dt { padding-bottom: 2px; border-bottom: 0; }
    #psoo-pst-wizard .psoo-pstw-review dd { padding-top: 2px; }
}

#psoo-pst-wizard .psoo-pstw-error { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 80, 80, 0.1); border: 1px solid rgba(255, 80, 80, 0.4); color: #fecaca; font-size: 0.9rem; }
#psoo-pst-wizard .psoo-pstw-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 32px; border-top: 1px solid var(--w-border); }
#psoo-pst-wizard .psoo-pstw-btn {
  display: inline-flex; align-items: center; justify-content: center; margin: 0;
  padding: 13px 28px; border-radius: 100px; border: 1px solid var(--w-magenta);
  background: var(--w-magenta); color: #fff; font: inherit; font-weight: 800; font-size: 0.9rem;
  letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; cursor: pointer; box-shadow: 0 8px 30px rgba(182, 8, 201, 0.35);
}
#psoo-pst-wizard .psoo-pstw-btn:hover { background: #fff; color: var(--w-magenta); border-color: #fff; }
#psoo-pst-wizard .psoo-pstw-btn:disabled { opacity: 0.7; cursor: wait; }
#psoo-pst-wizard .psoo-pstw-btn-ghost { background: transparent; border-color: var(--w-border); box-shadow: none; }
#psoo-pst-wizard .psoo-pstw-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; }
#psoo-pst-wizard .psoo-pstw-btn-ghost[data-pstw-back] { margin-right: auto; }

@media (max-width: 640px) {
  #psoo-pst-wizard { padding: 0; align-items: stretch; }
  #psoo-pst-wizard .psoo-pstw-dialog { max-height: 100vh; border-radius: 0; }
  #psoo-pst-wizard .psoo-pstw-head, #psoo-pst-wizard .psoo-pstw-body, #psoo-pst-wizard .psoo-pstw-foot { padding-left: 16px; padding-right: 16px; }
  #psoo-pst-wizard .psoo-pstw-steps li { font-size: 0; padding: 4px; gap: 0; }
  #psoo-pst-wizard .psoo-pstw-row { grid-template-columns: 1fr; gap: 0; }
  #psoo-pst-wizard .psoo-pstw-member { grid-template-columns: 32px 1fr 96px; }
  #psoo-pst-wizard .psoo-pstw-pct { display: none; }
  #psoo-pst-wizard .psoo-pstw-btn { padding: 12px 18px; }
}

/* Profit Share Token hero (2026-10-25): the panel's "universal section header" rule resets the paragraph margin to 0
   after the centring rule, leaving a 780px box against the left edge — centre the whole hero explicitly. */
html body .psoo-pay-tab-panels .psoo-pps-hero,
#youzify-group-body .psoo-pay-tab-panels .psoo-pps-hero { text-align: center !important; }
html body .psoo-pay-tab-panels .psoo-pps-hero > h3,
#youzify-group-body .psoo-pay-tab-panels .psoo-pps-hero > h3 { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
html body .psoo-pay-tab-panels .psoo-pps-hero > p,
#youzify-group-body .psoo-pay-tab-panels .psoo-pps-hero > p { max-width: 780px !important; margin: 0 auto !important; text-align: center !important; }
html body .psoo-pay-tab-panels .psoo-pps-hero .psoo-v13-period,
#youzify-group-body .psoo-pay-tab-panels .psoo-pps-hero .psoo-v13-period { justify-content: center !important; margin-left: auto !important; margin-right: auto !important; }

/* Proposal Viewer search (2026-11-07): the theme's input style drew a second
   box inside the field, and the results list let the page show through. */
.psoo-admin-viewer-search-wrap .psoo-admin-viewer-search,
.youzify .psoo-admin-viewer-search-wrap input.psoo-admin-viewer-search[type="text"],
.youzify .psoo-proposals-list-search-wrap input.psoo-proposals-list-search[type="text"] {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  outline: none !important; padding: 2px 0 !important; margin: 0 !important;
  min-height: 0 !important; height: auto !important; border-radius: 0 !important;
  font-size: 13px; line-height: 1.5; color: #e0f0ff;
}
.psoo-admin-viewer-search-wrap:focus-within {
  border-color: rgba(110,193,228,.55); box-shadow: 0 0 0 3px rgba(110,193,228,.12);
}
.psoo-admin-viewer-results {
  z-index: 200; background: #0e1229; padding: 4px;
  border-color: rgba(110,193,228,.25); box-shadow: 0 18px 40px -12px rgba(0,0,0,.85);
}
.psoo-admin-viewer-result { border-radius: 7px; justify-content: space-between; }
.psoo-admin-viewer-result:focus { outline: none; background: rgba(110,193,228,.14); }

/* ── Header cards alignment (2026-11-08) ──
   Equal-width cards with their content centred the same way; the identity
   card keeps its text beside the avatar (it wrapped under it whenever the
   description was longer than the space left). */
.bridge-row--cards { align-items: stretch; }
.bridge-row--cards > .bridge-panel {
  flex: 1 1 0;
  min-width: 280px;
  width: auto;
}
.bridge-row--cards > .identity-shield {
  flex-grow: 1.25;
  align-items: center;
  align-content: center;
  gap: 18px 22px;
}
.bridge-row--cards > .identity-shield .identity-text {
  flex: 1 1 0;
  min-width: 0;
}
.bridge-row--cards > .identity-shield .identity-name,
.bridge-row--cards > .identity-shield .identity-desc { overflow-wrap: anywhere; }
.bridge-row--cards > .assigned-app-module {
  justify-content: center;
  align-items: center;
}
.bridge-row--cards > .consultant-terminal {
  flex-grow: 1.15;
  justify-content: center;
  gap: 16px;
}
@media (max-width: 1100px) {
  .bridge-row--cards > .identity-shield { flex-basis: 100%; }
}
@media (max-width: 768px) {
  .bridge-row--cards > .bridge-panel { flex: none; width: 100%; min-width: 0; }
}
