html {
  min-height: 100%;
}

body.body,
body.united-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f5f8fb;
  color: #555;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: #2fa4e7;
}

.wrapper-content {
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
}

.wrapper-content__body {
  width: 100%;
  flex: 1 0 auto;
}

.wrapper-content__footer {
  width: 100%;
  margin-top: auto;
}

.paddingbody {
  height: 24px;
}

.container-fluid-spacious {
  padding-left: 24px;
  padding-right: 24px;
}

.navbar.navbar-default {
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
}

.navbar-brand.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.navbar-brand.brand-logo img {
  max-height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
}

.navbar-toggle {
  border: 0 !important;
}

.navbar-collapse.collapse.show {
  display: block !important;
}

.navbar-nav {
  margin-top: 0;
  margin-bottom: 0;
}

.component-navbar__navbar-public .nav > li > a,
.component-navbar__navbar-private .nav > li > a {
  font-weight: 600;
}

.component-navbar__navbar-private .badge,
.component-navbar-balance-item__navbar-private .badge {
  background: #73a839;
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
}

.Kpcss,
.Kpcss2,
.well.united-well,
.component_card .card,
.united-card {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #d9edf7;
  border-radius: 13px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.16), -1px -1px 5px rgba(0, 0, 0, 0.08);
}

.Kpcss {
  border-color: #fff;
}

.Kpcss2 {
  border-color: #059fff;
}

.Kp1,
.Kp2 {
  width: 100%;
  border-radius: 13px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.16), -1px -1px 5px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.Kp1 {
  min-height: 101px;
  padding: 19px;
  background-color: #0576ff;
  border: 1px solid #0576ff;
  color: #fff;
}

.Kp2 {
  min-height: 56px;
  padding: 13px;
  background-color: #f2fcfc;
  border: 1px solid #f2fcfc;
  color: #317eac;
}

.btn-big-primary,
.myinsta1,
.btn-place-order,
.btn-fund,
.btn-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(#54b4eb, #2fa4e7 60%, #1d9ce5);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 12px -3px #2fa4e7;
}

.btn-big-primary:hover,
.myinsta1:hover,
.btn-place-order:hover,
.btn-fund:hover,
.btn-actions:hover {
  color: #fff;
  filter: brightness(0.96);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.form-control,
.btn,
.dropdown-menu,
.modal-content {
  border-radius: 10px;
}

.form-control {
  min-height: 40px;
}

.table-responsive {
  border: 0;
}

.table-responsive > .table {
  min-width: 760px;
}

.table {
  margin-bottom: 0;
}

.table thead tr th {
  background-color: #2fa4e7;
  color: #fff;
  border-bottom: 0;
  vertical-align: middle;
}

.table thead tr th:first-child {
  border-top-left-radius: 10px;
}

.table thead tr th:last-child {
  border-top-right-radius: 10px;
}

.services-list-category-title td,
.category-row td {
  background: #f7fbff;
  color: #317eac;
  font-weight: 700;
}

.category-row .count {
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  min-width: 90px;
  padding: 5px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.status-completed,
.completed {
  background: #28a745;
}

.status-pending,
.status-inprogress,
.status-inprogress,
.progress {
  background: #dc3545;
}

.status-processing,
.processing {
  background: #ff9800;
}

.status-partial,
.partial {
  background: #17a2b8;
}

.status-canceled,
.status-cancelled,
.canceled {
  background: #6c757d;
}

.custom-dd-wrapper {
  position: relative;
}

.custom-dd-btn {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.custom-dd-list,
.services-dd-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 2000;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d9edf7;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.custom-dd-list.show,
.services-dd-list.show {
  display: block;
}

.custom-dd-item,
[data-category-value] {
  padding: 10px 12px;
  cursor: pointer;
}

.custom-dd-item:hover,
[data-category-value]:hover {
  background: #eaf6fd;
}

.search_sevices_content {
  margin-bottom: 8px;
}

#svcSearchResults,
#dropdown_for_search {
  z-index: 2500;
}

.avg-time-box,
.link-box,
.detail-row,
.desc-meta,
.helper-note {
  background: #f7fbff;
  border: 1px solid #d9edf7;
  border-radius: 10px;
  padding: 10px;
}

.desc-chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eaf6fd;
  color: #317eac;
  font-size: 12px;
  font-weight: 700;
}

.mode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mode-btn {
  flex: 1 1 0;
  min-height: 42px;
  border: 1px solid #d9edf7;
  border-radius: 10px;
  background: #fff;
  color: #317eac;
  font-weight: 700;
}

.mode-btn.active {
  background: linear-gradient(#54b4eb, #2fa4e7 60%, #1d9ce5);
  color: #fff;
}

.section-hidden,
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-end {
  text-align: right !important;
}

.text-break {
  word-break: break-word !important;
}

.w-100 {
  width: 100% !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.qr-popup-overlay,
.state-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.qr-popup-overlay.show,
.state-overlay.show {
  display: flex;
}

.qr-popup-card,
.state-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 13px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.qr-popup-close {
  float: right;
  border: 0;
  background: #f5f8fb;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

.qr-amount-value {
  display: block;
  color: #73a839;
  font-size: 28px;
  font-weight: 800;
}

.chat-container {
  min-height: 340px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d9edf7;
  border-radius: 13px;
  padding: 14px;
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.chat-input-bar input {
  flex: 1 1 auto;
  min-height: 42px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px 12px;
}

.send-btn {
  min-width: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(#54b4eb, #2fa4e7 60%, #1d9ce5);
  color: #fff;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eaf6fd;
  color: #317eac;
  font-size: 34px;
  font-weight: 800;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.password-input-group,
.api-key-group {
  display: flex;
  gap: 8px;
}

.password-input-group .form-control,
.api-key-group .form-control {
  flex: 1 1 auto;
}

.modal.show {
  display: block;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal .modal-content {
  border: 0;
  border-radius: 13px;
}

.empty-row td {
  text-align: center;
  color: #777;
  padding: 30px 10px;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-pills > li {
  float: none;
}

.nav-pills > li > button.nav-link,
.filter-btn {
  border: 0;
  border-radius: 10px;
  background: #eef8ff;
  color: #317eac;
  font-weight: 700;
  padding: 9px 13px;
}

.nav-pills > li > button.nav-link.active,
.filter-btn.active {
  background: linear-gradient(#54b4eb, #2fa4e7 60%, #1d9ce5);
  color: #fff;
  box-shadow: 0 3px 12px -3px #2fa4e7;
}

.nav-pills .search {
  margin-left: auto;
  min-width: min(320px, 100%);
}

.order-card {
  background: #fff;
  border: 1px solid #d9edf7;
  border-radius: 13px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.12);
}

.order-id,
.service-title {
  color: #317eac;
  font-weight: 800;
}

.united-footer {
  color: #777;
  text-align: center;
}

@media (max-width: 767px) {
  .navbar.navbar-default {
    border-radius: 0;
  }

  .navbar-collapse {
    max-height: calc(100vh - 55px);
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .navbar-nav > li > a {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .container-fluid-spacious {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-brand.brand-logo {
    max-width: calc(100vw - 90px);
    overflow: hidden;
    white-space: nowrap;
  }

  .mode-tabs,
  .chat-input-bar,
  .password-input-group,
  .api-key-group {
    flex-direction: column;
  }

  .Kpcss,
  .Kpcss2,
  .well.united-well,
  .component_card .card,
  .united-card {
    padding: 14px;
    border-radius: 12px;
  }

  .nav-pills {
    display: block;
  }

  .nav-pills > li {
    display: block;
    margin-bottom: 8px;
    width: 100%;
  }

  .nav-pills > li > button.nav-link,
  .filter-btn,
  .nav-pills .search {
    width: 100%;
  }

  .nav-pills .search {
    margin-left: 0;
  }

  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive > .table {
    min-width: 720px;
  }

  .qr-popup-card,
  .state-card {
    padding: 16px;
  }
}
