:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-soft: #f8f6f1;
  --line: rgba(18, 36, 52, 0.12);
  --ink: #142434;
  --muted: #607180;
  --navy: #14324a;
  --navy-deep: #0d2233;
  --gold: #d6a246;
  --gold-deep: #b47b1b;
  --success: #20704c;
  --danger: #9f3131;
  --shadow: 0 24px 64px rgba(16, 28, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Tahoma", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(214, 162, 70, 0.12), transparent 18%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 54%, #f0ece4 100%);
}

body[dir="rtl"] {
  font-family: "Tahoma", "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.storefront-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.storefront-hero {
  border-radius: 32px;
  border: 1px solid rgba(20, 50, 74, 0.1);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #355b76 100%);
  color: #fff8ef;
  box-shadow: var(--shadow);
  padding: 24px 28px 32px;
}

.storefront-hero__bar,
.surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.surface-header--compact {
  align-items: center;
}

.storefront-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.storefront-brand__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 10px;
}

.storefront-brand__eyebrow,
.storefront-hero__kicker,
.surface-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.storefront-brand__title,
.surface-header h3 {
  margin: 4px 0 0;
}

.storefront-brand__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.locale-switch {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ef;
  cursor: pointer;
  font-weight: 700;
}

.storefront-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-top: 28px;
}

.storefront-hero__headline {
  margin: 12px 0 14px;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.storefront-hero__subcopy {
  margin: 0;
  max-width: 650px;
  color: rgba(245, 247, 250, 0.82);
  line-height: 1.72;
  font-size: 1.03rem;
}

.storefront-proof {
  display: grid;
  gap: 10px;
  align-content: end;
}

.storefront-proof__item {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.storefront-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.78fr);
  gap: 20px;
  margin-top: 22px;
}

.workspace-column,
.support-column {
  display: grid;
  gap: 20px;
}

.workspace-surface,
.rail-surface {
  background: var(--surface);
  border: 1px solid rgba(20, 50, 74, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(16, 28, 40, 0.06);
}

.workspace-surface {
  padding: 24px;
}

.rail-surface {
  padding: 20px;
}

.surface-header h3 {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.surface-header p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.surface-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.surface-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(20, 50, 74, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.surface-badge--accent {
  background: rgba(214, 162, 70, 0.16);
  color: var(--gold-deep);
  font-weight: 700;
}

.order-form,
.account-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

.form-grid--single-mobile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 15px;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(214, 162, 70, 0.72);
  box-shadow: 0 0 0 4px rgba(214, 162, 70, 0.12);
}

small {
  color: var(--muted);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mode-option {
  position: relative;
}

.mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mode-option span {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(20, 50, 74, 0.12);
  background: var(--surface-soft);
}

.mode-option input:checked + span {
  border-color: rgba(214, 162, 70, 0.48);
  background: #fbf4e6;
  box-shadow: 0 0 0 4px rgba(214, 162, 70, 0.12);
}

.mode-option strong {
  color: var(--ink);
}

.map-workspace {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 50, 74, 0.08);
  background: linear-gradient(180deg, rgba(248, 244, 236, 0.82) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.map-workspace__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-workspace__header h4 {
  margin: 6px 0 0;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.map-workspace__hint {
  margin: 0;
  color: var(--muted);
}

.map-targets,
.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-target,
.secondary-action,
.primary-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}

.map-target,
.secondary-action {
  background: var(--navy);
  color: #fff9ef;
}

.map-target.is-active,
.secondary-action--ghost {
  background: rgba(20, 50, 74, 0.06);
  border-color: rgba(20, 50, 74, 0.12);
  color: var(--navy);
}

.primary-action {
  background: linear-gradient(135deg, #efc778 0%, var(--gold) 100%);
  color: #221503;
}

.order-map {
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 50, 74, 0.08);
}

.schedule-grid {
  align-items: start;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.order-actions__note {
  margin: 0;
  color: var(--muted);
}

.account-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(20, 50, 74, 0.05);
  margin-top: 18px;
}

.account-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.account-tab.is-active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(20, 50, 74, 0.08);
}

.session-panel,
.history-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.session-card,
.history-item,
.address-item {
  border: 1px solid rgba(20, 50, 74, 0.08);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 14px 16px;
}

.session-card__row,
.history-item__row,
.address-item__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.session-card__identity strong,
.history-item strong,
.address-item strong {
  display: block;
}

.session-card__identity span,
.history-item span,
.address-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-result,
.result-panel {
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(20, 50, 74, 0.06);
  color: var(--navy);
}

.inline-result[data-state="error"],
.result-panel[data-state="error"] {
  background: #fff2f2;
  color: var(--danger);
}

.result-reference {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(214, 162, 70, 0.14);
  color: var(--gold-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.result-tile {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(20, 50, 74, 0.08);
  padding: 14px;
}

.result-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.support-phone {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .storefront-main,
  .storefront-hero__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .storefront-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .workspace-surface,
  .rail-surface,
  .storefront-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-grid,
  .mode-switch,
  .result-grid,
  .form-grid--single-mobile {
    grid-template-columns: 1fr;
  }

  .storefront-hero__headline {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .storefront-hero__bar,
  .surface-header,
  .map-workspace__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
