body {
  background: #f3f7fb;
}

#registerWrap {
  align-items: center;
  padding: 40px 28px;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(0, 174, 239, 0.2), transparent 55%),
    linear-gradient(180deg, #f7fbfe 0%, #e7f2f8 100%);
}

#registerWrap .auth-layout {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  gap: 64px;
  align-items: center;
}

#registerWrap .auth-pitch {
  text-align: left;
}

#registerWrap .logoWrap {
  justify-content: flex-start;
  margin: 0;
}

#registerWrap .logoWrap svg {
  width: 180px;
  height: auto;
  overflow: visible;
}

#registerWrap .auth-kicker {
  margin: 28px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007eae;
}

#registerWrap .auth-pitch h1 {
  margin: 8px 0 0;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #122028;
}

#registerWrap .auth-pitch-lead {
  margin: 14px 0 0;
  max-width: 420px;
  color: #3d4c53;
  font-size: 16px;
  line-height: 1.55;
}

#registerWrap .auth-points {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#registerWrap .auth-points li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid #00aeef;
}

#registerWrap .auth-points strong {
  font-size: 15px;
  color: #122028;
}

#registerWrap .auth-points span {
  color: #3d4c53;
  font-size: 14px;
  line-height: 1.45;
}

#registerWrap .auth-pitch-cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #122028;
  color: #fff;
  font-weight: 700;
}

#registerWrap .registerContainer {
  width: 100%;
  max-width: none;
  min-height: 0;
  background: #fff;
  border: 1px solid rgba(15, 35, 52, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 35, 52, 0.08);
  padding: 32px 28px 24px;
  gap: 0;
}

#registerWrap .content {
  margin: 0;
  gap: 14px;
}

#registerWrap .content .title {
  text-align: left;
  padding: 0;
}

#registerWrap .content .title h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

#registerWrap .partner-lead {
  margin: 0;
  color: #3d4c53;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

#registerWrap .text,
#registerWrap .auth-switch {
  text-align: left;
}

#registerWrap .auth-switch a,
#registerWrap .text a {
  color: #007eae;
  font-weight: 700;
}

@media (max-width: 860px) {
  #registerWrap {
    padding: 24px 16px;
  }

  #registerWrap .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #registerWrap .auth-pitch h1 {
    font-size: 32px;
  }
}

#registerWrap .widget {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#registerWrap .field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4c53;
}

#registerWrap .content form {
  gap: 14px;
}

#registerWrap input[type="email"],
#registerWrap input[type="password"],
#registerWrap select,
#registerWrap input:required:valid,
#registerWrap input[data-icon]:required:valid,
#registerWrap input:not(:focus, :focus-within)[data-icon]:required:valid {
  border-radius: 10px;
  border: 1px solid #d5dee3;
  background: #f8fbfc none !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  padding: 12px 14px;
  font-weight: 400;
  box-shadow: none;
}

#registerWrap input:-webkit-autofill,
#registerWrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1c2b33;
  -webkit-box-shadow: 0 0 0 1000px #f8fbfc inset;
  caret-color: #1c2b33;
}

#registerWrap input:focus,
#registerWrap select:focus {
  border-color: #00aeef;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.16);
}

#registerWrap button[type="submit"] {
  border-radius: 10px;
  font-weight: 600;
}

#registerWrap [data-message] {
  margin-bottom: 16px;
  text-align: left;
}

#header h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.partner-level {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.12);
  color: #007eae;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.widget.--monthlySavings .widgetTitle {
  font-size: 26px;
}

.kb-articles li {
  border: 1px solid #e6eef2;
}

#pageContent .dataTables_wrapper {
  width: 100%;
}

#pageContent .dataTables_wrapper .dataTables_length,
#pageContent .dataTables_wrapper .dataTables_filter,
#pageContent .dataTables_wrapper .dataTables_info,
#pageContent .dataTables_wrapper .dataTables_paginate {
  color: #5b686d;
}

#pageContent .dataTables_wrapper .dataTables_filter input,
#pageContent .dataTables_wrapper .dataTables_length select {
  border: 1px solid #d5dee3;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
}

#pageContent table.dataTable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}

#pageContent table.dataTable thead th,
#pageContent table.dataTable tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid #e8eef2;
}

#pageContent table.dataTable thead th {
  background: #f7fafb;
  color: #7b8b93;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

#pageContent #commission-table th:nth-child(1),
#pageContent #commission-table td:nth-child(1),
#pageContent #commission-table th:nth-child(2),
#pageContent #commission-table td:nth-child(2),
#pageContent #invoices th:nth-child(1),
#pageContent #invoices td:nth-child(1),
#pageContent #commission-table th:nth-child(4),
#pageContent #commission-table td:nth-child(4),
#pageContent #invoices th:nth-child(3),
#pageContent #invoices td:nth-child(3) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#pageContent #commission-table th:nth-child(4),
#pageContent #commission-table td:nth-child(4),
#pageContent #invoices th:nth-child(3),
#pageContent #invoices td:nth-child(3),
#pageContent #invoices th:last-child,
#pageContent #invoices td:last-child {
  text-align: right;
}

#pageContent #invoices th:nth-child(4),
#pageContent #invoices td:nth-child(4) {
  text-align: left;
  padding-left: 28px;
}

#sidebar > .menu a.active,
#sidebar > .support a.active {
  background: rgba(0, 174, 239, 0.12);
  color: #007eae;
}

.custom-modal {
  z-index: 100;
}

.custom-modal.is-open {
  display: flex !important;
}

.custom-modal .modal-header .close-modal {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#invoiceHelpModal .modal-content {
  max-width: 520px;
  border-radius: 16px;
}

.invoice-help ol {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #3d4c53;
  line-height: 1.5;
  list-style: decimal;
}

.invoice-help ol li {
  display: list-item;
}

.invoice-help ol li::before {
  content: none;
}

.invoice-help-open {
  margin-left: auto;
  align-self: center;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: #007eae;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#pageContent .invoice-upload,
#pageContent .invoice-file {
  margin: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #007eae;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#pageContent .dataTables_wrapper .dataTables_paginate {
  margin-top: 14px;
}

#pageContent .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px;
}

@media (max-width: 640px) {
  #registerWrap .registerContainer {
    padding: 28px 18px 20px;
  }
}

#allWrap {
  --width-sidebar: 248px;
  background: #f4f7f8;
}

#allWrap #sidebar {
  background: #fff;
  backdrop-filter: none;
  border-right: 1px solid #e6eef2;
  padding: 22px 14px 16px;
  gap: 8px;
  justify-content: flex-start;
}

#sidebar .logo {
  align-self: flex-start;
  padding: 4px 10px 8px;
}

#sidebar .logo svg {
  width: 148px;
  height: auto;
}

#sidebar .partner-plan {
  margin: 4px 10px 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f7f8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#sidebar .partner-plan span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7b8b93;
}

#sidebar .partner-plan strong {
  font-size: 14px;
  color: #122028;
  text-transform: capitalize;
}

#sidebar > .menu,
#sidebar > .support {
  gap: 4px;
}

#sidebar > .menu a,
#sidebar > .support a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #3d4c53;
}

#sidebar > .support {
  margin-top: auto;
}

.partner-top {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f4f7f8;
  padding: 0 28px 12px;
}

.partner-top #header {
  position: static;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  padding: 18px 0 12px;
}

#header {
  background: transparent;
  backdrop-filter: none;
  padding-top: 18px;
}

#header h4 {
  font-size: 18px;
  text-transform: none;
}

#header .userName {
  font-size: 14px;
  color: #3d4c53;
}

#header .widget.--savings[data-size="s"] {
  height: auto;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14c4e0 0%, #0aa3c4 100%);
  color: #fff;
  font-weight: 700;
}

#header .widget.--savings[data-size="s"]::before {
  filter: brightness(10);
}

#theContent {
  gap: 16px;
  padding: 8px 28px 40px;
}

#pageContent.partner-main {
  gap: 16px;
}

#pageContent .widget {
  background: #fff;
  border: 1px solid rgba(15, 35, 52, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 35, 52, 0.04);
  padding: 22px 24px;
  gap: 16px;
}

#pageContent .widget .widgetTitle[data-title="underline"] {
  border-bottom: none;
  padding: 0 0 0 12px;
  border-left: 3px solid #00aeef;
  font-size: 18px;
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: #f4f7f8;
}

.table-more {
  margin-top: 14px;
  border: 1px solid #d5dee3;
  background: #fff;
  color: #122028;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
}

.table-more:hover {
  border-color: #00aeef;
  color: #007eae;
  cursor: pointer;
}

.stat-card {
  background: #fff;
  border: 1px solid rgba(15, 35, 52, 0.06);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 35, 52, 0.04);
}

.stat-card span,
.stat-card small {
  color: #7b8b93;
  font-size: 13px;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1.1;
  color: #122028;
  font-variant-numeric: tabular-nums;
}

.stat-card--accent {
  background: linear-gradient(135deg, #14c4e0 0%, #0aa3c4 100%);
  border-color: transparent;
}

.stat-card--accent span,
.stat-card--accent small,
.stat-card--accent strong {
  color: #fff;
}

.referral-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: center;
}

.referral-layout label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4c53;
}

.referral-copy {
  display: flex;
  gap: 8px;
  align-items: center;
}

.referral-copy input {
  border-radius: 10px;
  border: 1px solid #d5dee3;
  background: #f8fbfc;
  padding: 12px 14px;
  min-height: 44px;
}

.referral-copy .clipboard-button,
#billing-form button[type="submit"],
#support-form button[type="submit"] {
  border-radius: 10px;
  background: #00aeef;
  color: #fff;
  border: none;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
}

.referral-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #7b8b93;
  font-size: 12px;
}

.referral-qr img {
  border-radius: 12px;
  border: 1px solid #e6eef2;
  background: #fff;
}

#pageContent .kb-articles {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pageContent .kb-articles li {
  margin: 0;
  padding: 12px 14px;
  background: #f7fbfc;
  border: 1px solid #e6eef2;
  border-radius: 12px;
  transform: none;
}

#pageContent .kb-articles li:hover {
  background: #f7fbfc;
  transform: none;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f4;
  color: #3d4c53;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status--ok {
  background: #e8f8ee;
  color: #1f8a4c;
}

.status--wait {
  background: #fff6e8;
  color: #9a6408;
}

.status--bad {
  background: #fdecec;
  color: #c0392b;
}

#support {
  scroll-margin-top: 240px;
}

#billing-form input[type="text"],
#billing-form select,
#support-form input[type="email"],
#support-form input[type="text"],
#support-form textarea {
  border-radius: 10px;
  border: 1px solid #d5dee3;
  background: #f8fbfc;
  min-height: 44px;
  padding: 10px 12px;
}

#billing-form label,
#support-form label {
  font-size: 13px;
  font-weight: 600;
  color: #3d4c53;
}

#support-form textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
}

.support-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7fbfc;
  border: 1px solid #e6eef2;
}

.support-note--ok {
  background: #e8f8ee;
  border-color: #b7e4c7;
  color: #1f8a4c;
}

.support-note--bad {
  background: #fdecec;
  border-color: #f3c1c1;
  color: #c0392b;
}

.invoice-table-head .widgetTitle {
  width: 100%;
}

.invoice-table-head .widgetTitle a {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #007eae;
}

@media (max-width: 1100px) {
  .partner-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  #theContent {
    padding: 8px 16px 28px;
  }

  .partner-stats,
  .referral-layout {
    grid-template-columns: 1fr;
  }
}
