.khm-panel,
.khm-order-box {
  direction: rtl;
  margin: 0 0 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5ebe7;
  box-shadow: 0 18px 44px rgba(14, 35, 25, 0.07);
}

.khm-panel__head {
  margin-bottom: 22px;
}

.khm-panel__head span,
.khm-note {
  color: #0b6b3a;
  font-weight: 800;
}

.khm-panel__head h2,
.khm-order-box h2,
.khm-packages h2 {
  margin: 6px 0 10px;
  color: #17231d;
}

.khm-panel__head p {
  margin: 0;
  color: #66736c;
}

.khm-panel__head--hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(11, 107, 58, 0.1), rgba(245, 158, 11, 0.12)),
    #fbfdfc;
  border: 1px solid #e5ebe7;
}

.khm-panel__head--hero:after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(11, 107, 58, 0.08);
  border-radius: 50%;
  animation: khm-soft-float 5s ease-in-out infinite;
}

.khm-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.khm-form {
  display: grid;
  gap: 16px;
}

.khm-form label {
  display: grid;
  gap: 8px;
  color: #17231d;
  font-weight: 800;
}

.khm-form input,
.khm-form select,
.khm-form textarea,
.khm-filters input,
.khm-filters select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #dfe8e3;
  background: #f8fbf9;
  color: #17231d;
}

.khm-form textarea {
  min-height: 118px;
}

.khm-file-field {
  align-content: start;
}

.khm-file-field__label {
  color: #17231d;
  font-weight: 800;
}

.khm-file-field__control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px;
  background: #f8fbf9;
  border: 1px solid #dfe8e3;
}

.khm-file-field__control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.khm-file-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  background: #0b6b3a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.khm-file-field__name {
  min-width: 0;
  color: #66736c;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.khm-file-field:focus-within .khm-file-field__control {
  border-color: #0b6b3a;
  box-shadow: 0 0 0 3px rgba(11, 107, 58, 0.12);
}

.khm-file-field:hover .khm-file-field__button {
  background: #064d2a;
}

.khm-account-avatar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(11, 107, 58, 0.08), rgba(245, 158, 11, 0.1));
  border: 1px solid #dfe8e3;
}

.khm-account-avatar__preview {
  width: 104px;
  height: 104px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dfe8e3;
  box-shadow: 0 16px 32px rgba(14, 35, 25, 0.08);
}

.khm-account-avatar__preview img,
.khm-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khm-account-avatar__body {
  display: grid;
  gap: 10px;
}

.khm-account-avatar__body h3 {
  margin: 0;
  color: #17231d;
  font-size: 24px;
}

.khm-account-avatar__body p {
  margin: 0;
  color: #66736c;
  font-weight: 700;
}

.khm-account-avatar__remove {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #17231d;
  font-weight: 800;
}

.khm-form--compact {
  margin-top: 12px;
}

.khm-form--compact textarea {
  min-height: 88px;
}

.khm-form__grid,
.khm-wallet,
.khm-package-grid,
.khm-mini-products,
.khm-admin-stats,
.khm-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.khm-form__grid--packages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.khm-request-form {
  margin: 0 0 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5ebe7;
  box-shadow: 0 16px 38px rgba(14, 35, 25, 0.06);
}

.khm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  background: #0b6b3a;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.khm-button:hover {
  background: #064d2a;
  color: #fff;
}

.khm-button--muted {
  background: #edf5f0;
  color: #064d2a;
}

.khm-button--muted:hover {
  background: #dbece3;
  color: #064d2a;
}

.khm-service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.khm-service-strip span {
  padding: 7px 10px;
  background: #eaf7ef;
  color: #064d2a;
  font-weight: 800;
}

.khm-seller-mini {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 14px;
  background: #f8fbf9;
  border: 1px solid #e5ebe7;
}

.khm-report-box {
  margin: 12px 0;
  padding: 14px;
  background: #fff8f0;
  border: 1px solid #f1dfc9;
}

.khm-inquiry-box,
.khm-withdrawal-box {
  margin: 16px 0;
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid #e5ebe7;
}

.khm-report-box summary,
.khm-inquiry-box summary {
  color: #7a4216;
  font-weight: 900;
  cursor: pointer;
}

.khm-inquiry-box summary {
  color: #064d2a;
}

.khm-packages {
  direction: rtl;
  clear: both;
  margin: 32px 0;
}

.khm-service-gallery {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.khm-service-gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid #e5ebe7;
}

.khm-service-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.khm-service-gallery a:hover img {
  transform: scale(1.04);
}

.khm-package {
  padding: 18px;
  background: #fff;
  border: 1px solid #e5ebe7;
}

.khm-package h3 {
  margin: 0 0 8px;
}

.khm-package strong {
  color: #0b6b3a;
  font-size: 22px;
}

.khm-package ul {
  margin: 12px 0 0;
  padding: 0 18px 0 0;
}

.khm-requirements {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.khm-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.khm-timeline li {
  padding: 12px;
  background: #f3f5f4;
  color: #66736c;
  text-align: center;
  font-weight: 800;
}

.khm-timeline li.is-done {
  background: #0b6b3a;
  color: #fff;
}

.khm-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.khm-chat-stack,
.khm-chat-inbox,
.khm-notifications {
  display: grid;
  gap: 16px;
}

.khm-chat-box {
  padding: 18px;
  background: #fbfdfc;
  border: 1px solid #dfe8e3;
}

.khm-chat-box__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ebe7;
}

.khm-chat-box__head span,
.khm-chat-inbox span,
.khm-chat-inbox small,
.khm-message small {
  color: #66736c;
}

.khm-chat-box__head h3 {
  margin: 4px 0 0;
  color: #17231d;
}

.khm-chat-inbox a {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5ebe7;
  color: #17231d;
  text-decoration: none;
}

.khm-chat-inbox a:hover {
  border-color: #0b6b3a;
}

.khm-notifications a {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5ebe7;
  color: #17231d;
  text-decoration: none;
}

.khm-notifications a.is-unread {
  border-color: #0b6b3a;
  background: #f0faf4;
}

.khm-notifications span,
.khm-notifications small {
  color: #66736c;
}

.khm-thread {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.khm-message {
  max-width: 76%;
  padding: 12px 14px;
  background: #f2f8f5;
}

.khm-message.is-mine {
  margin-right: auto;
  background: #0b6b3a;
  color: #fff;
}

.khm-message p {
  margin: 5px 0 0;
}

.khm-message small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}

.khm-message__file {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.66);
  color: #064d2a;
  font-weight: 800;
  text-decoration: none;
}

.khm-message.is-mine small {
  color: rgba(255, 255, 255, 0.78);
}

.khm-message.is-mine .khm-message__file {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.khm-table {
  display: grid;
  gap: 10px;
}

.khm-table a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5ebe7;
  color: #17231d;
  text-decoration: none;
}

.khm-table--compact a {
  grid-template-columns: 1fr auto;
}

.khm-wallet article {
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid #e5ebe7;
}

.khm-wallet span {
  display: block;
  color: #66736c;
}

.khm-wallet strong {
  display: block;
  margin-top: 6px;
  color: #0b6b3a;
  font-size: 24px;
}

.khm-dashboard-stats,
.khm-profile-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.khm-dashboard-stats article,
.khm-profile-stats article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: #f8fbf9;
  border: 1px solid #e5ebe7;
  box-shadow: 0 12px 30px rgba(14, 35, 25, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.khm-dashboard-stats article:before,
.khm-profile-stats article:before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #0b6b3a, #f59e0b);
}

.khm-dashboard-stats article:hover,
.khm-profile-stats article:hover,
.khm-request-card:hover,
.khm-offer:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 107, 58, 0.28);
  box-shadow: 0 22px 48px rgba(14, 35, 25, 0.1);
}

.khm-dashboard-stats span,
.khm-profile-stats span {
  display: block;
  color: #66736c;
  font-weight: 800;
}

.khm-dashboard-stats strong,
.khm-profile-stats strong {
  display: block;
  margin-top: 8px;
  color: #0b6b3a;
  font-size: 24px;
}

.khm-dashboard-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.khm-dashboard-columns section {
  padding: 20px;
  background: #fff;
  border: 1px solid #e5ebe7;
}

.khm-dashboard-columns h3 {
  margin: 0 0 14px;
  color: #17231d;
}

.khm-profile__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.khm-profile__head img {
  border-radius: 50%;
}

.khm-portfolio-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.khm-portfolio-strip span {
  padding: 8px 12px;
  background: #fff7e8;
  color: #7a4216;
  font-weight: 900;
}

.khm-request-list,
.khm-offer-list {
  display: grid;
  gap: 14px;
}

.khm-request-card,
.khm-offer {
  padding: 18px;
  background: #fff;
  border: 1px solid #e5ebe7;
  box-shadow: 0 12px 30px rgba(14, 35, 25, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.khm-request-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.khm-request-card__meta span,
.khm-request-card__meta small,
.khm-request-card > small,
.khm-offer span,
.khm-offer small {
  color: #66736c;
  font-weight: 800;
}

.khm-request-card__meta strong {
  color: #0b6b3a;
  font-size: 18px;
}

.khm-request-card h4 {
  margin: 0 0 8px;
  color: #17231d;
  font-size: 20px;
}

.khm-request-card p,
.khm-offer p {
  color: #66736c;
  line-height: 1.8;
}

.khm-offer-form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5ebe7;
}

.khm-offer-form summary {
  color: #0b6b3a;
  font-weight: 900;
  cursor: pointer;
}

.khm-offer--accepted {
  border-color: #0b6b3a;
  background: #f0faf4;
}

.khm-seller-dashboard,
.khm-private-requests,
.khm-profile {
  animation: khm-panel-in 0.35s ease both;
}

.khm-mini-products a {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5ebe7;
  color: #17231d;
  text-decoration: none;
}

.khm-mini-products img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.khm-filters {
  direction: rtl;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  margin: 0 0 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5ebe7;
}

.khm-help-center {
  direction: rtl;
  margin: 28px 0;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5ebe7;
}

.khm-help-grid article,
.khm-admin-stats article {
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid #e5ebe7;
}

.khm-help-grid h3 {
  margin: 0 0 8px;
  color: #17231d;
}

.khm-help-grid p {
  margin: 0;
  color: #66736c;
}

.khm-service-faq,
.khm-smart-similar {
  direction: rtl;
  clear: both;
  margin: 30px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5ebe7;
}

.khm-service-faq h2,
.khm-smart-similar h2 {
  margin-top: 0;
  color: #17231d;
}

.khm-service-faq details {
  padding: 14px 0;
  border-top: 1px solid #e5ebe7;
}

.khm-service-faq summary {
  cursor: pointer;
  font-weight: 900;
  color: #17231d;
}

.khm-service-faq p {
  margin: 10px 0 0;
  color: #66736c;
}

.khm-admin-wrap {
  text-align: right;
}

.khm-admin-stats {
  margin: 18px 0;
}

.khm-admin-stats span {
  display: block;
  color: #66736c;
}

.khm-admin-stats strong {
  display: block;
  margin-top: 8px;
  color: #0b6b3a;
  font-size: 30px;
}

.khm-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes khm-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes khm-soft-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .khm-form__grid,
  .khm-form__grid--packages,
  .khm-wallet,
  .khm-dashboard-stats,
  .khm-profile-stats,
  .khm-dashboard-columns,
  .khm-package-grid,
  .khm-mini-products,
  .khm-admin-stats,
  .khm-help-grid,
  .khm-service-gallery,
  .khm-filters,
  .khm-timeline {
    grid-template-columns: 1fr;
  }

  .khm-message {
    max-width: 100%;
  }

  .khm-chat-box__head {
    display: grid;
  }

  .khm-table a {
    grid-template-columns: 1fr;
  }
}
