/* ===== زر التجربة في الصفحة الرئيسية (3 لغات حسب lang) ===== */
.l-ar, .l-fr, .l-en { display: none; }
html[lang="ar"] .l-ar, html[lang="fr"] .l-fr, html[lang="en"] .l-en { display: inline; }
[hidden] { display: none !important; }

.trial-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 13px 16px; border-radius: 14px;
  background: linear-gradient(90deg, #3b82f6, #2563eb); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.trial-cta:hover { filter: brightness(1.08); }

/* ===== صفحة التجربة ===== */
.t-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.t-brand { text-align: center; flex: 1; min-width: 0; }
html[dir="rtl"] #t-back i { transform: scaleX(-1); }
.card .seg button.is-on { background: var(--blue, #3b82f6); color: #fff; }

.t-step { padding: 16px; margin-top: 12px; border-radius: 16px; display: block; }
.t-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; }
.t-step p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; opacity: .85; }
.t-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: #ff6b00; color: #fff; font-size: 13px;
}
.t-ok { color: #22c55e; } .t-warn { color: #f59e0b; }

.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  flex: 1; min-width: 130px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; text-decoration: none; color: inherit; font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(148,163,184,.3);
}
.store:hover { border-color: var(--blue, #3b82f6); }

.lbl { display: block; margin: 12px 0 6px; font-size: 13px; opacity: .9; }
.t-input {
  width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; font: inherit; color: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(148,163,184,.3);
}
.t-input:focus { outline: 2px solid var(--blue, #3b82f6); outline-offset: 1px; }

.dev { display: flex; gap: 10px; }
.dev-opt { flex: 1; cursor: pointer; }
.dev-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dev-opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(148,163,184,.3); background: rgba(255,255,255,.05); font-weight: 700; font-size: 14px;
}
.dev-opt input:checked + span { border-color: #ff6b00; background: rgba(255,107,0,.15); }
.dev-opt input:focus-visible + span { outline: 2px solid var(--blue, #3b82f6); }

.t-msg { margin: 12px 0 0 !important; color: #f87171; font-weight: 700; }
#trial-form .btn-primary { margin-top: 14px; width: 100%; }
#panel-creds .btn-primary, #panel-creds .btn-ghost,
#panel-wait .btn-primary, #panel-wait .btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  box-sizing: border-box; margin-top: 12px; text-decoration: none;
}
#w-retry:disabled { opacity: .5; cursor: not-allowed; }

.crow { margin-top: 12px; font-size: 13px; }
.cfield { display: flex; gap: 8px; margin-top: 6px; }
.cfield input {
  flex: 1; min-width: 0; padding: 11px; border-radius: 10px; font: inherit; color: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(148,163,184,.3);
}
.cbtn {
  width: 44px; border-radius: 10px; cursor: pointer; color: inherit;
  background: rgba(255,255,255,.08); border: 1px solid rgba(148,163,184,.3);
}
.cbtn:hover { background: var(--blue, #3b82f6); color: #fff; }
.t-note { font-size: 12px; opacity: .8; min-height: 1em; }
.countdown { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: 2px; margin: 10px 0 14px; color: #f59e0b; }

/* ===== لوحة المدير ===== */
body.adm {
  margin: 0; background: #0a1424; color: #e2e8f0; direction: rtl;
  font-family: Cairo, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px;
}
.adm .a-wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.adm h1 { font-size: 20px; margin: 0; } .adm h2 { font-size: 16px; margin: 0 0 8px; }
.adm .a-muted { color: #8aa0bd; font-size: 12px; }
.adm code { background: #14233a; padding: 1px 6px; border-radius: 6px; }
.a-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.a-top-r { display: flex; align-items: center; gap: 10px; }

.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.a-stat { background: #14233a; border: 1px solid #243b5a; border-radius: 14px; padding: 12px 14px; }
.a-stat small { display: block; color: #8aa0bd; margin-bottom: 4px; }
.a-stat b { font-size: 26px; }
.a-stat.low { border-color: #ef4444; } .a-stat.low b { color: #f87171; }

.a-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.a-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700;
  color: #cbd5e1; background: #14233a; border: 1px solid #243b5a;
}
.a-tabs button.on { background: #ff6b00; border-color: #ff6b00; color: #fff; }

.a-box { background: #14233a; border: 1px solid #243b5a; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.a-scroll { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.a-table th, .a-table td { padding: 9px 10px; text-align: start; border-bottom: 1px solid #1f3350; white-space: nowrap; }
.a-table th { color: #8aa0bd; font-weight: 600; font-size: 12px; }
.a-table td.ltr { direction: ltr; text-align: left; }
.a-table a { color: #60a5fa; text-decoration: none; }
.b-ok { color: #22c55e; } .b-wait { color: #f59e0b; }

.adm textarea, .adm input[type="text"], .adm input[type="url"], .adm input[type="tel"],
.adm input[type="number"], .adm input[type="password"] {
  width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px; font: inherit; color: #e2e8f0;
  background: #0a1424; border: 1px solid #243b5a;
}
.adm textarea { margin: 8px 0; resize: vertical; }
.a-form label { display: block; margin: 12px 0 6px; color: #cbd5e1; }

.a-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; color: #fff; background: #ff6b00; border: 0; margin-top: 8px;
}
.a-btn.ghost { background: transparent; border: 1px solid #243b5a; color: #cbd5e1; margin-top: 0; }
.a-btn:disabled { opacity: .6; cursor: wait; }
.a-icon { background: transparent; border: 0; color: #f87171; cursor: pointer; font-size: 15px; }
.a-msg { margin: 8px 0 0; font-weight: 700; } .a-msg.ok { color: #22c55e; } .a-msg.bad { color: #f87171; }

.login-box { max-width: 360px; margin: 12vh auto 0; padding: 22px; background: #14233a; border: 1px solid #243b5a; border-radius: 16px; }
.login-box h1 { text-align: center; margin-bottom: 14px; }
.login-box label { display: block; margin: 12px 0 6px; color: #cbd5e1; }
.login-box .a-btn { width: 100%; justify-content: center; margin-top: 14px; }