:root {
  --ink: #171916;
  --cream: #f5f2e9;
  --gold: #c2a46c;
  --gold-light: #e5d3ad;
  --muted: #6c7068;
  --line: #dcded5;
  --paper: #fffef9;
  --green: #345b43;
  --danger: #a33224;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.6 Arial,
    "Noto Sans Arabic",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
select {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8e6b29;
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
header {
  height: 115px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
  background: var(--paper);
}
.wordmark {
  font:
    26px Georgia,
    serif;
  letter-spacing: 0.14em;
}
.wordmark span {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.32em;
  text-align: center;
  margin-top: 9px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
select {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px;
  min-height: 44px;
}
#shell {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 700px;
  padding: 50px 4vw;
  gap: 50px;
}
aside {
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 30px;
  display: flex;
  flex-direction: column;
}
.club-name {
  font:
    16px Georgia,
    serif;
  letter-spacing: 0.1em;
  margin: 4px 0 38px;
}
.club-name span {
  font:
    12px Arial,
    sans-serif;
  letter-spacing: 0;
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: start;
  border: 0;
  background: transparent;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--muted);
  border-inline-start: 2px solid transparent;
  font-size: 14px;
}
nav button[aria-current="page"] {
  background: #eae6dc;
  border-color: #927039;
  color: var(--ink);
}
nav button:hover {
  background: #edeae1;
}
.aside-bottom {
  margin-top: auto;
  padding-top: 60px;
  display: grid;
  gap: 15px;
  font-size: 13px;
}
.aside-bottom button {
  border: 0;
  background: transparent;
  text-align: start;
  padding: 8px 0;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    42px/1.2 Georgia,
    serif;
  font-weight: 400;
  margin-bottom: 12px;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: Arial, sans-serif;
}
h2 {
  font:
    25px/1.3 Georgia,
    serif;
  margin-bottom: 18px;
}
h3 {
  font-size: 16px;
  font-weight: 500;
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.subtext {
  color: var(--muted);
  font-size: 14px;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}
.intro p {
  margin: 0;
}
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 35px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 30px;
  position: relative;
  margin-bottom: 25px;
  border: 1px solid #252b23;
}
.hero .eyebrow {
  color: var(--gold-light);
}
.hero .amount {
  font:
    64px/1 Georgia,
    serif;
  display: block;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero .amount small {
  font:
    14px Arial,
    sans-serif;
  margin-inline-start: 10px;
  letter-spacing: 0;
}
.hero h2 {
  font-size: 20px;
}
.hero .subtext {
  color: #c0c6b9;
}
.hero-side {
  border-inline-start: 1px solid #41483e;
  padding-inline-start: 30px;
  align-self: center;
}
.hero-side strong {
  font:
    30px Georgia,
    serif;
  display: block;
  color: var(--gold-light);
}
.hero-side span {
  font-size: 12px;
  color: #c0c6b9;
}
.button {
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  color: var(--ink);
  padding: 12px 20px;
  min-height: 46px;
  font-size: 14px;
  display: inline-block;
  text-align: center;
}
.button:hover {
  background: #ebddc1;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.hero .button {
  margin-top: 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 38px;
}
.metric {
  padding: 24px;
}
.metric + .metric {
  border-inline-start: 1px solid var(--line);
}
.metric span {
  color: var(--muted);
  font-size: 12px;
  display: block;
}
.metric strong {
  font:
    26px Georgia,
    serif;
  display: block;
  margin-top: 7px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
}
.text-link {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
  background: none;
  border: 0;
  min-height: 44px;
}
.order {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.order-top strong {
  font-size: 15px;
}
.badge {
  display: inline-block;
  background: #e3eadf;
  color: #2e513b;
  padding: 3px 10px;
  font-size: 11px;
}
.badge.pending {
  background: #efe6cf;
  color: #695324;
}
.order-lines {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
}
.order-finance {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.order-finance b {
  font-weight: 400;
  color: var(--ink);
  margin-inline-start: 5px;
}
.order details {
  margin-top: 15px;
  font-size: 13px;
}
summary {
  cursor: pointer;
  min-height: 35px;
}
.breakdown {
  max-width: 400px;
  background: var(--paper);
  padding: 18px;
}
.breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
.breakdown div:last-child {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.empty {
  padding: 45px 20px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  background: var(--paper);
}
.login {
  max-width: 650px;
  margin: 45px auto;
}
.login h1 {
  font-size: 54px;
}
.login .button {
  margin: 18px 0;
}
.login .rules {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.login .rules strong {
  font:
    35px Georgia,
    serif;
  display: block;
}
.notice {
  padding: 10px 5vw;
  background: #eee1c7;
  color: #57411f;
  font-size: 13px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 5vw;
  font-size: 10px;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.ledger-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.ledger-row strong {
  white-space: nowrap;
}
.reward-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 25px 0;
}
.reward-form label {
  display: grid;
  font-size: 13px;
  gap: 6px;
}
.reward-form input {
  padding: 10px;
  border: 1px solid var(--line);
  max-width: 180px;
  min-height: 46px;
}
.info {
  padding: 18px;
  background: #eae7dc;
  font-size: 13px;
  margin: 20px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--paper);
}
.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.product h3 {
  margin: 14px 0;
}
.product a {
  font-size: 13px;
  text-decoration: underline;
}
#toast {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  max-width: 380px;
  background: var(--ink);
  color: white;
  padding: 16px 22px;
  display: none;
  z-index: 9;
}
#toast.show {
  display: block;
}
.error {
  color: var(--danger);
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    height: 90px;
    padding: 15px 22px;
  }
  .wordmark {
    font-size: 20px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions > a {
    display: none;
  }
  #shell {
    display: block;
    padding: 25px 20px;
  }
  aside {
    border: 0;
    padding: 0;
    margin-bottom: 30px;
  }
  .club-name {
    margin: 0 0 20px;
  }
  nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  nav button {
    white-space: nowrap;
    font-size: 13px;
    padding: 10px 14px;
    border-inline-start: 0;
    border-bottom: 2px solid transparent;
  }
  nav button[aria-current="page"] {
    border-bottom-color: #927039;
  }
  .aside-bottom {
    display: none;
  }
  h1 {
    font-size: 32px;
  }
  .intro {
    margin-bottom: 25px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 20px;
  }
  .hero .amount {
    font-size: 55px;
  }
  .hero-side {
    border-inline-start: 0;
    border-top: 1px solid #41483e;
    padding: 20px 0 0;
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .metric + .metric {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .metric strong {
    margin: 0;
    font-size: 23px;
  }
  .order-top {
    gap: 10px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login {
    margin: 20px auto;
  }
  .login h1 {
    font-size: 42px;
  }
  .login .rules {
    gap: 16px;
  }
  footer {
    gap: 20px;
  }
  .order-finance {
    gap: 10px 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.18s,
      color 0.18s;
  }
}
