:root {
  --ink: #10231f;
  --ink-soft: #243f38;
  --muted: #5d726b;
  --paper: #f2f5f1;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(16, 35, 31, 0.12);
  --brand: #0b3d36;
  --brand-deep: #072822;
  --gold: #b08d3e;
  --gold-soft: #d4b56a;
  --ok: #1f6b4a;
  --bad: #8f2f2f;
  --warn: #7a5b12;
  --shadow: 0 18px 50px rgba(7, 40, 34, 0.14);
  --radius: 22px;
  --font: "IBM Plex Sans Arabic", "Tahoma", sans-serif;
  --display: "Scheherazade New", "Amiri", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(900px 420px at 100% -5%, rgba(176, 141, 62, 0.18), transparent 55%),
    radial-gradient(700px 380px at 0% 10%, rgba(11, 61, 54, 0.16), transparent 50%),
    linear-gradient(165deg, #e8eee9 0%, #f5f7f4 42%, #e7efe9 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(11, 61, 54, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 54, 0.7) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

.wrap {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  padding: 22px 16px 48px;
}

/* Hero brand */
.hero {
  position: relative;
  padding: 28px 22px 24px;
  margin-bottom: 18px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(7, 40, 34, 0.96), rgba(11, 61, 54, 0.92) 55%, rgba(18, 70, 58, 0.9)),
    radial-gradient(500px 220px at 90% 0%, rgba(212, 181, 106, 0.25), transparent 60%);
  color: #f4f7f5;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.7s ease both;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -20% -40% auto;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 181, 106, 0.18), transparent 70%);
  animation: drift 10s ease-in-out infinite alternate;
}
.hero-top {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  position: relative; z-index: 1;
}
.mark {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--brand-deep);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  animation: pop 0.8s cubic-bezier(.2,1.4,.3,1) both;
  flex: 0 0 auto;
}
.mark svg { display: block; }

.sub-grid { display: grid; gap: 10px; margin-top: 12px; }
.sub-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 14px;
  background: linear-gradient(180deg, #f7faf8, #eef5f1);
  border: 1px solid var(--line);
}
.sub-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 0.85rem; flex: 0 0 auto;
}
.sub-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 14px; padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(176, 141, 62, 0.14), rgba(11, 61, 54, 0.08));
  border: 1px solid rgba(176, 141, 62, 0.35);
}
@media (max-width: 640px) {
  .sub-banner { flex-direction: column; align-items: stretch; }
  .sub-banner button { width: 100%; }
}
.brand-block { flex: 1; min-width: 0; }
.brand-block h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.2);
}
.brand-block .tagline {
  margin: 10px 0 0;
  color: rgba(244, 247, 245, 0.82);
  font-size: 0.98rem;
  max-width: 36ch;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px; position: relative; z-index: 1;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.84rem; color: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #8aa39b;
}
.chip.on .dot {
  background: #5dcf9a;
  box-shadow: 0 0 0 0 rgba(93, 207, 154, 0.7);
  animation: pulse 1.8s infinite;
}
.chip.off .dot { background: #e08a8a; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(16, 35, 31, 0.06);
  padding: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  animation: rise 0.65s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.panel:hover {
  border-color: rgba(11, 61, 54, 0.22);
  box-shadow: 0 14px 34px rgba(16, 35, 31, 0.1);
}
.panel.delay-1 { animation-delay: 0.08s; }
.panel.delay-2 { animation-delay: 0.16s; }
.panel h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: var(--brand);
}
.muted { color: var(--muted); font-size: 0.93rem; }
.tiny { font-size: 0.82rem; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.space-between { justify-content: space-between; }

label {
  display: block; margin: 12px 0 6px;
  font-weight: 600; font-size: 0.94rem; color: var(--ink-soft);
}
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(11, 61, 54, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 61, 54, 0.1);
  transform: translateY(-1px);
}
textarea { min-height: 120px; resize: vertical; }

button, .btn {
  border: 0; border-radius: 14px; padding: 12px 18px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #14564c);
  color: #fff; font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 61, 54, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:active { transform: translateY(0); }
button.secondary, .btn.secondary {
  background: #e7efeb; color: var(--brand);
  box-shadow: none;
}
button.accent {
  background: linear-gradient(135deg, #9a7832, var(--gold));
  color: #1a1608;
}
button.danger { background: var(--bad); box-shadow: none; }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.msg {
  border-radius: 14px; padding: 11px 13px; margin-top: 12px; font-size: 0.93rem;
  animation: rise 0.35s ease both;
}
.msg.err { background: #f7e6e6; color: var(--bad); }
.msg.ok { background: #e6f5ee; color: var(--ok); }
.msg.warn { background: #fff5d9; color: var(--warn); }

.thread { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.bubble {
  border-radius: 18px; padding: 13px 15px; max-width: 100%;
  white-space: pre-wrap; word-break: break-word;
  animation: slideIn 0.35s ease both;
  border: 1px solid var(--line);
}
.bubble.q {
  background: linear-gradient(135deg, #e8f1ee, #f3f8f6);
  border-color: rgba(11, 61, 54, 0.12);
}
.bubble.a {
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 35, 31, 0.05);
}
.bubble .who {
  font-size: 0.78rem; color: var(--muted); margin-bottom: 5px; font-weight: 700;
  letter-spacing: 0.02em;
}

.pay-box {
  background: linear-gradient(180deg, #f7faf8, #eef5f1);
  border: 1px dashed rgba(176, 141, 62, 0.55);
  border-radius: 16px; padding: 14px; margin: 12px 0;
}
.code {
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.05em; color: var(--brand);
  background: #fff; display: inline-block; padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--line); margin: 8px 0;
  box-shadow: 0 4px 12px rgba(16, 35, 31, 0.05);
}
.hidden { display: none !important; }

.contact-chip {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: inherit;
  font: inherit;
}
.contact-chip:hover { background: rgba(255,255,255,0.22); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(7, 40, 34, 0.55);
  backdrop-filter: blur(3px);
}
.modal-card {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  animation: rise 0.25s ease both;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: right; vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.status-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; background: #eee;
}
.status-pill.awaiting_review { background: #fff2cc; }
.status-pill.activated { background: #d9f2e5; }
.status-pill.pending_payment { background: #e8eef0; }
.status-pill.rejected { background: #f6d6d6; }

.footer-note {
  text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 8px;
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 207, 154, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(93, 207, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 207, 154, 0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, -12px, 0); }
}

@media (max-width: 640px) {
  .hero { padding: 22px 16px 18px; border-radius: 22px; }
  .brand-block h1 { font-size: 1.45rem; }
  .hero-top { flex-direction: column; }
  .mark { width: 42px; height: 42px; }
}

.topics{margin:10px 0 0;padding:0 1.2rem 0 0;color:var(--ink-soft)}.topics li{margin:6px 0}

