:root {
  --bg: #f4f1ea;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: rgba(31, 41, 55, 0.12);
  --shadow: 0 24px 60px rgba(48, 39, 24, 0.14);
  --hero-start: #fff8e8;
  --hero-end: #e6f3ef;
  --rialsat-start: #0f766e;
  --rialsat-end: #115e59;
  --uzi-start: #b45309;
  --uzi-end: #92400e;
  --neutral-start: #475569;
  --neutral-end: #334155;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(180deg, #f7f3eb 0%, #edf4ef 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.hero {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  box-shadow: var(--shadow);
}

.hero__eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: #9a3412;
}

.hero h1 {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.05;
  max-width: none;
  white-space: nowrap;
}

.hero__text {
  margin: 10px 0 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.sections {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.section__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e;
}

.section__title,
.subsection__title {
  margin: 0;
}

.section__title {
  font-size: clamp(20px, 2vw, 28px);
}

.subsections {
  display: grid;
  gap: 12px;
}

.subsection {
  padding: 14px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 18px;
  background: var(--panel-strong);
}

.subsection__header {
  margin-bottom: 10px;
}

.subsection__title {
  font-size: 16px;
  line-height: 1.15;
}

.subsection--empty .subsection__header {
  margin-bottom: 0;
}

.subsection__empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 108px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -38px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
}

.action-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.action-card:disabled {
  cursor: wait;
  opacity: 0.72;
}

.action-card__badge,
.action-card__meta,
.action-card__title {
  position: relative;
  z-index: 1;
}

.action-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.action-card__meta {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.84);
}

.theme-rialsat {
  background: linear-gradient(145deg, var(--rialsat-start), var(--rialsat-end));
}

.theme-uzi {
  background: linear-gradient(145deg, var(--uzi-start), var(--uzi-end));
}

.theme-neutral {
  background: linear-gradient(145deg, var(--neutral-start), var(--neutral-end));
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.overlay.is-hidden {
  display: none;
}

.overlay__card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.overlay__card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.overlay__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border: 5px solid rgba(15, 118, 110, 0.14);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero,
  .section,
  .subsection {
    border-radius: 18px;
  }

  .hero,
  .section {
    padding: 14px;
  }

  .subsection {
    padding: 12px;
  }

  .action-card {
    min-height: 98px;
  }
}
