@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Tajawal.woff2") format("woff2");
}

@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Tajawal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f5f7ff;
  --panel: #ffffff;
  --panel2: #f3f6ff;
  --text: #0b1220;
  --muted: #51627d;
  --border: #dde6ff;
  --brand: #2563eb;
  --brand2: #38bdf8;
  --good: #16a34a;
  --bad: #dc2626;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow2: 0 12px 40px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(900px 520px at 85% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(900px 520px at 10% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 45%, #f3f6ff 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

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

.primaryBtn,
.secondaryBtn,
.cartBtn,
.ghostBtn,
.qtyBtn,
.input,
.linkBtn {
  outline: none;
}

.primaryBtn:focus-visible,
.secondaryBtn:focus-visible,
.cartBtn:focus-visible,
.ghostBtn:focus-visible,
.qtyBtn:focus-visible,
.input:focus-visible,
.linkBtn:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.55);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand__mark picture {
  display: block;
  width: 44px;
  height: 44px;
}

.brand__markImg {
  width: 44px;
  height: 44px;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__title {
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand__subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghostBtn {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.ghostBtn:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.26);
}

.cartBtn {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.09));
  color: var(--text);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.cartBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.26);
  color: var(--text);
  font-size: 12px;
  padding-inline: 6px;
}

.hero {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 246, 255, 0.75));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__title {
  margin: 0 0 8px;
  font-size: 36px;
  letter-spacing: -0.2px;
}

.hero__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  max-width: 56ch;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

@media (max-width: 620px) {
  .hero__title {
    font-size: 28px;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
  color: rgba(11, 18, 32, 0.85);
  font-weight: 800;
  font-size: 12px;
}

.hero__cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 620px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 12px;
}

.stat__k {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.stat__v {
  margin-top: 4px;
  font-weight: 900;
}

.hero__art {
  display: grid;
  place-items: center;
}

.heroCard {
  width: min(360px, 100%);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 16px;
  box-shadow: var(--shadow);
}

.heroCard__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.heroCard__logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.75), rgba(56, 189, 248, 0.55));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.22);
}

.heroCard__lines {
  flex: 1 1 auto;
}

.heroCard__line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.heroCard__line--sm {
  width: 55%;
  margin-top: 8px;
}

.heroCard__bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 99, 235, 0.12);
  margin-top: 10px;
}

.heroCard__bar--muted {
  background: rgba(255, 255, 255, 0.6);
}

.heroCard__btn {
  height: 44px;
  border-radius: 16px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(56, 189, 248, 0.7));
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 0 26px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.section {
  margin-top: 18px;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 255, 0.75));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow2);
}

.card__title {
  font-weight: 700;
  margin: 0;
}

.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 800;
  color: var(--brand);
}

.primaryBtn {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(56, 189, 248, 0.78));
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.primaryBtn:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, rgba(37, 99, 235, 1), rgba(56, 189, 248, 0.88));
  border-color: rgba(37, 99, 235, 0.35);
}

.primaryBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondaryBtn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.secondaryBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.32);
  background: rgba(37, 99, 235, 0.08);
}

.panel {
  position: fixed;
  inset: 80px 16px 16px 16px;
  margin: auto;
  max-width: 740px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  z-index: 20;
  overflow: auto;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.panel[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.panel--drawer {
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  max-width: none;
  border-radius: 0;
  padding: 16px;
  transform: translateX(18px);
}

.panel--drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.panel--modal {
  max-width: 660px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.panel__title {
  margin: 0;
  font-size: 18px;
}

.linkBtn {
  background: transparent;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
}

.cartItems {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cartItem {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cartItem__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cartItem__name {
  font-weight: 700;
}

.cartItem__price {
  color: var(--muted);
  font-size: 12px;
}

.qtyControls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qtyBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.qtyBtn:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}

.qty {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
}

.cartFooter {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cartTotal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.cartTotal strong {
  color: var(--text);
  font-size: 18px;
}

.bankBox {
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}

.bankBox__title {
  font-weight: 800;
  margin-bottom: 8px;
}

.bankLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(221, 230, 255, 0.9);
}

.bankLine:first-of-type {
  border-top: none;
}

.bankKey {
  color: var(--muted);
}

.bankVal {
  font-weight: 700;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.summary {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

.hint--good {
  color: var(--good);
}

.hint--bad {
  color: var(--bad);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  justify-content: center;
}
