/* Foundry Vault theme – dark like public site */
:root {
  --tfv-nav-bg: #0a0a0a;
  --tfv-nav-text: #f5ecd8;
  --tfv-primary: #c9a227;
  --tfv-primary-hover: #d4af37;
  --tfv-primary-dark: #8b6914;
  --tfv-bg: #000000;
  --tfv-text: #f5ecd8;
  --tfv-text-muted: #a09888;
  --tfv-border: #333333;
  --tfv-card-bg: #141414;
  --tfv-footer-bg: #0a0a0a;
  --tfv-footer-text: #a09888;
  --tfv-alert-info-bg: #1a2520;
  --tfv-alert-danger-bg: #251a1a;
  --tfv-input-bg: #1a1a1a;
  --tfv-input-border: #333;
  --tfv-input-text: #f5ecd8;
}

html {
  height: 100%;
}
body {
  background-color: var(--tfv-bg);
  color: #f1f5f9;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
body main {
  flex: 1;
}

/* Navbar — dark indigo theme */
.navbar.tfv-nav {
  background-color: #13131a !important;
  border-bottom: 1px solid #1e1e2e;
  box-shadow: 0 1px 0 #1e1e2e;
  min-height: 56px;
  padding: 0 24px;
}

.navbar.tfv-nav .container.tfv-nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.navbar.tfv-nav .tfv-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-right: 8px;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
}

.navbar.tfv-nav .tfv-nav-brand:hover {
  color: #fff !important;
  opacity: 0.95;
}

.navbar.tfv-nav .tfv-nav-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.navbar.tfv-nav .tfv-nav-brand-text {
  color: #fff;
}

.navbar.tfv-nav .tfv-nav-brand-kyc {
  color: #6366f1;
}

.navbar.tfv-nav .tfv-nav-collapse {
  flex-grow: 1;
  align-items: center;
}

.navbar.tfv-nav .navbar-collapse.tfv-nav-collapse {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 576px) {
  .navbar.tfv-nav .navbar-collapse.tfv-nav-collapse {
    width: auto;
    flex-grow: 1;
  }
}

.navbar.tfv-nav .tfv-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar.tfv-nav .tfv-nav-left .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-direction: row;
}

@media (max-width: 575.98px) {
  .navbar.tfv-nav .tfv-nav-left .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

.navbar.tfv-nav .tfv-nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9 !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar.tfv-nav .tfv-nav-link:hover,
.navbar.tfv-nav .tfv-nav-link:focus {
  background: rgba(99, 102, 241, 0.1);
  color: #ffffff !important;
}

.navbar.tfv-nav .nav-item.tfv-nav-active .tfv-nav-link {
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff !important;
  border-bottom: 2px solid #6366f1;
  margin-bottom: -2px;
}

.navbar.tfv-nav .tfv-nav-link-icon {
  font-size: 12px;
  color: #f1f5f9;
  margin-right: 6px;
}

.navbar.tfv-nav .tfv-nav-link:hover .tfv-nav-link-icon,
.navbar.tfv-nav .tfv-nav-link:focus .tfv-nav-link-icon,
.navbar.tfv-nav .nav-item.tfv-nav-active .tfv-nav-link-icon {
  color: #ffffff;
}

.navbar.tfv-nav .tfv-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar.tfv-nav .tfv-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar.tfv-nav .tfv-nav-email {
  font-size: 12px;
  color: #f1f5f9;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar.tfv-nav .tfv-nav-logout {
  background: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.navbar.tfv-nav .tfv-nav-logout:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.navbar.tfv-nav .navbar-toggler.tfv-nav-toggler {
  border-color: #2d2d3e;
  padding: 0.25rem 0.5rem;
}

.navbar.tfv-nav .navbar-toggler.tfv-nav-toggler:focus {
  box-shadow: 0 0 0 1px #6366f1;
}

.navbar.tfv-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 575.98px) {
  .navbar.tfv-nav .navbar-collapse.tfv-nav-collapse {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar.tfv-nav .tfv-nav-right {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #1e1e2e;
    width: 100%;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--tfv-primary);
  border-color: var(--tfv-primary);
  color: #000;
}
.btn-primary:hover {
  background-color: var(--tfv-primary-hover);
  border-color: var(--tfv-primary-hover);
  color: #000;
}
.btn-outline-primary {
  color: var(--tfv-primary);
  border-color: var(--tfv-primary);
}
.btn-outline-primary:hover {
  background-color: var(--tfv-primary);
  border-color: var(--tfv-primary);
  color: #000;
}

/* Links */
a {
  color: var(--tfv-primary);
}
a:hover {
  color: var(--tfv-primary-hover);
}

/* Cards */
.card {
  background-color: var(--tfv-card-bg);
  border-color: var(--tfv-border);
  border-radius: 6px;
  color: var(--tfv-text);
}
.card-header {
  background-color: #1a1a1a;
  border-bottom-color: var(--tfv-border);
  color: var(--tfv-text);
  font-weight: 600;
}

/* Alerts */
.alert-info {
  background-color: var(--tfv-alert-info-bg);
  border-color: var(--tfv-border);
  color: var(--tfv-text);
}
.alert-danger {
  background-color: var(--tfv-alert-danger-bg);
  border-color: #443333;
  color: #f5c6c6;
}

/* Forms */
.form-control,
.form-select {
  background-color: var(--tfv-input-bg);
  border-color: var(--tfv-input-border);
  color: var(--tfv-input-text);
}
.form-control::placeholder {
  color: var(--tfv-text-muted);
}
.form-control:focus,
.form-select:focus {
  background-color: var(--tfv-input-bg);
  border-color: var(--tfv-primary);
  color: var(--tfv-input-text);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
}
.form-label {
  color: var(--tfv-text);
}

/* Tables / Grid */
.table {
  color: var(--tfv-text);
  --bs-table-bg: var(--tfv-card-bg);
  --bs-table-striped-bg: #1a1a1a;
  --bs-table-hover-bg: rgba(201, 162, 39, 0.12);
  --bs-table-border-color: var(--tfv-border);
}
.table thead th {
  background-color: #1a1a2e !important;
  border-bottom: 2px solid #6366f1;
  color: #ffffff !important;
  font-weight: 600;
}
.table tbody tr,
.table tbody td {
  background-color: var(--tfv-card-bg) !important;
  color: #f1f5f9 !important;
  border-color: var(--tfv-border);
  border-bottom-color: #252538;
}
.table tbody tr:hover,
.table tbody tr:hover td {
  background-color: rgba(201, 162, 39, 0.12) !important;
}
.table-bordered {
  border-color: var(--tfv-border);
}
.table-bordered th,
.table-bordered td {
  border-color: var(--tfv-border);
}

/* Footer – stick to bottom of page */
footer.tfv-footer {
  background-color: var(--tfv-footer-bg);
  border-top: 2px solid var(--tfv-primary);
  color: var(--tfv-footer-text);
  margin-top: auto;
}
footer.tfv-footer a {
  color: var(--tfv-primary);
}

/* Pagination */
.page-link {
  background-color: var(--tfv-card-bg);
  color: var(--tfv-primary);
  border-color: var(--tfv-border);
}
.page-link:hover {
  background-color: #1a1a1a;
  border-color: var(--tfv-border);
  color: var(--tfv-primary-hover);
}
.page-item.active .page-link {
  background-color: var(--tfv-primary);
  border-color: var(--tfv-primary);
  color: #000;
}

/* Login page (override flex so layout isn’t affected) */
body.tfv-login-body {
  display: block;
}
.tfv-login-page,
body.tfv-login-body {
  background-color: var(--tfv-bg);
  color: var(--tfv-text);
}
.tfv-login-page .card,
.tfv-login-card {
  background-color: var(--tfv-card-bg);
  border-color: var(--tfv-border);
  color: var(--tfv-text);
}
.tfv-login-page .card-title,
.tfv-login-card .card-title {
  color: var(--tfv-text);
}
.tfv-login-page .form-label {
  color: var(--tfv-text);
}
.tfv-login-page .form-control {
  background-color: var(--tfv-input-bg);
  border-color: var(--tfv-input-border);
  color: var(--tfv-input-text);
}
.tfv-login-page .form-control:focus {
  background-color: var(--tfv-input-bg);
  border-color: var(--tfv-primary);
  color: var(--tfv-input-text);
}
.tfv-login-page .text-danger {
  color: #f5c6c6 !important;
}

/* Card title (global) */
.card .card-title {
  color: var(--tfv-text);
}

/* Text muted */
.text-muted {
  color: var(--tfv-text-muted) !important;
}

/* Modal – match dark theme for readability */
.tfv-modal {
  background-color: var(--tfv-card-bg);
  border: 1px solid var(--tfv-border);
  color: var(--tfv-text);
}
.tfv-modal-header {
  background-color: #1a1a1a;
  border-bottom-color: var(--tfv-border);
  color: var(--tfv-text);
}
.tfv-modal-header .modal-title {
  color: var(--tfv-text);
}
.tfv-modal-body {
  background-color: var(--tfv-card-bg);
  color: var(--tfv-text);
}
.tfv-modal-body p {
  color: var(--tfv-text);
}
.tfv-modal-footer {
  background-color: #1a1a1a;
  border-top-color: var(--tfv-border);
}

/* ========== Customers Index (dark admin dashboard) ========== */
main .tfv-customers-index {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #ffffff;
  padding: 1rem 0;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.tfv-customers-index .tfv-customers-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #fff;
}

/* Stats bar */
.tfv-customers-index .tfv-stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tfv-customers-index .tfv-stat-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-left: 4px solid #6366f1;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  min-width: 140px;
}

.tfv-customers-index .tfv-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.tfv-customers-index .tfv-stat-label {
  font-size: 0.8125rem;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Search bar */
.tfv-customers-index .tfv-customers-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tfv-customers-index .tfv-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.tfv-customers-index .tfv-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.6;
}

.tfv-customers-index .tfv-search-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.tfv-customers-index .tfv-search-icon::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.tfv-customers-index .tfv-search-input {
  width: 100%;
  padding-left: 40px;
  background-color: #13131a !important;
  border: 1px solid #1e1e2e !important;
  color: #ffffff !important;
  border-radius: 6px;
}

.tfv-customers-index .tfv-search-input::placeholder {
  color: #6b7280;
}

.tfv-customers-index .tfv-search-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.tfv-customers-index .tfv-btn-search {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
  padding: 0.375rem 1rem;
  border-radius: 6px;
}

.tfv-customers-index .tfv-btn-search:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.tfv-customers-index .tfv-btn-new-customer {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  color: #ffffff;
  padding: 0.375rem 1rem;
  border-radius: 6px;
}

.tfv-customers-index .tfv-btn-new-customer:hover {
  background-color: #1e1e2e;
  border-color: #1e1e2e;
  color: #fff;
}

/* Customer table */
.tfv-customers-index .tfv-customers-table-wrap {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tfv-customers-index .tfv-customers-table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-border-color: #1e1e2e;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
}

.tfv-customers-index .tfv-customers-table thead th {
  background-color: #1a1a2e !important;
  border-bottom: 2px solid #6366f1;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
}

.tfv-customers-index .tfv-customers-table thead th a,
.tfv-customers-index .tfv-customers-table thead th a:hover,
.tfv-customers-index .tfv-customers-table thead th a:focus,
.tfv-customers-index .tfv-customers-table thead th a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

.tfv-customers-index .tfv-customers-table tbody td {
  background-color: #13131a !important;
  color: #f1f5f9 !important;
  border-bottom: 1px solid #252538;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.tfv-customers-index .tfv-customers-table tbody tr:hover td {
  background-color: rgba(99, 102, 241, 0.08) !important;
}

.tfv-customers-index .tfv-customers-table tbody tr:last-child td {
  border-bottom: none;
}

.tfv-customers-index .tfv-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 0.75rem;
  vertical-align: middle;
}

.tfv-customers-index .tfv-name {
  vertical-align: middle;
}

.tfv-customers-index .tfv-kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.tfv-customers-index .tfv-kyc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tfv-customers-index .tfv-kyc-none .tfv-kyc-dot {
  background-color: #f1f5f9;
}

.tfv-customers-index .tfv-kyc-none {
  color: #f1f5f9;
}

.tfv-customers-index .tfv-kyc-New .tfv-kyc-dot {
  background-color: #f1f5f9;
}

.tfv-customers-index .tfv-kyc-New {
  color: #f1f5f9;
}

.tfv-customers-index .tfv-kyc-Submitted .tfv-kyc-dot {
  background-color: #3b82f6;
}

.tfv-customers-index .tfv-kyc-Submitted {
  color: #93c5fd;
}

.tfv-customers-index .tfv-kyc-InProgress .tfv-kyc-dot {
  background-color: #f59e0b;
}

.tfv-customers-index .tfv-kyc-InProgress {
  color: #fcd34d;
}

.tfv-customers-index .tfv-kyc-Approved .tfv-kyc-dot {
  background-color: #22c55e;
}

.tfv-customers-index .tfv-kyc-Approved {
  color: #86efac;
}

.tfv-customers-index .tfv-kyc-Rejected .tfv-kyc-dot {
  background-color: #ef4444;
}

.tfv-customers-index .tfv-kyc-Rejected {
  color: #fca5a5;
}

.tfv-customers-index .tfv-btn-view {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6366f1;
  background-color: transparent;
  border: 1px solid #6366f1;
  border-radius: 6px;
  text-decoration: none;
}

.tfv-customers-index .tfv-btn-view:hover {
  background-color: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: #6366f1;
}

/* Pagination */
.tfv-customers-index .tfv-customers-pagination {
  margin-top: 0.5rem;
}

.tfv-customers-index .tfv-customers-pagination .pagination {
  margin-bottom: 0;
  gap: 0.25rem;
}

.tfv-customers-index .tfv-customers-pagination .page-link {
  background-color: #13131a;
  border-color: #1e1e2e;
  color: #a5b4fc;
}

.tfv-customers-index .tfv-customers-pagination .page-link:hover {
  background-color: #1e1e2e;
  border-color: #1e1e2e;
  color: #c7d2fe;
}

.tfv-customers-index .tfv-customers-pagination .page-item.active .page-link {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.tfv-kyc-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tfv-kyc-loader-card {
  background: rgba(24, 24, 30, 0.95);
  border: 1px solid #2d2d3e;
  border-radius: 10px;
  min-width: 220px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tfv-kyc-loader-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(241, 245, 249, 0.35);
  border-top-color: #f1f5f9;
  animation: tfvSpin 0.9s linear infinite;
}

.tfv-kyc-loader-text {
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 600;
}

@keyframes tfvSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Customer Detail (dark admin dashboard) ========== */
main .tfv-customer-detail {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #ffffff;
  padding: 1rem 0;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.tfv-customer-detail .tfv-detail-header {
  margin-bottom: 1rem;
}

.tfv-customer-detail .tfv-breadcrumb {
  font-size: 0.875rem;
}

.tfv-customer-detail .tfv-breadcrumb a {
  color: #f1f5f9;
  text-decoration: none;
}

.tfv-customer-detail .tfv-breadcrumb a:hover {
  color: #6366f1;
}

.tfv-customer-detail .tfv-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #f1f5f9;
}

.tfv-customer-detail .tfv-breadcrumb-current {
  color: #ffffff;
}

.tfv-customer-detail .tfv-last-updated {
  font-size: 0.8125rem;
  color: #f1f5f9;
}

/* Invitation alert */
.tfv-customer-detail .tfv-invitation-alert {
  background-color: #13131a !important;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  color: #ffffff;
}

.tfv-customer-detail .tfv-invitation-alert .form-control {
  background-color: #0f0f13 !important;
  border-color: #1e1e2e;
  color: #ffffff;
}

.tfv-customer-detail .tfv-invitation-alert .btn-outline-secondary {
  border-color: #1e1e2e;
  color: #a5b4fc;
}

.tfv-customer-detail .tfv-invitation-alert .btn-outline-secondary:hover {
  background-color: #1e1e2e;
  color: #ffffff;
}

/* KYC banner */
.tfv-customer-detail .tfv-kyc-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.tfv-customer-detail .tfv-kyc-banner-icon {
  flex-shrink: 0;
}

.tfv-customer-detail .tfv-kyc-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tfv-customer-detail .tfv-kyc-banner--not-started {
  background-color: rgba(245, 158, 11, 0.12);
  border-left: 4px solid #f59e0b;
  color: #fcd34d;
}

.tfv-customer-detail .tfv-kyc-banner--verified {
  background-color: rgba(34, 197, 94, 0.12);
  border-left: 4px solid #22c55e;
  color: #86efac;
}

.tfv-customer-detail .tfv-kyc-banner--verified .tfv-kyc-banner-dot {
  background-color: #22c55e;
}

.tfv-customer-detail .tfv-kyc-banner--pending {
  background-color: rgba(99, 102, 241, 0.12);
  border-left: 4px solid #6366f1;
  color: #a5b4fc;
}

.tfv-customer-detail .tfv-kyc-banner--pending .tfv-kyc-banner-dot {
  background-color: #6366f1;
}

.tfv-customer-detail .tfv-kyc-banner--rejected {
  background-color: rgba(239, 68, 68, 0.12);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
}

.tfv-customer-detail .tfv-kyc-banner--rejected .tfv-kyc-banner-dot {
  background-color: #ef4444;
}

/* Detail cards */
.tfv-customer-detail .tfv-detail-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 24px;
}

.tfv-customer-detail .tfv-detail-card-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 1rem;
  padding-left: 0;
}

.tfv-customer-detail .tfv-detail-card-heading--accent {
  border-left: 3px solid #6366f1;
  padding-left: 12px;
}

.tfv-customer-detail .tfv-address-icon {
  margin-right: 0.35rem;
}

.tfv-customer-detail .tfv-field {
  display: block;
}

.tfv-customer-detail .tfv-field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.tfv-customer-detail .tfv-field-value {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.tfv-customer-detail .tfv-field-value--mono {
  font-family: ui-monospace, monospace;
}

/* Profile card */
.tfv-customer-detail .tfv-profile-card {
  text-align: center;
}

.tfv-customer-detail .tfv-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tfv-customer-detail .tfv-profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.tfv-customer-detail .tfv-profile-email {
  font-size: 0.875rem;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}

.tfv-customer-detail .tfv-kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.tfv-customer-detail .tfv-kyc-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tfv-customer-detail .tfv-kyc-badge--none .tfv-kyc-badge-dot {
  background-color: #6366f1;
}

.tfv-customer-detail .tfv-kyc-badge--none {
  color: #a5b4fc;
}

.tfv-customer-detail .tfv-kyc-badge--verified .tfv-kyc-badge-dot {
  background-color: #22c55e;
}

.tfv-customer-detail .tfv-kyc-badge--verified {
  color: #86efac;
}

.tfv-customer-detail .tfv-kyc-badge--pending .tfv-kyc-badge-dot {
  background-color: #f59e0b;
}

.tfv-customer-detail .tfv-kyc-badge--pending {
  color: #fcd34d;
}

.tfv-customer-detail .tfv-kyc-badge--rejected .tfv-kyc-badge-dot {
  background-color: #ef4444;
}

.tfv-customer-detail .tfv-kyc-badge--rejected {
  color: #fca5a5;
}

.tfv-customer-detail .tfv-profile-divider {
  border-color: #1e1e2e;
  margin: 1rem 0;
}

.tfv-customer-detail .tfv-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tfv-customer-detail .tfv-action-section {
  text-align: left;
  padding-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tfv-customer-detail .tfv-action-section + .tfv-action-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1e1e2e;
}

.tfv-customer-detail .tfv-action-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 0.1rem;
}

.tfv-customer-detail .tfv-action-section--administrative {
  background: rgba(127, 29, 29, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 12px;
  padding: 0.75rem;
}

.tfv-customer-detail .tfv-action-section--administrative .tfv-action-section-label {
  color: rgba(254, 202, 202, 0.9);
}

.tfv-customer-detail .tfv-profile-action-form {
  width: 100%;
}

.tfv-customer-detail .tfv-profile-actions .btn,
.tfv-customer-detail .tfv-profile-actions .tfv-profile-action-form .btn {
  width: 100%;
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

.tfv-customer-detail .tfv-btn-edit {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #000;
}

.tfv-customer-detail .tfv-btn-edit:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #000;
}

.tfv-customer-detail .tfv-btn-amber {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #000;
}

.tfv-customer-detail .tfv-btn-amber:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #000;
}

.tfv-customer-detail .tfv-btn-kyc-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: 1px solid rgba(168, 85, 247, 0.7);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
}

.tfv-customer-detail .tfv-btn-kyc-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  border-color: rgba(168, 85, 247, 0.85);
  color: #fff;
}

.tfv-customer-detail .tfv-btn-kyc-secondary {
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.55);
  color: #e0e7ff;
}

.tfv-customer-detail .tfv-btn-kyc-secondary:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.8);
  color: #fff;
}

.tfv-customer-detail .tfv-btn-kyc-complete {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.tfv-customer-detail .tfv-btn-kyc-complete:hover {
  background: rgba(34, 197, 94, 0.26);
  border-color: rgba(34, 197, 94, 0.75);
  color: #dcfce7;
}

.tfv-customer-detail .tfv-btn-ghost {
  background-color: transparent;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
}

.tfv-customer-detail .tfv-btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: #3b3b55;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-danger-outline {
  background-color: transparent;
  border: 1px solid rgba(239, 68, 68, 0.85);
  color: #fecaca;
}

.tfv-customer-detail .tfv-btn-danger-outline:hover {
  background-color: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.95);
  color: #fee2e2;
}

.tfv-customer-detail .tfv-btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-sm {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 12px;
}

.tfv-signing-select {
  font-family: 'DM Sans', sans-serif;
  background-color: #0d0d1a;
  color: #f1f5f9;
  padding: 1rem;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 12px;
}

/* On small screens, remove any remaining side gutters so the card fills width. */
@media (max-width: 575.98px) {
  .tfv-signing-select {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 0;
  }
}

.tfv-signing-select-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tfv-signing-select-title {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.tfv-signing-select-subtitle {
  font-size: 13px;
  color: rgba(241, 245, 249, 0.88);
  margin-bottom: 4px;
}

.tfv-signing-select-hint {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.7);
}

.tfv-signing-select--layout {
  padding-top: 18px;
}

.tfv-signing-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tfv-signing-page-header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tfv-signing-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
}

.tfv-signing-page-customer-name {
  color: #8b5cf6;
  font-weight: 800;
}

.tfv-signing-page-customer-email {
  color: rgba(241, 245, 249, 0.65);
  font-size: 13px;
  margin-top: 2px;
}

.tfv-signing-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

.tfv-signing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tfv-signing-side-card {
  background-color: #13132b;
  border: 1px solid #2d2d3e;
  border-radius: 12px;
  overflow: hidden;
}

.tfv-signing-side-card-header {
  padding: 12px 14px;
  border-bottom: 1px solid #2d2d3e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tfv-signing-side-card-header--purple {
  color: rgba(241, 245, 249, 0.95);
  border-left: 4px solid rgba(99, 102, 241, 0.95);
  padding-left: 10px;
}

.tfv-signing-side-card-header--green {
  color: rgba(241, 245, 249, 0.95);
  border-left: 4px solid rgba(34, 197, 94, 0.95);
  padding-left: 10px;
}

.tfv-signing-side-card-body {
  padding: 14px;
}

.tfv-signing-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tfv-signing-doc-card {
  background: rgba(15, 15, 19, 0.55);
  border: 1px solid #2d2d3e;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tfv-signing-doc-card:hover {
  border-color: rgba(139, 92, 246, 0.85);
  background: rgba(99, 102, 241, 0.07);
}

.tfv-signing-doc-card-name {
  font-weight: 800;
  color: rgba(241, 245, 249, 0.95);
  word-break: break-word;
}

.tfv-signing-doc-card-meta {
  margin-top: 6px;
  color: rgba(241, 245, 249, 0.65);
  font-size: 12px;
}

.tfv-signing-doc-card-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tfv-signing-doc-card-actions .tfv-signing-link {
  font-size: 13px;
}

.tfv-signing-preview-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tfv-signing-preview-card {
  background-color: #13132b;
  border: 1px solid #2d2d3e;
  border-radius: 12px;
  overflow: hidden;
}

.tfv-signing-preview-card-header {
  padding: 12px 14px;
  border-bottom: 1px solid #2d2d3e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tfv-signing-preview-card-title {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.95);
  padding-left: 10px;
  border-left: 4px solid rgba(245, 158, 11, 0.95);
}

.tfv-signing-preview-card-body {
  padding: 14px;
}

.tfv-signing-preview-paper {
  background: #0d0d1a;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.tfv-signing-preview-paper iframe {
  width: 100%;
  height: 100%;
  min-height: 530px;
  border: 0;
  background: #ffffff;
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .tfv-signing-layout-grid {
    grid-template-columns: 1fr;
  }
  .tfv-signing-sidebar {
    flex-direction: column;
  }
}

/* Review + send outcome theming (Customers/ReviewSend) */
.tfv-review-send {
  padding-top: 6px;
}

.tfv-review-send-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.tfv-review-send-preview,
.tfv-review-send-form-card {
  width: 100%;
}

.tfv-review-send-paper-wrap {
  background: #0f0f13;
  border: 1px solid #2d2d3e;
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
}

.tfv-review-send-pdf-pages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.tfv-review-send-page-card {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(45, 45, 62, 0.9);
  overflow: hidden;
}

.tfv-review-send-page-card canvas {
  display: block;
  background: #ffffff;
}

.tfv-review-send-field-overlay {
  border: 1px solid rgba(99, 102, 241, 0.9);
  background: rgba(99, 102, 241, 0.18);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 800;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tfv-review-send-form-card .tfv-signing-card-body {
  padding-top: 16px;
}

.tfv-review-send-submit {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tfv-review-send-submit-busy {
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tfv-signing-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  overflow: hidden;
}

.tfv-signing-card-header {
  padding: 12px 14px;
  border-bottom: 1px solid #1e1e2e;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(15, 15, 19, 0));
}

.tfv-signing-card-header--compact {
  padding: 10px 14px;
}

.tfv-signing-card-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(241, 245, 249, 0.92);
}

.tfv-signing-card-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.7);
}

.tfv-signing-card-body {
  padding: 14px;
}

.tfv-signing-card-body--flush {
  padding: 0;
}

.tfv-signing-upload {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tfv-signing-upload-action {
  display: flex;
  justify-content: stretch;
  width: 100%;
}

.tfv-signing-upload-action .btn {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 1px solid rgba(139, 92, 246, 0.75);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.22);
}

.tfv-signing-upload-action .btn:hover,
.tfv-signing-upload-action .btn:focus {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: rgba(139, 92, 246, 0.95);
  color: #fff;
}

.tfv-signing-upload-action .btn:disabled,
.tfv-signing-upload-action .btn[disabled] {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.4);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

@media (max-width: 575.98px) {
  .tfv-signing-upload-action .btn {
    width: 100%;
  }
}

.tfv-signing-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 6px;
}

.tfv-signing-input {
  background: #1a1a25;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
}

.tfv-signing-input:focus {
  border-color: rgba(99, 102, 241, 0.85);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
  background: #1a1a25;
  color: #fff;
}

.tfv-review-send .tfv-signing-input:disabled,
.tfv-review-send .tfv-signing-input[disabled],
.tfv-review-send .tfv-signing-input[readonly] {
  background: #1a1a25 !important;
  border-color: #2d2d3e !important;
  color: rgba(241, 245, 249, 0.96) !important;
  opacity: 1;
  -webkit-text-fill-color: rgba(241, 245, 249, 0.96);
}

.tfv-review-send .tfv-signing-input:disabled::placeholder,
.tfv-review-send .tfv-signing-input[disabled]::placeholder,
.tfv-review-send .tfv-signing-input[readonly]::placeholder {
  color: rgba(241, 245, 249, 0.66) !important;
  opacity: 1;
}

.tfv-signing-select .tfv-upload-input-hidden {
  display: none !important;
}

.tfv-signing-select .tfv-upload-zone {
  background: #0f0f13;
  border: 2px dashed #2d2d3e;
  border-radius: 10px;
  padding: 32px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tfv-signing-select .tfv-upload-zone:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.tfv-signing-select .tfv-upload-zone.tfv-upload-zone-has-file {
  border-color: #6366f1;
}

.tfv-signing-select .tfv-upload-zone-dragover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.tfv-signing-select .tfv-upload-zone-icon {
  display: block;
  font-size: 28px;
  color: #6366f1;
  margin-bottom: 10px;
}

.tfv-signing-select .tfv-upload-zone-text {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.tfv-signing-select .tfv-upload-zone-text-file {
  color: #22c55e;
}

.tfv-signing-select .tfv-upload-zone-sub {
  display: block;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.6);
  margin-top: 4px;
}

.tfv-signing-select .tfv-upload-zone-hint {
  display: block;
  font-size: 11px;
  color: rgba(241, 245, 249, 0.45);
  margin-top: 8px;
}

.tfv-signing-upload-preview {
  margin-top: 12px;
  padding: 12px;
  background: #0f0f13;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
}

.tfv-signing-upload-preview-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(241, 245, 249, 0.82);
  margin-bottom: 10px;
}

.tfv-signing-upload-preview-img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #2d2d3e;
  background: #111827;
}

.tfv-signing-upload-preview-iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 1px solid #2d2d3e;
  border-radius: 8px;
  background: #111827;
}

.tfv-signing-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #1e1e2e;
  background: transparent;
}

.tfv-signing-doc-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tfv-signing-doc-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.tfv-signing-doc-meta {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.7);
}

.tfv-signing-doc-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tfv-signing-link {
  font-size: 12px;
  color: #a5b4fc;
  text-decoration: none;
}

.tfv-signing-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.tfv-signing-doc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

.tfv-signing-doc-actions .btn {
  min-width: 140px;
  justify-content: center;
}

.tfv-signing-select .tfv-btn-kyc-secondary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 1px solid rgba(139, 92, 246, 0.78);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
}

.tfv-signing-select .tfv-btn-kyc-secondary:hover,
.tfv-signing-select .tfv-btn-kyc-secondary:focus {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: rgba(139, 92, 246, 0.95);
  color: #ffffff;
}

.tfv-signing-select .tfv-btn-ghost {
  background-color: transparent;
  border: 1px solid #3b3b55;
  color: #f1f5f9;
}

.tfv-signing-select .tfv-btn-ghost:hover,
.tfv-signing-select .tfv-btn-ghost:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #6366f1;
  color: #ffffff;
}

.tfv-signing-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tfv-signing-open-new {
  font-size: 12px;
  color: #60a5fa;
  text-decoration: none;
}

.tfv-signing-open-new:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.tfv-signing-preview-body {
  padding: 0;
  min-height: 540px;
  background: #0f0f13;
}

.tfv-signing-preview-body iframe {
  width: 100%;
  height: 540px;
  border: 0;
  background: #0f0f13;
}

.tfv-signing-alert {
  border: 1px solid #1e1e2e;
  background: rgba(255, 255, 255, 0.03);
  color: #f1f5f9;
}

.tfv-place-fields {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  padding: 1rem;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.tfv-place-fields-header {
  margin-bottom: 1rem;
}

.tfv-place-fields-title {
  font-size: 24px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 0.35rem 0;
}

.tfv-place-fields-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(241, 245, 249, 0.75);
}

.tfv-place-fields-alert {
  border: 1px solid #3f1d28;
}

.tfv-place-fields-sidebar {
  background: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 12px;
  height: 100%;
}

.tfv-place-fields-doc-name {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.7);
  margin-bottom: 10px;
  word-break: break-word;
}

.tfv-place-fields-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(241, 245, 249, 0.85);
}

.tfv-place-fields-input {
  background: #1a1a25;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
}

.tfv-place-fields-input:focus {
  background: #1a1a25;
  color: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.tfv-place-fields-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.tfv-place-fields-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  max-height: 220px;
  overflow: auto;
}

.tfv-place-fields-thumbs [data-page] {
  background: #161621;
  border: 1px solid #2d2d3e !important;
  color: #f1f5f9;
  border-radius: 8px;
}

.tfv-place-fields-thumbs [data-page].border-primary {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.tfv-place-fields-tool {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.75);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 600;
}

.tfv-place-fields-tool:hover,
.tfv-place-fields-tool:focus {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.95);
}

.tfv-place-fields-divider {
  border-color: #1e1e2e;
}

.tfv-place-fields-check .form-check-input {
  background-color: #1a1a25;
  border-color: #3b3b55;
}

.tfv-place-fields-check .form-check-label {
  color: #f1f5f9;
}

.tfv-place-fields-delete {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.75);
  color: #fecaca;
}

.tfv-place-fields-delete:hover,
.tfv-place-fields-delete:focus {
  background: rgba(239, 68, 68, 0.24);
  color: #fee2e2;
}

.tfv-place-fields-pages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  height: 68vh;
  min-height: 420px;
  max-height: 78vh;
  overflow-y: auto;
  overflow-x: auto;
  padding-right: 6px;
}

.tfv-place-fields-pages > div {
  display: inline-block;
  width: auto;
  max-width: 100%;
  background: #13131a;
  border: 1px solid #1e1e2e !important;
  border-radius: 12px;
  padding: 12px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.tfv-place-fields-pages > div.border-primary {
  border-color: #6366f1 !important;
}

.tfv-place-fields-pages canvas {
  display: block;
  border-radius: 6px;
}

.tfv-place-fields-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tfv-place-fields-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 1px solid rgba(139, 92, 246, 0.78);
  color: #fff;
  min-width: 180px;
}

.tfv-place-fields-primary:hover,
.tfv-place-fields-primary:focus {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}

.tfv-place-fields-secondary {
  background: transparent;
  border: 1px solid #3b3b55;
  color: #f1f5f9;
  min-width: 100px;
}

.tfv-place-fields-secondary:hover,
.tfv-place-fields-secondary:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: #6366f1;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-delete-kyc {
  background-color: transparent;
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.tfv-customer-detail .tfv-btn-delete-kyc:hover {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.tfv-customer-detail .tfv-btn-invite {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-invite:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-documents {
  background-color: transparent;
  border: 1px solid #1e1e2e;
  color: #ffffff;
}

.tfv-customer-detail .tfv-btn-documents:hover {
  background-color: #1e1e2e;
  border-color: #1e1e2e;
  color: #fff;
}

.tfv-customer-detail .tfv-btn-back {
  background-color: transparent;
  border: 1px solid transparent;
  color: #f1f5f9;
}

.tfv-customer-detail .tfv-btn-back:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

/* ========== Dashboard (dark admin) ========== */
main .tfv-dashboard {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  padding: 1rem 0;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.tfv-dashboard .tfv-dashboard-header {
  margin-bottom: 0.5rem;
}

.tfv-dashboard .tfv-dashboard-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.tfv-dashboard .tfv-dashboard-title {
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.tfv-dashboard .tfv-dashboard-clock {
  font-size: 0.875rem;
  color: #f1f5f9;
}

.tfv-dashboard .tfv-dashboard-divider {
  border-color: #1e1e2e;
  margin: 1rem 0;
}

/* Stats row */
.tfv-dashboard .tfv-dashboard-stats {
  margin-bottom: 1.5rem;
}

.tfv-dashboard .tfv-stat-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 24px;
  border-left-width: 3px;
  border-left-style: solid;
}

.tfv-dashboard .tfv-stat-card--indigo {
  border-left-color: #6366f1;
}

.tfv-dashboard .tfv-stat-card--green {
  border-left-color: #22c55e;
}

.tfv-dashboard .tfv-stat-card--amber {
  border-left-color: #eab308;
}

.tfv-dashboard .tfv-stat-card--red {
  border-left-color: #ef4444;
}

.tfv-dashboard .tfv-stat-card .tfv-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tfv-dashboard .tfv-stat-card .tfv-stat-label {
  font-size: 0.8125rem;
  color: #f1f5f9;
}

/* Navigation cards */
.tfv-dashboard .tfv-nav-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.tfv-dashboard .tfv-nav-card--customers {
  border-top: 3px solid #6366f1;
}

.tfv-dashboard .tfv-nav-card--audit {
  border-top: 3px solid #eab308;
}

.tfv-dashboard .tfv-nav-card-watermark {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 56px;
  color: #ffffff06;
  line-height: 1;
  pointer-events: none;
}

.tfv-dashboard .tfv-nav-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.tfv-dashboard .tfv-nav-card-desc {
  font-size: 14px;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tfv-dashboard .tfv-btn-customers {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.tfv-dashboard .tfv-btn-customers:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.tfv-dashboard .tfv-btn-audit {
  background-color: #eab308;
  border-color: #eab308;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.tfv-dashboard .tfv-btn-audit:hover {
  background-color: #ca8a04;
  border-color: #ca8a04;
  color: #000;
}

/* Quick links */
.tfv-dashboard .tfv-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tfv-dashboard .tfv-quick-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: #f1f5f9;
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  border-radius: 9999px;
  text-decoration: none;
}

.tfv-dashboard .tfv-quick-link:hover {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  color: #a5b4fc;
}

/* Recent activity */
.tfv-dashboard .tfv-recent-activity {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 24px;
}

.tfv-dashboard .tfv-recent-activity-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tfv-dashboard .tfv-activity-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.tfv-dashboard .tfv-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1e1e2e;
  font-size: 14px;
}

.tfv-dashboard .tfv-activity-item:last-child {
  border-bottom: none;
}

.tfv-dashboard .tfv-activity-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.tfv-dashboard .tfv-activity-item--indigo::before {
  background-color: #6366f1;
}

.tfv-dashboard .tfv-activity-item--green::before {
  background-color: #22c55e;
}

.tfv-dashboard .tfv-activity-item--amber::before {
  background-color: #eab308;
}

.tfv-dashboard .tfv-activity-item--muted::before {
  background-color: #f1f5f9;
}

.tfv-dashboard .tfv-activity-text {
  flex: 1;
  color: #ffffff;
}

.tfv-dashboard .tfv-activity-time {
  font-size: 0.8125rem;
  color: #f1f5f9;
}

.tfv-dashboard .tfv-recent-activity-note {
  font-size: 0.8125rem;
  color: #f1f5f9;
  margin: 0;
}

/* ========== Login (split dark admin) ========== */
body.tfv-auth-page {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  min-height: 100vh;
  margin: 0;
}

.tfv-auth-page .tfv-auth-row {
  min-height: 100vh;
}

.tfv-auth-page .tfv-auth-brand {
  min-height: 100vh;
  background-color: #0d0d12;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    #ffffff04 40px,
    #ffffff04 41px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tfv-auth-page .tfv-auth-brand-inner {
  text-align: center;
  max-width: 360px;
}

.tfv-auth-page .tfv-auth-logo {
  font-size: 48px;
  color: #6366f1;
  text-shadow: 0 0 24px rgba(99, 102, 241, 0.5);
  margin-bottom: 1rem;
}

.tfv-auth-page .tfv-auth-brand-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.tfv-auth-page .tfv-auth-brand-kyc {
  font-size: 32px;
  font-weight: 700;
  color: #6366f1;
  margin: 0 0 1rem 0;
}

.tfv-auth-page .tfv-auth-tagline {
  font-size: 14px;
  color: #f1f5f9;
  margin-bottom: 2.5rem;
}

.tfv-auth-page .tfv-auth-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tfv-auth-page .tfv-auth-badge {
  font-size: 0.75rem;
  color: #f1f5f9;
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.tfv-auth-page .tfv-auth-form-col {
  min-height: 100vh;
  background-color: #0f0f13;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tfv-auth-page .tfv-auth-form-wrapper {
  width: 100%;
  max-width: 380px;
}

.tfv-auth-page .tfv-auth-form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.tfv-auth-page .tfv-auth-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.tfv-auth-page .tfv-auth-form-subtitle {
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tfv-auth-page .tfv-auth-form-divider {
  border-color: #1e1e2e;
  margin-bottom: 1.5rem;
}

.tfv-auth-page .tfv-auth-field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.tfv-auth-page .tfv-auth-input {
  background-color: #13131a !important;
  border: 1px solid #2d2d3e !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff !important;
}

.tfv-auth-page .tfv-auth-input::placeholder {
  color: #6b7280;
}

.tfv-auth-page .tfv-auth-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.tfv-auth-page .tfv-auth-input:-webkit-autofill,
.tfv-auth-page .tfv-auth-input:-webkit-autofill:hover,
.tfv-auth-page .tfv-auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #13131a inset;
}

.tfv-auth-page .tfv-auth-validation {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-bottom: 0.75rem;
}

.tfv-auth-page .tfv-auth-validation ul {
  margin: 0;
  padding-left: 1.25rem;
}

.tfv-auth-page .tfv-auth-submit {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  margin-top: 12px;
}

.tfv-auth-page .tfv-auth-submit:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.tfv-auth-page .tfv-auth-footer {
  font-size: 11px;
  color: #f1f5f9;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ========== Invite to Complete KYC (dark admin) ========== */
main .tfv-invite-page {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  padding: 48px 0;
}

.tfv-invite-page .tfv-invite-container {
  max-width: 600px;
}

.tfv-invite-page .tfv-invite-breadcrumb {
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

.tfv-invite-page .tfv-invite-breadcrumb a {
  color: #f1f5f9;
  text-decoration: none;
}

.tfv-invite-page .tfv-invite-breadcrumb a:hover {
  color: #6366f1;
}

.tfv-invite-page .tfv-invite-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #f1f5f9;
}

.tfv-invite-page .tfv-invite-breadcrumb-current {
  color: #ffffff;
}

.tfv-invite-page .tfv-invite-banner,
.tfv-invite-page .tfv-invite-form-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 20px;
}

.tfv-invite-page .tfv-invite-form-card {
  padding: 24px;
}

.tfv-invite-page .tfv-invite-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tfv-invite-page .tfv-invite-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #6366f1;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tfv-invite-page .tfv-invite-banner-text {
  flex: 1;
  min-width: 0;
}

.tfv-invite-page .tfv-invite-banner-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.tfv-invite-page .tfv-invite-banner-email {
  font-size: 13px;
  color: #f1f5f9;
}

.tfv-invite-page .tfv-invite-kyc-badge {
  font-size: 0.75rem;
  color: #eab308;
  background-color: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.tfv-invite-page .tfv-invite-kyc-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #eab308;
}

.tfv-invite-page .tfv-invite-form-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}

.tfv-invite-page .tfv-invite-form-desc {
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tfv-invite-page .tfv-invite-form-divider {
  border-color: #1e1e2e;
  margin-bottom: 1.25rem;
}

.tfv-invite-page .tfv-invite-field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.tfv-invite-page .tfv-invite-select {
  background-color: #13131a !important;
  border: 1px solid #2d2d3e !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff !important;
  max-width: 100%;
}

.tfv-invite-page .tfv-invite-select:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.tfv-invite-page .tfv-invite-select option {
  background-color: #13131a;
  color: #ffffff;
}

.tfv-invite-page .tfv-invite-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 12px;
  color: #ffffff;
}

.tfv-invite-page .tfv-invite-info-icon {
  color: #6366f1;
  flex-shrink: 0;
}

.tfv-invite-page .tfv-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tfv-invite-page .tfv-invite-btn-submit {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
}

.tfv-invite-page .tfv-invite-btn-submit:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.tfv-invite-page .tfv-invite-btn-cancel {
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
}

.tfv-invite-page .tfv-invite-btn-cancel:hover {
  background-color: #2d2d3e;
  border-color: #2d2d3e;
  color: #ffffff;
}

.tfv-invite-page .tfv-invite-security-strip {
  padding: 0.75rem 0;
  font-size: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tfv-invite-page .tfv-invite-security-icon {
  flex-shrink: 0;
}

/* ========== Edit Customer (dark admin form) ========== */
main .tfv-edit-customer {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px 60px 24px;
}

.tfv-edit-customer .tfv-edit-breadcrumb {
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.tfv-edit-customer .tfv-edit-breadcrumb a {
  color: #f1f5f9;
  text-decoration: none;
}

.tfv-edit-customer .tfv-edit-breadcrumb a:hover {
  color: #6366f1;
}

.tfv-edit-customer .tfv-edit-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #f1f5f9;
}

.tfv-edit-customer .tfv-edit-breadcrumb-current {
  color: #ffffff;
}

.tfv-edit-customer .tfv-edit-header {
  margin-bottom: 20px;
  align-items: center;
}

.tfv-edit-customer .tfv-edit-title {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.tfv-edit-customer .tfv-edit-email-pill {
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: #f1f5f9;
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.tfv-edit-customer .tfv-edit-divider {
  border-color: #1e1e2e;
  margin: 16px 0 24px 0;
}

.tfv-edit-customer .tfv-edit-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.tfv-edit-customer .tfv-edit-card:last-of-type {
  margin-bottom: 0;
}

.tfv-edit-customer .tfv-edit-card-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.tfv-edit-customer .tfv-edit-card .row.g-3 > [class*="col"] {
  margin-bottom: 16px;
}

.tfv-edit-customer .tfv-edit-card .row.g-3 > [class*="col"]:last-child {
  margin-bottom: 0;
}

.tfv-edit-customer .tfv-edit-card-icon {
  margin-right: 0.35rem;
}

.tfv-edit-customer .tfv-edit-card-desc {
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.tfv-edit-customer .tfv-edit-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.tfv-edit-customer .tfv-edit-optional {
  font-weight: 400;
  text-transform: none;
}

.tfv-edit-customer .tfv-edit-hint {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
  margin-top: 0.25rem;
}

.tfv-edit-customer .tfv-edit-input,
.tfv-edit-customer .tfv-edit-input:disabled {
  background-color: #13131a !important;
  border: 1px solid #2d2d3e !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff !important;
}

.tfv-edit-customer .tfv-edit-input::placeholder {
  color: #6b7280;
}

.tfv-edit-customer .tfv-edit-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.tfv-edit-customer .tfv-edit-input:disabled {
  opacity: 0.8;
}

.tfv-edit-customer .tfv-edit-input:-webkit-autofill,
.tfv-edit-customer .tfv-edit-input:-webkit-autofill:hover,
.tfv-edit-customer .tfv-edit-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #13131a inset;
}

.tfv-edit-customer .tfv-edit-validation,
.tfv-edit-customer .field-validation-error {
  display: block;
  font-size: 12px;
  color: #ef4444;
  margin-top: 0.25rem;
}

.tfv-edit-customer .tfv-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 0.75rem;
}

.tfv-edit-customer .tfv-edit-btn-save {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 10px;
}

.tfv-edit-customer .tfv-edit-btn-save:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.tfv-edit-customer .tfv-edit-btn-cancel {
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  padding: 10px 28px;
  border-radius: 10px;
  text-decoration: none;
}

.tfv-edit-customer .tfv-edit-btn-cancel:hover {
  background-color: #2d2d3e;
  border-color: #2d2d3e;
  color: #ffffff;
}

.tfv-edit-customer .tfv-edit-note {
  font-size: 11px;
  color: #f1f5f9;
  margin: 10px 0 0 0;
  padding-bottom: 24px;
}

/* ========== New Customer — Step 1 (multi-step form) ========== */
.tfv-create-step1 {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px 60px 24px;
}

.tfv-create-step1 .tfv-step-progress {
  margin-top: 24px;
  margin-bottom: 36px;
  padding-left: 16px;
  padding-right: 16px;
}

.tfv-create-step1 .tfv-step-progress-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.tfv-create-step1 .tfv-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tfv-create-step1 .tfv-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.tfv-create-step1 .tfv-step-current .tfv-step-circle {
  background-color: #6366f1;
  color: #fff;
}

.tfv-create-step1 .tfv-step-item:not(.tfv-step-current) .tfv-step-circle {
  background-color: #1e1e2e;
  color: #f1f5f9;
}

.tfv-create-step1 .tfv-step-label {
  font-size: 11px;
  color: #f1f5f9;
  margin-top: 6px;
  padding: 0 4px;
}

.tfv-create-step1 .tfv-step-current .tfv-step-label {
  color: #ffffff;
}

.tfv-create-step1 .tfv-step-connector {
  flex: 1;
  height: 1px;
  background-color: #1e1e2e;
  margin-top: 16px;
  min-width: 12px;
  max-width: 60px;
}

.tfv-create-step1 .tfv-create-title {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 8px 0 0.25rem 0;
}

.tfv-create-step1 .tfv-create-subtitle {
  font-size: 13px;
  color: #f1f5f9;
  margin: 0 0 24px 0;
}

.tfv-create-step1 .tfv-create-divider {
  border: none;
  border-top: 1px solid #1e1e2e;
  margin: 0 0 24px 0;
}

.tfv-create-step1 .tfv-create-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.tfv-create-step1 .tfv-create-card:last-of-type {
  margin-bottom: 0;
}

.tfv-create-step1 .tfv-create-card-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.tfv-create-step1 .tfv-create-card-icon {
  margin-right: 0.35rem;
}

.tfv-create-step1 .tfv-create-card-desc {
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tfv-create-step1 .tfv-create-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.tfv-create-step1 .tfv-create-hint {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
  margin-top: 0.25rem;
}

.tfv-create-step1 .tfv-create-input,
.tfv-create-step1 .tfv-create-input:disabled {
  background-color: #13131a !important;
  border: 1px solid #2d2d3e !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff !important;
}

.tfv-create-step1 .tfv-create-input::placeholder {
  color: #6b7280;
}

.tfv-create-step1 .tfv-create-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.tfv-create-step1 .tfv-create-input:-webkit-autofill,
.tfv-create-step1 .tfv-create-input:-webkit-autofill:hover,
.tfv-create-step1 .tfv-create-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #13131a inset;
}

.tfv-create-step1 .tfv-create-info-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 12px;
  color: #ffffff;
  background: transparent;
  border: 1px solid #6366f1;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-top: 1rem;
}

.tfv-create-step1 .tfv-create-info-icon {
  flex-shrink: 0;
}

.tfv-create-step1 .tfv-create-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 28px;
  margin-bottom: 16px;
}

.tfv-create-step1 .tfv-create-btn-cancel {
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  padding: 10px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
}

.tfv-create-step1 .tfv-create-btn-cancel:hover {
  background-color: #2d2d3e;
  border-color: #2d2d3e;
  color: #ffffff;
}

.tfv-create-step1 .tfv-create-btn-next {
  background-color: #6366f1;
  border: 1px solid #6366f1;
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 10px;
}

.tfv-create-step1 .tfv-create-btn-next:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.tfv-create-step1 .tfv-create-note {
  font-size: 11px;
  color: #f1f5f9;
  margin: 12px 0 0 0;
  padding-bottom: 24px;
  text-align: center;
}

.tfv-create-step1 .tfv-upload-zone {
  border: 2px dashed #3a3e70;
  border-radius: 14px;
  padding: 28px 16px;
  background: rgba(33, 37, 78, 0.3);
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tfv-create-step1 .tfv-upload-zone:hover {
  border-color: #5d63ff;
  background: rgba(76, 88, 255, 0.18);
}

.tfv-create-step1 .tfv-upload-zone.tfv-upload-zone-has-file {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.18);
}

.tfv-create-step1 .tfv-upload-zone-dragover {
  border-color: #6f75ff;
  background: rgba(92, 103, 255, 0.24);
}

.tfv-create-step1 .tfv-upload-zone-icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 8px;
  color: #aab0ff;
}

.tfv-create-step1 .tfv-upload-zone-text {
  display: block;
  font-weight: 700;
  color: #f4f6ff;
  margin-bottom: 4px;
}

.tfv-create-step1 .tfv-upload-zone-text-file {
  color: #2ecc71;
}

.tfv-create-step1 .tfv-upload-zone-sub {
  display: block;
  color: #9ea5d1;
  font-size: 0.9rem;
}

.tfv-create-step1 .tfv-upload-input-hidden {
  display: none !important;
}

.tfv-kyc-preview {
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
  padding: 16px;
  background: rgba(90, 95, 255, 0.08);
}

.tfv-kyc-preview-img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.tfv-kyc-preview-iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 10px;
}

/* ========== KYC status badges (unified across Index, Detail, Invite) ========== */
.tfv-kyc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.tfv-kyc-status-icon {
  font-size: 11px;
  line-height: 1;
}

.tfv-kyc-status--not-started {
  background: rgba(107, 114, 128, 0.12);
  border: 1px solid rgba(107, 114, 128, 0.25);
  color: #f1f5f9;
}

.tfv-kyc-status--pending {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #eab308;
}

.tfv-kyc-status--verified {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.tfv-kyc-status--verified .tfv-kyc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

.tfv-kyc-status--rejected {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.tfv-kyc-status-enum-pill {
  display: inline-flex;
  align-items: center;
  background: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  margin-left: 6px;
}

/* ========== Documents page (dark admin) ========== */
.tfv-docs-page {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  padding: 40px 0 60px 0;
}

.tfv-docs-page .tfv-docs-breadcrumb {
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tfv-docs-page .tfv-docs-breadcrumb a {
  color: #f1f5f9;
  text-decoration: none;
}

.tfv-docs-page .tfv-docs-breadcrumb a:hover {
  color: #6366f1;
}

.tfv-docs-page .tfv-docs-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #f1f5f9;
}

.tfv-docs-page .tfv-docs-breadcrumb-current {
  color: #ffffff;
}

.tfv-docs-page .tfv-docs-header {
  margin-bottom: 0.5rem;
}

.tfv-docs-page .tfv-docs-title {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.tfv-docs-page .tfv-docs-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tfv-docs-page .tfv-docs-btn-upload {
  display: inline-block;
  background-color: #6366f1;
  border: 1px solid #6366f1;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.tfv-docs-page .tfv-docs-btn-upload:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.tfv-docs-page .tfv-docs-btn-back {
  display: inline-block;
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.tfv-docs-page .tfv-docs-btn-back:hover {
  background-color: #2d2d3e;
  border-color: #2d2d3e;
  color: #ffffff;
}

.tfv-docs-page .tfv-docs-divider {
  border: none;
  border-top: 1px solid #1e1e2e;
  margin: 1rem 0 1.5rem 0;
}

.tfv-docs-page .tfv-docs-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 1.5rem;
}

.tfv-docs-page .tfv-docs-banner-label {
  font-size: 11px;
  color: #f1f5f9;
  margin-right: 0.25rem;
}

.tfv-docs-page .tfv-docs-banner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tfv-docs-page .tfv-docs-banner-email {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.tfv-docs-page .tfv-docs-banner-count {
  margin-left: auto;
  font-size: 12px;
  color: #f1f5f9;
  background: #1e1e2e;
  border: 1px solid #2d2d3e;
  padding: 4px 10px;
  border-radius: 20px;
}

.tfv-docs-page .tfv-docs-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 24px;
}

.tfv-docs-page .tfv-docs-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tfv-docs-page .tfv-docs-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(241, 245, 249, 0.9);
}

.tfv-docs-page .tfv-docs-link {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
}

.tfv-docs-page .tfv-docs-link:hover {
  color: #a5b4fc;
}

.tfv-docs-page .tfv-docs-link-danger {
  color: #ef4444;
}

.tfv-docs-page .tfv-docs-link-danger:hover {
  color: #fca5a5;
}

.tfv-docs-page .tfv-docs-form-inline {
  display: inline;
}

.tfv-docs-page .tfv-docs-table.kyc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tfv-docs-page .tfv-docs-table.kyc-table thead {
  background-color: #1a1a2e;
}

.tfv-docs-page .tfv-docs-table.kyc-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #6366f1;
}

.tfv-docs-page .tfv-docs-table.kyc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #252538;
  color: #f1f5f9;
}

.tfv-docs-page .tfv-docs-table.kyc-table tbody tr:hover {
  background-color: #16161f;
}

.tfv-docs-page .tfv-docs-file-icon {
  color: #f1f5f9;
  margin-right: 6px;
}

.tfv-docs-page .tfv-docs-file-name {
  color: #ffffff;
}

.tfv-docs-page .tfv-docs-type-pill {
  display: inline-block;
  background: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

.tfv-docs-page .tfv-docs-type-pill--report {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
  font-weight: 600;
}

.tfv-docs-page .tfv-kyc-profile-meta-row {
  align-items: stretch;
}

.tfv-docs-page .tfv-kyc-profile-meta {
  height: 100%;
  padding: 10px 12px;
  background: rgba(15, 15, 19, 0.55);
  border: 1px solid #2d2d3e;
  border-radius: 8px;
}

.tfv-docs-page .tfv-kyc-profile-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.55);
  margin-bottom: 4px;
}

.tfv-docs-page .tfv-kyc-profile-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  word-break: break-word;
}

.tfv-docs-page .tfv-docs-size {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #f1f5f9;
}

.tfv-docs-page .tfv-docs-uploaded {
  color: #f1f5f9;
  font-size: 13px;
}

.tfv-docs-page .tfv-docs-row-btn {
  font-size: 12px;
  color: #6366f1;
  text-decoration: none;
  margin-right: 0.75rem;
}

.tfv-docs-page .tfv-docs-row-btn:hover {
  color: #a5b4fc;
}

.tfv-docs-page .tfv-docs-action-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tfv-docs-page .tfv-docs-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.tfv-docs-page .tfv-docs-action-pill--primary {
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.75);
  background-color: rgba(99, 102, 241, 0.08);
}

.tfv-docs-page .tfv-docs-action-pill--primary:hover,
.tfv-docs-page .tfv-docs-action-pill--primary:focus {
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.95);
  background-color: rgba(99, 102, 241, 0.16);
}

.tfv-docs-page .tfv-docs-action-pill--danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.85);
  background-color: rgba(239, 68, 68, 0.08);
}

.tfv-docs-page .tfv-docs-action-pill--danger:hover,
.tfv-docs-page .tfv-docs-action-pill--danger:focus {
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.95);
  background-color: rgba(239, 68, 68, 0.16);
}

.tfv-docs-page .tfv-docs-empty {
  text-align: center;
  padding: 48px 24px;
}

.tfv-docs-page .tfv-docs-empty-icon {
  font-size: 40px;
  color: #f1f5f9;
  display: block;
  margin-bottom: 1rem;
}

.tfv-docs-page .tfv-docs-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
}

.tfv-docs-page .tfv-docs-empty-desc {
  font-size: 13px;
  color: #f1f5f9;
  margin: 0 0 1.5rem 0;
}

.tfv-docs-page .tfv-docs-btn-upload-empty {
  display: inline-block;
}

.tfv-docs-page .tfv-kyc-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 991.98px) {
  .tfv-docs-page .tfv-kyc-doc-grid {
    grid-template-columns: 1fr;
  }
}

.tfv-docs-page .tfv-kyc-doc-card {
  background: #161621;
  border: 1px solid #2d2d3e;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tfv-docs-page .tfv-kyc-doc-card--final {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.tfv-docs-page .tfv-kyc-doc-title-icon {
  margin-right: 6px;
}

.tfv-docs-page .tfv-kyc-doc-card-header {
  display: flex;
  justify-content: flex-start;
}

.tfv-docs-page .tfv-kyc-doc-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.tfv-docs-page .tfv-kyc-doc-meta {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.76);
}

.tfv-docs-page .tfv-kyc-doc-ocr-block {
  margin-top: 8px;
  padding: 8px 0 4px;
}

.tfv-docs-page .tfv-kyc-doc-ocr-title {
  font-size: 24px;
  font-family: Georgia, serif;
  line-height: 1.1;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.tfv-docs-page .tfv-kyc-doc-ocr-text {
  margin: 0;
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  color: #f1f5f9;
}

.tfv-docs-page .tfv-kyc-doc-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tfv-docs-page .tfv-ocr-kv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.tfv-docs-page .tfv-ocr-kv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.tfv-docs-page .tfv-ocr-kv-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.72);
  margin-bottom: 3px;
}

.tfv-docs-page .tfv-ocr-kv-value {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.tfv-docs-page .tfv-ocr-kv-value:hover {
  color: #f8fafc;
  background: transparent;
}

.tfv-docs-page .tfv-ocr-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tfv-docs-page .tfv-kyc-doc-edit-link {
  padding: 0;
  background: transparent;
  border: 0;
  color: #22d3ee;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.tfv-docs-page .tfv-kyc-doc-edit-link:hover,
.tfv-docs-page .tfv-kyc-doc-edit-link:focus {
  color: #22d3ee;
  text-decoration: none;
}

.tfv-docs-page .tfv-kyc-doc-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tfv-docs-page .tfv-kyc-doc-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #3b82f6;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  background: transparent;
}

.tfv-docs-page .tfv-kyc-doc-icon-btn:hover,
.tfv-docs-page .tfv-kyc-doc-icon-btn:focus {
  color: #60a5fa;
  border-color: #3b82f6;
  background: transparent;
  text-decoration: none;
}

.tfv-docs-page .tfv-ocr-save-btn {
  background-color: #f59e0b;
  border-color: #f59e0b;
  font-weight: 700;
  color: #fff;
  min-width: 120px;
}

.tfv-docs-page .tfv-ocr-save-btn:hover,
.tfv-docs-page .tfv-ocr-save-btn:focus {
  background-color: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* ========== Audit Log (dark admin) ========== */
.tfv-audit-page {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
}

.tfv-audit-page .tfv-audit-header {
  margin-bottom: 0;
}

.tfv-audit-page .tfv-audit-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.tfv-audit-page .tfv-audit-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.tfv-audit-page .tfv-audit-btn-export {
  display: inline-block;
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.tfv-audit-page .tfv-audit-btn-export:hover {
  background-color: #2d2d3e;
  border-color: #2d2d3e;
  color: #ffffff;
}

.tfv-audit-page .tfv-audit-divider {
  border: none;
  border-top: 1px solid #1e1e2e;
  margin: 16px 0 24px 0;
}

.tfv-audit-page .tfv-audit-stat-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 24px;
  border-left-width: 4px;
  border-left-style: solid;
}

.tfv-audit-page .tfv-audit-stat-card--indigo {
  border-left-color: #6366f1;
}

.tfv-audit-page .tfv-audit-stat-card--green {
  border-left-color: #22c55e;
}

.tfv-audit-page .tfv-audit-stat-card--amber {
  border-left-color: #eab308;
}

.tfv-audit-page .tfv-audit-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tfv-audit-page .tfv-audit-stat-label {
  font-size: 13px;
  color: #94a3b8;
}

.tfv-audit-page .tfv-audit-filter-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.tfv-audit-page .tfv-audit-filter-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  margin: 0 0 16px 0;
}

.tfv-audit-page .tfv-audit-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.tfv-audit-page .tfv-audit-input {
  background-color: #13131a !important;
  border: 1px solid #2d2d3e !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: #f1f5f9 !important;
  width: 100%;
}

.tfv-audit-page .tfv-audit-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.tfv-audit-page .tfv-audit-btn-search {
  background-color: #6366f1;
  border: 1px solid #6366f1;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
}

.tfv-audit-page .tfv-audit-btn-search:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.tfv-audit-page .tfv-audit-table-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 24px;
}

.tfv-audit-page .tfv-audit-table-wrap {
  overflow-x: auto;
}

.tfv-audit-page .tfv-audit-table {
  table-layout: fixed;
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}

.tfv-audit-page .tfv-audit-table thead {
  background-color: #1a1a2e;
}

.tfv-audit-page .tfv-audit-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #6366f1;
}

.tfv-audit-page .tfv-audit-table th.tfv-audit-col-time {
  width: 170px;
}

.tfv-audit-page .tfv-audit-table th.tfv-audit-col-event {
  width: 220px;
}

.tfv-audit-page .tfv-audit-table th.tfv-audit-col-user {
  min-width: 220px;
  width: 240px;
}

.tfv-audit-page .tfv-audit-table th.tfv-audit-col-customer {
  width: 150px;
}

.tfv-audit-page .tfv-audit-table th.tfv-audit-col-customer-id {
  width: 300px;
}

.tfv-audit-page .tfv-audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1e1e2e;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

.tfv-audit-page .tfv-audit-table td * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tfv-audit-page .tfv-audit-table td.tfv-audit-cell-user {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: none;
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
}

.tfv-audit-page .tfv-audit-table tbody tr:hover {
  background-color: #16161f;
}

.tfv-audit-page .tfv-audit-cell-time {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: #94a3b8;
}

.tfv-audit-page .tfv-audit-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.tfv-audit-page .tfv-audit-pill--amber {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.tfv-audit-page .tfv-audit-pill--indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.tfv-audit-page .tfv-audit-pill--green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tfv-audit-page .tfv-audit-pill--muted {
  background: rgba(107, 114, 128, 0.12);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.tfv-audit-page .tfv-audit-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1e1e2e;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
}

.tfv-audit-page .tfv-audit-cell-customer-name {
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
}

.tfv-audit-page .tfv-audit-cell-customer-unknown {
  font-size: 13px;
  color: #6b7280;
}

.tfv-audit-page .tfv-audit-cell-customer-id-full {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #94a3b8;
}

.tfv-audit-page .tfv-audit-cell-beforeafter {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #94a3b8;
}

.tfv-audit-page .tfv-audit-empty {
  text-align: center;
  padding: 48px 24px;
}

.tfv-audit-page .tfv-audit-empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 1rem;
  color: #6b7280;
}

.tfv-audit-page .tfv-audit-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}

.tfv-audit-page .tfv-audit-empty-desc {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
}

.tfv-audit-page .tfv-audit-page-link {
  color: #f1f5f9;
  text-decoration: none;
}

.tfv-audit-page .tfv-audit-pagination .page-link {
  background-color: #13131a;
  border-color: #2d2d3e;
  color: #cbd5e1;
}

.tfv-audit-page .tfv-audit-pagination .page-link:hover {
  background-color: #1b1b26;
  border-color: #6366f1;
  color: #ffffff;
}

.tfv-audit-page .tfv-audit-pagination .page-item.disabled .page-link {
  background-color: #0f0f13;
  border-color: #2d2d3e;
  color: #64748b;
}

.tfv-audit-page .tfv-audit-pagination .page-item.active .page-link {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

/* ========== Documents Upload page (dark admin) ========== */
.tfv-upload-page {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f13;
  color: #f1f5f9;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
}

.tfv-upload-page .tfv-upload-breadcrumb {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 0;
}

.tfv-upload-page .tfv-upload-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}

.tfv-upload-page .tfv-upload-breadcrumb a:hover {
  color: #f1f5f9;
}

.tfv-upload-page .tfv-upload-breadcrumb-sep {
  margin: 0 6px;
}

.tfv-upload-page .tfv-upload-breadcrumb-current {
  color: #f1f5f9;
}

.tfv-upload-page .tfv-upload-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 16px 0 4px 0;
}

.tfv-upload-page .tfv-upload-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.tfv-upload-page .tfv-upload-divider {
  border: none;
  border-top: 1px solid #1e1e2e;
  margin: 16px 0 24px 0;
}

.tfv-upload-page .tfv-upload-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.tfv-upload-page .tfv-upload-alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.tfv-upload-page .tfv-upload-alert-success {
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.tfv-upload-page .tfv-upload-card {
  background-color: #13131a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.tfv-upload-page .tfv-upload-card-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin: 0 0 20px 0;
}

.tfv-upload-page .tfv-upload-field {
  margin-bottom: 20px;
}

.tfv-upload-page .tfv-upload-field:last-of-type {
  margin-bottom: 0;
}

.tfv-upload-page .tfv-upload-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.tfv-upload-page .tfv-upload-select {
  display: block;
  width: 100%;
  background-color: #13131a !important;
  border: 1px solid #2d2d3e !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: #f1f5f9 !important;
  font-size: 14px;
}

.tfv-upload-page .tfv-upload-select:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.tfv-upload-page .tfv-upload-input-hidden {
  display: none !important;
}

.tfv-upload-page .tfv-upload-zone {
  background: #0f0f13;
  border: 2px dashed #2d2d3e;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tfv-upload-page .tfv-upload-zone:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.tfv-upload-page .tfv-upload-zone.tfv-upload-zone-has-file {
  border-color: #6366f1;
}

.tfv-upload-page .tfv-upload-zone-dragover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.tfv-upload-page .tfv-upload-zone-icon {
  display: block;
  font-size: 32px;
  color: #6366f1;
  margin-bottom: 12px;
}

.tfv-upload-page .tfv-upload-zone-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.tfv-upload-page .tfv-upload-zone-text-file {
  color: #22c55e;
}

.tfv-upload-page .tfv-upload-zone-sub {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.tfv-upload-page .tfv-upload-zone-hint {
  display: block;
  font-size: 11px;
  color: #4b5563;
  margin-top: 8px;
}

.tfv-upload-page .tfv-upload-info {
  font-size: 12px;
  color: #6b7280;
  margin: 20px 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tfv-upload-page .tfv-upload-info span:first-child {
  flex-shrink: 0;
}

.tfv-upload-page .tfv-upload-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tfv-upload-page .tfv-upload-btn-cancel {
  display: inline-block;
  background-color: #1e1e2e;
  border: 1px solid #2d2d3e;
  color: #f1f5f9;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.tfv-upload-page .tfv-upload-btn-cancel:hover {
  background-color: #2d2d3e;
  color: #ffffff;
}

.tfv-upload-page .tfv-upload-btn-submit {
  background-color: #6366f1;
  border: 1px solid #6366f1;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tfv-upload-page .tfv-upload-btn-submit:hover {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}
