/* بوابة الدفع ON SERVER — مظهر احترافي */
:root {
  --bg0: #070b14;
  --bg1: #0e1525;
  --card: rgba(18, 28, 48, 0.72);
  --stroke: rgba(94, 130, 200, 0.22);
  --text: #e8eefc;
  --muted: #9aa8c7;
  --accent: #38bdf8;
  --accent2: #f59e0b;
  --success: #34d399;
  --danger: #f87171;
  --radius: 18px;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  font-family: "Tajawal", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(900px 500px at 95% 10%, rgba(245, 158, 11, 0.1), transparent),
    linear-gradient(165deg, var(--bg0), var(--bg1) 48%, #05070f);
  color: var(--text);
}

body {
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(15, 25, 45, 0.6);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 1.1rem 0 0.5rem;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(92deg, #fff 10%, #bae6fd 40%, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 960px) {
  .grid-panels {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.panel .hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--stroke);
  background: rgba(8, 12, 22, 0.55);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.tab:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.tab.active {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(245, 158, 11, 0.1));
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 340px;
  overflow: auto;
  padding-inline-start: 2px;
}

.method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 20, 0.5);
  cursor: pointer;
  text-align: start;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.method:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.method.selected {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}

.method .name {
  font-weight: 700;
}

.rate-pill {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.rate-pill strong {
  color: var(--accent2);
  font-weight: 700;
}

.detail-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(6, 10, 18, 0.55);
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.95rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label.field span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(8, 12, 22, 0.75);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.mono {
  font-variant-numeric: tabular-nums;
}

.fx-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.fx {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.fx .lbl {
  font-size: 0.78rem;
  color: var(--muted);
}

.fx .val {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0.2rem;
}

.alert-mini {
  font-size: 0.82rem;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  line-height: 1.5;
}

.upload-zone {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(8, 12, 22, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #071018;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.25);
  width: 100%;
  margin-top: 0.25rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.toast {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: none;
}

.toast.ok {
  display: block;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.toast.err {
  display: block;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.footer-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.spin {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
  display: inline-block;
  vertical-align: -2px;
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}
