/* فواترنا — shared styles for all pages */
:root {
  --brand: #16493D;
  --brand-light: #1e6152;
  --bg: #f4f6f5;
  --card: #ffffff;
  --text: #1c2422;
  --muted: #6b7573;
  --border: #e2e7e5;
  --amber: #f2b705;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header & nav ---------- */
header.site-header {
  background: var(--brand);
  color: #fff;
  padding: 20px 16px 16px;
  text-align: center;
}
header.site-header h1 { font-size: 26px; font-weight: 800; }
header.site-header h1 a { color: #fff; text-decoration: none; }
header.site-header .tagline { opacity: .85; font-size: 14px; margin-top: 2px; }
nav.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}
nav.site-nav a {
  color: #fff;
  opacity: .85;
  text-decoration: none;
  padding: 2px 4px;
}
nav.site-nav a:hover, nav.site-nav a.active { opacity: 1; text-decoration: underline; }

main { width: 100%; max-width: 620px; margin: 0 auto; padding: 20px 16px 48px; flex: 1; }

/* ---------- cards & forms ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.hidden { display: none !important; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
}
input:focus { outline: 2px solid var(--brand-light); border-color: transparent; }
button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  width: 100%;
  margin-top: 16px;
  transition: background .15s;
}
button:hover { background: var(--brand-light); }
button:disabled { opacity: .6; cursor: wait; }
button.link {
  background: none;
  color: var(--muted);
  font-weight: 600;
  width: auto;
  padding: 4px 8px;
  margin: 0;
  font-size: 13px;
}

/* ---------- banners ---------- */
.banner {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}
.banner.info { background: #e8f1ee; color: var(--brand); }
.banner.error { background: #fdeaea; color: #a12622; }
.banner.warn { background: #fdf6e3; color: #7a5b00; }

/* ---------- landing sections ---------- */
.hero { text-align: center; padding: 8px 0 4px; }
.hero h2 { font-size: 22px; font-weight: 800; color: var(--brand); }
.hero p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.9; }
.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  margin: 26px 0 12px;
  text-align: center;
}
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { text-align: center; padding: 16px 12px; }
.feature .icon { font-size: 26px; }
.feature h3 { font-size: 15px; font-weight: 700; margin-top: 6px; }
.feature p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
@media (max-width: 420px) { .features { grid-template-columns: 1fr; } }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
.pkg { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pkg-info h3 { font-size: 17px; font-weight: 800; display: inline; }
.pkg-info .limit { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pkg-info .expiry { color: var(--muted); font-size: 12px; margin-top: 2px; }
.price { text-align: left; white-space: nowrap; }
.price .amount { font-size: 18px; font-weight: 800; color: var(--brand); }
.price .period { font-size: 12px; color: var(--muted); }
.current-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  margin-inline-start: 8px;
  vertical-align: middle;
}
.card.current { border: 2px solid var(--brand); }
.pkg-sub { margin-top: 12px; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.loader { text-align: center; padding: 40px; color: var(--muted); }

/* ---------- contact ---------- */
.contact-list { list-style: none; font-size: 15px; }
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.contact-list .c-icon { font-size: 18px; }
.contact-list a { color: var(--brand); font-weight: 700; text-decoration: none; direction: ltr; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- policy / document pages ---------- */
main.doc { max-width: 680px; }
.doc h1 { font-size: 24px; font-weight: 800; color: var(--brand); margin: 8px 0 4px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.doc h2 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; color: var(--brand); }
.doc p, .doc li { font-size: 15px; line-height: 2; color: var(--text); }
.doc ul { padding-inline-start: 22px; margin: 6px 0; }
.doc a { color: var(--brand); font-weight: 700; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 26px 16px;
  margin-top: auto;
}
footer.site-footer .inner { max-width: 680px; margin: 0 auto; text-align: center; }
footer.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
footer.site-footer a { color: #fff; opacity: .85; text-decoration: none; }
footer.site-footer a:hover { opacity: 1; text-decoration: underline; }
footer.site-footer .contact { font-size: 13px; opacity: .85; line-height: 2; }
footer.site-footer .contact bdi { direction: ltr; unicode-bidi: isolate; }
footer.site-footer .copy { font-size: 12px; opacity: .6; margin-top: 10px; }
