:root {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  color: #15223b;
  background: #f3f7fc;
  font-synthesis: none;
  --blue: #2f6df6;
  --muted: #77869f;
  --line: #dce6f4;
  --green: #0c9b7a;
  --pale: #f8faff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #93b7ff;
  outline-offset: 4px;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2f6df615;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
}
h3 {
  font-size: 17px;
  line-height: 1.5;
}
p {
  color: var(--muted);
  text-wrap: pretty;
}
svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--line);
  background: #ffffffeb;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1440px;
  width: 100%;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 22px;
  font-weight: 750;
  color: #162b50;
  white-space: nowrap;
}
.brand img {
  width: 48px;
  height: 48px;
  box-shadow: 0 8px 20px #2f6df620;
  border-radius: 13px;
}
.nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-button,
.lang-button {
  border: 0;
  background: none;
  border-radius: 12px;
  padding: 12px 18px;
  color: #60718c;
  font-weight: 650;
  min-height: 46px;
}
.nav-button:hover {
  background: #f2f6fd;
}
.nav-button.active {
  background: #eaf1ff;
  color: var(--blue);
}
.lang-button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 14px;
  font-weight: 600;
}
.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 40px;
  font-size: 12px;
  color: #60718c;
  white-space: nowrap;
}
.status-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: #a2aec2;
}
.status-dot.available {
  background: #12b79b;
}
.status-dot.unavailable {
  background: #d6a33a;
}
.workspace {
  max-width: 1440px;
  margin: 32px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.guide,
.main-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px #263c5b08;
}
.guide {
  padding: 28px;
  background: #f9fbff;
}
.guide-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eaf2ff;
  border: 1px solid #d3e3ff;
  color: var(--blue);
  flex-shrink: 0;
}
.guide-heading h2 {
  font-size: 20px;
}
.guide-heading p {
  font-size: 12px;
  margin-top: 3px;
}
.steps {
  list-style: none;
  margin: 28px 0 8px;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 32px;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 19px;
  top: 43px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.step-marker {
  height: 40px;
  width: 40px;
  background: #fff;
  border: 1px solid #cedcf0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8aa3;
  font-weight: 700;
}
.steps p {
  font-size: 13px;
  line-height: 1.85;
  margin-top: 7px;
}
.steps h3 {
  font-size: 15px;
  padding-top: 6px;
}
.guide-note {
  margin-top: 28px;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #8997ad;
}
.guide-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.main-panel {
  padding: 32px;
}
.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.intro p {
  font-size: 14px;
  margin-top: 12px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature .icon-box {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
}
.feature:first-child .icon-box {
  background: #eafaf6;
  color: #0aab98;
}
.feature:last-child .icon-box {
  background: #fff8e8;
  color: #e9a217;
}
.feature h3 {
  font-size: 15px;
}
.feature p {
  font-size: 12px;
  margin-top: 2px;
}
.form-step {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-top: 18px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.number {
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-heading p {
  font-size: 13px;
  margin-top: 3px;
}
.field {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #cdd9ec;
  border-radius: 13px;
  color: #1c2e4c;
  min-height: 52px;
  padding: 14px 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field::placeholder {
  color: #97a4b8;
}
.field[readonly] {
  background: #f8faff;
}
textarea.field {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
}
.card-input {
  position: relative;
}
.card-input .field {
  padding-inline-start: 48px;
  padding-inline-end: 110px;
  font-family: Consolas, monospace;
  font-size: 14px;
  height: 60px;
}
.card-input svg {
  position: absolute;
  inset-inline-start: 16px;
  top: 19px;
  color: #8090a9;
  width: 21px;
  height: 21px;
}
.card-input button {
  position: absolute;
  inset-inline-end: 8px;
  top: 8px;
  min-height: 44px;
  padding: 8px 16px;
}
.primary,
.secondary,
.text-button {
  border: 0;
  border-radius: 11px;
  min-height: 46px;
  padding: 11px 20px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px #2f6df61c;
}
.primary:not(:disabled):hover {
  background: #215de1;
  box-shadow: 0 7px 18px #2f6df62d;
}
.primary:not(:disabled):active {
  transform: translateY(1px);
}
.secondary {
  background: #edf3ff;
  color: var(--blue);
}
.secondary:hover {
  background: #e2ecff;
}
.text-button {
  background: transparent;
  color: var(--blue);
  padding: 8px 10px;
}
.helper {
  font-size: 12px;
  color: #8896ac;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.helper svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.locked {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #f3f6fb;
  border: 1px solid #d2dded;
  border-radius: 13px;
}
.locked .icon-box {
  background: #e7ecf4;
  color: #7c8ba3;
  border: 0;
}
.locked p {
  font-size: 12px;
  margin-top: 3px;
}
.locked h3 {
  color: #65728a;
  font-size: 14px;
}
.plan-result,
.notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 14px;
  background: #eafaf2;
  border: 1px solid #c5e7d8;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #18755b;
}
.plan-result .label {
  font-size: 11px;
  display: block;
  color: #5a8c79;
}
.plan-result strong {
  font-size: 14px;
}
.badge {
  font-size: 11px;
  border-radius: 20px;
  padding: 4px 10px;
  background: #e4f5ed;
  color: #118565;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.notice {
  font-size: 13px;
  align-items: flex-start;
}
.notice.warning {
  background: #fff8e9;
  border-color: #efddb8;
  color: #926d24;
}
.notice.error {
  background: #fff1f1;
  border-color: #f4d3d3;
  color: #a34242;
}
.notice.neutral {
  background: #eef4ff;
  border-color: #d6e4ff;
  color: #526e9c;
}
.notice svg {
  width: 19px;
  height: 19px;
  margin-top: 1px;
}
.credential-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 16px 0 7px;
}
.credential-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.account-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 14px;
}
.account-summary span {
  display: block;
  color: #8090a6;
  font-size: 11px;
}
.summary {
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 18px;
  overflow: hidden;
}
.summary-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f7f9fd;
  padding: 16px 20px;
}
.summary-data > div + div {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 20px;
}
.summary-data span {
  display: block;
  font-size: 11px;
  color: #8795ab;
}
.summary-data strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.summary-actions p {
  font-size: 11px;
  max-width: 50%;
  display: flex;
  gap: 7px;
  align-items: center;
}
.summary-actions p svg {
  width: 17px;
  height: 17px;
}
.summary-actions button {
  min-width: 210px;
}
.ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: #66768f;
}
.ack input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  margin-top: 3px;
  flex-shrink: 0;
}
.panel-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 24px 0 0;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1376px;
  margin: 0 auto 24px;
  padding: 0 32px;
  color: #9aa6ba;
  font-size: 11px;
}
.stack {
  display: grid;
  gap: 16px;
}
.mono {
  font-family: Consolas, "Courier New", monospace;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.hidden {
  display: none !important;
}
.view-title {
  margin-bottom: 24px;
}
.view-title p {
  margin-top: 8px;
  font-size: 14px;
}
.lookup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lookup-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.empty {
  text-align: center;
  padding: 36px 20px;
  background: #f8faff;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: #8291aa;
  font-size: 14px;
}
.orders-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.order-card {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.order-card > div {
  min-width: 0;
  flex: 1;
}
.order-card h3 {
  font-size: 14px;
}
.order-card p {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.order-card button {
  font-size: 12px;
  min-height: 42px;
}
.pill {
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  color: #4269a4;
  background: #edf3ff;
  white-space: nowrap;
}
.pill.succeeded {
  color: #137756;
  background: #e5f7ef;
}
.pill.failed,
.pill.rejected,
.pill.cancelled {
  color: #a34242;
  background: #fff0f0;
}
.pill.payment_unknown,
.pill.submission_unknown {
  color: #946b21;
  background: #fff6df;
}
.result-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.result-icon {
  width: 60px;
  height: 60px;
  border-radius: 19px;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.result-icon.success {
  background: #e8f9f0;
  color: #14986f;
}
.result-icon svg {
  width: 30px;
  height: 30px;
}
.result-header p {
  font-size: 13px;
  margin-top: 5px;
}
.progress-track {
  height: 7px;
  border-radius: 8px;
  background: #e7eef9;
  margin: 18px 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  transition: width 0.5s;
  width: 0;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7c8ba1;
}
.result-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
  background: #fbfcff;
}
.result-box h3 {
  font-size: 15px;
}
.key-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8eef7;
  font-size: 12px;
}
.key-row:last-child {
  border-bottom: 0;
}
.key-row > span {
  color: #7e8da3;
}
.key-row code {
  overflow-wrap: anywhere;
  font-size: 12px;
  white-space: pre-wrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.copy-button {
  background: #edf3ff;
  color: #3865ad;
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 11px;
}
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.recovery-note {
  font-size: 12px;
  margin-top: 12px;
}
.delivery {
  background: #f1fbf6;
  border-color: #c8e9d9;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  min-height: 32px;
}
.faq details p {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.9;
}
.subheading {
  font-size: 16px;
  margin: 26px 0 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  color: #fff;
  background: #1d3558;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 8px 30px #0002;
  z-index: 20;
  max-width: 90vw;
}
.boot {
  padding: 80px 24px;
  text-align: center;
  font-size: 24px;
  color: #24416c;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table td,
.admin-table th {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: start;
  vertical-align: top;
}
.table-scroll {
  overflow-x: auto;
}
.admin-login {
  max-width: 440px;
  margin: 24px auto;
}
.admin-login button {
  margin-top: 16px;
  width: 100%;
}
.guide-mobile {
  display: none;
}
.connection {
  margin-top: 14px;
  font-size: 12px;
  color: #946b21;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff60;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contextual instructions stay with the selected credential form. */
.start-notice { display: flex; gap: 12px; padding: 16px; margin-block-end: 18px; border: 1px solid #edd99c; background: #fff9e8; color: #685117; border-radius: 12px; }
.start-notice svg { flex: 0 0 20px; margin-block-start: 3px; }
.start-notice p { margin: 4px 0 0; font-size: 14px; }
.credential-guide { padding: 18px; margin-block-end: 20px; border: 1px solid var(--line); background: var(--pale); border-radius: 12px; min-width: 0; }
.credential-guide h3 { margin: 0 0 12px; font-size: 15px; }
.credential-guide ol { margin: 0; padding-inline-start: 22px; font-size: 14px; color: #43536d; }
.credential-guide li + li { margin-block-start: 9px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.guide-links a { text-decoration: none; text-align: center; font-size: 14px; overflow-wrap: anywhere; }
.credential-guide .helper { color: #52627b; margin-block-end: 0; }
.cookie-help { margin-block-start: 14px; border-block-start: 1px solid var(--line); padding-block-start: 8px; font-size: 14px; color: #43536d; }
.cookie-help summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--blue); font-weight: 600; }
.cookie-help p { margin: 8px 0 0; }
@media (max-width: 560px) { .credential-guide { padding: 14px; } .guide-links a { width: 100%; } }

/* Batch lookup extends the existing theme tokens without page-entry motion. */
.lookup-modes{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}
.lookup-modes .secondary{flex:1;min-width:120px;width:auto;min-height:44px}
.lookup-modes [aria-pressed="true"]{border-color:var(--accent,var(--blue));background:var(--soft,var(--pale));box-shadow:inset 0 0 0 1px var(--accent,var(--blue))}
.batch-input{display:block;width:100%;min-height:176px;max-height:440px;resize:vertical;line-height:1.65;text-align:start;white-space:pre-wrap;overflow-wrap:anywhere}
.batch-summary{margin:22px 0 12px;font-size:14px;color:var(--muted)}
.batch-table-scroll{max-width:100%;max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.batch-table{width:100%;border-collapse:collapse}
.batch-table caption{text-align:start;font-weight:600;padding:14px}
.batch-table th,.batch-table td{text-align:start;vertical-align:top;padding:12px;font-size:13px}
.batch-table td:first-child{min-width:150px;max-width:320px}
.batch-table code{display:block;overflow-wrap:anywhere;word-break:break-all;white-space:normal;font-size:12px}
.batch-table .pill{display:inline-block;white-space:normal;min-width:80px}
.batch-table .pill.failed{color:var(--error,#a52c32)}
.batch-table .pill.not_found,.batch-table .pill.archived{color:var(--muted)}
