:root {
  --bg: #f4f6f8; --card: #fff; --text: #1d2433; --muted: #6b7385; --line: #e3e7ee;
  --primary: #0f766e; --primary-2: #0d5f59; --primary-soft: #e0f2ef;
  --ok: #15803d; --ok-soft: #e7f6ec; --warn: #b45309; --warn-soft: #fdf1e1;
  --bad: #b91c1c; --bad-soft: #fdeaea; --info: #1d4ed8; --info-soft: #e8efff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0; }
h3 { font-size: 15px; margin: 0 0 10px; }

/* ---------- الدخول ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 12px; }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 600; }
.brand-mark.sm { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }

/* ---------- التخطيط ---------- */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #10201f; color: #dbe7e5; padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; padding: 0 6px; }
nav { display: grid; gap: 2px; }
nav a { color: #b9cbc8; text-decoration: none; padding: 10px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
nav a:hover { background: #1b3331; color: #fff; }
nav a.active { background: var(--primary); color: #fff; }
.ico { width: 18px; text-align: center; opacity: .9; }
.side-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px; font-size: 12px; }
.side-foot .muted { color: #8fa5a2; }
.main { padding: 24px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- عناصر ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.grid { display: grid; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .num { font-size: 28px; font-weight: 600; margin-top: 4px; }
.stat.ok .num { color: var(--ok); } .stat.warn .num { color: var(--warn); } .stat.bad .num { color: var(--bad); } .stat.info .num { color: var(--info); }

.btn { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c5ccd8; background: #fafbfc; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: #2c4643; color: #cfe0dd; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; padding: 11px; }
.btn:disabled { opacity: .6; cursor: wait; }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters label { min-width: 150px; }
.error { color: var(--bad); font-size: 13px; min-height: 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); cursor: pointer; }
.checks input { width: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f8fafb; color: var(--muted); font-weight: 500; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
td.actions { display: flex; gap: 6px; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.gray { background: #eef0f3; color: var(--muted); }

.tabs { display: inline-flex; background: #e9edf1; border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; font: inherit; padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.tabs button.active { background: #fff; color: var(--text); }

/* ---------- النوافذ ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); display: grid; place-items: center; padding: 16px; z-index: 2000; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-start; margin-top: 16px; }
.map { height: 300px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.map-big { height: 420px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: #1d2433; color: #fff; padding: 10px 18px; border-radius: 10px; transition: transform .25s; z-index: 3000; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }

.nav-badge { margin-inline-start: auto; background: #f59e0b; color: #1d2433; border-radius: 20px; font-size: 11px; padding: 0 7px; min-width: 20px; text-align: center; }
.sub-banner { background: var(--warn-soft); color: var(--warn); border: 1px solid #f3d3a6; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 500; }
.sub-banner.bad { background: var(--bad-soft); color: var(--bad); border-color: #f2c2c2; }
.money { font-variant-numeric: tabular-nums; }
.neg { color: var(--bad); } .pos { color: var(--ok); }
.net { font-weight: 600; color: var(--primary-2); }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv-list dt { color: var(--muted); } .kv-list dd { margin: 0; font-weight: 500; }
.slip-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.section-title { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.meter { height: 6px; background: #e9edf1; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; background: var(--primary); }

/* ---------- التثبيت والشريط العلوي (يظهر على الجوال فقط) ---------- */
:root { --side-bg: #10201f; --side-hover: #1b3331; }
.sidebar { background: var(--side-bg); }
nav a:hover { background: var(--side-hover); }
.topbar, .scrim { display: none; }
.install-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; justify-content: center; }
.install-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
html.is-standalone .install-btn, html.is-standalone .topbar-install { display: none !important; }
.sidebar nav { overflow-y: auto; min-height: 0; }
/* شريط عنوان نافذة التطبيق المثبّت على الكمبيوتر */
@media (display-mode: window-controls-overlay) {
  .sidebar { padding-top: max(18px, env(titlebar-area-height, 0px)); }
  .main { padding-top: max(24px, calc(env(titlebar-area-height, 0px) + 8px)); }
}

/* ---------- تابلت ---------- */
@media (max-width: 1100px) and (min-width: 861px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .main { padding: 20px 18px; }
  th, td { padding: 9px 10px; }
}

/* ---------- جوال ---------- */
@media (max-width: 860px) {
  body { font-size: 14px; -webkit-text-size-adjust: 100%; }
  .layout { display: block; min-height: 100vh; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 900;
    background: var(--side-bg); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    padding-right: calc(12px + env(safe-area-inset-right)); padding-left: calc(12px + env(safe-area-inset-left));
  }
  .topbar-title { flex: 1; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-install { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
  .menu-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-content: center; gap: 4px; cursor: pointer; padding: 0; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
  /* القائمة الجانبية تصبح درجاً منزلقاً من اليمين */
  .sidebar {
    position: fixed; top: 0; bottom: 0; right: 0; width: min(290px, 84vw); height: auto; z-index: 1000;
    transform: translateX(105%); transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0,0,0,.25);
    padding: calc(18px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));
    flex-direction: column; flex-wrap: nowrap; align-items: stretch;
  }
  body.menu-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10,15,20,.45); z-index: 950; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  nav { display: grid; width: auto; order: 0; overflow: visible; }
  nav a { padding: 12px; font-size: 15px; }
  .side-foot { margin: auto 0 0; }

  .main { padding: 14px 12px calc(24px + env(safe-area-inset-bottom)); padding-right: calc(12px + env(safe-area-inset-right)); padding-left: calc(12px + env(safe-area-inset-left)); }
  .sub-banner { font-size: 13px; }
  h1 { font-size: 19px; }
  .page-head { align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .page-head > div:first-child { width: 100%; }
  .page-head > div:last-child:not(:first-child) { width: 100%; }
  .page-head > .btn, .page-head > div > .btn { flex: 1; justify-content: center; }
  .page-head input { max-width: none !important; flex: 1 1 100%; }
  .page-head .tabs { width: 100%; overflow-x: auto; }
  .tabs button { white-space: nowrap; flex: 1; }

  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filters label { min-width: 0 !important; }
  .filters > .btn, .filters > input, .filters > .tabs, .filters > .chk-inline { grid-column: 1 / -1; max-width: none !important; justify-content: center; }
  .filters .tabs { overflow-x: auto; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .num { font-size: 22px !important; }

  /* إدخال 16px يمنع تكبير الشاشة تلقائياً على الآيفون */
  input, select, textarea { font-size: 16px; padding: 10px; }

  /* الجداول: تمرير أفقي سلس مع تثبيت عمود الاسم */
  .table-wrap { -webkit-overflow-scrolling: touch; border-radius: 10px; }
  th, td { padding: 9px 10px; font-size: 13px; }
  th:first-child, td:first-child { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -1px 0 0 var(--line); }
  th:first-child { background: #f8fafb; }
  td .muted { font-size: 12px; }
  td.actions { gap: 4px; }

  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .map-big { height: 300px; }

  /* النوافذ تصبح لوحة منبثقة من أسفل الشاشة */
  .modal { place-items: end stretch; padding: 0; }
  .modal-box { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); animation: sheet .22s ease; }
  .modal-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); background: #fff; padding: 10px 0 4px; margin-bottom: 0; }
  .modal-foot .btn { flex: 1; justify-content: center; padding: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > span:empty { display: none; }
  .kv-list { font-size: 13px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }

  .login { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .login-card { padding: 22px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (hover: none) { .btn { min-height: 38px; } .btn.sm { min-height: 32px; } }
.toast { visibility: hidden; opacity: 0; transition: transform .25s, opacity .25s, visibility .25s; }
.toast.show { visibility: visible; opacity: 1; }
@media (max-width: 860px) and (min-width: 600px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- الاشتراك والدفع ---------- */
.sub-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub-banner.trial { background: var(--info-soft); color: var(--info); border-color: #c9d8fb; }
.plan-pick { display: grid; gap: 8px; }
.plan-opt { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.plan-opt input { grid-row: span 2; width: 18px; height: 18px; accent-color: var(--primary); }
.plan-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.plan-opt.disabled { opacity: .5; cursor: not-allowed; }
.po-name { font-weight: 600; }
.po-meta { grid-column: 2; color: var(--muted); font-size: 13px; }
.po-price { grid-row: 1 / span 2; grid-column: 3; font-size: 17px; color: var(--primary-2); white-space: nowrap; }
.po-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.pay-steps { margin-top: 14px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pay-steps ol { margin: 6px 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.wa-btn { background: #1faa59 !important; border-color: #1faa59 !important; }
@media (max-width: 600px) { .plan-opt { grid-template-columns: auto 1fr; } .po-price { grid-row: auto; grid-column: 2; } }

.limit-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.limit-line .meter { flex: 1; min-width: 120px; max-width: 260px; }

/* ================= صفحة الدخول ================= */
.auth { --deep: #0b3b37; --deep2: #072a27; --mint: #5eead4; --amber: #f59e0b; --ease: cubic-bezier(.22,1,.36,1);
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: #f7f5f0; }
.auth svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.auth-brand { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 110%, rgba(94,234,212,.22), transparent 50%), linear-gradient(160deg, var(--deep), var(--deep2)); color: #fff;
  padding: clamp(28px, 4vw, 56px); display: grid; grid-template-rows: auto 1fr auto auto; gap: 28px; }
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); pointer-events: none; }
.auth-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(245,158,11,.18); filter: blur(80px); inset-inline-start: -120px; top: -140px; animation: authFloat 12s var(--ease) infinite alternate; pointer-events: none; }
@keyframes authFloat { to { transform: translate(60px, 40px) scale(1.15); } }
.auth-brand > :not(.auth-grid):not(.auth-glow) { position: relative; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 22px 'Readex Pro', sans-serif; }
.auth-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--deep2); display: grid; place-items: center; font-size: 21px; }
.auth-hero { align-self: center; max-width: 520px; }
.auth-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.auth-pill i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: authPing 2s infinite; }
@keyframes authPing { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.auth-hero h2 { font: 700 clamp(30px, 3.4vw, 46px)/1.25 'Readex Pro', sans-serif; margin: 18px 0 26px; }
.auth-hero h2 em { font-style: normal; color: var(--mint); }
.auth-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-feats li { display: flex; gap: 14px; align-items: flex-start; opacity: 0; transform: translateY(14px); animation: authIn .7s var(--ease) forwards; }
.auth-feats li:nth-child(2) { animation-delay: .08s; } .auth-feats li:nth-child(3) { animation-delay: .16s; } .auth-feats li:nth-child(4) { animation-delay: .24s; }
@keyframes authIn { to { opacity: 1; transform: none; } }
.auth-feats li > span { width: 42px; height: 42px; border-radius: 12px; background: rgba(94,234,212,.12); color: var(--mint); display: grid; place-items: center; flex: none; }
.auth-feats b { display: block; font-size: 15px; }
.auth-feats small { color: rgba(255,255,255,.65); font-size: 13px; }
.auth-card-demo { justify-self: end; width: 250px; background: rgba(255,255,255,.96); color: #0d1f1d; border-radius: 18px; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transform: rotate(-3deg); animation: authBob 6s var(--ease) infinite alternate; }
@keyframes authBob { to { transform: rotate(-1deg) translateY(-10px); } }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.demo-live { font-size: 11px; color: #15803d; background: #dcfce7; padding: 1px 8px; border-radius: 999px; }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin-bottom: 10px; }
.demo-stats div { background: #e7f6ec; border-radius: 10px; padding: 6px 0; }
.demo-stats div.w { background: #fdf1e1; } .demo-stats div.r { background: #fdeaea; }
.demo-stats b { display: block; font: 700 20px/1.2 'Readex Pro', sans-serif; color: #15803d; }
.demo-stats .w b { color: #b45309; } .demo-stats .r b { color: #b91c1c; }
.demo-stats small { font-size: 11px; color: #5d6b69; }
.demo-map { height: 90px; border-radius: 12px; background: #e3ece8; position: relative; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.9) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.9) 2px, transparent 2px); background-size: 30px 30px; }
.demo-map .fence, .demo-map .radar { position: absolute; width: 70px; height: 70px; border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; }
.demo-map .fence { background: rgba(15,118,110,.15); border: 2px dashed rgba(15,118,110,.5); }
.demo-map .radar { border: 2px solid #0f766e; animation: authRadar 2.4s var(--ease) infinite; }
@keyframes authRadar { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.demo-map .dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #2563eb; border: 2px solid #fff; }
.d1 { left: 46%; top: 40%; } .d2 { left: 55%; top: 56%; background: #15803d !important; } .d3 { left: 18%; top: 22%; background: #b91c1c !important; }
.auth-foot { font-size: 13px; color: rgba(255,255,255,.6); }
.auth-foot a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.4); }

.auth-side { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) 20px; }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 16px; animation: authIn .6s var(--ease) both; opacity: 0; transform: translateY(14px); }
.auth-form h1 { font: 700 30px/1.3 'Readex Pro', sans-serif; margin: 0; }
.auth-form > .muted { margin: -8px 0 6px; font-size: 15px; }
.auth-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field { position: relative; display: flex; align-items: center; }
.field > svg { position: absolute; inset-inline-start: 14px; color: #8a9593; pointer-events: none; width: 19px; height: 19px; }
.field input { width: 100%; height: 52px; border: 1.5px solid #e4e1d8; border-radius: 14px; background: #fff; font: 500 16px 'IBM Plex Sans Arabic', system-ui, sans-serif; padding-inline: 44px; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #b3bbb9; }
.field input:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 4px rgba(15,118,110,.14); }
.field:focus-within > svg { color: #0f766e; }
.eye { position: absolute; inset-inline-end: 8px; width: 36px; height: 36px; border: 0; background: none; color: #8a9593; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.eye:hover { background: #f1f4f3; color: #0d1f1d; }
.auth-submit { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 600; justify-content: center; background: var(--deep) !important; border-color: var(--deep) !important; box-shadow: 0 12px 26px -12px rgba(11,59,55,.7); transition: transform .25s var(--ease), box-shadow .25s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(11,59,55,.8); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: #e4e1d8; }
.auth-trial { height: 48px; border-radius: 14px; justify-content: center; font-weight: 600; color: #0f766e; border-color: #bfe3dc; background: #effaf7; }
.auth-trial:hover { border-color: #0f766e; }
.auth-links { display: flex; justify-content: center; gap: 18px; font-size: 13px; margin-top: 4px; }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: #0d1f1d; }
.auth .error:empty { display: none; }

@media (max-width: 1100px), (max-height: 860px) { .auth-card-demo { display: none; } }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { grid-template-rows: auto; gap: 16px; padding: 22px 20px 26px; border-radius: 0 0 26px 26px; }
  .auth-hero h2 { font-size: 26px; margin: 12px 0 14px; }
  .auth-feats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .auth-feats li { gap: 8px; }
  .auth-feats li > span { width: 34px; height: 34px; border-radius: 10px; }
  .auth-feats small { display: none; }
  .auth-feats b { font-size: 13px; }
  .auth-foot { display: none; }
  .auth-side { place-items: start center; padding-top: 28px; }
}
@media (max-width: 420px) { .auth-pill { display: none; } .auth-hero h2 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { .auth *, .auth *::before { animation: none !important; } .auth-feats li, .auth-form { opacity: 1; transform: none; } }
