@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --bg: oklch(0.93 0.02 88);
  --ink: oklch(0.28 0.05 276);
  --ink-soft: oklch(0.42 0.03 276);
  --panel: oklch(0.31 0.05 278);
  --gold: oklch(0.74 0.12 82);
  --gold-deep: oklch(0.62 0.11 82);
  --white: oklch(0.98 0.004 90);
  --shadow-soft: 0 12px 26px rgba(35, 31, 60, 0.11);
  --content-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at top, rgba(208, 178, 88, 0.16), transparent 24%),
    var(--bg);
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("Logo%20CAESAR%20ROAD%20White.svg");
  background-size: 112px;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
}

body.lang-ar {
  font-family: "Cairo", sans-serif;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), var(--content-width));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.brand-logo {
  width: 84px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(195, 153, 56, 0.1));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  align-items: center;
}

.brand-text strong {
  font-size: 1.26rem;
  line-height: 1;
}

.brand-text span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.title-box {
  text-align: center;
  padding-top: 2px;
  max-width: 100%;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 6.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
  text-wrap: balance;
}

.page-subtitle {
  margin: 7px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-deep);
  opacity: 0.92;
}

.lang-switch {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.lang-link {
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(58, 50, 89, 0.08);
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  box-shadow: 0 5px 12px rgba(55, 49, 78, 0.05);
  backdrop-filter: blur(3px);
}

.lang-link.active {
  color: var(--white);
  background: linear-gradient(180deg, oklch(0.32 0.05 278), oklch(0.26 0.05 278));
}

.branch-section + .branch-section {
  margin-top: 18px;
}

.branch-toggle {
  width: min(100%, 420px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border-radius: 22px;
  font: inherit;
  font-size: clamp(1.2rem, 5vw, 1.86rem);
  font-weight: 800;
  text-align: start;
  box-shadow: 0 10px 24px rgba(190, 148, 45, 0.16);
  cursor: pointer;
  transition: box-shadow 180ms ease, background 180ms ease;
}

.branch-toggle-title {
  flex: 1;
  text-align: center;
}

.branch-toggle-icon {
  width: 36px;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1;
}

.branch-section.is-open .branch-toggle-icon {
  transform: rotate(45deg);
}

.branch-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 160ms ease-out, opacity 120ms ease-out;
}

.branch-section.is-open .branch-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.branch-panel-inner {
  overflow: hidden;
  padding-top: 0;
}

.branch-section.is-open .branch-panel-inner {
  padding-top: 10px;
}

.payment-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: stretch;
  margin: 16px 0;
  color: var(--white);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(180deg, oklch(0.38 0.04 278), oklch(0.29 0.045 278));
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.payment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.card-left-slot,
.card-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-left-slot {
  padding: 18px 0 18px 12px;
}

.card-side {
  padding: 18px 12px 18px 0;
}

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 8px 22px;
  text-align: center;
}

.emblem {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--gold);
  border: 3px solid rgba(224, 192, 105, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(42, 38, 78, 0.05),
    0 10px 18px rgba(34, 31, 59, 0.12);
}

.emblem-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cash-text {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 700;
  line-height: 1.3;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title-wrap::before,
.card-title-wrap::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.card-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
}

.card-subtitle {
  margin: -2px 0 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  line-height: 1.35;
  flex-wrap: wrap;
}

.detail-row-full {
  text-align: center;
  font-size: 1rem;
}

.detail-label {
  font-weight: 700;
}

.detail-value {
  font-weight: 500;
}

.qr-slot {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(42, 38, 78, 0.12);
}

.qr-slot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 800;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iban-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  flex-wrap: wrap;
}

.iban-label,
.iban-value {
  font-weight: 900;
}

@media (max-width: 800px) {
  body::before {
    display: none;
  }

  .hero-top {
    display: flex;
  }

  .page-title {
    font-size: clamp(1.95rem, 10vw, 2.85rem);
  }

  .page-subtitle {
    font-size: 0.8rem;
  }

  .cash-text {
    font-size: 1rem;
    line-height: 1.25;
  }

  .card-title {
    font-size: 0.96rem;
    white-space: normal;
  }

  .card-subtitle {
    font-size: 0.84rem;
  }

  .detail-row {
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .detail-row-full {
    font-size: 0.78rem;
  }

  .iban-row {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .payment-card {
    grid-template-columns: 1fr;
  }

  .branch-toggle {
    width: min(100%, 240px);
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 1.1rem;
  }

  .card-left-slot {
    padding: 18px 0 0;
  }

  .card-side {
    padding: 0 0 18px;
  }

  .card-body {
    padding: 12px 18px;
  }

  .qr-slot {
    width: 88px;
    height: 88px;
  }
}
