@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --tfz-ink: #071b3a;
  --tfz-ink-2: #102a56;
  --tfz-muted: #667085;
  --tfz-soft: #f5f8fc;
  --tfz-line: #dde6f3;
  --tfz-card: #ffffff;
  --tfz-blue: #0e66ff;
  --tfz-blue-2: #0047c7;
  --tfz-mint: #21c99a;
  --tfz-gold: #d9a441;
  --tfz-danger: #e5484d;
  --tfz-radius: 14px;
  --tfz-shadow: 0 18px 50px rgba(7, 27, 58, .10);
  --tfz-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --thm-base: #0e66ff;
  --thm-base-rgb: 14, 102, 255;
  --thm-primary: #21c99a;
  --thm-primary-rgb: 33, 201, 154;
  --thm-black: #071b3a;
  --thm-black-rgb: 7, 27, 58;
  --thm-gray: #667085;
  --thm-gray-rgb: 102, 112, 133;
}

/* Brand loader */
.loader-wrap,
#preloader {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100vh !important;
  background:
    linear-gradient(135deg, #061733 0%, #0b2c63 54%, #0e66ff 100%) !important;
  z-index: 999999 !important;
  animation: tfz-loader-out .45s ease 1.65s forwards;
}

.loader-wrap::before,
#preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(126, 240, 193, .18), transparent 24%),
    radial-gradient(circle at 74% 68%, rgba(217, 164, 65, .18), transparent 26%);
}

.tfz-loader {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #fff;
  text-align: center;
  padding: 32px;
}

.tfz-loader-mark {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.tfz-loader-ring {
  position: absolute;
  top: 21px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.22);
  border-top-color: var(--tfz-mint);
  animation: tfz-spin 1s linear infinite;
}

.tfz-loader-title {
  margin: 10px 0 4px;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
}

.tfz-loader-copy {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  font-weight: 600;
}

.tfz-loader-close,
.preloader-close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}

#preloader > i {
  display: none !important;
}

#preloader::after {
  content: "TrustFinZone";
  position: relative;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  letter-spacing: 0;
}

@keyframes tfz-spin {
  to { transform: rotate(360deg); }
}

@keyframes tfz-loader-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

html,
body {
  font-family: var(--tfz-font) !important;
  color: var(--tfz-ink);
  background: var(--tfz-soft) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(14, 102, 255, .12), rgba(33, 201, 154, .08)),
    radial-gradient(circle at 80% 20%, rgba(217, 164, 65, .16), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--tfz-blue);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

a:hover {
  color: var(--tfz-blue-2);
}

.btn,
button,
input[type="submit"] {
  border-radius: 10px !important;
  font-weight: 700 !important;
}

.btn-primary,
.header-btn-one a,
.theme-btn,
.style2,
button[name],
input[type="submit"] {
  background: linear-gradient(135deg, var(--tfz-blue), #14b8a6) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(14, 102, 255, .22);
}

.btn-primary:hover,
.header-btn-one a:hover,
.theme-btn:hover,
.style2:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(14, 102, 255, .28);
}

.form-control,
.form-select,
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]) {
  border: 1px solid var(--tfz-line) !important;
  border-radius: 12px !important;
  min-height: 44px;
  color: var(--tfz-ink);
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: rgba(14, 102, 255, .55) !important;
  box-shadow: 0 0 0 4px rgba(14, 102, 255, .10) !important;
}

.card,
.auth-form,
.modal-content,
.table-responsive {
  border: 1px solid rgba(221, 230, 243, .9) !important;
  border-radius: var(--tfz-radius) !important;
  box-shadow: var(--tfz-shadow) !important;
  background: rgba(255, 255, 255, .96) !important;
}

.card-body {
  padding: 1.25rem !important;
}

.alert {
  border-radius: 12px !important;
  border: 1px solid transparent !important;
}

.table {
  color: var(--tfz-ink);
  vertical-align: middle;
}

.table thead th,
.table thead td {
  background: #f7faff !important;
  color: #344054 !important;
  border-bottom: 1px solid var(--tfz-line) !important;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table tbody tr {
  transition: background-color .18s ease;
}

.table tbody tr:hover {
  background: rgba(14, 102, 255, .04);
}

.sidebar-wrapper {
  background: #ffffff !important;
  border-right: 1px solid var(--tfz-line) !important;
  box-shadow: 12px 0 40px rgba(7, 27, 58, .06) !important;
}

.sidebar-header {
  border-bottom: 1px solid var(--tfz-line) !important;
  min-height: 78px;
}

.logo-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px;
}

.logo-text {
  color: var(--tfz-ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.metismenu a {
  border-radius: 12px;
  margin: 3px 10px;
  color: #53627a !important;
  font-weight: 600;
}

.metismenu a:hover,
.metismenu .mm-active > a,
.metismenu a[aria-expanded="true"] {
  color: var(--tfz-blue) !important;
  background: rgba(14, 102, 255, .09) !important;
}

.topbar {
  background: rgba(255, 255, 255, .88) !important;
  border-bottom: 1px solid rgba(221, 230, 243, .85) !important;
  backdrop-filter: blur(14px);
  box-shadow: none !important;
}

.page-wrapper,
.content-body {
  background: transparent !important;
}

.page-content,
.container {
  max-width: 1280px;
}

.page-title,
.tfz-dashboard-hero {
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, #071b3a 0%, #0e3d82 52%, #0e66ff 100%);
  box-shadow: var(--tfz-shadow);
}

.tfz-dashboard-hero h2,
.page-title h3 {
  color: #fff !important;
  font-weight: 800;
}

.tfz-dashboard-hero p,
.page-title p {
  color: rgba(255,255,255,.76) !important;
}

.widgets-icons {
  border-radius: 14px !important;
}

.row-cols-1 > .col .card,
.row-cols-md-2 > .col .card,
.row-cols-xl-3 > .col .card {
  overflow: hidden;
  position: relative;
}

.row-cols-1 > .col .card::after,
.row-cols-md-2 > .col .card::after,
.row-cols-xl-3 > .col .card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tfz-blue), var(--tfz-mint), var(--tfz-gold));
}

.bg-success,
.bg-info,
.bg-danger,
.bg-warning {
  background: #fff !important;
  color: var(--tfz-ink) !important;
}

.bg-success .text-white,
.bg-info .text-dark,
.bg-danger .text-white,
.bg-warning .text-dark,
.card .text-white,
.card .text-dark {
  color: var(--tfz-ink) !important;
}

.authincation {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, .92), rgba(14, 102, 255, .82)),
    url("../images/gallery/trustfinzone-mark.svg") center 12% / 220px no-repeat;
}

.authincation .mini-logo h4,
.authincation label {
  color: var(--tfz-ink) !important;
}

.main-header,
.main-menu,
.main-menu__wrapper {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(12px);
}

.main-menu__list > li > a {
  color: var(--tfz-ink) !important;
  font-weight: 700 !important;
}

.logo-box-style1 img {
  max-height: 64px;
  object-fit: contain;
}

/* Public marketing revamp */
.main-header-style1-bottom {
  display: none !important;
}

.main-menu-style1 {
  border-bottom: 1px solid rgba(221, 230, 243, .9);
  box-shadow: 0 12px 36px rgba(7, 27, 58, .06);
}

.main-menu__wrapper .container {
  max-width: 1240px;
}

.main-menu__wrapper-inner {
  min-height: 82px;
}

.header-btn-one {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn-one a {
  padding: 13px 18px !important;
  border-radius: 12px !important;
}

.header-btn-one a:first-child {
  background: #fff !important;
  color: var(--tfz-ink) !important;
  border: 1px solid var(--tfz-line) !important;
  box-shadow: none !important;
}

.main-slider,
.main-slider .swiper-slide,
.banner-style1,
.banner-one {
  background:
    linear-gradient(135deg, #071b3a 0%, #0b3475 56%, #0e66ff 100%) !important;
}

.main-slider h1,
.main-slider h2,
.banner-style1 h1,
.banner-one h1 {
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.main-slider p,
.banner-style1 p,
.banner-one p {
  color: rgba(255,255,255,.76) !important;
}

.about-style1,
.features-style1,
.services-style1,
.testimonial-style1,
.contact-page {
  background: var(--tfz-soft) !important;
}

.single-service-style1,
.single-features-style1,
.single-testimonial-style1,
.blog-style1__single,
.contact-page__single {
  border: 1px solid var(--tfz-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--tfz-shadow) !important;
  background: #fff !important;
  overflow: hidden;
}

.sec-title h2,
.section-title h2 {
  color: var(--tfz-ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.sec-title .sub-title,
.section-title .sub-title {
  color: var(--tfz-blue) !important;
  font-weight: 800 !important;
}

/* App shell revamp */
.content-body {
  padding-top: 24px;
}

.content-body .container {
  max-width: 1200px;
}

.header,
.header.dashboard {
  background: rgba(255,255,255,.88) !important;
  border-bottom: 1px solid var(--tfz-line) !important;
  backdrop-filter: blur(14px);
}

.brand-logo img,
.mini-logo img {
  object-fit: contain;
}

.balance-stats,
.total-balance {
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--tfz-line);
  padding: 18px;
}

.total-balance h2,
.balance-stats h3 {
  color: var(--tfz-ink) !important;
  font-weight: 800 !important;
}

.balance-stats p,
.total-balance p {
  color: var(--tfz-muted) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .04em;
}

.api-table,
.table-responsive {
  overflow: auto;
}

.badge {
  border-radius: 999px;
  padding: .52rem .72rem;
}

.tfz-user-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 20px;
  margin-bottom: 22px;
}

.tfz-user-hero-main,
.tfz-balance-panel {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--tfz-shadow);
}

.tfz-user-hero-main {
  padding: clamp(24px, 4vw, 38px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, .96), rgba(14, 102, 255, .88)),
    radial-gradient(circle at 88% 18%, rgba(126, 240, 193, .2), transparent 26%);
}

.tfz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tfz-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tfz-user-hero-main .tfz-eyebrow {
  color: var(--tfz-mint);
}

.tfz-user-hero-main h1 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
}

.tfz-user-hero-main p {
  max-width: 640px;
  color: rgba(255,255,255,.78);
  font-size: 1rem;
}

.tfz-account-copy {
  max-width: 520px;
  margin-top: 28px;
}

.tfz-account-copy label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfz-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.1);
}

.tfz-account-row .form-control {
  min-height: 48px;
  border-color: transparent !important;
  background: rgba(255,255,255,.95) !important;
  font-weight: 800;
  letter-spacing: .08em;
}

.tfz-balance-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 28px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.tfz-balance-panel span {
  color: var(--tfz-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfz-balance-panel strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--tfz-ink);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.tfz-balance-panel p {
  color: var(--tfz-muted);
}

.tfz-status-row {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.tfz-status-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  color: var(--tfz-ink);
  letter-spacing: 0;
  text-transform: none;
}

.tfz-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.tfz-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--tfz-line);
  border-radius: 18px;
  background: #fff;
  color: var(--tfz-ink);
  box-shadow: 0 12px 34px rgba(7, 27, 58, .07);
}

.tfz-action-card:hover {
  transform: translateY(-2px);
  color: var(--tfz-blue);
  box-shadow: var(--tfz-shadow);
}

.tfz-action-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--tfz-blue), var(--tfz-mint));
  font-size: 1.25rem;
}

.tfz-action-card span {
  font-weight: 800;
}

.tfz-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.tfz-kpi-card {
  padding: 20px;
  border: 1px solid var(--tfz-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 27, 58, .07);
}

.tfz-kpi-card span {
  display: block;
  color: var(--tfz-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tfz-kpi-card strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--tfz-ink);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
}

.tfz-kpi-card small {
  color: var(--tfz-muted);
  font-weight: 600;
}

.tfz-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

/* Admin operational pages */
.page-content > h6,
.content-body h4.card-title {
  color: var(--tfz-ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.page-content > hr {
  opacity: 1;
  border-color: var(--tfz-line);
}

.modal-header {
  border-bottom: 1px solid var(--tfz-line) !important;
}

.modal-footer {
  border-top: 1px solid var(--tfz-line) !important;
}

.dropdown-menu {
  border: 1px solid var(--tfz-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--tfz-shadow) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--tfz-line) !important;
  border-radius: 10px !important;
}

@media (max-width: 991px) {
  .page-title,
  .tfz-dashboard-hero {
    padding: 22px;
  }

  .card-body {
    padding: 1rem !important;
  }

  .table-responsive {
    box-shadow: none !important;
  }

  .tfz-user-hero,
  .tfz-quick-actions,
  .tfz-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tfz-account-row {
    grid-template-columns: 1fr;
  }

  .tfz-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .main-menu-style1-right {
    display: none;
  }

  .main-menu__wrapper-inner {
    min-height: 72px;
  }

  .sidebar-wrapper {
    box-shadow: var(--tfz-shadow) !important;
  }
}
