:root {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  --deep:#0A1128; --deep-2:#111B3E; --canvas:#F3F5FC; --surface:#FFFFFF;
  --ink:#0A1128; --ink-soft:#5B6482; --ink-faint:#9AA1BD; --line:#E4E7F3;
  --primary:#3D5AFE; --primary-ink:#2540D6; --primary-tint:#E9EDFF;
  --gold:#FFB020; --gold-tint:#FFF3DE; --green:#17B978; --green-tint:#E3FBF0;
  --red:#FF4757; --red-tint:#FFE9EB; --purple:#8B5CF6; --purple-tint:#F1EAFE;
  --radius-s:10px; --radius-m:16px; --radius-l:26px;
  --shadow-soft: 0 10px 30px rgba(10,17,40,.08);
  --shadow-deep: 0 30px 60px rgba(10,17,40,.35);
}
* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }

.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.status-badge { display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .65rem; border-radius:9999px; font-size:.75rem; font-weight:600; }

.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(4px);} to { opacity:1; transform:none; } }

input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.15); border-color:#2563eb; }

.card-hover { transition: box-shadow .15s ease, transform .15s ease; }
.card-hover:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-1px); }

/* Landing hero motion image (Ken Burns zoom + pan) */
.hero-kenburns {
  background-size: cover;
  background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1%); }
  100% { transform: scale(1.05) translate(1.5%, 1%); }
}
.hero-shine {
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.10) 45%, transparent 60%);
  background-size: 250% 250%;
  animation: heroShine 8s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes heroShine {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kenburns, .hero-shine { animation: none; }
}

/* Full-screen landing hero (flags / passport / visa-stamp themed photo) with a
   more pronounced "3D" motion feel: layered scale + subtle 3D rotation + pan. */
.hero-fullscreen {
  background-size: cover;
  background-position: center;
  animation: heroMotion3d 18s ease-in-out infinite alternate;
  will-change: transform;
  transform-style: preserve-3d;
}
@keyframes heroMotion3d {
  0%   { transform: scale(1)    rotate3d(1, 1, 0, 0deg)    translate3d(0, 0, 0); }
  50%  { transform: scale(1.16) rotate3d(1, 1, 0, 1.4deg)  translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.08) rotate3d(-1, 1, 0, -1.1deg) translate3d(1.5%, 1%, 0); }
}

/* The single "click to enter" call-to-action */
.hero-cta-pulse { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.55); }
  50%      { box-shadow: 0 0 0 16px rgba(37,99,235,0); }
}
.hero-cta-wrap-leave { animation: ctaLeave .28s ease forwards; }
@keyframes ctaLeave { to { opacity: 0; transform: scale(.9); } }

/* Login card reveal animation (appears "متحرک" after the CTA is clicked) */
.login-card-enter { animation: cardPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes cardPop {
  0%   { opacity: 0; transform: scale(.82) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.overlay-fade-in { animation: overlayFadeIn .25s ease; }
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-fullscreen, .hero-cta-pulse, .hero-cta-wrap-leave, .login-card-enter, .overlay-fade-in { animation: none; }
}

/* =========================================================
   eVisaOnline REDESIGN — Login screen (two-column: visual + form)
   Adapted from evisaonline-redesign.html mockup.
   ========================================================= */
.rd-login-screen{ min-height:100vh; background:var(--deep); }
.rd-login-grid{ display:grid; grid-template-columns:1.25fr 1fr; min-height:100vh; }
@media (max-width:920px){ .rd-login-grid{grid-template-columns:1fr;} .rd-login-visual{min-height:300px;} }

.rd-login-visual{
  position:relative; overflow:hidden; padding:56px 64px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:
    radial-gradient(1100px 700px at 75% 15%, #1B2A63 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 90%, #1A1440 0%, transparent 55%),
    var(--deep);
}
@media (max-width:640px){ .rd-login-visual{ padding:32px 24px; } }
.rd-brand-mark{ display:flex; align-items:center; gap:10px; color:#fff; font-weight:800; font-size:19px; }
.rd-brand-mark .dot{ width:11px;height:11px;border-radius:3px; background:linear-gradient(135deg,var(--primary),var(--gold)); }
.rd-flight-svg{ position:absolute; inset:0; width:100%; height:100%; opacity:.5; }
.rd-flight-svg path{ fill:none; stroke:#6E82FF; stroke-width:1.1; stroke-linecap:round; stroke-dasharray:600; stroke-dashoffset:600; animation:rdDraw 2.6s cubic-bezier(.2,.7,.2,1) forwards; }
.rd-flight-svg path:nth-child(2){ animation-delay:.15s; stroke:#FFC868; }
.rd-flight-svg path:nth-child(3){ animation-delay:.3s; }
.rd-flight-svg circle{ fill:#8CA0FF; opacity:0; animation:rdDotIn .5s ease forwards; }
.rd-flight-svg circle:nth-of-type(1){ animation-delay:2.4s; }
.rd-flight-svg circle:nth-of-type(2){ animation-delay:2.55s; fill:#FFC868; }
.rd-flight-svg circle:nth-of-type(3){ animation-delay:2.7s; }
@keyframes rdDraw{ to{ stroke-dashoffset:0; } }
@keyframes rdDotIn{ to{ opacity:1; } }

.rd-visual-copy{ position:relative; z-index:2; max-width:480px; }
.rd-visual-copy h1{ color:#fff; font-size:36px; line-height:1.32; font-weight:800; margin:0 0 18px; letter-spacing:-.5px; }
.rd-visual-copy p{ color:#AEB6E0; font-size:15.5px; line-height:1.9; margin:0; }
@media (max-width:640px){ .rd-visual-copy h1{ font-size:26px; } }

.rd-passport-stage{ position:relative; z-index:2; perspective:1400px; align-self:center; margin:16px 0; }
.rd-passport-3d{
  width:230px; height:300px; position:relative; transform-style:preserve-3d;
  transform:rotateY(-18deg) rotateX(6deg); transition:transform .12s ease-out;
  animation:rdFloat 6s ease-in-out infinite;
}
@keyframes rdFloat{
  0%,100%{ transform:rotateY(-18deg) rotateX(6deg) translateY(0); }
  50%{ transform:rotateY(-14deg) rotateX(4deg) translateY(-10px); }
}
.rd-p-page{ position:absolute; inset:0; border-radius:6px; background:linear-gradient(155deg,#F4EFE3,#E9E1CC); box-shadow:var(--shadow-deep); transform:translateZ(-14px) translateX(14px); }
.rd-p-page.p2{ transform:translateZ(-26px) translateX(26px); opacity:.85; }
.rd-p-cover{
  position:absolute; inset:0; border-radius:6px;
  background:linear-gradient(150deg,#132257,#0B1638 70%); box-shadow:var(--shadow-deep);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#D8B65C; border:1px solid rgba(255,255,255,.06);
}
.rd-p-cover .emblem{ width:48px;height:48px;border:2px solid #D8B65C;border-radius:50%; display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:14px; }
.rd-p-cover .t1{ font-size:13px; letter-spacing:3px; font-weight:600; opacity:.9; }
.rd-p-cover .t2{ font-size:10px; letter-spacing:2px; margin-top:8px; color:#AEB6E0; }
.rd-p-stamp{ position:absolute; border:2px solid; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; opacity:.8; }
.rd-p-stamp.s1{ width:48px;height:48px; top:26px; right:-16px; border-color:#FF6B6B; color:#FF6B6B; transform:translateZ(-8px) rotate(-14deg); }
.rd-p-stamp.s2{ width:40px;height:40px; bottom:54px; right:-6px; border-color:#4E8CFF; color:#4E8CFF; transform:translateZ(-8px) rotate(10deg); }
.rd-p-stamp.s3{ width:34px;height:34px; bottom:18px; right:36px; border-color:#3FCB86; color:#3FCB86; transform:translateZ(-8px) rotate(-6deg); }
@media (max-width:920px){ .rd-passport-stage{ display:none; } }

.rd-visual-stats{ position:relative; z-index:2; display:flex; gap:28px; flex-wrap:wrap; }
.rd-visual-stats .stat b{ display:block; color:#fff; font-size:22px; font-weight:800; }
.rd-visual-stats .stat span{ color:#8B93BE; font-size:12.5px; }

.rd-login-panel{ background:var(--surface); display:flex; align-items:center; justify-content:center; padding:40px 32px; }
.rd-login-card{ width:100%; max-width:380px; }
.rd-login-card .lc-brand{ font-size:14px; color:var(--ink-faint); font-weight:600; margin-bottom:28px; }
.rd-login-card h2{ font-size:24px; font-weight:800; margin:0 0 8px; color:var(--ink); }
.rd-login-card .lc-sub{ color:var(--ink-soft); font-size:14px; margin:0 0 26px; line-height:1.7; }

.rd-field{ margin-bottom:14px; }
.rd-field label{ display:block; font-size:13.5px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.rd-field input{ width:100%; padding:13px 15px; border-radius:var(--radius-s); border:1.5px solid var(--line); background:var(--canvas); font-size:14px; transition:.15s; color:var(--ink); }
.rd-field input:focus{ border-color:var(--primary); background:#fff; }

.rd-btn-primary{
  width:100%; border:none; padding:14px; border-radius:var(--radius-s);
  background:linear-gradient(95deg,var(--primary),#5B72FF); color:#fff; font-size:14.5px; font-weight:700;
  box-shadow:0 12px 26px rgba(61,90,254,.32); transition:transform .15s, box-shadow .15s; margin-top:4px;
}
.rd-btn-primary:hover{ transform:translateY(-1px); box-shadow:0 16px 30px rgba(61,90,254,.4); }

.rd-lc-forgot{ display:block; text-align:center; margin-top:14px; font-size:13px; color:var(--ink-soft); }
.rd-lc-divider{ display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--ink-faint); font-size:12px; }
.rd-lc-divider::before, .rd-lc-divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.rd-lc-signup{ display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border-radius:var(--radius-s); border:1.5px solid var(--line); font-size:13.5px; font-weight:600; color:var(--ink); }
.rd-trust-row{ display:flex; gap:16px; margin-top:24px; flex-wrap:wrap; }
.rd-trust-row .t{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--ink-faint); }
.rd-trust-row svg{ width:14px;height:14px; flex:none; color:var(--green); }

@media (prefers-reduced-motion: reduce){
  .rd-passport-3d, .rd-flight-svg path, .rd-flight-svg circle{ animation:none !important; }
}

/* =========================================================
   eVisaOnline REDESIGN — Dashboard (sidebar / topbar / funnel / KPI)
   ========================================================= */
.rd-dash-screen{ display:flex; min-height:100vh; }
.rd-sidebar{
  width:250px; flex:none; background:var(--deep); display:flex; flex-direction:column;
  padding:22px 16px; position:sticky; top:0; height:100vh; overflow-y:auto;
}
.rd-side-brand{ display:flex; align-items:center; gap:10px; color:#fff; font-weight:800; font-size:16px; padding:0 8px 24px; }
.rd-side-brand .dot{ width:10px;height:10px;border-radius:3px;background:linear-gradient(135deg,var(--primary),var(--gold)); }
.rd-side-nav{ display:flex; flex-direction:column; gap:3px; flex:1; }
.rd-side-nav a{ display:flex; align-items:center; gap:12px; padding:11px 13px; border-radius:12px; color:#9AA3D1; font-size:14px; font-weight:600; transition:.15s; }
.rd-side-nav a i{ width:18px; text-align:center; flex:none; }
.rd-side-nav a:hover{ background:rgba(255,255,255,.05); color:#fff; }
.rd-side-nav a.active{ background:linear-gradient(95deg,var(--primary),#5B72FF); color:#fff; box-shadow:0 10px 22px rgba(61,90,254,.35); }
.rd-side-user{ display:flex; align-items:center; gap:10px; padding:12px 8px; border-top:1px solid rgba(255,255,255,.08); margin-top:8px; }
.rd-side-user .av{ width:34px;height:34px;border-radius:50%; background:linear-gradient(135deg,var(--gold),#FF8A4C); display:flex; align-items:center; justify-content:center; font-weight:800; color:#3A2400; flex:none; font-size:12px; }
.rd-side-user .info b{ display:block; color:#fff; font-size:13px; }
.rd-side-user .info span{ color:#7C84B0; font-size:11px; }

.rd-dash-main{ flex:1; min-width:0; }
.rd-topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 24px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; flex-wrap:wrap; }
.rd-search-box{ display:flex; align-items:center; gap:10px; background:var(--canvas); border:1.5px solid var(--line); border-radius:999px; padding:9px 16px; width:300px; max-width:100%; color:var(--ink-faint); font-size:13px; }
.rd-search-box input{ border:none; background:none; outline:none; width:100%; font-size:13px; color:var(--ink); }
.rd-top-actions{ display:flex; align-items:center; gap:12px; }
.rd-bell{ position:relative; width:38px;height:38px;border-radius:12px; background:var(--canvas); display:flex; align-items:center; justify-content:center; }
.rd-bell .badge{ position:absolute; top:6px; left:6px; width:8px;height:8px; border-radius:50%; background:var(--red); border:2px solid #fff; }
.rd-btn-new{ display:flex; align-items:center; gap:8px; padding:10px 18px; border-radius:12px; background:linear-gradient(95deg,var(--primary),#5B72FF); color:#fff; font-weight:700; font-size:13px; border:none; box-shadow:0 10px 22px rgba(61,90,254,.3); }

.rd-dash-content{ padding:24px 24px 60px; }
.rd-status-bar{ display:flex; align-items:center; gap:12px; background:var(--green-tint); border:1px solid #C6F1DD; color:#0C7A50; padding:13px 18px; border-radius:var(--radius-m); font-size:13px; font-weight:600; margin-bottom:22px; }

.rd-funnel{ display:flex; align-items:stretch; gap:0; background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); padding:22px 24px; margin-bottom:22px; box-shadow:var(--shadow-soft); overflow-x:auto; }
.rd-funnel-node{ flex:1; min-width:140px; display:flex; flex-direction:column; align-items:center; text-align:center; position:relative; padding:0 8px; }
.rd-funnel-node:not(:last-child)::after{ content:""; position:absolute; top:24px; right:-6px; width:calc(100% - 20px); height:2px; background:repeating-linear-gradient(to left, var(--line) 0 6px, transparent 6px 12px); }
.rd-funnel-node .fn-circle{ width:48px;height:48px;border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; color:#fff; margin-bottom:10px; position:relative; z-index:1; }
.rd-funnel-node .fn-label{ font-size:12.5px; font-weight:700; color:var(--ink); }
.rd-funnel-node .fn-sub{ font-size:11px; color:var(--ink-faint); margin-top:2px; }

.rd-kpi{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); padding:18px; display:flex; align-items:center; gap:12px; box-shadow:var(--shadow-soft); }
.rd-kpi .ic{ width:40px;height:40px;border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none; }
.rd-kpi b{ display:block; font-size:20px; font-weight:800; line-height:1; color:var(--ink); }
.rd-kpi span{ font-size:12px; color:var(--ink-soft); }

.rd-panel{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); box-shadow:var(--shadow-soft); }
.rd-panel-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--line); }
.rd-panel-head h3{ margin:0; font-size:15px; font-weight:800; color:var(--ink); }
.rd-panel-head a{ font-size:12.5px; font-weight:700; color:var(--primary); }

.rd-case-cell{ display:flex; align-items:center; gap:10px; }
.rd-avatar{ width:36px;height:36px;border-radius:50%; background:var(--primary-tint); color:var(--primary-ink); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12px; flex:none; }
.rd-case-id{ font-size:11px; color:var(--ink-faint); display:block; margin-top:2px; }
.rd-tag{ display:inline-block; padding:4px 11px; border-radius:999px; font-size:11.5px; font-weight:700; background:var(--canvas); color:var(--ink-soft); }
.rd-pill{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; font-size:11.5px; font-weight:700; }
.rd-pill::before{ content:""; width:6px;height:6px;border-radius:50%; }
.rd-pill.wait{ background:var(--gold-tint); color:#946200; } .rd-pill.wait::before{ background:var(--gold); }
.rd-pill.embassy{ background:var(--purple-tint); color:#5B2FD1; } .rd-pill.embassy::before{ background:var(--purple); }
.rd-pill.done{ background:var(--green-tint); color:#0C7A50; } .rd-pill.done::before{ background:var(--green); }
.rd-pill.red{ background:var(--red-tint); color:#C81E2E; } .rd-pill.red::before{ background:var(--red); }
.rd-pill.unpaid{ background:#fff; color:#946200; border:1px solid var(--gold); }
.rd-pill.settled{ background:#fff; color:#0C7A50; border:1px solid var(--green); }

@media (max-width:900px){
  .rd-dash-screen{ flex-direction:column; }
  .rd-sidebar{ width:100%; height:auto; position:relative; flex-direction:row; align-items:center; overflow-x:auto; }
  .rd-side-nav{ flex-direction:row; overflow-x:auto; }
  .rd-side-user{ display:none; }
  .rd-search-box{ width:160px; }
}
