/* ==========================================================================
   XpertLync Partner Connect — Salesforce Lightning Design System (SLDS) UI
   Pixel-Perfect Form Alignment, Crisp Cloud-Blue Focus Rings & Clean Cards
   ========================================================================== */
:root {
  --slds-brand: #0176d3;
  --slds-brand-hover: #014486;
  --slds-brand-light: #eef4ff;
  --slds-brand-border: #b0c4df;
  --slds-navy: #032d60;
  --slds-sidebar: #032d60;
  --slds-sidebar-hover: #0b3c78;
  --xlp-green: #2e844a;
  --xlp-green-hover: #22683a;
  --bg-canvas: #f3f3f3;
  --surface: #ffffff;
  --border: #c9c9c9;
  --border-card: #dddbda;
  --border-subtle: #e5e5e5;
  --text-primary: #181818;
  --text-label: #3e3e3c;
  --text-secondary: #5c5c5c;
  --text-muted: #706e6b;
  --silver-bg: #f3f3f3;
  --silver-border: #b0adab;
  --silver-text: #3e3e3c;
  --gold-bg: #fef7e0;
  --gold-border: #dd7a01;
  --gold-text: #8c4b02;
  --platinum-bg: #f3f0ff;
  --platinum-border: #7526e3;
  --platinum-text: #5a1ba9;
  --danger: #ea001e;
  --danger-bg: #fef1ee;
  --warning: #fe9339;
  --warning-bg: #fff8ee;
  --success: #2e844a;
  --success-bg: #ebf7ee;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.07);
  --shadow-elevated: 0 12px 28px rgba(3, 45, 96, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SALESFORCE LIGHTNING GLOBAL HEADER
   ========================================================================== */
.vmw-topbar {
  min-height: 60px;
  background: #ffffff;
  color: var(--slds-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px;
  border-bottom: 3px solid var(--slds-brand);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.vmw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slds-navy);
  min-width: 0;
  flex-shrink: 1;
}

.vmw-brand-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vmw-brand-logo-wrap img {
  height: 34px;
  width: auto;
  display: block;
}

.vmw-brand-divider {
  width: 1px;
  height: 26px;
  background: #dddbda;
  flex-shrink: 0;
}

.vmw-brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.vmw-brand-title strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--slds-navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.vmw-brand-title span {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slds-brand);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmw-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vmw-top-link {
  color: var(--slds-brand);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}

.vmw-top-link:hover {
  background: var(--slds-brand-light);
}

.vmw-user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f3f6fb;
  border: 1px solid #d8e6fe;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  font-size: 0.81rem;
  color: var(--slds-navy);
  font-family: inherit;
}

.vmw-user-pill.interactive {
  cursor: pointer;
  transition: all 0.16s ease;
}

.vmw-user-pill.interactive:hover,
.vmw-user-pill.interactive.open {
  background: #e8f1ff;
  border-color: var(--slds-brand);
  box-shadow: 0 2px 8px rgba(1, 118, 211, 0.14);
}

.xlp-profile-session {
  display: none;
  align-items: center;
  gap: 8px;
}

.xlp-profile-menu-wrap {
  position: relative;
}

.xlp-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0176d3 0%, #032d60 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.xlp-user-pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.xlp-user-pill-text strong {
  font-size: 0.8rem;
  color: var(--slds-navy);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-myprofile-sub {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--slds-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.xlp-caret-svg {
  color: #5c5c5c;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.vmw-user-pill.interactive.open .xlp-caret-svg {
  transform: rotate(180deg);
  color: var(--slds-brand);
}

.xlp-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 272px;
  background: #ffffff;
  border: 1px solid #d5e3f7;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(3, 45, 96, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 2500;
  overflow: hidden;
}

.xlp-profile-dd-head {
  padding: 13px 16px;
  background: #f6f9ff;
  border-bottom: 1px solid #e2ecf9;
}

.xlp-profile-dd-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xlp-profile-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.xlp-profile-dd-item:hover {
  background: #eef4ff;
  color: var(--slds-brand);
}

.xlp-profile-dd-item.danger {
  color: #c92100;
}

.xlp-profile-dd-item.danger:hover {
  background: #fef1ee;
  color: #a61a14;
}

.xlp-profile-dd-divider {
  height: 1px;
  background: #e5ecf6;
  margin: 4px 6px;
}

/* Salesforce-Lightning Modals inside Partner Portal (100% Zoom Safe Scroll Chain) */
.xlp-portal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 45, 96, 0.52);
  backdrop-filter: blur(2px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.xlp-portal-modal-dialog {
  width: 100%;
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #d5e3f7;
  box-shadow: 0 18px 42px rgba(3, 45, 96, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

.xlp-portal-modal-dialog > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.xlp-portal-modal-header {
  padding: 14px 20px 12px;
  background: #ffffff;
  border-bottom: 2px solid var(--slds-brand);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.xlp-portal-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slds-navy);
}

.xlp-portal-modal-pill {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #014486;
  border: 1px solid #cfe0fc;
  margin-bottom: 4px;
}

.xlp-portal-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.xlp-portal-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.xlp-portal-modal-body {
  padding: 18px 20px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.xlp-portal-modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ==========================================================================
   AUTH / ENROLLMENT LANDING VIEW (Salesforce Trailblazer / Partner Community)
   ========================================================================== */
.vmw-auth-shell {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1.02fr 1.08fr;
  background: var(--bg-canvas);
}

.vmw-auth-hero {
  padding: 52px 50px;
  background:
    radial-gradient(circle at 15% 18%, rgba(1, 118, 211, 0.35), transparent 50%),
    radial-gradient(circle at 88% 85%, rgba(46, 132, 74, 0.28), transparent 52%),
    linear-gradient(160deg, #032d60 0%, #053875 62%, #07294d 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vmw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b0d8ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.vmw-auth-hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.vmw-auth-hero p.lead {
  font-size: 0.98rem;
  color: #d8e6fe;
  line-height: 1.65;
  margin: 0 0 30px 0;
  max-width: 560px;
}

.vmw-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.vmw-pillar-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.vmw-pillar-card h4 {
  margin: 0 0 5px 0;
  font-size: 0.89rem;
  font-weight: 700;
  color: #ffffff;
}

.vmw-pillar-card p {
  margin: 0;
  font-size: 0.79rem;
  color: #c9d9f0;
  line-height: 1.5;
}

.vmw-confidential-notice {
  background: rgba(0, 22, 57, 0.55);
  border: 1px solid rgba(176, 216, 255, 0.26);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.81rem;
  color: #e1ecff;
  line-height: 1.55;
}

.vmw-auth-panel {
  background: #f3f5f9;
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

.vmw-auth-card {
  width: 100%;
  max-width: 610px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  margin: auto 0;
}

.vmw-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fafaf9;
  border-bottom: 1px solid var(--border-card);
}

.vmw-auth-tab {
  padding: 16px 18px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
}

.vmw-auth-tab:hover {
  color: var(--slds-navy);
  background: #f3f3f3;
}

.vmw-auth-tab.active {
  background: #ffffff;
  color: var(--slds-brand);
  border-bottom-color: var(--slds-brand);
}

.vmw-auth-body {
  padding: 28px 32px 32px;
}

/* ==========================================================================
   SLDS VISUAL PICKER CARDS (Individual vs Business — Zero Wrapping Glitches)
   ========================================================================== */
.entity-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  align-items: stretch;
}

.entity-radio-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.entity-radio-card:hover {
  border-color: var(--slds-brand);
}

.entity-radio-card.selected {
  border-color: var(--slds-brand);
  background: #f4f8ff;
  box-shadow: 0 0 0 1px var(--slds-brand);
}

.entity-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.entity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.entity-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #969492;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entity-radio-card.selected .entity-radio-dot {
  border-color: var(--slds-brand);
}

.entity-radio-card.selected .entity-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slds-brand);
}

.entity-req-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.entity-req-pill.biz {
  background: #e3f0ff;
  color: #014486;
}

.entity-req-pill.ind {
  background: #e6f6ec;
  color: #1e6035;
}

.entity-radio-card .er-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.entity-radio-card .er-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   SALESFORCE LIGHTNING FORM SYSTEM (Exact Baseline & Height Alignment)
   ========================================================================== */
.slds-section-bar {
  background: #f3f6fb;
  border: 1px solid #d8e6fe;
  color: var(--slds-navy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}

.vmw-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.vmw-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  min-width: 0;
}

.vmw-field label {
  display: block;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 6px;
  line-height: 1.35;
  min-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmw-field label .req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 2px;
}

.vmw-input, .vmw-select, .vmw-textarea {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.vmw-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.vmw-textarea {
  height: auto;
  min-height: 76px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.vmw-input::placeholder, .vmw-textarea::placeholder {
  color: #969492;
}

.vmw-input:hover, .vmw-select:hover, .vmw-textarea:hover {
  border-color: #747474;
}

.vmw-input:focus, .vmw-select:focus, .vmw-textarea:focus {
  outline: none;
  border-color: var(--slds-brand);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.2);
  background-color: #ffffff;
}

.vmw-input.mono {
  font-family: 'JetBrains Mono', Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
}

.vmw-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
  min-height: 16px;
}

/* Statutory Tax Credential Container */
.slds-tax-box {
  background: #fafbfd;
  border: 1px solid #d8e6fe;
  border-radius: var(--radius-md);
  padding: 14px 16px 2px;
  margin-bottom: 16px;
}

.slds-tax-box-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--slds-brand-hover);
  margin-bottom: 12px;
}

/* Optional Bank Details Accordion */
.slds-accordion {
  margin-bottom: 18px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: #fafaf9;
  overflow: hidden;
}

.slds-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--slds-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.slds-accordion summary::-webkit-details-marker {
  display: none;
}

.slds-accordion summary::after {
  content: '+ Add Now';
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--slds-brand);
}

.slds-accordion[open] summary {
  border-bottom: 1px solid var(--border-card);
  background: #f3f6fb;
}

.slds-accordion[open] summary::after {
  content: '− Collapse';
}

.slds-accordion-body {
  padding: 14px 16px 2px;
  background: #ffffff;
}

/* Salesforce Lightning Buttons */
.vmw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.vmw-btn-primary {
  background: var(--slds-brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(1, 118, 211, 0.25);
}

.vmw-btn-primary:hover {
  background: var(--slds-brand-hover);
}

.vmw-btn-green {
  background: var(--slds-brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(1, 118, 211, 0.25);
}

.vmw-btn-green:hover {
  background: var(--slds-brand-hover);
}

.vmw-btn-outline {
  background: #ffffff;
  border-color: var(--border);
  color: var(--slds-brand);
}

.vmw-btn-outline:hover {
  background: #f3f6fb;
  border-color: var(--slds-brand);
}

.vmw-btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 0.78rem;
}

/* SLDS Scoped Notifications */
.vmw-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-left-width: 4px;
  line-height: 1.5;
}

.vmw-alert.error {
  background: var(--danger-bg);
  border-color: #f9c6c9;
  border-left-color: var(--danger);
  color: #8e030f;
}

.vmw-alert.success {
  background: var(--success-bg);
  border-color: #b7e4c7;
  border-left-color: var(--success);
  color: #194e2b;
}

.vmw-alert.warning {
  background: var(--warning-bg);
  border-color: #fbd6a8;
  border-left-color: #dd7a01;
  color: #7c4100;
}

.vmw-alert.info {
  background: var(--slds-brand-light);
  border-color: #cfe0fc;
  border-left-color: var(--slds-brand);
  color: var(--slds-navy);
}

/* ==========================================================================
   APPROVED PARTNER WORKSPACE (Salesforce Partner Community Layout)
   ========================================================================== */
.vmw-workspace {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 60px);
}

.vmw-sidebar {
  background: var(--slds-sidebar);
  color: #dbe8ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vmw-partner-summary-box {
  padding: 20px 18px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vmw-nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 10px;
}

.vmw-nav-list li {
  margin-bottom: 4px;
}

.vmw-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #dbe8ff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.vmw-nav-btn:hover {
  background: var(--slds-sidebar-hover);
  color: #ffffff;
}

.vmw-nav-btn.active {
  background: var(--slds-brand);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.vmw-main {
  padding: 28px 34px 48px;
  overflow-x: auto;
}

.vmw-page-header {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.vmw-page-header h2 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--slds-navy);
}

.vmw-page-header p {
  margin: 3px 0 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* KPI Grid */
.vmw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.vmw-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--slds-brand);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.vmw-kpi-card.green { border-top-color: var(--xlp-green); }
.vmw-kpi-card.gold { border-top-color: #dd7a01; }
.vmw-kpi-card.purple { border-top-color: #7526e3; }

.vmw-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.vmw-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--slds-navy);
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}

.vmw-kpi-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* SLDS Cards */
.vmw-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  overflow: hidden;
}

.vmw-card-header {
  padding: 14px 20px;
  background: #fafaf9;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vmw-card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slds-navy);
}

.vmw-card-body {
  padding: 22px 24px;
}

/* Tier Progression Cards */
.vmw-tier-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vmw-tier-box {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #ffffff;
}

.vmw-tier-box.current-tier {
  box-shadow: 0 4px 16px rgba(1, 118, 211, 0.12);
  border-width: 2px;
}

.vmw-tier-box.tier-silver.current-tier { border-color: var(--slds-brand); background: #f8fbff; }
.vmw-tier-box.tier-gold.current-tier { border-color: #dd7a01; background: #fffdf7; }
.vmw-tier-box.tier-platinum.current-tier { border-color: #7526e3; background: #faf8ff; }

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-pill.silver { background: var(--silver-bg); color: var(--silver-text); border: 1px solid var(--silver-border); }
.tier-pill.gold { background: var(--gold-bg); color: var(--gold-text); border: 1px solid var(--gold-border); }
.tier-pill.platinum { background: var(--platinum-bg); color: var(--platinum-text); border: 1px solid var(--platinum-border); }

/* SLDS Data Tables */
.vmw-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.vmw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.vmw-table th {
  background: #fafaf9;
  color: #514f4d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.vmw-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-primary);
}

.vmw-table tbody tr:hover {
  background: #f3f6fb;
}

/* Status Badges */
.vmw-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.vmw-status.approved, .vmw-status.active, .vmw-status.transferred {
  background: #ebf7ee;
  color: #1e6035;
}

.vmw-status.registered, .vmw-status.qualified, .vmw-status.processing {
  background: #e3f0ff;
  color: #014486;
}

.vmw-status.pending {
  background: #fff4e1;
  color: #8c4b02;
}

.vmw-status.rejected, .vmw-status.churned {
  background: #fef1ee;
  color: #a61a14;
}

/* Pending Review Gate Card */
.vmw-gate-container {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 20px;
}

.vmw-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.vmw-step-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: #fafaf9;
}

.vmw-step-item.done {
  border-color: #91dbab;
  background: #ebf7ee;
}

.vmw-step-item.current {
  border-color: #90cbff;
  background: #eef4ff;
}

.xlp-insights-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 24px;
}

.xlp-kyc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  font-size: 0.84rem;
}

.xlp-summary-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .vmw-auth-shell {
    grid-template-columns: 1fr;
  }
  /* Put Sign In / Request Enrollment form FIRST on mobile/tablet so users don't scroll past hero */
  .vmw-auth-panel {
    order: -1;
    padding: 24px 16px 28px;
  }
  .vmw-auth-hero {
    padding: 32px 22px;
  }
  .vmw-auth-hero h1 {
    font-size: 1.65rem;
  }
  .vmw-workspace {
    grid-template-columns: 1fr;
  }
  /* Convert Sidebar into sleek horizontal scrollable app bar on mobile/tablet */
  .vmw-partner-summary-box {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .vmw-partner-summary-box > div:first-child {
    display: none;
  }
  #sidebarNextMilestone {
    margin-top: 0 !important;
    font-size: 0.74rem;
  }
  .vmw-nav-list {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .vmw-nav-list li {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .vmw-nav-btn {
    width: auto;
    white-space: nowrap;
    padding: 9px 13px;
    font-size: 0.8rem;
  }
  .vmw-sidebar-footer {
    display: none;
  }
  .vmw-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vmw-tier-ribbon, .xlp-insights-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vmw-topbar {
    padding: 8px 12px;
    min-height: 54px;
    flex-wrap: wrap;
  }
  .vmw-brand {
    gap: 8px;
  }
  .vmw-brand-logo-wrap img {
    height: 27px;
  }
  .vmw-brand-divider {
    height: 20px;
  }
  .vmw-brand-title strong {
    font-size: 0.86rem;
  }
  /* Hide long 4-word subtitle on narrow phones so topbar never wraps onto 4 lines or clips */
  .vmw-brand-title span {
    display: none;
  }
  .hide-xs, .topbar-partner-code {
    display: none !important;
  }
  .topbar-partner-name {
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
  }
  .vmw-user-pill {
    padding: 4px 8px;
    gap: 6px;
  }
  .vmw-top-link {
    font-size: 0.75rem;
    padding: 5px 8px;
    background: #f3f6fb;
  }
  .vmw-page-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 16px;
  }
  .vmw-page-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .vmw-page-header .vmw-btn {
    flex: 1;
    min-width: 140px;
  }
  .vmw-card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 16px;
  }
  .vmw-card-body {
    padding: 16px;
  }
  .xlp-anim-header {
    padding: 13px 16px;
  }
  .xlp-anim-body {
    padding: 16px 14px;
  }
  .xlp-anim-controls {
    width: 100%;
  }
  .xlp-anim-controls .xlp-anim-pill-btn {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    padding: 0 8px;
  }
  .xlp-kyc-grid-3, .xlp-summary-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vmw-form-row, .entity-selector-grid, .vmw-pillar-grid, .vmw-kpi-grid, .vmw-stepper {
    grid-template-columns: 1fr;
  }
  .vmw-main {
    padding: 16px 12px 36px;
  }
  .vmw-auth-body {
    padding: 20px 16px 24px;
  }
  .vmw-field label {
    white-space: normal;
  }
}


/* ==========================================================================
   LIGHT-BACKGROUND ASTONISHING MOTION GRAPHICS STUDIO
   1) Lead Registration & YoY Deal Lifecycle Animation
   2) Silver -> Gold -> Platinum Scaling Pyramid Animation
   ========================================================================== */
.xlp-anim-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #d5e3f7;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(1, 118, 211, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}

.xlp-anim-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#cbdcf5 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.42;
  pointer-events: none;
}

.xlp-anim-header {
  position: relative;
  z-index: 2;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e1ebf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.xlp-anim-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xlp-anim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e8f3ff;
  color: #015ba7;
  border: 1px solid #b9dcff;
}

.xlp-anim-badge.pulse-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0176d3;
  box-shadow: 0 0 0 0 rgba(1, 118, 211, 0.6);
  animation: xlpLiveDot 1.8s infinite;
}

@keyframes xlpLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(1, 118, 211, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(1, 118, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(1, 118, 211, 0); }
}

.xlp-anim-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.xlp-anim-pill-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #c9d9ee;
  background: #ffffff;
  color: #1e3a5f;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.xlp-anim-pill-btn:hover {
  border-color: #0176d3;
  color: #0176d3;
  background: #f2f8ff;
}

.xlp-anim-pill-btn.active {
  background: #0176d3;
  border-color: #0176d3;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(1, 118, 211, 0.25);
}

.xlp-anim-body {
  position: relative;
  z-index: 2;
  padding: 24px 26px 26px;
}

/* --------------------------------------------------------------------------
   ANIMATION 1: 6-STAGE LEAD LIFECYCLE & YoY LOOP
   -------------------------------------------------------------------------- */
.xlp-lifecycle-svg-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

.xlp-lifecycle-svg {
  width: 100%;
  min-width: 860px;
  height: auto;
  display: block;
}

.xlp-flow-dash {
  stroke-dasharray: 8 6;
  animation: xlpDashMove 1.4s linear infinite;
}

.xlp-flow-dash-slow {
  stroke-dasharray: 10 7;
  animation: xlpDashMoveReverse 2s linear infinite;
}

@keyframes xlpDashMove {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

@keyframes xlpDashMoveReverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 34; }
}

.xlp-lc-node {
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  transform-box: fill-box;
  transform-origin: center;
}

.xlp-lc-node:hover {
  transform: translateY(-3px);
}

.xlp-lc-node .node-card {
  transition: stroke 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
}

.xlp-lc-node.is-active .node-card {
  stroke: #0176d3;
  stroke-width: 2.6px;
  filter: drop-shadow(0 8px 16px rgba(1, 118, 211, 0.2));
}

.xlp-lc-node.is-active .node-halo {
  opacity: 1;
  animation: xlpNodeHalo 1.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes xlpNodeHalo {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.14); opacity: 0; }
}

.xlp-lc-stage-spotlight {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #d5e3f7;
  border-left: 4px solid #0176d3;
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(3, 45, 96, 0.05);
}

.xlp-lc-step-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.xlp-lc-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #c9d9ee;
  background: #f8fbff;
  color: #3e5778;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xlp-lc-step-dot.active {
  background: #0176d3;
  border-color: #0176d3;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(1, 118, 211, 0.3);
}

/* --------------------------------------------------------------------------
   ANIMATION 2: SILVER -> GOLD -> PLATINUM SCALING PYRAMID
   -------------------------------------------------------------------------- */
.xlp-pyramid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.xlp-pyramid-stage {
  background: radial-gradient(circle at 50% 42%, rgba(1, 118, 211, 0.08), rgba(255, 255, 255, 0) 68%);
  border-radius: 12px;
  padding: 8px;
}

.xlp-pyramid-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pyr-tier-group {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, filter 0.35s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pyr-tier-group:hover {
  transform: translateY(-4px);
}

.pyr-tier-group.lit-silver {
  filter: drop-shadow(0 10px 18px rgba(1, 118, 211, 0.22));
}

.pyr-tier-group.lit-gold {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 22px rgba(217, 119, 6, 0.26));
}

.pyr-tier-group.lit-platinum {
  transform: translateY(-6px);
  filter: drop-shadow(0 14px 26px rgba(124, 58, 237, 0.3));
}

.pyr-tier-group.dimmed {
  opacity: 0.48;
}

.pyr-crown-ray {
  transform-box: fill-box;
  transform-origin: center;
  animation: xlpCrownPulse 2.4s ease-in-out infinite;
}

@keyframes xlpCrownPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

.pyr-up-arrow {
  animation: xlpFloatUp 1.8s ease-in-out infinite;
}

@keyframes xlpFloatUp {
  0%, 100% { transform: translateY(3px); opacity: 0.55; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.xlp-pyramid-telemetry {
  background: #ffffff;
  border: 1px solid #d5e3f7;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(3, 45, 96, 0.06);
}

.xlp-pyr-counter-bar {
  height: 10px;
  background: #eaf1fb;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 16px;
}

.xlp-pyr-counter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0176d3 0%, #d97706 58%, #7c3aed 100%);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.xlp-pyr-slab-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.xlp-pyr-slab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e5ecf6;
  background: #f9fbff;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.xlp-pyr-slab-row.unlocked {
  background: #ffffff;
  border-color: #90cbff;
  box-shadow: 0 2px 8px rgba(1, 118, 211, 0.09);
}

.xlp-pyr-slab-row.fallback-highlight {
  background: #fff8ee;
  border-color: #f59e0b;
}

@media (max-width: 960px) {
  .xlp-pyramid-layout {
    grid-template-columns: 1fr;
  }
}
