.khro-shell {
  --khro-primary: #6757e8;
  --khro-primary-strong: #5040cf;
  --khro-accent: #11aa9b;
  --khro-ink: #17142a;
  --khro-muted: #716e82;
  --khro-line: rgba(43, 37, 83, .12);
  --khro-surface: #fff;
  --khro-soft: #f7f7fc;
  --khro-danger: #c83c53;
  --khro-shadow: 0 22px 70px rgba(49, 42, 108, .1);
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 80px;
  color: var(--khro-ink);
  direction: rtl;
  font-family: inherit;
}

:root[data-theme="dark"] .khro-shell {
  --khro-ink: #f4f2ff;
  --khro-muted: #aaa5bf;
  --khro-line: rgba(238, 235, 255, .13);
  --khro-surface: #191724;
  --khro-soft: #211e30;
  --khro-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.khro-shell *, .khro-shell *::before, .khro-shell *::after { box-sizing: border-box; }
.khro-shell a { text-decoration: none; }
.khro-shell h1, .khro-shell h2, .khro-shell h3, .khro-shell p { margin-top: 0; }

.khro-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid var(--khro-line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--khro-surface) 88%, transparent);
  box-shadow: 0 12px 35px rgba(49, 42, 108, .06);
  backdrop-filter: blur(14px);
}
.khro-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 15px;
  border-radius: 15px;
  color: var(--khro-muted);
  font-weight: 700;
  transition: .2s ease;
}
.khro-nav a:hover, .khro-nav a:focus-visible { background: var(--khro-soft); color: var(--khro-primary); }
.khro-nav a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9px; background: rgba(103, 87, 232, .11); color: var(--khro-primary); }

.khro-hero-panel, .khro-list-header {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--khro-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 12%, rgba(17, 170, 155, .16), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(103, 87, 232, .17), transparent 34%),
    var(--khro-surface);
  box-shadow: var(--khro-shadow);
}
.khro-hero-panel { padding: clamp(34px, 6vw, 74px); margin-bottom: 24px; }
.khro-hero-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -65px;
  top: -72px;
  width: 210px;
  height: 210px;
  border: 32px solid rgba(103, 87, 232, .08);
  border-radius: 50%;
}
.khro-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--khro-primary); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.khro-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 9px; background: var(--khro-accent); }
.khro-hero-panel h1, .khro-list-header h1 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 58px); line-height: 1.13; letter-spacing: -.035em; }
.khro-hero-panel p, .khro-list-header p { max-width: 690px; margin-bottom: 0; color: var(--khro-muted); font-size: 17px; line-height: 1.9; }

.khro-form {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3.5vw, 38px);
  border: 1px solid var(--khro-line);
  border-radius: 30px;
  background: var(--khro-surface);
  box-shadow: var(--khro-shadow);
}
.khro-form-section { padding: 4px 0 28px; border-bottom: 1px solid var(--khro-line); }
.khro-form-section:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.khro-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.khro-section-heading > b { display: grid; flex: 0 0 36px; place-items: center; height: 36px; border-radius: 13px; background: linear-gradient(145deg, var(--khro-primary), #8a7cf1); color: white; box-shadow: 0 8px 24px rgba(103, 87, 232, .28); }
.khro-section-heading h2 { margin-bottom: 4px; font-size: 20px; }
.khro-section-heading p { margin: 0; color: var(--khro-muted); font-size: 14px; line-height: 1.7; }
.khro-grid { display: grid; gap: 16px; }
.khro-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.khro-field { display: grid; align-content: start; gap: 8px; margin: 0; color: var(--khro-ink); font-weight: 700; }
.khro-field > span { font-size: 14px; }
.khro-field small { color: var(--khro-muted); font-size: 12px; font-weight: 500; }
.khro-field input:not([type="file"]), .khro-field textarea, .khro-field select {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--khro-line);
  border-radius: 15px;
  outline: none;
  background: var(--khro-soft);
  color: var(--khro-ink);
  font: inherit;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.khro-field textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
.khro-field input[type="file"] { width: 100%; padding: 15px; border: 1px dashed rgba(103, 87, 232, .35); border-radius: 15px; background: rgba(103, 87, 232, .05); color: var(--khro-muted); }
.khro-field input:focus, .khro-field textarea:focus, .khro-field select:focus { border-color: var(--khro-primary); background: var(--khro-surface); box-shadow: 0 0 0 4px rgba(103, 87, 232, .11); }
.khro-field select:disabled { opacity: .62; cursor: not-allowed; }
.khro-budget-fields, .khro-duration { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.khro-budget-fields[hidden], .khro-budget-max[hidden] { display: none !important; }
.khro-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--khro-muted); font-size: 13px; line-height: 1.7; }
.khro-consent input { margin-top: 5px; accent-color: var(--khro-primary); }

.khro-primary-button, .khro-secondary-button, .khro-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.khro-primary-button { background: linear-gradient(135deg, var(--khro-primary), #806ff0); color: #fff; box-shadow: 0 12px 28px rgba(103, 87, 232, .25); }
.khro-secondary-button { border: 1px solid var(--khro-line); background: var(--khro-surface); color: var(--khro-primary); }
.khro-danger-button { background: rgba(200, 60, 83, .1); color: var(--khro-danger); }
.khro-primary-button:hover, .khro-secondary-button:hover, .khro-danger-button:hover { transform: translateY(-2px); }
.khro-primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.khro-text-button { border: 0; padding: 5px; background: none; color: var(--khro-danger); cursor: pointer; font: inherit; font-weight: 700; }

.khro-notice { margin: 0 0 18px; padding: 14px 17px; border-radius: 14px; font-weight: 700; }
.khro-notice-success { border: 1px solid rgba(17, 170, 155, .2); background: rgba(17, 170, 155, .09); color: #08786e; }
.khro-notice-error { border: 1px solid rgba(200, 60, 83, .2); background: rgba(200, 60, 83, .09); color: var(--khro-danger); }

.khro-list-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: clamp(26px, 4vw, 46px); }
.khro-list-header h1 { font-size: clamp(28px, 4vw, 44px); }
.khro-list-header .khro-primary-button { flex: 0 0 auto; }
.khro-request-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.khro-request-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 21px;
  border: 1px solid var(--khro-line);
  border-radius: 24px;
  background: var(--khro-surface);
  box-shadow: 0 15px 45px rgba(49, 42, 108, .07);
  transition: .22s ease;
}
.khro-request-card:hover { transform: translateY(-4px); border-color: rgba(103, 87, 232, .28); box-shadow: var(--khro-shadow); }
.khro-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.khro-status { display: inline-flex; width: fit-content; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: var(--khro-soft); color: var(--khro-muted); font-size: 11px; font-weight: 800; }
.khro-status-open, .khro-offer-accepted { background: rgba(17, 170, 155, .11); color: #078378; }
.khro-status-assigned, .khro-status-in_progress, .khro-status-awaiting_confirmation, .khro-offer-pending { background: rgba(103, 87, 232, .11); color: var(--khro-primary-strong); }
.khro-status-completed { background: rgba(44, 166, 85, .12); color: #248347; }
.khro-status-cancelled, .khro-status-disputed, .khro-offer-rejected, .khro-offer-withdrawn { background: rgba(200, 60, 83, .1); color: var(--khro-danger); }
.khro-id { color: var(--khro-muted); font-size: 12px; font-weight: 800; }
.khro-request-card h3 { margin: 18px 0 9px; font-size: 20px; line-height: 1.45; }
.khro-request-card h3 a { color: var(--khro-ink); }
.khro-card-description { color: var(--khro-muted); font-size: 14px; line-height: 1.75; }
.khro-meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.khro-meta-row span { padding: 5px 9px; border-radius: 9px; background: var(--khro-soft); color: var(--khro-muted); font-size: 11px; font-weight: 700; }
.khro-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--khro-line); font-size: 12px; }
.khro-card-footer > span { color: var(--khro-muted); }
.khro-card-footer a { color: var(--khro-primary); font-weight: 800; }

.khro-empty, .khro-inline-empty {
  padding: 42px 24px;
  border: 1px dashed rgba(103, 87, 232, .3);
  border-radius: 24px;
  background: rgba(103, 87, 232, .045);
  text-align: center;
}
.khro-empty h3 { margin-bottom: 8px; font-size: 22px; }
.khro-empty p { max-width: 580px; margin: 0 auto 18px; color: var(--khro-muted); line-height: 1.8; }
.khro-inline-empty { padding: 22px; color: var(--khro-muted); }

.khro-back { display: inline-flex; margin-bottom: 16px; color: var(--khro-primary); font-weight: 800; }
.khro-detail { overflow: hidden; border: 1px solid var(--khro-line); border-radius: 30px; background: var(--khro-surface); box-shadow: var(--khro-shadow); }
.khro-detail-header { padding: clamp(24px, 4vw, 45px); background: linear-gradient(145deg, rgba(103, 87, 232, .07), rgba(17, 170, 155, .045)); }
.khro-detail-header h1 { margin: 18px 0 13px; font-size: clamp(27px, 4vw, 44px); line-height: 1.28; }
.khro-detail-header > p { margin: 0; color: var(--khro-muted); line-height: 1.9; }
.khro-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--khro-line); border-bottom: 1px solid var(--khro-line); }
.khro-facts > div { display: grid; gap: 5px; padding: 20px 24px; border-inline-end: 1px solid var(--khro-line); border-bottom: 1px solid var(--khro-line); }
.khro-facts > div:nth-child(3n) { border-inline-end: 0; }
.khro-facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.khro-facts small { color: var(--khro-muted); }
.khro-facts strong { font-size: 15px; }
.khro-subsection { padding: clamp(22px, 4vw, 40px); border-bottom: 1px solid var(--khro-line); }
.khro-subsection:last-child { border-bottom: 0; }
.khro-subsection h2 { margin-bottom: 18px; font-size: 22px; }
.khro-subsection-heading { display: flex; align-items: center; justify-content: space-between; }
.khro-subsection-heading span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(103, 87, 232, .1); color: var(--khro-primary); font-weight: 800; }
.khro-files { display: flex; flex-wrap: wrap; gap: 10px; }
.khro-files a { padding: 10px 14px; border: 1px solid var(--khro-line); border-radius: 12px; background: var(--khro-soft); color: var(--khro-ink); font-weight: 700; }
.khro-action-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px clamp(22px, 4vw, 40px); border-bottom: 1px solid var(--khro-line); background: var(--khro-soft); }
.khro-action-bar form { margin: 0; }

.khro-offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.khro-provider-offer { display: grid; gap: 15px; padding: 20px; border: 1px solid var(--khro-line); border-radius: 20px; background: var(--khro-soft); }
.khro-provider-head { display: flex; align-items: center; gap: 12px; }
.khro-provider-avatar { display: grid; flex: 0 0 44px; place-items: center; height: 44px; border-radius: 15px; background: linear-gradient(145deg, var(--khro-primary), var(--khro-accent)); color: #fff; font-weight: 900; }
.khro-provider-head h3 { margin-bottom: 5px; font-size: 16px; }
.khro-provider-offer > p { margin: 0; color: var(--khro-muted); line-height: 1.75; }
.khro-offer-summary { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.khro-offer-summary strong { color: var(--khro-primary); font-size: 25px; }
.khro-offer-summary span { color: var(--khro-muted); font-size: 13px; }
.khro-offer-list { display: grid; gap: 12px; }
.khro-offer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 18px 21px; border: 1px solid var(--khro-line); border-radius: 19px; background: var(--khro-surface); box-shadow: 0 12px 35px rgba(49, 42, 108, .06); }
.khro-offer-row h3 { margin: 7px 0 4px; font-size: 17px; }
.khro-offer-row h3 a { color: var(--khro-ink); }
.khro-offer-row p { margin: 0; color: var(--khro-muted); font-size: 12px; }
.khro-offer-price { display: grid; gap: 3px; text-align: center; }
.khro-offer-price strong { color: var(--khro-primary); font-size: 20px; }
.khro-offer-price small { color: var(--khro-muted); }

.khro-timeline { display: grid; gap: 0; }
.khro-timeline > div { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 12px; min-height: 64px; }
.khro-timeline > div::before { content: ""; position: absolute; right: 6px; top: 14px; bottom: -3px; width: 2px; background: var(--khro-line); }
.khro-timeline > div:last-child::before { display: none; }
.khro-timeline > div > span { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 4px; border: 3px solid var(--khro-surface); border-radius: 50%; background: var(--khro-primary); box-shadow: 0 0 0 2px rgba(103, 87, 232, .2); }
.khro-timeline p { display: grid; gap: 3px; margin: 0; }
.khro-timeline small { color: var(--khro-muted); }

@media (max-width: 920px) {
  .khro-request-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .khro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .khro-facts > div:nth-child(3n) { border-inline-end: 1px solid var(--khro-line); }
  .khro-facts > div:nth-child(2n) { border-inline-end: 0; }
  .khro-facts > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--khro-line); }
  .khro-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 680px) {
  .khro-shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .khro-nav { flex-wrap: nowrap; overflow-x: auto; border-radius: 17px; scrollbar-width: none; }
  .khro-nav::-webkit-scrollbar { display: none; }
  .khro-nav a { flex: 0 0 auto; min-height: 40px; padding: 7px 11px; font-size: 12px; }
  .khro-hero-panel, .khro-list-header, .khro-form, .khro-detail { border-radius: 22px; }
  .khro-hero-panel { padding: 30px 22px; }
  .khro-hero-panel h1, .khro-list-header h1 { font-size: 29px; }
  .khro-grid-2, .khro-request-grid, .khro-offers-grid { grid-template-columns: 1fr; }
  .khro-list-header { align-items: stretch; flex-direction: column; }
  .khro-list-header .khro-primary-button { width: 100%; }
  .khro-request-card { min-height: 260px; }
  .khro-facts { grid-template-columns: 1fr; }
  .khro-facts > div { border-inline-end: 0 !important; border-bottom: 1px solid var(--khro-line) !important; }
  .khro-facts > div:last-child { border-bottom: 0 !important; }
  .khro-offer-row { grid-template-columns: 1fr; gap: 13px; }
  .khro-offer-price { text-align: right; }
  .khro-action-bar .khro-primary-button, .khro-action-bar .khro-danger-button, .khro-action-bar form { width: 100%; }
}

/* Address details */
.khro-field-wide { grid-column: 1 / -1; }
.khro-field-wide textarea { min-height: 96px; }
.khro-address-details {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 87, 232, .16);
  border-radius: 14px;
  background: rgba(103, 87, 232, .055);
  color: var(--khro-ink);
  line-height: 1.8;
}
@media (max-width: 760px) {
  .khro-field-wide { grid-column: auto; }
}
