/* ===========================================================================
   Cigar Lounge — dark luxury, Arabic RTL
   =========================================================================== */

:root {
  --bg:          #0a0908;
  --bg-2:        #100e0c;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --line:        rgba(214, 181, 122, 0.18);
  --line-soft:   rgba(255, 255, 255, 0.08);

  --gold:        #d6b57a;
  --gold-bright: #eed7a9;
  --gold-deep:   #a8813f;

  --text:        #f4efe6;
  --muted:       #a79c8b;
  --muted-dim:   #756c5f;

  --danger:      #e2796b;
  --success:     #6fbf8b;
  --warn:        #d9b45f;

  --radius:      18px;
  --radius-sm:   10px;
  --wrap:        1180px;

  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow:      0 24px 60px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold-bright); }

ul { margin: 0; padding: 0; list-style: none; }

/* Keyboard focus must stay obvious everywhere. */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.7rem 1.2rem;
  background: var(--gold);
  color: #17130c;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #17130c; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  --btn-pad: 0.95rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-pad);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  border-color: transparent;
  color: #17130c;
  box-shadow: 0 10px 30px rgba(168, 129, 63, 0.28);
}
.btn--gold:hover { color: #17130c; box-shadow: 0 16px 40px rgba(168, 129, 63, 0.4); }

.btn--ghost { background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--gold); color: var(--gold-bright); }

.btn--wa {
  background: #1f9d5a;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(31, 157, 90, 0.26);
}
.btn--wa:hover { background: #23b166; color: #fff; box-shadow: 0 16px 40px rgba(31, 157, 90, 0.36); }
.btn--wa svg { width: 20px; height: 20px; flex: 0 0 20px; }

.btn--sm { --btn-pad: 0.62rem 1.3rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold); background: var(--surface-2); }

/* ---------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 0.85rem;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-block: 0.5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }

.brand__mark {
  width: 48px; height: 48px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #ded3c0);
  object-fit: contain;
  object-position: center;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2rem; }

.nav__list { display: flex; align-items: center; gap: 1.75rem; }

.nav__link {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding-block: 0.35rem;
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-current { color: var(--text); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-block: 8rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0a0908 center / cover no-repeat;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__media video.is-ready { opacity: 1; }

/* Video sits on top of the fallback image once it can play. */
.hero__fallback { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 9, 8, 0.97) 0%, rgba(10, 9, 8, 0.55) 45%, rgba(10, 9, 8, 0.7) 100%),
    radial-gradient(circle at 50% 85%, rgba(168, 129, 63, 0.16), transparent 60%);
}

.hero__inner { max-width: 720px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 42px; height: 1px;
  background: currentColor;
  flex: 0 0 42px;
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  /* Arabic descenders (ج / ر) get clipped by background-clip:text at tight line-heights. */
  line-height: 1.45;
  padding-block: 0.12em 0.18em;
  margin-bottom: 0.35rem;
  overflow: visible;
  background: linear-gradient(105deg, #fff 15%, var(--gold-bright) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback if background-clip fails: solid gold still readable */
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 46ch;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-hint {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 1.6rem;
  transform: translateX(50%);
  color: var(--muted-dim);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  animation: bob 2.6s var(--ease) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(50%) translateY(0); opacity: 0.55; }
  50%      { transform: translateX(50%) translateY(-7px); opacity: 1; }
}

/* ---------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }

.section__title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section__lead { color: var(--muted); font-size: 1.03rem; }

/* ---------------------------------------------------------------------------
   Feature cards
   ------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.card {
  position: relative;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background-color 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 46px; height: 46px;
  margin-bottom: 1.3rem;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gold);
  background: rgba(214, 181, 122, 0.07);
}

.card__title { font-size: 1.22rem; margin-bottom: 0.6rem; }
.card__text { color: var(--muted); font-size: 0.96rem; }

/* ---------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.about__figure img { width: 100%; height: 100%; object-fit: cover; }
.about__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.55), transparent 55%);
}

.about__body p { color: var(--muted); }
.about__body .about__closing {
  margin-top: 1.6rem;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 500;
}
.about__actions { margin-top: 2rem; }

/* ---------------------------------------------------------------------------
   Location
   ------------------------------------------------------------------------- */

.map-frame {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe {
  width: 100%;
  height: clamp(320px, 52vw, 480px);
  border: 0;
  filter: grayscale(0.35) contrast(1.06) brightness(0.88);
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
}
.map-meta__coords {
  color: var(--muted-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------------------------------------------------------------------------
   Subscription packages
   ------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  height: 100%;
}

.plan--featured {
  border-color: var(--line);
  background:
    linear-gradient(160deg, rgba(214, 181, 122, 0.09), rgba(255, 255, 255, 0.02) 45%),
    var(--surface);
  box-shadow: var(--shadow);
}
.plan--featured::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-bright), transparent);
}

.plan__badge {
  position: absolute;
  top: -0.85rem;
  inset-inline-start: clamp(1.8rem, 4vw, 2.8rem);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #17130c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plan__name {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.plan--featured .plan__name {
  background: linear-gradient(100deg, #fff, var(--gold-bright) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan__price {
  margin-top: 0.3rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 500;
}
.plan__price--free { color: var(--success); }

.plan__pricing {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(214, 181, 122, 0.07);
  display: grid;
  gap: 0.55rem;
}
.plan__pricing-title {
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.plan__pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-size: 0.92rem;
}
.plan__pricing-row strong {
  color: var(--gold);
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.plan__intro {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.95rem;
}

.plan__perks { margin-top: 1.2rem; display: grid; gap: 0.75rem; }
.plan__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
}
.plan__perks svg {
  width: 17px; height: 17px;
  flex: 0 0 17px;
  margin-top: 0.42rem;
  color: var(--gold);
}

.plan__note {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-dim);
  font-size: 0.86rem;
  line-height: 1.7;
}

.plan__foot { margin-top: auto; padding-top: 1.8rem; }

/* Explains what the WhatsApp button is about to do. */
.plan__heads-up {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(214, 181, 122, 0.07);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.75;
}
.plan__heads-up svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 0.4rem;
  color: var(--gold);
}

.plan__steps {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  counter-reset: step;
}
.plan__steps li {
  display: flex;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}
.plan__steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(7rem, 14vw, 10rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 129, 63, 0.14), transparent 65%),
    var(--bg);
  text-align: center;
}

.form-shell {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.field--full { grid-column: 1 / -1; }

.field { display: grid; gap: 0.5rem; }

.field__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}
.field__req { color: var(--gold); margin-inline-start: 0.2rem; }
.field__hint { color: var(--muted-dim); font-size: 0.8rem; line-height: 1.6; }

.input,
.file-input {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.input::placeholder { color: var(--muted-dim); }
.input:hover { border-color: var(--line); }
.input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(214, 181, 122, 0.14);
}
.input[aria-invalid="true"] { border-color: var(--danger); }

.input--ltr { direction: ltr; text-align: start; }

.file-input { padding: 0.7rem 1.05rem; cursor: pointer; }
.file-input::file-selector-button {
  margin-inline-end: 0.9rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(214, 181, 122, 0.1);
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Radio groups rendered as selectable chips. */
.choices { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.choice input:hover + span { border-color: var(--line); color: var(--text); }
.choice input:checked + span {
  border-color: var(--gold);
  background: rgba(214, 181, 122, 0.14);
  color: var(--gold-bright);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

.field__error {
  color: var(--danger);
  font-size: 0.83rem;
  line-height: 1.6;
}

.alert {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.75;
}
.alert svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 0.35rem; }
.alert--error { border-color: rgba(226, 121, 107, 0.4); background: rgba(226, 121, 107, 0.09); color: #f0b8b0; }
.alert--ok    { border-color: rgba(111, 191, 139, 0.4); background: rgba(111, 191, 139, 0.09); color: #a7dcbc; }
.alert ul { margin: 0.4rem 0 0; padding-inline-start: 1.2rem; list-style: disc; }

.honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot { margin-top: 2rem; display: grid; gap: 1rem; }

/* Success screen after submitting the ELITE BLACK form. */
.thanks { max-width: 620px; margin-inline: auto; text-align: center; }
.thanks__mark {
  width: 72px; height: 72px;
  margin: 0 auto 1.8rem;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(214, 181, 122, 0.08);
}
.thanks__title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0.9rem; }
.thanks__text { color: var(--muted); margin-bottom: 2.2rem; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__brand img {
  width: 48px; height: 48px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #ded3c0);
  object-fit: contain;
  object-position: center;
}
.site-footer__tag { color: var(--muted); font-size: 0.9rem; margin: 0; }

.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer__nav a { color: var(--muted); font-size: 0.9rem; }
.site-footer__nav a:hover { color: var(--gold-bright); }

.site-footer__contact { display: grid; gap: 0.5rem; justify-items: start; }
.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
}
.site-footer__wa svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--success); }
.site-footer__wa span { direction: ltr; unicode-bidi: isolate; }
.site-footer__map { color: var(--muted); font-size: 0.85rem; }

.site-footer__copy {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-dim);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Admin
   ------------------------------------------------------------------------- */

body.admin { background: #08090b; }

.login-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 129, 63, 0.14), transparent 60%),
    #08090b;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(1.8rem, 5vw, 2.8rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.login-card__logo {
  width: 64px; height: 64px;
  margin: 0 auto 1.4rem;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #ded3c0);
  object-fit: contain;
  object-position: center;
}
.login-card__title { text-align: center; font-size: 1.4rem; margin-bottom: 0.4rem; }
.login-card__sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.login-card .field-grid { grid-template-columns: 1fr; }
.login-card__back { display: block; margin-top: 1.6rem; text-align: center; font-size: 0.85rem; color: var(--muted); }

.admin-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(14px);
}
.admin-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.admin-bar__title { display: flex; align-items: center; gap: 0.8rem; font-size: 1.05rem; }
.admin-bar__title img {
  width: 40px; height: 40px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #ded3c0);
  object-fit: contain;
  object-position: center;
}
.admin-bar__actions { display: flex; align-items: center; gap: 0.7rem; }
.admin-bar__user { color: var(--muted); font-size: 0.85rem; }

.admin-main { padding-block: 2.2rem 4rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.stat__num { font-size: 1.8rem; font-weight: 700; line-height: 1.2; color: var(--gold-bright); }
.stat__label { color: var(--muted); font-size: 0.84rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; flex: 1 1 420px; max-width: 720px; align-items: center; }
.search-form .input { flex: 1 1 180px; }
.search-form__paid { flex: 0 0 140px; max-width: 160px; min-width: 120px; }
.toolbar__count { color: var(--muted); font-size: 0.86rem; }

.table-scroll {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}

.members {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.members th,
.members td {
  padding: 0.85rem 0.9rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.members thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #14150f;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.members tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.members tbody tr:last-child td { border-bottom: 0; }

.members__name { font-weight: 600; color: var(--text); }
.members__meta { color: var(--muted-dim); font-size: 0.78rem; }
.members__ltr { direction: ltr; unicode-bidi: isolate; text-align: start; white-space: nowrap; }

.badge {
  display: inline-block;
  padding: 0.24rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge--active  { border-color: rgba(111, 191, 139, 0.45); background: rgba(111, 191, 139, 0.12); color: #9fd8b6; }
.badge--expired { border-color: rgba(226, 121, 107, 0.45); background: rgba(226, 121, 107, 0.12); color: #eeb0a7; }
.badge--unpaid  { border-color: var(--line-soft); background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.badge--pending { border-color: rgba(217, 180, 95, 0.45); background: rgba(217, 180, 95, 0.12); color: #e3ca8e; }
.badge--legacy  { border-color: var(--line-soft); background: transparent; color: var(--muted-dim); font-weight: 500; }

.row-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.row-form .input {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  width: auto;
  min-width: 138px;
  color-scheme: dark;
}
.row-form .btn { --btn-pad: 0.48rem 1.1rem; font-size: 0.8rem; }
.row-form__dates { display: grid; gap: 0.35rem; }
.row-form__dates label { color: var(--muted-dim); font-size: 0.72rem; }
.row-form input[readonly] {
  opacity: 0.75;
  cursor: default;
  border-style: dashed;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.lang-switch__btn {
  padding: 0.35rem 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
  background: rgba(214, 181, 122, 0.18);
  color: var(--gold-bright);
}

body.admin--en {
  font-family: 'Noto Kufi Arabic', 'Segoe UI', system-ui, sans-serif;
}
body.admin--en .members th,
body.admin--en .members td { text-align: left; }


/* Paid / unpaid switch */
.switch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 44px; height: 24px;
  flex: 0 0 44px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.switch input:checked + .switch__track {
  background: rgba(111, 191, 139, 0.25);
  border-color: rgba(111, 191, 139, 0.5);
}
.switch input:checked + .switch__track::after {
  transform: translateX(-20px);
  background: var(--success);
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.switch__text { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.empty-state { padding: 4rem 1.5rem; text-align: center; color: var(--muted); }

.photo-view {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 2rem;
}
.photo-view img {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

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

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
    min-height: 100svh;
    padding: 6rem 1.6rem 3rem;
    background: rgba(10, 9, 8, 0.98);
    backdrop-filter: blur(18px);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-soft); }
  .nav__link { display: block; padding-block: 1.1rem; font-size: 1.1rem; }
  .nav__link::after { display: none; }

  .nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
  .nav__actions .btn { --btn-pad: 0.9rem 1.6rem; font-size: 0.95rem; }
  .nav__actions .icon-btn { width: 100%; border-radius: var(--radius-sm); height: 46px; }
  .nav__actions .icon-btn svg { width: 22px; height: 22px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .field-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 7rem 3.5rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; text-align: start; }
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
