/* ============================================================
   Little Whale Capital — Client Portal Styles
   Premium Swiss private banking aesthetic
   ============================================================ */

/* ── Portal Login ── */
.portal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: var(--sp-lg);
  padding-top: 90px;
}

.portal-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.portal-logo {
  display: block;
  margin: 0 auto var(--sp-lg);
  height: 48px;
  width: auto;
}

.portal-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--sp-lg);
  border: none;
}

.portal-heading {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-lg);
}

.portal-subheading {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
}

/* ── Form Elements ── */
.portal-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  text-align: left;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portal-input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--dur-fast) var(--ease);
  outline: none;
}

.portal-input:focus {
  border-color: var(--navy);
}

.portal-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Buttons ── */
.portal-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  margin-top: var(--sp-sm);
}

.portal-btn--primary {
  background: var(--navy);
  color: var(--white);
}

.portal-btn--primary:hover {
  background: var(--navy-mid);
}

.portal-btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}

.portal-btn--outline:hover {
  border-color: var(--navy);
}

/* ── Footer ── */
.portal-footer {
  margin-top: var(--sp-xl);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.portal-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.portal-footer a:hover {
  color: var(--navy);
}

/* ── 2FA Code Input ── */
.portal-code-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: var(--sp-md) 0 var(--sp-sm);
}

.portal-code-input {
  width: 52px;
  height: 64px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  caret-color: var(--gold);
}

.portal-code-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.06);
}

.portal-code-input.filled {
  border-color: var(--navy-light);
  background: var(--warm-white);
}

.portal-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease);
}

.portal-link:hover {
  color: var(--navy);
}

/* ── Dashboard Layout ── */
.portal-app {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
  background: var(--off-white);
}

/* Sidebar */
.portal-sidebar {
  width: 260px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: var(--sp-lg) 0;
  flex-shrink: 0;
}

.portal-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.portal-sidebar-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.portal-sidebar-logo span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.portal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.portal-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--sp-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all var(--dur-fast) var(--ease);
  border-left: 2px solid transparent;
}

.portal-nav li a:hover,
.portal-nav li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--gold);
}

.portal-nav li a .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.portal-nav li a:hover .nav-icon,
.portal-nav li a.active .nav-icon {
  opacity: 1;
}

.portal-sidebar-footer {
  padding: var(--sp-md);
  margin-top: auto;
}

.portal-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--dur-fast) var(--ease);
}

.portal-sidebar-footer a:hover {
  color: rgba(255,255,255,0.8);
}

/* Top Bar */
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-lg);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-topbar-left img {
  height: 28px;
}

.portal-topbar-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.portal-user-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-mid);
}

.portal-logout {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--dur-fast) var(--ease);
}

.portal-logout:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* Main Content */
.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portal-content {
  padding: var(--sp-xl) var(--sp-lg);
  flex: 1;
  max-width: 1100px;
}

.portal-welcome {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: var(--sp-xs);
}

.portal-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-xl);
}

/* Cards Grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-md);
}

.portal-card-dash {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-lg);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.portal-card-dash:hover {
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.04);
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.portal-card-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portal-card-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(142, 145, 150, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.portal-card-value {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: var(--sp-xs);
}

.portal-card-change {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.portal-card-change .positive {
  color: #2D8A56;
}

/* Document List */
.portal-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.portal-doc-list li:last-child {
  border-bottom: none;
}

.portal-doc-name {
  color: var(--text-dark);
}

.portal-doc-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Summary List */
.portal-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.portal-summary-list li:last-child {
  border-bottom: none;
}

.portal-summary-label {
  color: var(--text-muted);
}

.portal-summary-value {
  color: var(--text-dark);
  font-weight: 500;
}

/* ── Client Login Nav Link ── */
.nav-client-login {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--dur-fast) var(--ease);
  margin-right: var(--sp-sm);
}

.nav-client-login:hover {
  color: var(--navy);
}

.nav-client-login .lock-icon {
  font-size: 0.7rem;
}

/* Mobile sidebar toggle */
.portal-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .portal-wrapper {
    padding: var(--sp-md);
  }

  .portal-card {
    max-width: 100%;
  }

  .portal-code-group {
    gap: 8px;
  }

  .portal-code-input {
    width: 44px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: 6px;
  }

  /* Dashboard */
  .portal-app {
    flex-direction: column;
  }

  .portal-sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1000;
    transition: left var(--dur-med) var(--ease);
  }

  .portal-sidebar.open {
    left: 0;
  }

  .portal-sidebar-toggle {
    display: block;
  }

  .portal-content {
    padding: var(--sp-md);
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-topbar {
    padding: var(--sp-sm) var(--sp-md);
  }

  .portal-welcome {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .portal-code-input {
    width: 40px;
    height: 50px;
    font-size: 1.1rem;
  }

  .portal-code-group {
    gap: 6px;
  }
}

/* ============================================================
   KYC Document Submission Page
   ============================================================ */

/* ── KYC Layout ── */
.kyc-content {
  max-width: 820px;
}

.kyc-header {
  margin-bottom: var(--sp-lg);
}

.kyc-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Progress Tracker ── */
.kyc-progress {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.kyc-progress-info {
  margin-bottom: 12px;
}

.kyc-progress-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.kyc-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--off-white);
  border-radius: 3px;
  overflow: hidden;
}

.kyc-progress-fill {
  height: 100%;
  background: var(--ocean);
  border-radius: 3px;
  transition: width 0.5s var(--ease);
}

/* ── Category Cards ── */
.kyc-categories {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.kyc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease);
}

.kyc-card:hover {
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

.kyc-card--completed {
  border-color: #2D8A56;
}

.kyc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background var(--dur-fast) var(--ease);
}

.kyc-card-header:hover {
  background: var(--warm-white);
}

.kyc-card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kyc-card-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

.kyc-card--completed .kyc-card-check {
  background: #2D8A56;
  border-color: #2D8A56;
}

.kyc-card--completed .kyc-card-check::after {
  content: '';
  display: block;
  width: 8px;
  height: 14px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -3px;
}

.kyc-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.3;
}

.kyc-card-badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}

.kyc-card-badge--required {
  color: var(--ocean);
  background: rgba(30, 95, 138, 0.08);
}

.kyc-card-badge--optional {
  color: var(--text-muted);
  background: rgba(122, 122, 122, 0.08);
}

.kyc-card-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* ── Card Body (Expand/Collapse) ── */
.kyc-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  padding: 0 var(--sp-lg);
}

.kyc-card--open .kyc-card-body {
  max-height: 2000px;
  padding: 0 var(--sp-lg) var(--sp-lg);
}

.kyc-card-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: var(--sp-sm);
}

.kyc-card-requirements {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: var(--sp-md);
}

.kyc-card-requirements li {
  margin-bottom: 6px;
}

.kyc-template-link {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.kyc-template-link:hover {
  color: var(--ocean-light);
  text-decoration: underline;
}

/* ── Dropzone ── */
.kyc-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  background: var(--warm-white);
}

.kyc-dropzone:hover {
  border-color: var(--ocean);
  background: rgba(30, 95, 138, 0.02);
}

.kyc-dropzone--active {
  border-color: var(--ocean);
  background: rgba(30, 95, 138, 0.05);
  box-shadow: 0 0 0 4px rgba(30, 95, 138, 0.08);
}

.kyc-dropzone-inner {
  pointer-events: none;
}

.kyc-dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.5;
}

.kyc-dropzone--active .kyc-dropzone-icon {
  color: var(--ocean);
  opacity: 0.8;
}

.kyc-dropzone-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.kyc-dropzone-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kyc-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ── File List ── */
.kyc-file-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-sm) 0 0;
}

.kyc-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.kyc-file-item.kyc-file--uploaded {
  border-color: rgba(45, 138, 86, 0.3);
}

.kyc-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.kyc-file-name {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kyc-file-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kyc-file-progress {
  width: 80px;
  height: 4px;
  background: var(--off-white);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.kyc-file-progress-fill {
  height: 100%;
  background: var(--ocean);
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s var(--ease);
}

.kyc-file--uploaded .kyc-file-progress-fill {
  background: #2D8A56;
}

.kyc-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.kyc-file-remove:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}

/* ── Submit Section ── */
.kyc-submit-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.kyc-confirmations {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.kyc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.6;
  cursor: pointer;
}

.kyc-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kyc-checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

.kyc-checkbox:checked + .kyc-checkbox-custom {
  background: var(--ocean);
  border-color: var(--ocean);
}

.kyc-checkbox:checked + .kyc-checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.kyc-checkbox:focus-visible + .kyc-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(30, 95, 138, 0.2);
}

.kyc-submit-btn {
  width: 100%;
  max-width: 320px;
  display: block;
}

.kyc-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.kyc-submit-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: var(--sp-md);
}

/* ── Security Notice ── */
.kyc-security-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.kyc-security-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.kyc-security-notice p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Nav overlay link ── */
.nav-overlay-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.03em;
  transition: color var(--dur-fast) var(--ease);
}

.nav-overlay-link:hover {
  color: var(--navy);
}

/* ── Dashboard KYC Card ── */
.portal-card-dash--kyc {
  border-left: 3px solid var(--ocean);
}

.portal-card-dash--kyc .kyc-dash-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ocean);
  text-decoration: none;
  margin-top: var(--sp-sm);
  transition: color var(--dur-fast) var(--ease);
}

.portal-card-dash--kyc .kyc-dash-link:hover {
  color: var(--ocean-light);
}

.portal-card-dash--kyc .kyc-dash-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── KYC Responsive ── */
@media (max-width: 768px) {
  .kyc-content {
    padding: var(--sp-md);
  }

  .kyc-card-header {
    padding: var(--sp-sm) var(--sp-md);
  }

  .kyc-card--open .kyc-card-body {
    padding: 0 var(--sp-md) var(--sp-md);
  }

  .kyc-progress {
    padding: var(--sp-sm) var(--sp-md);
  }

  .kyc-submit-section {
    padding: var(--sp-md);
  }

  .kyc-security-notice {
    padding: var(--sp-sm) var(--sp-md);
    flex-direction: column;
    gap: 8px;
  }

  .kyc-submit-btn {
    max-width: 100%;
  }

  .kyc-file-progress {
    width: 50px;
  }
}


/* ============================================================
   KYC Questionnaire — Multi-Step Flow
   ============================================================ */

/* ── Step Progress Bar ── */
.kyc-stepper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.kyc-stepper-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kyc-stepper-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.kyc-stepper-count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.kyc-stepper-bar {
  width: 100%;
  height: 4px;
  background: var(--off-white);
  border-radius: 2px;
  overflow: hidden;
}

.kyc-stepper-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}

/* ── Step Indicators ── */
.kyc-stepper-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
}

.kyc-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.kyc-stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
}

.kyc-stepper-step.active .kyc-stepper-dot {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.kyc-stepper-step.completed .kyc-stepper-dot {
  border-color: #2D8A56;
  background: #2D8A56;
  color: var(--white);
}

.kyc-stepper-step.completed .kyc-stepper-dot::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.kyc-stepper-step-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.kyc-stepper-step.active .kyc-stepper-step-label {
  color: var(--navy);
  font-weight: 500;
}

.kyc-stepper-step.completed .kyc-stepper-step-label {
  color: #2D8A56;
}

/* Connector lines */
.kyc-stepper-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

/* ── Question Card ── */
.kyc-question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-xl) var(--sp-lg);
  margin-bottom: var(--sp-md);
  animation: kycFadeIn 0.3s var(--ease);
}

@keyframes kycFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.kyc-question-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: var(--sp-lg);
  line-height: 1.4;
}

/* ── Radio / Checkbox Options ── */
.kyc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kyc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
  background: var(--white);
}

.kyc-option:hover {
  border-color: var(--gold-light);
  background: rgba(184, 125, 91, 0.02);
}

.kyc-option.selected {
  border-color: var(--gold);
  background: rgba(184, 125, 91, 0.04);
}

.kyc-option input[type="radio"],
.kyc-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kyc-option-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

.kyc-option.selected .kyc-option-indicator {
  border-color: var(--gold);
}

.kyc-option.selected .kyc-option-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

/* Checkbox variant */
.kyc-option--checkbox .kyc-option-indicator {
  border-radius: 4px;
}

.kyc-option--checkbox.selected .kyc-option-indicator {
  background: var(--gold);
  border-color: var(--gold);
}

.kyc-option--checkbox.selected .kyc-option-indicator::after {
  content: '';
  width: 6px;
  height: 10px;
  border-radius: 0;
  background: transparent;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* ── Conditional Text Input ── */
.kyc-option-input {
  margin-top: 10px;
  padding-left: 36px;
}

.kyc-option-input input,
.kyc-option-input textarea {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--warm-white);
  color: var(--text-dark);
  width: 100%;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}

.kyc-option-input input:focus,
.kyc-option-input textarea:focus {
  border-color: var(--gold);
}

.kyc-option-input input::placeholder,
.kyc-option-input textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Citizenship sub-question ── */
.kyc-sub-question {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
}

.kyc-sub-question-label {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: var(--sp-sm);
  font-weight: 400;
}

.kyc-inline-options {
  display: flex;
  gap: 10px;
  margin-bottom: var(--sp-sm);
}

.kyc-inline-options .kyc-option {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
}

/* ── PEP Tooltip ── */
.kyc-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: help;
  margin-top: var(--sp-sm);
  border: none;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.kyc-tooltip-content {
  display: none;
  margin-top: var(--sp-sm);
  padding: var(--sp-md);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.kyc-tooltip-content.visible {
  display: block;
}

/* ── Navigation Buttons ── */
.kyc-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.kyc-btn-back {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 28px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all var(--dur-fast) var(--ease);
}

.kyc-btn-back:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.kyc-btn-continue {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 14px 36px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  margin-left: auto;
}

.kyc-btn-continue:hover {
  background: var(--navy-mid);
}

.kyc-btn-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Validation Error ── */
.kyc-validation-msg {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: var(--sp-sm);
  display: none;
}

.kyc-validation-msg.visible {
  display: block;
}

/* ── Summary / Transition Screen ── */
.kyc-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--sp-xl) var(--sp-lg);
  margin-bottom: var(--sp-lg);
  animation: kycFadeIn 0.3s var(--ease);
}

.kyc-summary-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: var(--sp-xs);
}

.kyc-summary-intro {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

.kyc-summary-section-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
}

.kyc-summary-table {
  width: 100%;
  margin-bottom: var(--sp-lg);
}

.kyc-summary-table tr {
  border-bottom: 1px solid var(--border);
}

.kyc-summary-table tr:last-child {
  border-bottom: none;
}

.kyc-summary-table td {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 10px 0;
  vertical-align: top;
}

.kyc-summary-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  padding-right: var(--sp-md);
}

.kyc-summary-table td:last-child {
  color: var(--text-dark);
  font-weight: 400;
}

.kyc-summary-edit {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease);
}

.kyc-summary-edit:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ── Upload Phase ── */
.kyc-upload-section {
  animation: kycFadeIn 0.3s var(--ease);
}

.kyc-upload-section .kyc-categories {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

/* ── Questionnaire Responsive ── */
@media (max-width: 768px) {
  .kyc-stepper {
    padding: var(--sp-sm) var(--sp-md);
  }

  .kyc-stepper-step-label {
    display: none;
  }

  .kyc-stepper-steps::before {
    left: 10%;
    right: 10%;
  }

  .kyc-question-card {
    padding: var(--sp-lg) var(--sp-md);
  }

  .kyc-question-title {
    font-size: 1.15rem;
  }

  .kyc-option {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .kyc-inline-options {
    flex-direction: row;
  }

  .kyc-nav-buttons {
    flex-direction: column-reverse;
    gap: var(--sp-sm);
  }

  .kyc-btn-continue,
  .kyc-btn-back {
    width: 100%;
    text-align: center;
  }

  .kyc-btn-continue {
    margin-left: 0;
  }

  .kyc-summary-card {
    padding: var(--sp-lg) var(--sp-md);
  }

  .kyc-summary-table td:first-child {
    width: 35%;
  }
}
