:root {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color: #161616;
  background: #f6f7f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: #f7f8fa;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e9e9e9;
  border-top-color: #e60000;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(380px, 48%)
    minmax(420px, 52%);
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  color: white;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgb(255 30 30 / 25%),
      transparent 33%
    ),
    linear-gradient(
      145deg,
      #080808,
      #181818
    );
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  right: -210px;
  bottom: -210px;
  border: 70px solid rgb(230 0 0 / 18%);
  border-radius: 50%;
}

.login-logo,
.small-logo,
.brand-icon {
  display: grid;
  place-items: center;
  background: #e60000;
  color: white;
  font-weight: 800;
}

.login-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 19px;
  font-size: 38px;
}

.login-brand > span {
  color: #ff4444;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.login-brand h1 {
  max-width: 620px;
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 67px);
  line-height: 1.02;
}

.login-brand p {
  max-width: 560px;
  color: #bdbdbd;
  font-size: 19px;
  line-height: 1.6;
}

.login-area {
  display: grid;
  place-items: center;
  padding: 45px;
  background: #f6f7f9;
}

.auth-card {
  width: min(100%, 480px);
  padding: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 60px rgb(0 0 0 / 8%);
}

.mobile-brand {
  display: none;
}

.eyebrow {
  color: #e00000;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.auth-card h2 {
  margin: 13px 0 8px;
  font-size: 32px;
}

.form-description {
  margin: 0 0 28px;
  color: #667085;
  line-height: 1.5;
}

.auth-card label {
  display: block;
  margin-top: 19px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  margin-top: 9px;
  padding: 15px 16px;
  border: 1px solid #d9dde5;
  border-radius: 12px;
  outline: 0;
  background: white;
}

.auth-card input:focus {
  border-color: #e60000;
  box-shadow: 0 0 0 4px rgb(230 0 0 / 9%);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.show-password {
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  margin-top: 25px;
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  background: #e60000;
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(230 0 0 / 18%);
}

.primary-button:disabled {
  opacity: .6;
  cursor: wait;
}

.security-note {
  display: block;
  margin-top: 19px;
  color: #8a919e;
  text-align: center;
}

.form-error {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #fecdd3;
  border-radius: 11px;
  color: #b42318;
  background: #fff1f2;
  line-height: 1.4;
}

.password-rules {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.app-layout {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  color: white;
  background: #090909;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 25px 21px;
  border-bottom: 1px solid #242424;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 29px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 20px;
}

.brand span {
  margin-top: 4px;
  color: #999;
  font-size: 14px;
}

nav {
  display: grid;
  gap: 7px;
  padding: 22px 14px;
}

nav button {
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  color: #aaa;
  background: transparent;
  text-align: left;
}

nav button.active {
  color: white;
  background: #e60000;
  font-weight: 800;
}

nav button:disabled {
  opacity: .68;
}

.sidebar-user {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 23px;
  border-top: 1px solid #242424;
}

.sidebar-user span {
  color: #999;
  font-size: 14px;
}

.sidebar-user button {
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #333;
  border-radius: 9px;
  color: white;
  background: transparent;
  cursor: pointer;
}

main {
  min-height: 100vh;
  margin-left: 280px;
  padding: 34px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

header h1 {
  margin-bottom: 7px;
  font-size: 30px;
}

header p {
  color: #6b7280;
}

.status {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 800;
}

.status.online {
  color: #08762b;
  background: #def7e6;
}

.welcome {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid #ececec;
  border-radius: 22px;
  background: white;
  box-shadow: 0 8px 26px rgb(0 0 0 / 4%);
}

.welcome h2 {
  margin: 12px 0 10px;
  font-size: 28px;
}

.welcome p {
  color: #667085;
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.cards article,
.details {
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: white;
}

.cards article {
  padding: 24px;
}

.cards span,
.cards strong,
.cards small {
  display: block;
}

.cards span {
  color: #667085;
}

.cards strong {
  margin: 13px 0 8px;
  font-size: 25px;
}

.cards small {
  color: #9298a2;
}

.details {
  margin-top: 22px;
  padding: 28px;
}

.details-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 14px;
}

.details-grid div {
  padding: 18px;
  border-radius: 13px;
  background: #f7f8fa;
}

.details-grid span,
.details-grid strong {
  display: block;
}

.details-grid span {
  margin-bottom: 8px;
  color: #737b89;
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

  .mobile-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
  }

  .small-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .login-area {
    min-height: 100vh;
    padding: 20px;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .sidebar nav,
  .sidebar-user {
    display: none;
  }

  main {
    margin-left: 0;
    padding: 20px;
  }

  .cards,
  .details-grid {
    grid-template-columns: 1fr;
  }
}

nav button {
  cursor: pointer;
}

.team-view {
  min-height: calc(100vh - 68px);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-start;
}

.page-heading h1 {
  margin: 8px 0;
  font-size: 34px;
}

.page-heading p {
  color: #667085;
}

.primary-action {
  padding: 13px 19px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #e60000;
  font-weight: 800;
  cursor: pointer;
}

.team-toolbar {
  display: grid;
  grid-template-columns: 1fr 210px 190px;
  gap: 13px;
  margin-top: 28px;
}

.team-toolbar input,
.team-toolbar select,
.modal-card input,
.modal-card select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9dde5;
  border-radius: 11px;
  outline: 0;
  background: white;
}

.team-toolbar input:focus,
.modal-card input:focus,
.modal-card select:focus {
  border-color: #e60000;
  box-shadow: 0 0 0 4px rgb(230 0 0 / 8%);
}

.team-summary {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  color: #667085;
}

.summary-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e6e8ec;
}

.team-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.user-card {
  padding: 21px;
  border: 1px solid #e6e8ec;
  border-radius: 17px;
  background: white;
}

.user-card.inactive {
  opacity: .72;
  background: #fafafa;
}

.user-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.user-identity {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.user-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #e60000;
  font-weight: 800;
}

.user-identity strong,
.user-identity span {
  display: block;
}

.user-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity span {
  margin-top: 5px;
  color: #737b89;
  font-size: 13px;
}

.status-badge {
  height: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.active {
  color: #08762b;
  background: #def7e6;
}

.status-badge.inactive {
  color: #8a2e2e;
  background: #fee2e2;
}

.user-role {
  display: inline-flex;
  margin-top: 17px;
  padding: 6px 10px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #c40000;
  background: #fff5f5;
  font-size: 12px;
  font-weight: 800;
}

.user-data {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #667085;
  font-size: 14px;
}

.user-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.user-actions button {
  padding: 10px;
  border: 1px solid #dfe3e9;
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.user-actions button.danger {
  color: #c40000;
  border-color: #fecaca;
}

.user-actions button.success {
  color: #08762b;
  border-color: #bbf7d0;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 55px;
  border: 1px dashed #d9dde5;
  border-radius: 16px;
  color: #737b89;
  background: white;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 56%);
}

.modal-card {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 29px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 24px 90px rgb(0 0 0 / 28%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.modal-header h2 {
  margin: 8px 0 0;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  font-size: 25px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 23px;
}

.modal-card label {
  display: block;
  font-weight: 700;
}

.modal-card label input,
.modal-card label select {
  margin-top: 8px;
}

.switch-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
}

.switch-row input {
  width: 22px !important;
  height: 22px;
  margin: 0 !important;
}

.form-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eceef2;
}

.form-section h3 {
  margin-bottom: 13px;
}

.form-section small {
  display: block;
  margin-top: 9px;
  color: #737b89;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 24px;
}

.secondary-button {
  padding: 12px 17px;
  border: 1px solid #d9dde5;
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.primary-button.compact {
  width: auto;
  margin: 0;
  padding-inline: 22px;
}

.password-result-card {
  max-width: 510px;
}

.temporary-password {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid #d9dde5;
  border-radius: 12px;
  background: #f7f8fa;
}

.temporary-password code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.temporary-password button {
  border: 0;
  color: #e60000;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.warning-text {
  margin-top: 16px;
  color: #975a00;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .page-heading,
  .team-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

.seller-dashboard {
  min-height: calc(100vh - 68px);
}

.seller-stats {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(180px, 1fr));
  gap: 17px;
  margin-top: 28px;
}

.seller-stats article {
  padding: 23px;
  border: 1px solid #e6e8ec;
  border-radius: 17px;
  background: white;
}

.seller-stats span,
.seller-stats strong,
.seller-stats small {
  display: block;
}

.seller-stats span {
  min-height: 39px;
  color: #667085;
  line-height: 1.35;
}

.seller-stats strong {
  margin: 9px 0;
  font-size: 28px;
}

.seller-stats small {
  color: #9298a2;
}

.seller-performance,
.seller-profile-card {
  margin-top: 21px;
  padding: 27px;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: white;
}

.performance-header h2,
.seller-profile-card h2 {
  margin: 8px 0;
}

.performance-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.performance-grid > div,
.seller-profile-details > div {
  padding: 17px;
  border-radius: 13px;
  background: #f7f8fa;
}

.performance-grid span,
.performance-grid strong,
.seller-profile-details span,
.seller-profile-details strong {
  display: block;
}

.performance-grid span,
.seller-profile-details span {
  margin-bottom: 8px;
  color: #737b89;
  font-size: 13px;
}

.performance-grid strong {
  font-size: 18px;
}

.target-progress {
  margin-top: 20px;
}

.target-progress-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff3;
}

.target-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e60000;
}

.target-progress small {
  display: block;
  margin-top: 8px;
  color: #737b89;
}

.seller-profile-card {
  display: grid;
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(460px, 1.5fr);
  gap: 25px;
  align-items: center;
}

.seller-profile-card p {
  margin-bottom: 0;
  color: #667085;
}

.seller-profile-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.development-note {
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid #ffe39b;
  border-radius: 12px;
  color: #8a5a00;
  background: #fff8e7;
}

@media (max-width: 1150px) {
  .seller-stats,
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seller-profile-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .seller-stats,
  .performance-grid,
  .seller-profile-details {
    grid-template-columns: 1fr;
  }
}

.leads-view {
  min-height: calc(100vh - 68px);
}

.leads-toolbar {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 13px;
  margin-top: 26px;
}

.leads-toolbar input,
.leads-toolbar select,
.lead-modal input,
.lead-modal select,
.lead-modal textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9dde5;
  border-radius: 11px;
  outline: 0;
  background: white;
}

.leads-toolbar input:focus,
.leads-toolbar select:focus,
.lead-modal input:focus,
.lead-modal select:focus,
.lead-modal textarea:focus {
  border-color: #e60000;
  box-shadow: 0 0 0 4px rgb(230 0 0 / 8%);
}

.leads-table-card {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid #e6e8ec;
  border-radius: 17px;
  background: white;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.leads-table th,
.leads-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: middle;
}

.leads-table th {
  color: #667085;
  background: #fafafa;
  font-size: 13px;
}

.leads-table tr:last-child td {
  border-bottom: 0;
}

.lead-name {
  font-weight: 800;
}

.lead-code {
  display: block;
  margin-top: 4px;
  color: #737b89;
  font-size: 12px;
}

.lead-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #175cd3;
  background: #eff4ff;
  font-size: 12px;
  font-weight: 800;
}

.lead-priority {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 12px;
}

.lead-table-action {
  padding: 8px 11px;
  border: 1px solid #dfe3e9;
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.lead-table-action.danger {
  color: #c40000;
  border-color: #fecaca;
}

.lead-modal {
  width: min(100%, 760px);
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.lead-form-grid label {
  display: block;
  font-weight: 700;
}

.lead-form-grid label input,
.lead-form-grid label select,
.lead-form-grid label textarea {
  margin-top: 8px;
}

.lead-form-grid .full-field {
  grid-column: 1 / -1;
}

.lead-form-grid textarea {
  min-height: 95px;
  resize: vertical;
}

.leads-count {
  margin-top: 15px;
  color: #667085;
}

@media (max-width: 760px) {
  .leads-toolbar,
  .lead-form-grid {
    grid-template-columns: 1fr;
  }

  .lead-form-grid .full-field {
    grid-column: auto;
  }
}
