:root {
  --navy: #0B1F33;
  --navy-ui: #162D45;
  --navy-light: #162D45;
  --slate: #2F3A44;
  --teal: #2C7A7B;
  --teal-dark: #256868;
  --teal-light: #E6FFFA;
  --teal-50: rgba(44,122,123,0.08);
  --blue-50: #E0F2FE;
  --blue-600: #0369A1;
  --green-50: #F0FDF4;
  --green-100: #BBF7D0;
  --green-700: #15803D;
  --yellow-50: #FEF3C7;
  --yellow-600: #92400E;
  --red-50: #FEF2F2;
  --red-100: #FECACA;
  --red-700: #991B1B;
  --red-600: #DC2626;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08), 0 0 2px rgba(0,0,0,0.04);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-100);
  min-height: 100vh;
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ===== AUTH PAGES (login, register, forgot-password, reset-password) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-panel-left {
  flex: 0 0 440px;
  background: var(--navy);
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 100%, rgba(255,255,255,0.02) 0%, transparent 60%);
}
.auth-panel-left .brand-logo {
  position: relative; z-index: 1;
  margin-bottom: 48px;
  align-self: flex-start;
}
.auth-panel-left .brand-logo img {
  height: 64px; filter: brightness(0) invert(1);
  display: block;
  margin-left: -16px;
}
.auth-panel-left .brand-tagline {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 22px; font-weight: 300;
  text-align: left; line-height: 1.5;
  max-width: 340px;
  letter-spacing: -0.2px;
}
.auth-panel-left .brand-tagline strong {
  color: #fff; font-weight: 600;
  display: block; font-size: 24px;
  margin-bottom: 8px;
}
.auth-panel-left .brand-divider {
  position: relative; z-index: 1;
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 36px 0;
}
.auth-panel-left .brand-features {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 20px;
}
.auth-panel-left .brand-feature {
  color: rgba(255,255,255,0.5);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.2px; line-height: 1.5;
}
.auth-panel-left .brand-footer {
  position: relative; z-index: 1;
  margin-top: 48px;
  color: rgba(255,255,255,0.25);
  font-size: 11px; letter-spacing: 0.3px;
}

.auth-panel-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.auth-form-container { width: 100%; max-width: 400px; }
.auth-form-container h1 {
  font-size: 24px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.auth-form-container .auth-subtitle {
  font-size: 14px; color: var(--gray-500);
  margin-bottom: 28px;
}
.auth-form-container .invite-info {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 14px 16px;
  margin-bottom: 24px; font-size: 13px; color: var(--slate);
}
.auth-form-container .invite-info strong { font-weight: 600; }

/* ===== FORM CONTROLS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--slate); margin-bottom: 6px;
}
.form-group label .required { color: var(--red-600); }
.field-error {
  font-size: 12px; color: var(--red-600); margin-top: 4px;
}
.form-input {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-md);
  outline: none; background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,51,0.06);
}
.form-input:disabled {
  background: var(--gray-100); color: var(--gray-400); cursor: not-allowed;
}
.form-input::placeholder { color: var(--gray-400); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title {
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin: 28px 0 14px; padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 14px; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
  line-height: 1.4;
}
.btn:active { transform: scale(0.98); }
.btn-teal { color: #fff; background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: var(--shadow-md); }
.btn-navy { color: #fff; background: var(--navy); }
.btn-navy:hover { background: var(--navy-light); box-shadow: var(--shadow-md); }
.btn-outline { color: var(--gray-600); background: var(--white); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: rgba(11,31,51,0.03); }
.btn-ghost { color: var(--gray-500); background: transparent; padding: 8px 12px; }
.btn-ghost:hover { color: var(--navy); background: rgba(11,31,51,0.03); }
.btn-danger { color: var(--red-600); background: var(--white); border: 1.5px solid var(--red-100); }
.btn-danger:hover { background: var(--red-50); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 24px; }
.btn-group { display: flex; gap: 10px; }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 13px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  animation: alertSlideIn 0.3s ease;
}
@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-700); }
.alert-error { background: var(--red-50); border: 1px solid var(--red-100); color: var(--red-700); }
.alert-warning { background: var(--yellow-50); border: 1px solid #FDE68A; color: var(--yellow-600); }
.alert-info { background: var(--blue-50); border: 1px solid #BAE6FD; color: var(--blue-600); }

/* ===== PORTAL SIDEBAR ===== */
.portal-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 250px; background: var(--navy);
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-stacked {
  flex-direction: column; align-items: center; gap: 4px;
  width: 100%;
}
.sidebar-logo-img { height: 32px; }
.sidebar-logo img { height: 24px; }
.sidebar-logo-stacked .sidebar-logo-img { height: 32px; }
.sidebar-logo-label {
  color: rgba(255,255,255,0.35); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.sidebar-close-btn {
  display: none; background: none; border: none;
  color: rgba(255,255,255,0.5); cursor: pointer;
  padding: 4px; border-radius: 4px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.sidebar-close-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name {
  color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 500;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1; padding: 12px 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar-nav-section {
  padding: 4px 12px; margin-bottom: 4px;
}
.sidebar-nav-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: rgba(255,255,255,0.25);
  padding: 8px 12px 6px; margin-bottom: 2px;
}
.sidebar-nav-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: inherit;
}
.sidebar-toggle-chevron {
  opacity: 0.4; transition: transform 0.2s ease;
}
.sidebar-collapsible.open .sidebar-toggle-chevron {
  transform: rotate(180deg);
}
.sidebar-collapsible-content {
  display: none; overflow: hidden;
}
.sidebar-collapsible.open .sidebar-collapsible-content {
  display: block;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
  position: relative; border: none; background: none;
  width: 100%; text-align: left;
}
.sidebar-nav-item:hover {
  color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06);
}
.sidebar-nav-item.active {
  color: #fff; background: rgba(255,255,255,0.1);
}
.sidebar-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--teal);
}
.sidebar-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.sidebar-nav-item.active svg { opacity: 1; }

.sidebar-sub-items {
  display: none;
  padding-left: 30px;
}
.sidebar-nav-item.active + .sidebar-sub-items,
.sidebar-sub-items.visible {
  display: block;
}
.sidebar-sub-item {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.sidebar-sub-item:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}
.sidebar-sub-item.active {
  color: #fff;
  font-weight: 600;
}

.sidebar-nav-item.sidebar-locked {
  color: rgba(255,255,255,0.25);
  cursor: default;
  pointer-events: auto;
}
.sidebar-nav-item.sidebar-locked svg { opacity: 0.3; }
.sidebar-nav-item.sidebar-locked:hover {
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.03);
}
.sidebar-lock-icon {
  margin-left: auto;
  opacity: 0.4;
  flex-shrink: 0;
}
.sidebar-locked-tooltip {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sidebar-nav-item.sidebar-locked:hover .sidebar-locked-tooltip {
  display: block;
}

.sidebar-badge {
  margin-left: auto; background: var(--teal);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  min-width: 18px; text-align: center; line-height: 1.4;
}

.sidebar-bottom {
  padding: 8px 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-signout { color: rgba(255,255,255,0.35) !important; }
.sidebar-signout:hover { color: rgba(255,255,255,0.7) !important; background: rgba(255,255,255,0.04) !important; }
.sidebar-external-icon { margin-left: auto; opacity: 0.35; flex-shrink: 0; }
.sidebar-rm-card {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin: 0 8px 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}
.sidebar-rm-name {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6);
}
.sidebar-rm-email {
  font-size: 10px; color: rgba(94, 234, 212, 0.7); text-decoration: none;
}
.sidebar-rm-email:hover { color: #5EEAD4; }

.sidebar-notif-item {
  position: relative; background: none; border: none; width: 100%;
  font-family: inherit; text-align: left; cursor: pointer;
}
.sidebar-notif-item .sidebar-notif-dot {
  position: static; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; margin-left: 4px; vertical-align: middle;
}

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 199;
}
.sidebar-overlay.visible { display: block; }

/* ===== PORTAL TOPBAR (mobile only) ===== */
.portal-topbar {
  display: none;
  background: var(--navy); color: #fff;
  padding: 0 16px; height: 56px;
  align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-hamburger {
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 6px; border-radius: var(--radius-sm);
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.topbar-hamburger:hover { color: #fff; background: rgba(255,255,255,0.1); }
.topbar-title {
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px;
}

/* Legacy header hide */
.portal-header { display: none; }
.portal-header-nav { display: none; }
.portal-header-user { display: none; }
.portal-accent-bar { display: none; }

/* ===== MAIN CONTENT ===== */
.portal-main {
  max-width: 1000px; margin: 0 auto;
  padding: 20px 28px 40px;
  margin-left: 250px;
}
.portal-main.portal-fullwidth { max-width: none; padding-left: 32px; padding-right: 32px; }

/* ===== SHARED PORTAL TABS ===== */
.portal-tabs-wrap { position: relative; }
.portal-tabs {
  display: flex; gap: 0; border-bottom: 2px solid #E2E8F0; margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  -ms-overflow-style: none;
}
.portal-tabs::-webkit-scrollbar { display: none; }
.portal-tabs > button,
.portal-tabs > a { flex: 0 0 auto; white-space: nowrap; }
.portal-tabs-wrap::before,
.portal-tabs-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 2px; width: 40px;
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity .25s;
}
.portal-tabs-wrap::before { left: 0; background: linear-gradient(to right, #F8FAFC 10%, transparent); }
.portal-tabs-wrap::after { right: 0; background: linear-gradient(to left, #F8FAFC 10%, transparent); }
.portal-tabs-wrap.fade-left::before { opacity: 1; }
.portal-tabs-wrap.fade-right::after { opacity: 1; }

/* ===== SIDEBAR RESPONSIVE ===== */
@media (min-width: 1025px) {
  .portal-sidebar { display: flex; }
  .portal-topbar { display: none; }
  .sidebar-close-btn { display: none; }
}
@media (max-width: 1024px) {
  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .portal-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .sidebar-close-btn { display: flex; align-items: center; justify-content: center; }
  .portal-topbar { display: flex; }
  .portal-main { margin-left: 0; padding: 24px 16px 48px; }
  .portal-main.portal-fullwidth { padding-left: 16px; padding-right: 16px; }
}

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.card-subtitle { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ===== DASHBOARD ===== */
.dash-welcome { margin-bottom: 32px; }
.dash-welcome h1 {
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px; display: flex; align-items: center; gap: 12px;
}
.dash-welcome p { font-size: 14px; color: var(--gray-500); }
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.tier-network { background: var(--blue-50); color: var(--blue-600); }
.tier-platform { background: var(--green-50); color: var(--green-700); }
.tier-equity { background: var(--yellow-50); color: var(--yellow-600); }

.progress-section { margin-bottom: 32px; }
.progress-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.progress-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.progress-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.progress-percent {
  font-size: 22px; font-weight: 700; color: var(--navy);
}
.progress-bar-track {
  background: var(--gray-200); border-radius: 8px; height: 10px;
  overflow: hidden; margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%; border-radius: 8px;
  background: var(--navy);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-stats {
  display: flex; align-items: center; justify-content: space-between;
}
.progress-text { font-size: 13px; color: var(--gray-500); }
.progress-docs a {
  font-size: 13px; color: var(--navy); font-weight: 500;
  transition: color var(--transition);
}
.progress-docs a:hover { color: var(--navy-light); }

/* ===== STEP CARDS (Dashboard) ===== */
.steps-section .card { padding: 0; overflow: hidden; }
.steps-section .card-header { padding: 24px 28px 0; margin-bottom: 4px; }
.step-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.step-item:last-child { border-bottom: none; }
.step-item.clickable { cursor: pointer; }
.step-item.clickable:hover { background: var(--gray-50); }
.step-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: transform var(--transition);
}
.step-item.clickable:hover .step-icon { transform: scale(1.05); }
.step-icon.completed { background: var(--navy); color: #fff; }
.step-icon.available { background: var(--blue-50); color: var(--blue-600); }
.step-icon.submitted { background: var(--yellow-50); color: var(--yellow-600); }
.step-icon.pending { background: var(--gray-100); color: var(--gray-400); }
.step-content { flex: 1; min-width: 0; }
.step-title {
  font-size: 14px; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.step-owner { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.step-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 4px 12px; border-radius: 12px; white-space: nowrap;
}
.badge-not_started { background: var(--gray-100); color: var(--gray-400); }
.badge-available { background: var(--blue-50); color: var(--blue-600); }
.badge-in_progress { background: var(--blue-50); color: var(--blue-600); }
.badge-submitted { background: var(--yellow-50); color: var(--yellow-600); }
.badge-approved, .badge-completed { background: var(--green-50); color: var(--green-700); }
.step-arrow { color: var(--gray-400); font-size: 18px; transition: transform var(--transition); }
.step-item.clickable:hover .step-arrow { transform: translateX(3px); color: var(--navy); }

/* ===== STEP PAGE LAYOUT ===== */
.step-nav-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
}
.step-nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.step-breadcrumb { display: flex; align-items: center; gap: 8px; }
.step-breadcrumb a {
  color: var(--gray-500); font-size: 13px; font-weight: 500;
  transition: color var(--transition);
}
.step-breadcrumb a:hover { color: var(--navy); }
.step-breadcrumb .sep { color: var(--gray-300); font-size: 12px; }
.step-breadcrumb .current { color: var(--navy); font-size: 13px; font-weight: 600; }
.step-progress-dots { display: flex; align-items: center; gap: 6px; }
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  transition: all var(--transition);
}
.step-dot.done { background: var(--navy); }
.step-dot.active {
  background: var(--navy); width: 20px; border-radius: 4px;
}
.step-dot.future { background: var(--gray-300); }

.step-page-header { margin-bottom: 24px; }
.step-page-header h1 {
  font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.step-page-header .step-description {
  font-size: 14px; color: var(--gray-500); line-height: 1.6;
}

.step-status-banner {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  animation: alertSlideIn 0.3s ease;
}
.banner-submitted { background: var(--yellow-50); border: 1px solid #FDE68A; color: var(--yellow-600); }
.banner-approved, .banner-completed { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-700); }

/* ===== INFO PANEL (documentation sidebar) ===== */
.step-layout-2col {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
  align-items: start;
}
.info-panel {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: 128px;
}
.info-panel h4 {
  font-size: 13px; font-weight: 600; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.info-panel h4 .info-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.info-panel ul { list-style: none; }
.info-panel li {
  font-size: 13px; color: var(--gray-600); line-height: 1.6;
  padding: 6px 0; padding-left: 16px; position: relative;
}
.info-panel li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy);
}
.info-panel p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 10px; }
.info-panel .info-highlight {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 12px 14px;
  font-size: 12px; color: var(--gray-500); margin-top: 16px;
  line-height: 1.6;
}

/* ===== UPLOAD AREA ===== */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 36px 24px; text-align: center;
  background: var(--gray-50);
  transition: all var(--transition);
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--navy); background: rgba(11,31,51,0.02); }
.upload-zone .upload-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.upload-zone .upload-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.upload-zone .upload-hint { font-size: 12px; color: var(--gray-400); }

/* ===== FILE LIST ===== */
.file-list { border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.file-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--gray-50); }
.file-type-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  text-transform: uppercase;
}
.file-type-pdf { background: #FEE2E2; color: #B91C1C; }
.file-type-csv, .file-type-xlsx, .file-type-xls { background: #D1FAE5; color: #065F46; }
.file-type-doc, .file-type-docx { background: #DBEAFE; color: #1E40AF; }
.file-type-png, .file-type-jpg, .file-type-jpeg { background: #E0E7FF; color: #3730A3; }
.file-type-default { background: var(--gray-100); color: var(--gray-500); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 500; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.file-actions { display: flex; gap: 6px; align-items: center; }

/* ===== TRAINING MODULES ===== */
.training-module {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--gray-100);
}
.training-module:last-child { border-bottom: none; }
.training-checkbox {
  width: 22px; height: 22px; accent-color: var(--navy);
  cursor: pointer; margin-top: 2px; flex-shrink: 0;
}
.training-label { flex: 1; cursor: pointer; }
.training-title { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 2px; }
.training-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ===== STATUS PAGE (Valtura-managed steps) ===== */
.status-center { text-align: center; padding: 40px 20px; }
.status-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 24px; font-weight: 600;
}
.status-icon.status-complete { background: var(--navy); color: #fff; }
.status-icon.status-in-progress { background: var(--gray-100); color: var(--navy); }
.status-icon.status-waiting { background: var(--gray-100); color: var(--gray-400); }
.status-icon.status-locked { background: var(--gray-100); color: var(--gray-300); }
.status-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.status-description {
  font-size: 14px; color: var(--gray-500);
  max-width: 480px; margin: 0 auto 20px; line-height: 1.6;
}
.status-note {
  background: var(--gray-50); border-radius: var(--radius-md);
  padding: 14px 18px; max-width: 480px; margin: 0 auto;
  font-size: 13px; color: var(--gray-500);
}
.admin-note {
  background: var(--yellow-50); border: 1px solid #FDE68A;
  border-radius: var(--radius-md); padding: 14px 18px;
  max-width: 480px; margin: 16px auto 0;
}
.admin-note-label { font-size: 12px; font-weight: 600; color: var(--yellow-600); margin-bottom: 4px; }
.admin-note-text { font-size: 13px; color: #A16207; }

/* ===== SPINNER ===== */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--blue-50); border-top-color: var(--blue-600);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== DOCUMENTS PAGE ===== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--navy); }
.doc-count-badge {
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  background: var(--gray-200); padding: 4px 14px; border-radius: 12px;
}
.filter-bar { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 16px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--gray-300); border-radius: 20px;
  background: var(--white); color: var(--gray-500);
  cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--gray-50); }
.doc-step-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 10px; background: var(--blue-50); color: var(--blue-600);
  white-space: nowrap;
}
.empty-state {
  text-align: center; padding: 56px 24px;
}
.empty-state .empty-icon { display: none; }
.empty-state p { font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }

/* ===== CONTRACT LIST ===== */
.contract-list { display: flex; flex-direction: column; gap: 0; }
.contract-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.contract-item:last-child { border-bottom: none; }
.contract-check {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.contract-check.signed { background: var(--navy); color: #fff; }
.contract-check.unsigned { background: var(--gray-200); color: transparent; }
.contract-name { font-size: 14px; font-weight: 500; color: var(--navy); }
.contract-desc { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ===== AUTH FOOTER ===== */
.auth-footer {
  text-align: center; margin-top: 28px;
  font-size: 12px; color: var(--gray-400);
}
.auth-links {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--gray-500);
}
.auth-links a { color: var(--navy); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; color: var(--navy-light); }
.auth-page .form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,51,0.08);
}

/* ===== ERROR/STATUS PAGES ===== */
.error-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.error-page-card {
  width: 100%; max-width: 440px; text-align: center;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 32px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

/* ===== CLIENT RESOURCES ===== */
.resources-intro {
  font-size: 14px; color: var(--gray-500); line-height: 1.6;
  margin-bottom: 28px; max-width: 640px;
}
.resources-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.resource-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200); border-bottom: none;
  transition: all var(--transition);
  cursor: pointer;
}
.resource-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.resource-card:last-child { border-bottom: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.resource-card:only-child { border-radius: var(--radius-lg); border-bottom: 1px solid var(--gray-200); }
.resource-card:hover { background: var(--gray-50); box-shadow: var(--shadow-sm); }
.resource-card-icon { display: none; }
.resource-card-body { flex: 1; min-width: 0; }
.resource-card-title {
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.resource-card-desc {
  font-size: 13px; color: var(--gray-500); line-height: 1.5;
  margin-bottom: 6px;
}
.resource-card-category {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-600);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.resource-card-arrow {
  color: var(--gray-300); font-size: 18px; flex-shrink: 0;
  transition: all var(--transition);
}
.resource-card:hover .resource-card-arrow { transform: translateX(3px); color: var(--navy); }

.resource-reader { margin-bottom: 40px; }
.resource-reader-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.resource-reader-category {
  font-size: 12px; font-weight: 600; padding: 4px 14px;
  border-radius: 12px; background: var(--blue-50); color: var(--blue-600);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.resource-reader-content {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8; color: var(--slate);
}
.resource-reader-content h1 {
  font-size: 24px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3;
}
.resource-reader-content h2 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-top: 36px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--gray-200);
}
.resource-reader-content h3 {
  font-size: 16px; font-weight: 600; color: var(--navy);
  margin-top: 28px; margin-bottom: 10px;
}
.resource-reader-content h4 {
  font-size: 14px; font-weight: 600; color: var(--slate);
  margin-top: 20px; margin-bottom: 8px;
}
.resource-reader-content p {
  font-size: 14px; margin-bottom: 14px; color: var(--gray-600);
}
.resource-reader-content strong { color: var(--navy); }
.resource-reader-content ul, .resource-reader-content ol {
  margin: 12px 0 16px 20px;
}
.resource-reader-content li {
  font-size: 14px; color: var(--gray-600); margin-bottom: 6px;
}
.resource-reader-content blockquote {
  border-left: 3px solid var(--navy);
  background: var(--gray-50); padding: 14px 18px;
  margin: 16px 0; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px; color: var(--slate);
}
.resource-reader-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13px;
}
.resource-reader-content th {
  background: var(--gray-50); font-weight: 600; color: var(--navy);
  text-align: left; padding: 10px 14px; border: 1px solid var(--gray-200);
}
.resource-reader-content td {
  padding: 10px 14px; border: 1px solid var(--gray-200);
  color: var(--gray-600);
}
.resource-reader-content hr {
  border: none; border-top: 1px solid var(--gray-200);
  margin: 28px 0;
}
.resource-reader-content em { color: var(--gray-500); font-style: italic; }

/* ===== DASHBOARD ===== */
.dash-hero {
  background: var(--navy);
  border-radius: var(--radius-lg); padding: 36px 40px;
  color: #fff; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
}
.dash-hero-content { position: relative; z-index: 1; }
.dash-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 8px;
}
.dash-hero h1 {
  font-size: 24px; font-weight: 600; margin-bottom: 0;
  letter-spacing: -0.3px;
}
.dash-hero .dash-context {
  font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6;
  max-width: 560px; font-weight: 300;
}
.dash-hero .tier-badge {
  font-size: 10px; padding: 4px 12px;
}
.dash-hero .tier-network { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.dash-hero .tier-platform { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.dash-hero .tier-equity { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.dash-company {
  font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}
.dash-hero .progress-inline {
  display: flex; align-items: center; gap: 16px; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
}
.dash-hero .progress-inline .progress-bar-track {
  flex: 1; max-width: 280px; background: rgba(255,255,255,0.1);
  height: 6px; border-radius: 6px; overflow: hidden;
}
.dash-hero .progress-inline .progress-bar-fill {
  background: rgba(255,255,255,0.6);
}
.dash-hero .progress-inline .progress-bar-fill::after { display: none; }
.dash-hero .progress-inline .progress-label {
  font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; font-weight: 400;
}
.dash-hero .progress-inline .progress-pct {
  font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap;
}

.dash-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px 16px;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-card-value {
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin-bottom: 4px; letter-spacing: -0.5px;
}
.stat-card-label {
  font-size: 11px; color: var(--gray-400); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.4px;
}

.dash-next-step {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px 24px;
  margin-bottom: 24px; display: flex; align-items: center; gap: 20px;
  transition: box-shadow var(--transition);
  border-left: 3px solid var(--navy);
}
.dash-next-step:hover { box-shadow: var(--shadow-md); }
.dash-next-step-body { flex: 1; }
.dash-next-step-label {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.dash-next-step-title {
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.dash-next-step-desc {
  font-size: 13px; color: var(--gray-500); line-height: 1.5;
}
.dash-next-step .btn { flex-shrink: 0; }

.dash-2col {
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
  align-items: start;
}

.phase-group { margin-bottom: 28px; }
.phase-group:last-child { margin-bottom: 0; }
.phase-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--gray-400);
  margin-bottom: 8px; padding-left: 4px;
}

.timeline-step {
  display: flex; align-items: stretch; gap: 0;
  position: relative;
}
.timeline-track {
  width: 40px; display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; position: relative;
}
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0; z-index: 1;
  background: var(--white); border: 2px solid var(--gray-300);
  transition: all var(--transition);
}
.timeline-dot.dot-completed { background: var(--navy); border-color: var(--navy); color: #fff; }
.timeline-dot.dot-active { background: var(--white); border-color: var(--navy); color: var(--navy); }
.timeline-dot.dot-submitted { background: var(--white); border-color: var(--gray-400); color: var(--gray-500); }
.timeline-dot.dot-locked { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-400); }
.timeline-line {
  width: 2px; flex: 1;
  background: var(--gray-200);
  margin: 4px 0;
}
.timeline-line.line-done { background: var(--navy); }
.timeline-step:last-child .timeline-line { display: none; }

.timeline-card {
  flex: 1; min-width: 0;
  padding: 12px 16px 16px; margin-bottom: 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.timeline-card.clickable { cursor: pointer; }
.timeline-card.clickable:hover { background: var(--gray-50); }
.timeline-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.timeline-card-title {
  font-size: 14px; font-weight: 500; color: var(--navy);
}
.timeline-card-owner {
  font-size: 12px; color: var(--gray-400); margin-top: 2px;
}
.timeline-card-arrow {
  color: var(--gray-400); font-size: 16px;
  transition: transform var(--transition);
}
.timeline-card.clickable:hover .timeline-card-arrow { transform: translateX(3px); color: var(--navy); }

.dash-sidebar-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 24px;
  margin-bottom: 16px;
}
.dash-sidebar-card h3 {
  font-size: 12px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--gray-100);
}
.contact-card-detail {
  margin-bottom: 14px;
}
.contact-card-detail:last-child { margin-bottom: 0; }
.contact-card-detail .contact-text {
  font-size: 13px; color: var(--slate); font-weight: 500;
}
.contact-card-detail .contact-label {
  font-size: 11px; color: var(--gray-400); margin-bottom: 2px; font-weight: 400;
}
.quick-links { display: flex; flex-direction: column; gap: 0; }
.quick-link {
  display: flex; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 13px; font-weight: 500; color: var(--slate);
  transition: all var(--transition);
}
.quick-link:last-child { border-bottom: none; }
.quick-link:hover { color: var(--navy); }
.quick-link-arrow { margin-left: auto; color: var(--gray-300); font-size: 14px; transition: all var(--transition); }
.quick-link:hover .quick-link-arrow { color: var(--navy); transform: translateX(2px); }

/* ===== TEAM MANAGEMENT ===== */
.team-role-guide {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.role-guide-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 16px 18px;
}
.role-guide-label {
  font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.role-guide-desc {
  font-size: 12px; color: var(--gray-500); line-height: 1.5;
}

.team-member-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.team-member-row:last-child { border-bottom: none; }
.team-member-row:hover { background: var(--gray-50); }

.team-member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.team-avatar-pending {
  background: var(--gray-200); color: var(--gray-400);
}

.team-member-info { flex: 1; min-width: 0; }
.team-member-name {
  font-size: 14px; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.team-member-email {
  font-size: 12px; color: var(--gray-400); margin-top: 1px;
}
.team-you-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 10px; background: var(--blue-50); color: var(--blue-600);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.team-suspended-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 10px; background: var(--red-50); color: var(--red-700);
  text-transform: uppercase; letter-spacing: 0.3px;
}

.team-member-meta {
  display: flex; gap: 24px; flex-shrink: 0;
}
.team-member-meta-item { text-align: center; }
.team-meta-label {
  font-size: 10px; color: var(--gray-400); text-transform: uppercase;
  letter-spacing: 0.4px; display: block; margin-bottom: 2px;
}
.team-meta-value {
  font-size: 13px; font-weight: 500; color: var(--slate);
}
.role-admin { color: var(--navy); }
.role-manager { color: var(--blue-600); }
.role-viewer { color: var(--gray-500); }

.team-member-actions { flex-shrink: 0; }
.team-action-dropdown { position: relative; }
.team-action-trigger { position: relative; z-index: 1; }
.team-action-menu {
  display: none;
  position: absolute; right: 0; top: 100%; margin-top: 4px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 50; padding: 8px;
}
.team-action-dropdown.open .team-action-menu { display: block; }
.team-action-label {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 6px 8px 4px; display: block;
}
.team-role-select {
  padding: 6px 8px; font-size: 13px; margin-bottom: 4px;
}
.team-action-divider {
  height: 1px; background: var(--gray-100); margin: 4px 0;
}
.team-action-btn {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; font-size: 13px; font-weight: 400;
  color: var(--slate); background: none; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.team-action-btn:hover { background: var(--gray-50); }
.team-action-danger { color: var(--red-600); }
.team-action-danger:hover { background: var(--red-50); }

.team-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.team-modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; width: 100%; max-width: 480px;
  box-shadow: var(--shadow-xl);
}
.team-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.team-modal-header h2 {
  font-size: 18px; font-weight: 700; color: var(--navy);
}

/* ===== ACTIVE DASHBOARD ===== */
.active-dashboard {
  max-width: none; padding-top: 10px !important; padding-bottom: 12px !important;
}
.active-dashboard .dash-full-col {
  display: flex; flex-direction: column;
}
.active-dashboard .dash-section-tight { flex-shrink: 0; }
.dash-full-col { max-width: none; }

.active-hero {
  background: var(--navy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 28px 36px;
  color: #fff; margin-bottom: 0;
  position: relative; overflow: hidden;
}
.active-hero-compact { padding: 14px 24px; }
.active-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
}
.active-hero-content { position: relative; z-index: 1; }
.active-hero-top {
  display: flex; align-items: center; justify-content: space-between;
}
.active-hero h1 {
  font-size: 18px; font-weight: 600; margin: 0;
  letter-spacing: -0.3px;
}
.active-hero-company {
  font-size: 10px; color: rgba(255,255,255,0.35); margin-bottom: 2px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}
.active-hero-meta {
  display: flex; align-items: center; gap: 12px;
}
.active-hero .tier-badge {
  font-size: 10px; padding: 4px 12px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
}
.active-since {
  font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 400;
}

.portal-settings-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.portal-settings-btn:hover {
  color: #fff; background: rgba(255,255,255,0.1);
}

.dash-kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-bottom: 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200); border-top: none;
}
.dash-kpi-5 { grid-template-columns: repeat(5, 1fr); }
.dash-kpi-card {
  background: var(--white);
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--gray-100);
  position: relative;
}
.dash-kpi-card:last-child { border-right: none; }
.dash-kpi-card-accent { background: #f0fafa; }
.dash-kpi-card-accent::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--teal);
}
.dash-kpi-badge {
  display: inline-block;
  font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  background: var(--teal); color: #fff;
  padding: 1px 6px; border-radius: 3px;
  margin-bottom: 4px;
}
.dash-kpi-value {
  font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.5px; line-height: 1;
  margin-bottom: 3px;
}
.dash-kpi-label {
  font-size: 10px; font-weight: 500; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.dash-two-col {
  display: grid; grid-template-columns: 1fr 340px; gap: 28px;
}

.dash-main-col { min-width: 0; }

.dash-section { margin-bottom: 20px; }
.dash-section-tight { margin-bottom: 0; }
.dash-section-header { margin-bottom: 6px; }
.dash-section-header h2 {
  font-size: 14px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.3px; margin: 0;
}

.dash-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}

.dash-service-tile {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  position: relative;
  color: var(--navy);
}
.dash-tile-compact { padding: 12px; }
.dash-tile-live {
  cursor: pointer;
}
.dash-tile-live:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.dash-tile-live:hover .dash-tile-arrow {
  transform: translateX(3px);
}
.dash-tile-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.dash-tile-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-400);
  border: 1px solid var(--gray-200);
}
.dash-tile-icon-live {
  background: var(--navy-ui); color: #fff; border-color: var(--navy-ui);
}
.dash-tile-title {
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin-bottom: 4px;
}
.dash-tile-desc {
  font-size: 12px; color: var(--gray-500); line-height: 1.5;
  flex: 1;
}
.dash-tile-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.dash-tile-compact .dash-tile-header { margin-bottom: 8px; }
.dash-tile-compact .dash-tile-icon { width: 34px; height: 34px; border-radius: 8px; }
.dash-tile-link {
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.dash-tile-arrow {
  transition: transform var(--transition);
}

.dash-upcoming-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--navy);
}
.dash-upcoming-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.dash-upcoming-header h3 {
  font-size: 14px; font-weight: 700; color: var(--navy);
}
.dash-upcoming-count {
  font-size: 11px; color: var(--gray-400); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.dash-upcoming-list { padding: 0; }
.dash-upcoming-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-50);
}
.dash-upcoming-item-last { border-bottom: none; }
.dash-upcoming-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); color: var(--gray-400);
  flex-shrink: 0;
}
.dash-upcoming-info { min-width: 0; }
.dash-upcoming-title {
  font-size: 13px; font-weight: 600; color: var(--slate);
  margin-bottom: 1px;
}
.dash-upcoming-desc {
  font-size: 12px; color: var(--gray-400); line-height: 1.4;
}

.dash-partner-card {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fbbc0f;
  position: relative;
  box-shadow: 0 2px 12px rgba(251,188,15,0.25), 0 1px 3px rgba(0,0,0,0.08);
}
.dash-partner-accent {
  width: 5px;
  background: var(--navy-ui);
  flex-shrink: 0;
}
.dash-partner-content {
  flex: 1; padding: 28px 32px;
  position: relative; z-index: 1;
}
.dash-partner-logos {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.dash-partner-logo-valtura {
  height: 36px; display: block;
}
.dash-partner-logo-fdf {
  height: 60px; display: block;
}
.dash-partner-x {
  font-size: 18px; color: var(--navy); font-weight: 300;
  line-height: 1; opacity: 0.5;
}
.dash-partner-title {
  font-size: 22px; font-weight: 700; color: var(--navy);
  margin-bottom: 14px; letter-spacing: -0.3px;
}
.dash-partner-desc {
  font-size: 13.5px; color: rgba(11,31,51,0.75); line-height: 1.65;
  margin-bottom: 18px;
}
.dash-partner-features {
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 0;
}
.dash-partner-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--navy);
}
.dash-partner-feature svg {
  color: var(--navy); flex-shrink: 0; opacity: 0.7;
}
.dash-partner-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(11,31,51,0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-partner-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 16px; border-radius: 10px;
  background: var(--navy-ui);
  color: #fbbc0f;
}
.dash-partner-watermark {
  position: absolute;
  bottom: 16px; right: 20px;
  width: 90px; height: 90px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.dash-partner-watermark img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.service-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 4px 10px; border-radius: 10px; white-space: nowrap;
}
.service-badge-coming {
  background: var(--gray-100); color: var(--gray-400);
}
.service-badge-active {
  background: var(--green-50); color: var(--green-700);
}
.service-badge-action {
  background: #fef3c7; color: #92400e;
}

.dash-side-col {
  display: flex; flex-direction: column; gap: 16px;
}

.dash-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow var(--transition);
  color: var(--navy);
}
.dash-sidebar-card h3 {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.dash-sidebar-card-link {
  cursor: pointer; padding: 18px 20px;
}
.dash-sidebar-card-link:hover {
  box-shadow: var(--shadow-sm);
}
.dash-sidebar-link-row {
  display: flex; align-items: center; justify-content: space-between;
}

.relegated-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; margin: 0 0 4px;
  cursor: pointer;
  transition: background var(--transition);
}
.relegated-card-left {
  display: flex; align-items: center; gap: 12px;
}
.relegated-card-icon {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.relegated-icon-complete { background: var(--navy-ui); color: #fff; }
.relegated-card-title {
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.relegated-card-subtitle {
  font-size: 11px; color: var(--gray-400); margin-top: 1px;
}
.relegated-chevron {
  color: var(--gray-400); transition: transform var(--transition);
  flex-shrink: 0;
}
.dash-sidebar-card.expanded .relegated-chevron {
  transform: rotate(180deg);
}
.relegated-card-arrow {
  color: var(--gray-300); font-size: 16px; flex-shrink: 0;
  transition: all var(--transition);
}
.dash-sidebar-card-link:hover .relegated-card-arrow {
  transform: translateX(3px); color: var(--navy);
}

.relegated-card-body {
  display: none;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.dash-sidebar-card.expanded .relegated-card-body {
  display: block;
}
.relegated-step {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
}
.relegated-step-dot {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.relegated-dot-complete { background: var(--navy); color: #fff; }
.relegated-step-title {
  flex: 1; font-size: 12px; color: var(--slate); font-weight: 400;
}

.contact-card-detail {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
}
.contact-card-detail:last-child { margin-bottom: 0; }
.contact-label {
  font-size: 11px; color: var(--gray-400); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px;
}
.contact-text {
  font-size: 13px; color: var(--navy); font-weight: 500;
}

.quick-links { display: flex; flex-direction: column; gap: 0; }
.quick-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  font-size: 13px; font-weight: 500; color: var(--navy);
  border-bottom: 1px solid var(--gray-50);
  transition: color var(--transition);
}
.quick-link:last-child { border-bottom: none; }
.quick-link:hover { color: var(--teal); }
.quick-link-arrow {
  color: var(--gray-300); font-size: 14px;
  transition: all var(--transition);
}
.quick-link:hover .quick-link-arrow {
  transform: translateX(3px); color: var(--teal);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .step-layout-2col { grid-template-columns: 1fr; }
  .info-panel { position: static; }
  .dash-2col { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }
  .dash-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .dash-kpi-5 { grid-template-columns: repeat(3, 1fr); }
  .dash-services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-role-guide { grid-template-columns: 1fr; }
  .team-member-meta { display: none; }
}
@media (max-width: 768px) {
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 24px; }
  .auth-form-container h1 { font-size: 22px; }
  .auth-footer { padding: 12px 0; }
  .auth-links { gap: 16px; }
  button, .btn, [class*="btn-"], select, input[type="text"], input[type="email"],
  input[type="password"], input[type="number"], input[type="tel"], input[type="search"],
  input[type="url"], textarea { min-height: 44px; }
  .dash-services-grid { grid-template-columns: 1fr; }
  .step-nav-bar { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row > * { width: 100%; }
  .btn-group { flex-direction: column; }
  .btn-group > * { width: 100%; }
  .doc-row { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .step-progress-dots { display: none; }
  .step-nav-inner { flex-wrap: wrap; height: auto; padding: 8px 0; gap: 4px; }
  .card { padding: 20px; }
  .dash-hero { padding: 28px 24px; }
  .dash-hero h1 { font-size: 22px; }
  .dash-next-step { flex-direction: column; text-align: center; }
  .dash-next-step .btn { width: 100%; }
  .resource-reader-content { padding: 24px; }
  .active-hero { padding: 22px 24px; }
  .active-hero-top { flex-direction: column; gap: 12px; align-items: flex-start; }
  .active-hero-meta { align-self: flex-start; }
  .service-card { padding: 18px 20px; gap: 14px; }
  .service-card-desc { display: none; }
  .dash-bottom-row { grid-template-columns: 1fr; }
  .dash-quickstats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .auth-panel-right { padding: 20px 16px; }
  .auth-form-container h1 { font-size: 20px; }
  .card { padding: 16px; }
  .dash-welcome h1 { font-size: 22px; }
  .dash-hero h1 { font-size: 20px; }
  .dash-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 14px; }
  .stat-card-value { font-size: 22px; }
  .active-hero h1 { font-size: 19px; }
  .dash-kpi-strip { grid-template-columns: 1fr; }
  .dash-kpi-5 { grid-template-columns: repeat(2, 1fr); }
  .dash-kpi-card { padding: 12px 14px; }
  .dash-quickstats-grid { grid-template-columns: 1fr; }
  .service-card-icon { width: 36px; height: 36px; border-radius: 8px; }
  .service-card-title { font-size: 14px; }
  .relegated-grid { grid-template-columns: 1fr; }
  .dash-hero { padding: 20px 16px; }
  .active-hero { padding: 16px; }
  .active-hero-compact { padding: 12px 16px; }
  .timeline-card { padding: 10px 12px; }
  .timeline-card-title { font-size: 13px; }
  .timeline-dot { width: 24px; height: 24px; font-size: 11px; }
  .timeline-line { left: 11px; }
  .phase-label { font-size: 11px; }
  .dash-sidebar-card { padding: 14px; }
  .dash-sidebar-card h3 { font-size: 14px; }
  .le-stats-strip { grid-template-columns: 1fr 1fr; }
  .le-quick-links { grid-template-columns: 1fr; }
  .le-form-grid { grid-template-columns: 1fr; }
  .le-offer-details { grid-template-columns: 1fr; }
  .portal-main { padding: 16px 12px 40px; }
  .portal-main.portal-fullwidth { padding-left: 12px; padding-right: 12px; }
}

/* ===== LEAD EXCHANGE ===== */
.le-hero {
  background: var(--navy);
  padding: 20px 32px 14px;
  color: white;
}
.le-hero-content { max-width: 800px; }
.le-hero h1 {
  font-size: 20px; font-weight: 600; margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.le-hero p {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin: 0; line-height: 1.4;
}

.le-sub-nav {
  display: flex; gap: 0; border-bottom: 1px solid var(--gray-200);
  background: white; padding: 0 32px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.le-sub-nav-item {
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  color: var(--gray-400); text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all var(--transition);
}
.le-sub-nav-item:hover { color: var(--navy); }
.le-sub-nav-item.active {
  color: var(--navy); border-bottom-color: var(--teal);
}

.le-container {
  max-width: 960px; margin: 0 auto;
  padding: 16px 32px 32px;
}

.le-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 20px;
}
.le-alert-success {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}
.le-alert-error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}
.le-alert-info {
  background: var(--gray-50); color: var(--gray-500); border: 1px solid var(--gray-200);
}
.le-alert-action {
  background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; flex-wrap: wrap; padding: 18px 20px;
}
.le-alert-content {
  display: flex; gap: 12px; align-items: flex-start; flex: 1;
}
.le-alert-icon { flex-shrink: 0; margin-top: 2px; }
.le-alert-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.le-alert-desc { font-size: 13px; opacity: 0.85; }
.le-alert-btn {
  padding: 8px 18px; background: var(--navy); color: white;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  text-decoration: none; flex-shrink: 0;
  transition: background var(--transition);
}
.le-alert-btn:hover { background: var(--slate); }

.le-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
.le-stat-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px;
  text-align: center;
}
.le-stat-value {
  font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.5px;
}
.le-stat-label {
  font-size: 11px; color: var(--gray-400); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}

.le-active-offer-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px;
  background: rgba(44,122,123,0.06); border: 1px solid rgba(44,122,123,0.2);
  border-radius: var(--radius); margin-bottom: 24px;
  flex-wrap: wrap;
}
.le-active-offer-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.le-active-offer-desc { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.le-active-offer-btn {
  padding: 8px 18px; background: var(--teal); color: white;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background var(--transition);
}
.le-active-offer-btn:hover { background: #245f60; }

.le-quick-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.le-quick-link-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; background: white;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  text-decoration: none; transition: all var(--transition);
}
.le-quick-link-card:hover {
  border-color: var(--gray-300); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.le-quick-link-card.disabled {
  opacity: 0.45; pointer-events: none;
}
.le-quick-link-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gray-50); color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
}
.le-quick-link-card:hover .le-quick-link-icon {
  background: rgba(11,31,51,0.06); color: var(--navy);
}
.le-quick-link-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.le-quick-link-desc { font-size: 13px; color: var(--gray-400); line-height: 1.5; }

.le-info-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 16px;
}
.le-info-card-sm { padding: 16px; }
.le-info-title {
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin-bottom: 10px;
}
.le-info-text { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 0; }
.le-info-steps { display: flex; flex-direction: column; gap: 10px; }
.le-info-step {
  display: flex; gap: 10px; align-items: flex-start;
}
.le-info-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.le-info-step-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.le-info-step-desc { font-size: 12px; color: var(--gray-400); margin-top: 1px; line-height: 1.4; }

/* LE Profile */
.le-profile-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  align-items: flex-start;
}
.le-sidebar-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.le-sidebar-title {
  font-size: 12px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.le-sidebar-text {
  font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 0 0 8px;
}
.le-profile-status { margin-top: 8px; }
.le-profile-status p { font-size: 13px; color: var(--gray-500); margin: 8px 0 0; line-height: 1.5; }
.le-status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.le-status-complete { background: #dcfce7; color: #166534; }
.le-status-incomplete { background: #fef3c7; color: #92400e; }

.le-profile-form {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
.le-form-section {
  padding: 24px; border-bottom: 1px solid var(--gray-100);
}
.le-form-section:last-of-type { border-bottom: none; }
.le-form-section-title {
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.le-form-section-desc {
  font-size: 13px; color: var(--gray-400); margin-bottom: 16px;
}
.le-checkbox-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.le-checkbox-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition);
}
.le-checkbox-item:hover { background: var(--gray-50); }
.le-checkbox-item input[type="checkbox"],
.le-checkbox-item input[type="radio"] {
  accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0;
}
.le-checkbox-label { font-size: 13px; color: var(--gray-600); }
.le-radio-group { display: flex; flex-direction: column; gap: 6px; }
.le-radio-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition);
}
.le-radio-item:hover { background: var(--gray-50); }
.le-radio-label { font-size: 13px; color: var(--gray-600); }
.le-form-actions {
  padding: 20px 24px; background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  display: flex; gap: 12px; justify-content: flex-end;
}

.le-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; border: none;
  transition: all var(--transition);
}
.le-btn-primary {
  background: var(--navy); color: white;
}
.le-btn-primary:hover { background: var(--slate); }
.le-btn-ghost {
  background: transparent; color: var(--gray-500);
  border: 1px solid var(--gray-300);
}
.le-btn-ghost:hover { background: var(--gray-50); color: var(--navy); border-color: var(--gray-400); }
.le-btn-sm { padding: 7px 14px; font-size: 12px; }

/* LE Submit Form */
.le-submit-form { margin-bottom: 20px; }
.le-form-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px;
}
.le-form-card-optional { border-style: dashed; }
.le-form-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--gray-100);
}
.le-form-card-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.le-form-required-note { font-size: 12px; color: var(--gray-400); }
.le-form-optional-note {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.le-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 20px 24px;
}
.le-form-full { grid-column: 1 / -1; }
.le-form-group { display: flex; flex-direction: column; gap: 6px; }
.le-form-label {
  font-size: 13px; font-weight: 500; color: var(--gray-600);
}
.le-form-input, .le-form-select, .le-form-textarea {
  padding: 10px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  color: var(--navy); background: white;
  transition: border-color var(--transition);
}
.le-form-input:focus, .le-form-select:focus, .le-form-textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44,122,123,0.1);
}
.le-form-textarea { resize: vertical; min-height: 80px; }
.le-form-disclaimer {
  font-size: 12px; color: var(--gray-400); line-height: 1.6;
  padding: 16px 0;
}

/* LE Tables */
.le-table-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px;
}
.le-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.le-table th {
  text-align: left; padding: 12px 18px;
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.le-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.le-table tbody tr:last-child td { border-bottom: none; }
.le-table tbody tr:hover { background: var(--gray-50); }
.le-table-merchant { font-weight: 600; color: var(--navy); }
.le-table-contact { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.le-table-detail-row td { padding: 8px 18px; background: var(--gray-50); }
.le-table-detail { font-size: 12px; color: var(--gray-500); font-style: italic; }

.le-lead-status {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.le-lead-status-submitted { background: #dbeafe; color: #1e40af; }
.le-lead-status-matching { background: #e0e7ff; color: #3730a3; }
.le-lead-status-offered { background: #fef3c7; color: #92400e; }
.le-lead-status-accepted { background: #dcfce7; color: #166534; }
.le-lead-status-in_progress { background: #cffafe; color: #155e75; }
.le-lead-status-boarded { background: #dcfce7; color: #166534; }
.le-lead-status-closed_lost { background: #f3f4f6; color: #6b7280; }
.le-lead-status-lapsed { background: #fef2f2; color: #991b1b; }
.le-lead-status-pending { background: #fef3c7; color: #92400e; }
.le-lead-status-declined { background: #f3f4f6; color: #6b7280; }
.le-lead-status-expired { background: #fef2f2; color: #991b1b; }

/* LE Offer Cards */
.le-offer-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
}
.le-offer-active { border-color: rgba(44,122,123,0.3); }
.le-offer-accepted { border-color: #bbf7d0; }
.le-offer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: rgba(44,122,123,0.04);
  border-bottom: 1px solid rgba(44,122,123,0.1);
}
.le-offer-timer {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--teal);
}
.le-offer-date { font-size: 12px; color: var(--gray-400); }
.le-offer-body { padding: 22px; }
.le-offer-merchant-name {
  font-size: 18px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; letter-spacing: -0.3px;
}
.le-offer-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.le-offer-details-compact { gap: 10px; }
.le-offer-detail-full { grid-column: 1 / -1; }
.le-offer-detail-label {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px;
}
.le-offer-detail-value { font-size: 14px; color: var(--navy); line-height: 1.5; }
.le-offer-gp-note {
  margin-top: 18px; padding: 12px 16px;
  background: var(--gray-50); border-radius: var(--radius);
  font-size: 13px; color: var(--gray-500); line-height: 1.5;
}
.le-offer-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 16px 22px;
  border-top: 1px solid var(--gray-100); background: var(--gray-50);
}
.le-offer-action-form { display: inline; }
.le-offer-viewer-note { font-size: 12px; color: var(--gray-400); }

/* LE Merchants */
.le-role-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
}
.le-role-originator { background: #dbeafe; color: #1e40af; }
.le-role-converter { background: #dcfce7; color: #166534; }
.le-merchant-status {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
}
.le-merchant-status-active { background: #dcfce7; color: #166534; }
.le-merchant-status-churned { background: #fef2f2; color: #991b1b; }

/* LE Empty States */
.le-empty-state {
  text-align: center; padding: 60px 20px;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.le-empty-icon { color: var(--gray-300); margin-bottom: 16px; }
.le-empty-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.le-empty-desc {
  font-size: 13px; color: var(--gray-400); max-width: 400px;
  margin: 0 auto 20px; line-height: 1.6;
}

.le-section-header { margin-bottom: 16px; }
.le-section-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.le-section-desc { font-size: 13px; color: var(--gray-400); margin-top: 2px; }

/* LE Responsive */
@media (max-width: 900px) {
  .le-profile-layout { grid-template-columns: 1fr; }
  .le-profile-sidebar { order: -1; }
  .le-checkbox-grid { grid-template-columns: 1fr; }
  .le-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .le-offer-details { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .le-sub-nav { padding: 0 16px; }
  .le-container { padding: 20px 16px 40px; }
  .le-hero { padding: 22px 16px 16px; }
  .le-quick-links { grid-template-columns: 1fr; }
  .le-form-grid { grid-template-columns: 1fr; }
  .le-table { font-size: 12px; }
  .le-table th, .le-table td { padding: 10px 14px; }
}

/* ===== PCI DSS Compliance Styles ===== */

.pci-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #fbbc0f 0%, #d4a00e 50%, #fbbc0f 100%);
}

.pci-hero {
  background: linear-gradient(135deg, #2a3440 0%, #3a4856 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.pci-hero-accent {
  height: 4px;
  background: linear-gradient(90deg, #fbbc0f, #e0a80d, #fbbc0f);
}
.pci-hero-content {
  padding: 24px 28px 22px;
}
.pci-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pci-hero-logo {
  height: 70px;
}
.pci-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pci-hero-btn {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}
.pci-hero-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}
.pci-hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.pci-hero-btn-gold {
  background: #fbbc0f;
  color: #1a1a1a;
  border: 1px solid #fbbc0f;
}
.pci-hero-btn-gold:hover {
  background: #d4a00e;
  border-color: #d4a00e;
}
.pci-hero-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.pci-hero-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
}
.pci-contact-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.pci-contact-strip-icon {
  color: #b8860b;
  flex-shrink: 0;
}
.pci-contact-strip-text {
  font-size: 12px;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pci-contact-strip-text strong {
  color: #451a03;
  font-weight: 600;
}
.pci-contact-strip-sep {
  color: #d4a00e;
}
.pci-btn-gold {
  background: #fbbc0f !important;
  color: #1a1a1a !important;
  border: none !important;
  font-weight: 600;
}
.pci-btn-gold:hover {
  background: #d4a00e !important;
}
.pci-btn-outline {
  border-color: var(--gray-300) !important;
  color: var(--navy) !important;
}
.pci-btn-large {
  padding: 14px 32px !important;
  font-size: 16px !important;
}

.pci-stats-strip {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.pci-stat {
  flex: 1;
  padding: 14px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.pci-stat:last-child { border-right: none; }
.pci-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.pci-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

.pci-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pci-filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  background: var(--white);
  transition: all 0.15s;
}
.pci-filter-btn:hover { border-color: var(--gray-400); }
.pci-filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pci-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.pci-empty-state h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.pci-empty-state p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.pci-merchant-name {
  font-weight: 500;
  color: var(--navy);
}
.pci-merchant-trading {
  font-size: 12px;
  color: var(--gray-500);
}

.pci-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.pci-status-badge-lg {
  padding: 5px 14px;
  font-size: 13px;
}
.pci-status-submitted { background: var(--gray-100); color: var(--gray-600); }
.pci-status-consultation_booked { background: var(--blue-50); color: var(--blue-600); }
.pci-status-assessment_in_progress { background: var(--yellow-50); color: var(--yellow-600); }
.pci-status-compliant { background: var(--green-50); color: var(--green-700); }
.pci-status-non_compliant { background: var(--red-50); color: var(--red-700); }
.pci-status-renewal_due { background: #FFF7ED; color: #C2410C; }
.pci-status-lapsed { background: var(--gray-100); color: var(--gray-500); }
.pci-status-cancelled { background: var(--gray-100); color: var(--gray-500); }

.pci-referrals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pci-referrals-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  padding: 12px 16px;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.pci-referrals-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: middle;
}
.pci-referrals-table tbody tr:last-child td {
  border-bottom: none;
}
.pci-referrals-table tbody tr:hover {
  background: var(--gray-50);
}
.pci-col-merchant { width: 35%; min-width: 180px; }
.pci-col-referred { width: 22%; min-width: 130px; white-space: nowrap; }
.pci-col-date { width: 15%; min-width: 110px; white-space: nowrap; }
.pci-col-status { width: 20%; min-width: 140px; }
.pci-col-action { width: 8%; min-width: 70px; text-align: right; }

.pci-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 16px;
  font-size: 13px;
  color: var(--gray-500);
}
.pci-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
}
.pci-breadcrumb a:hover { color: var(--navy); }
.pci-breadcrumb-sep { color: var(--gray-300); }

.pci-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
}
.pci-detail-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.pci-detail-trading {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 2px;
}

.pci-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.pci-edit-notice {
  background: var(--yellow-50);
  border: 1px solid #FDE68A;
  color: var(--yellow-600);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
}

.pci-detail-rows {
  display: flex;
  flex-direction: column;
}
.pci-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pci-detail-row:last-child { border-bottom: none; }
.pci-detail-label {
  font-size: 13px;
  color: var(--gray-500);
}
.pci-detail-value {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  text-align: right;
}

.pci-referrer-card {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.pci-referrer-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 12px;
  font-style: italic;
}

.pci-notes-content {
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.pci-notes-empty {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.pci-note-form {
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

/* PCI Booking Page */
.pci-booking-container {
  max-width: 560px;
  margin: 40px auto;
}
.pci-booking-card {
  text-align: center;
  padding: 40px !important;
}
.pci-booking-success-icon {
  margin-bottom: 16px;
}
.pci-booking-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.pci-booking-merchant {
  font-size: 15px;
  color: var(--gray-600);
}
.pci-booking-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 24px 0;
}
.pci-booking-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.pci-booking-actions {
  margin: 24px 0;
}
.pci-booking-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 8px;
}
.pci-booking-confirm-text {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

/* PCI Statements */
.pci-stmt-total {
  font-weight: 600;
  color: var(--navy);
}

/* PCI Statement Document */
.pci-statement-doc {
  max-width: 680px;
  margin: 24px auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pci-statement-doc-accent {
  height: 4px;
  background: linear-gradient(90deg, #fbbc0f, #f59e0b, #fbbc0f);
}
.pci-statement-doc-header {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pci-statement-doc-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pci-statement-fdf-logo { height: 48px; }
.pci-statement-doc-header h2 {
  color: #fbbc0f;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.pci-statement-doc-header p {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin: 4px 0 0;
}
.pci-statement-doc-header-right {
  text-align: right;
}
.pci-stmt-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pci-stmt-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
}
.pci-statement-doc-header-right span:last-child {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
}

.pci-statement-doc-body {
  padding: 32px;
  background: var(--white);
}
.pci-stmt-to {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.pci-stmt-to .pci-stmt-meta-label {
  color: var(--gray-400);
  margin-bottom: 4px;
}
.pci-stmt-to-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}
.pci-stmt-to-vat {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.pci-stmt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.pci-stmt-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
}
.pci-stmt-table td {
  padding: 12px 12px;
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid var(--gray-100);
}
.pci-stmt-trading {
  font-size: 11px;
  color: var(--gray-400);
}

.pci-stmt-totals {
  border-top: 2px solid var(--gray-200);
  padding-top: 16px;
}
.pci-stmt-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-600);
}
.pci-stmt-grand-total {
  background: #fffbeb;
  border-top: 2px solid #fbbc0f;
  border-radius: 0 0 6px 6px;
  padding: 14px 16px;
  margin: 8px -32px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.pci-statement-doc-footer {
  background: #f8fafc;
  padding: 18px 32px;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}
.pci-statement-doc-footer p {
  font-size: 11px;
  color: var(--gray-400);
  margin: 2px 0;
}
.pci-statement-doc-footer p:first-child {
  color: #b45309;
  font-weight: 600;
  font-size: 12px;
}

/* PCI Admin */
.pci-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 20px;
}
.pci-admin-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.pci-admin-filters {
  display: flex;
  gap: 10px;
  padding: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.pci-admin-filters .form-input {
  max-width: 200px;
}

.pci-payment-summary {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
}
.pci-payment-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--gray-600);
}
.pci-payment-history {
  display: flex;
  flex-direction: column;
}
.pci-payment-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pci-payment-entry:last-child { border-bottom: none; }
.pci-payment-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.pci-payment-notes {
  font-size: 12px;
  color: var(--gray-500);
}
.pci-payment-amounts {
  text-align: right;
}
.pci-payment-fee {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.pci-payment-commission {
  font-size: 11px;
  color: var(--gray-500);
}

.pci-stmt-gen-form {
  padding: 0;
}
.pci-stmt-gen-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-partner-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbc0f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  transition: opacity 0.15s;
}
.dash-partner-open-link:hover { opacity: 0.8; }

.admin-header {
  background: var(--navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.responsive-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; }
.responsive-table-wrap table { min-width: 600px; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table-wrap table { min-width: 640px; }
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== MOBILE UTILITIES ===== */
.hide-on-mobile { display: initial; }
.show-on-mobile { display: none; }
@media (max-width: 768px) {
  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: initial !important; }
  .stack-on-mobile { flex-direction: column !important; }
  .full-width-on-mobile { width: 100% !important; }
}

@media (max-width: 900px) {
  .pci-hero-top { flex-direction: column; gap: 16px; align-items: flex-start; }
  .pci-hero-actions { width: 100%; }
  .pci-hero-btn { flex: 1; text-align: center; justify-content: center; }
  .pci-stats-strip { flex-wrap: wrap; }
  .pci-stat { min-width: 33%; }
  .pci-detail-grid { grid-template-columns: 1fr; }
  .pci-admin-filters { flex-direction: column; }
  .pci-admin-filters .form-input { max-width: 100%; }
  .pci-stmt-gen-form .form-row { grid-template-columns: 1fr; }
  .le-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .le-table-wrap table { min-width: 580px; }
  .resources-grid { gap: 0; }
  .le-profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pci-stats-strip { flex-direction: column; }
  .pci-stat { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .pci-stat:last-child { border-bottom: none; }
  .pci-statement-doc { margin: 0 -4px; }
  .pci-statement-doc-header { flex-direction: column; gap: 12px; text-align: left; }
  .pci-statement-doc-header-right { text-align: left; }
  .pci-detail-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pci-detail-header h1 { font-size: 18px; }
  .pci-booking-card { padding: 24px !important; }
  .pci-booking-card h2 { font-size: 18px; }
  .pci-booking-card h3 { font-size: 16px; }
  .pci-stmt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pci-stmt-table-wrap table { min-width: 420px; }
  .pci-stmt-grand-total { margin: 8px -20px 0; padding: 14px 20px; }
  .le-offer-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .le-offer-body { padding: 16px; }
  .le-offer-merchant-name { font-size: 16px; }
  .le-offer-actions { flex-direction: column; }
  .le-offer-actions form, .le-offer-actions button { width: 100%; }
  .le-offer-action-form { display: block; width: 100%; }
  .le-offer-action-form .le-btn { width: 100%; }
  .le-active-offer-banner { flex-direction: column; align-items: flex-start; }
  .le-active-offer-btn { width: 100%; text-align: center; }
  .le-alert-action { flex-direction: column; }
  .le-alert-btn { width: 100%; text-align: center; }
  .team-member-row { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .team-member-actions { width: 100%; }
  .team-member-actions form, .team-member-actions a { width: 100%; }
  .team-invite-form { flex-direction: column; }
  .team-invite-form input, .team-invite-form select, .team-invite-form button { width: 100%; }
  .doc-filters { flex-direction: column; }
  .doc-filters select { width: 100%; }
  .resource-grid { grid-template-columns: 1fr !important; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-header h1 { font-size: 20px; }
  .pci-filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .pci-filter-btn { white-space: nowrap; font-size: 11px; padding: 6px 10px; }
  .filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .filter-pill { white-space: nowrap; }
  .resource-card { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .pci-hero-content { padding: 18px 20px 16px; }
  .pci-hero-logo { height: 50px; }
  .pci-hero-actions { flex-direction: column; }
  .pci-hero-btn { width: 100%; justify-content: center; text-align: center; }
  .pci-hero-text h1 { font-size: 18px; }
  .pci-contact-strip { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pci-contact-strip-text { flex-direction: column; gap: 2px; }
  .pci-contact-strip-sep { display: none; }
  .pci-statement-doc-body { padding: 20px; }
  .pci-statement-doc-header { padding: 20px; }
  .pci-statement-doc-footer { padding: 14px 20px; }
  .pci-booking-container { margin: 20px auto; }
  .le-stats-strip { grid-template-columns: 1fr; }
  .le-hero h1 { font-size: 17px; }
  .le-hero p { font-size: 12px; }
  .le-container { padding: 16px 12px 32px; }
  .le-info-step { gap: 8px; }
  .team-role-guide { gap: 8px; }
  .role-guide-item { padding: 10px; }
  .resource-card-title { font-size: 14px; }
  .team-modal { padding: 20px; }
  .team-modal-header h2 { font-size: 16px; }
  .step-nav-inner { gap: 8px; }
  .step-page-header h1 { font-size: 18px; }
  .step-nav-bar { padding: 0 12px; }
  .step-breadcrumb .current { font-size: 12px; }
  .step-breadcrumb a { font-size: 12px; }
  .upload-zone { padding: 24px 16px; }
  .info-panel { padding: 18px; }
  .training-module { padding: 10px 0; }
  .contract-list { gap: 8px; }
  .contract-item { padding: 10px 12px; }
  .file-item { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .file-actions { width: 100%; }
  .doc-step-tag { font-size: 10px; }
  .le-checkbox-grid { grid-template-columns: 1fr; }
  .le-form-actions { flex-direction: column; }
  .le-form-actions .le-btn { width: 100%; text-align: center; }
}

.admin-search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.admin-search-input::placeholder { color: rgba(255,255,255,0.3); }
.admin-search-input:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
}
.admin-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 300;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
}
.search-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  padding: 10px 14px 4px;
}
.search-result-item {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid var(--gray-100);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); }
.search-result-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-detail {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-empty {
  padding: 16px 14px;
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
}

.notif-panel {
  position: absolute;
  left: 100%;
  bottom: 0;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1100;
  overflow: hidden;
  margin-left: 8px;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #E2E8F0;
}
.notif-panel-header strong { font-size: 14px; color: #0B1F33; }
.notif-mark-all {
  background: none;
  border: none;
  color: #2C7A7B;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-panel-body {
  max-height: 340px;
  overflow-y: auto;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:hover { background: #F8FAFC; }
.notif-item:last-child { border-bottom: none; }
.notif-unread { background: #EFF6FF; }
.notif-unread:hover { background: #DBEAFE; }
.notif-item-title { font-size: 13px; font-weight: 600; color: #0B1F33; }
.notif-item-msg { font-size: 12px; color: #64748B; margin-top: 2px; }
.notif-item-time { font-size: 11px; color: #94A3B8; margin-top: 4px; }
.notif-empty {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: #94A3B8;
}
@media (max-width: 768px) {
  .notif-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: auto;
    top: 60px;
    width: auto;
    max-height: 60vh;
    margin-left: 0;
  }
  .notif-panel-body { max-height: calc(60vh - 50px); }
  .notif-item-msg { font-size: 11px; }
  .admin-search-results {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    width: auto;
    max-height: 50vh;
  }
}
