/* =========================================================================
   آویدسین | پنل مشتریان
   هویت بصری: شب‌رنگ (Navy) + کهربایی (Amber) به‌عنوان تاکید سیگنال «دیده‌شدن»
   + سبزآبی (Teal) به‌عنوان رنگ دوم برای وضعیت‌های موفق/فعال.
   ========================================================================= */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root{
  --bg:        #090D18;
  --bg-soft:   #0D1424;
  --surface:   #121A2C;
  --surface-2: #182238;
  --border:    #232E48;
  --text:      #EAF0FB;
  --text-dim:  #93A3C4;
  --text-mute: #5D6C8C;

  --amber:     #FFB020;
  --amber-soft:#FFB02022;
  --amber-line:#FFB02055;
  --teal:      #17C3B2;
  --teal-soft: #17C3B222;
  --red:       #FF6B6B;
  --red-soft:  #FF6B6B22;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --font-ui: 'Vazirmatn', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.6);
}

*{ box-sizing:border-box; }
html{ color-scheme: dark; }
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(1100px 520px at 85% -10%, #182338 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #14201f 0%, transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-ui);
  direction:rtl;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
::selection{ background:var(--amber-soft); color:var(--amber); }

.mono{ font-family:var(--font-mono); direction:ltr; unicode-bidi:plaintext; }

/* ---------- signature: pulse / radar mark (چشم/دیده‌شدن) ---------- */
.pulse-mark{
  position:relative;
  width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.pulse-mark .core{
  width:16px; height:16px; border-radius:50%;
  background:var(--amber);
  box-shadow:0 0 18px 2px var(--amber-line);
  z-index:2;
}
.pulse-mark .ring{
  position:absolute; inset:0; border-radius:50%;
  border:1.5px solid var(--amber);
  opacity:0;
  animation:pulse-out 2.8s cubic-bezier(.2,.7,.3,1) infinite;
}
.pulse-mark .ring:nth-child(2){ animation-delay:.9s; }
.pulse-mark .ring:nth-child(3){ animation-delay:1.8s; }
@keyframes pulse-out{
  0%{ transform:scale(.25); opacity:.9; }
  100%{ transform:scale(1.15); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .pulse-mark .ring{ animation:none; opacity:.25; }
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand .name{ font-weight:800; font-size:19px; letter-spacing:-.2px; }
.brand .tag{ font-size:12px; color:var(--text-mute); margin-top:1px; }

/* ---------- layout shell ---------- */
.shell{ display:flex; min-height:100vh; }

.sidebar{
  width:264px; flex-shrink:0;
  background:linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-left:1px solid var(--border);
  padding:24px 18px;
  display:flex; flex-direction:column; gap:26px;
  position:sticky; top:0; height:100vh;
}
.sidebar nav{ display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.nav-item{
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius:var(--radius-s);
  color:var(--text-dim); font-size:14.5px; font-weight:500;
  border:1px solid transparent;
  transition:background .15s, color .15s, border-color .15s;
}
.nav-item svg{ width:18px; height:18px; flex-shrink:0; opacity:.85; }
.nav-item:hover{ background:var(--surface); color:var(--text); }
.nav-item.active{
  background:var(--amber-soft); color:var(--amber);
  border-color:var(--amber-line);
}
.sidebar-foot{ margin-top:auto; }

.user-chip{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:var(--radius-s);
  background:var(--surface); border:1px solid var(--border);
  font-size:13.5px;
}
.user-chip .dot{ width:8px; height:8px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal); }
.user-chip .uid{ color:var(--text-mute); font-size:12px; }

.logout-link{
  display:flex; align-items:center; gap:8px; justify-content:center;
  margin-top:10px; padding:10px; border-radius:var(--radius-s);
  color:var(--red); font-size:13.5px; border:1px solid #ff6b6b33;
  transition:background .15s;
}
.logout-link:hover{ background:var(--red-soft); }

.main{ flex:1; min-width:0; padding:28px 34px 60px; }
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:26px; gap:16px; flex-wrap:wrap;
}
.page-title{ font-size:22px; font-weight:800; letter-spacing:-.2px; }
.page-sub{ color:var(--text-mute); font-size:13.5px; margin-top:4px; }

/* ---------- cards / grid ---------- */
.grid{ display:grid; gap:18px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:980px){ .grid-3,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  box-shadow:var(--shadow-card);
}
.card-pad{ padding:22px; }

.stat-card{ padding:20px 22px; position:relative; overflow:hidden; }
.stat-card .label{ color:var(--text-mute); font-size:12.5px; font-weight:500; }
.stat-card .value{ font-family:var(--font-mono); font-size:26px; font-weight:700; margin-top:8px; direction:ltr; text-align:right; }
.stat-card .value small{ font-size:13px; color:var(--text-dim); font-family:var(--font-ui); margin-right:6px; }
.stat-card .icon{
  position:absolute; left:16px; top:16px; width:36px; height:36px;
  border-radius:10px; display:flex; align-items:center; justify-content:center;
}
.stat-card .icon svg{ width:18px; height:18px; }
.stat-card.amber .icon{ background:var(--amber-soft); color:var(--amber); }
.stat-card.teal .icon{ background:var(--teal-soft); color:var(--teal); }
.stat-card.plain .icon{ background:var(--surface-2); color:var(--text-dim); }

/* ---------- section header ---------- */
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin:30px 0 14px; }
.section-head h2{ font-size:16px; font-weight:700; margin:0; }
.section-head .hint{ color:var(--text-mute); font-size:12.5px; }

/* ---------- tables ---------- */
.table-wrap{ overflow-x:auto; border-radius:var(--radius-m); border:1px solid var(--border); }
table{ width:100%; border-collapse:collapse; font-size:13.5px; background:var(--surface); }
thead th{
  text-align:right; padding:13px 16px; color:var(--text-mute);
  font-weight:600; font-size:12px; background:var(--surface-2);
  border-bottom:1px solid var(--border); white-space:nowrap;
}
tbody td{ padding:13px 16px; border-bottom:1px solid var(--border); vertical-align:middle; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:#ffffff05; }
td.num, th.num{ font-family:var(--font-mono); direction:ltr; text-align:left; }

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 11px; border-radius:999px; font-size:12px; font-weight:600;
  border:1px solid transparent;
}
.badge .d{ width:6px; height:6px; border-radius:50%; }
.badge.pending{ background:#8CA0C61a; color:#8CA0C6; border-color:#8CA0C633; }
.badge.pending .d{ background:#8CA0C6; }
.badge.processing{ background:var(--amber-soft); color:var(--amber); border-color:var(--amber-line); }
.badge.processing .d{ background:var(--amber); }
.badge.completed{ background:var(--teal-soft); color:var(--teal); border-color:#17C3B255; }
.badge.completed .d{ background:var(--teal); }
.badge.canceled, .badge.failed{ background:var(--red-soft); color:var(--red); border-color:#ff6b6b55; }
.badge.canceled .d, .badge.failed .d{ background:var(--red); }
.badge.partial{ background:#9b8cff22; color:#b3a4ff; border-color:#9b8cff55; }
.badge.partial .d{ background:#b3a4ff; }
.badge.unknown{ background:var(--surface-2); color:var(--text-mute); border-color:var(--border); }
.badge.unknown .d{ background:var(--text-mute); }

/* ---------- forms ---------- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--text-dim); margin-bottom:7px; font-weight:500; }
.field .help{ font-size:11.5px; color:var(--text-mute); margin-top:6px; }
input[type=text], input[type=number], input[type=password], select{
  width:100%; padding:12px 14px; border-radius:var(--radius-s);
  background:var(--bg-soft); border:1px solid var(--border);
  color:var(--text); font-family:var(--font-ui); font-size:14px;
  transition:border-color .15s, box-shadow .15s;
}
input[dir=ltr]{ font-family:var(--font-mono); }
input:focus, select:focus{
  outline:none; border-color:var(--amber-line);
  box-shadow:0 0 0 3px var(--amber-soft);
}
select{ appearance:none; cursor:pointer; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 20px; border-radius:var(--radius-s); border:1px solid transparent;
  font-weight:700; font-size:14px; cursor:pointer; transition:filter .15s, transform .05s;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--amber); color:#20140A; }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-ghost{ background:var(--surface-2); color:var(--text); border-color:var(--border); }
.btn-ghost:hover{ background:var(--border); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

.alert{ padding:13px 16px; border-radius:var(--radius-s); font-size:13.5px; margin-bottom:16px; border:1px solid; }
.alert-error{ background:var(--red-soft); color:#ffb3b3; border-color:#ff6b6b44; }
.alert-ok{ background:var(--teal-soft); color:#a9f2e8; border-color:#17c3b244; }

/* ---------- login page ---------- */
.auth-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.auth-card{
  width:100%; max-width:420px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius-l);
  padding:38px 34px 32px; box-shadow:var(--shadow-card);
}
.auth-head{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; margin-bottom:28px; }
.auth-head h1{ font-size:19px; margin:0; font-weight:800; }
.auth-head p{ margin:0; color:var(--text-mute); font-size:13px; line-height:1.9; }

.steps-mini{ display:flex; gap:8px; margin-top:8px; }
.steps-mini span{ font-size:11px; color:var(--text-mute); padding:5px 10px; background:var(--surface-2); border-radius:999px; border:1px solid var(--border); }

/* ---------- service catalog ---------- */
.service-search{ margin-bottom:18px; }
.svc-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.svc-tab{
  padding:8px 15px; border-radius:999px; font-size:13px; font-weight:600;
  background:var(--surface); border:1px solid var(--border); color:var(--text-dim);
  cursor:pointer;
}
.svc-tab.active{ background:var(--amber-soft); color:var(--amber); border-color:var(--amber-line); }

.svc-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.svc-row .id{
  font-family:var(--font-mono); font-size:11.5px; color:var(--text-mute);
  background:var(--surface-2); padding:2px 8px; border-radius:6px; direction:ltr;
}
.svc-row .name{ font-weight:500; font-size:13.5px; }
.svc-row .rate{ font-family:var(--font-mono); color:var(--amber); font-weight:700; font-size:13.5px; white-space:nowrap; }
.svc-row .range{ color:var(--text-mute); font-size:11.5px; }

/* ---------- misc ---------- */
.empty{
  text-align:center; padding:50px 20px; color:var(--text-mute);
}
.empty svg{ width:40px; height:40px; margin-bottom:12px; opacity:.5; }
.copy-btn{ cursor:pointer; opacity:.6; transition:opacity .15s; }
.copy-btn:hover{ opacity:1; }

@media (max-width: 860px){
  .shell{ flex-direction:column; }
  .sidebar{ position:relative; height:auto; width:100%; flex-direction:row; align-items:center; overflow-x:auto; }
  .sidebar nav{ flex-direction:row; margin-top:0; }
  .sidebar-foot{ display:none; }
  .main{ padding:20px; }
}

/* =========================================================================
   صفحه‌ی فرود (Landing) — پیشوند lp- برای جلوگیری از تداخل با داشبورد
   ========================================================================= */

.lp-body{ overflow-x:hidden; }

.lp-nav{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 6vw; gap:20px;
  background:#090D18cc; backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.lp-nav-links{ display:flex; align-items:center; gap:28px; }
.lp-nav-links a{ font-size:14px; color:var(--text-dim); font-weight:500; transition:color .15s; }
.lp-nav-links a:hover{ color:var(--text); }
.lp-nav-cta{ display:flex; align-items:center; gap:10px; }
.lp-toggle{ display:none; }

@media (max-width: 780px){
  .lp-nav-links{
    position:absolute; top:100%; right:0; left:0;
    background:var(--bg-soft); border-bottom:1px solid var(--border);
    flex-direction:column; align-items:flex-start; gap:0;
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .lp-nav-links a{ padding:14px 6vw; width:100%; border-top:1px solid var(--border); }
  #lp-menu:checked ~ .lp-nav-links{ max-height:300px; }
  .lp-toggle{ display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:9px; background:var(--surface); border:1px solid var(--border); cursor:pointer; }
  .lp-nav > .lp-nav-cta{ display:none !important; }
}
@media (min-width: 781px){
  .lp-nav-links .lp-nav-cta{ display:none !important; }
}

.lp-hero{
  position:relative;
  padding:96px 6vw 90px;
  display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:40px;
  overflow:hidden;
}
.lp-hero::before{
  content:''; position:absolute; inset:-20% -10% auto auto; width:640px; height:640px;
  background:radial-gradient(circle, #FFB02022 0%, transparent 70%);
  pointer-events:none;
}
.lp-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; color:var(--amber); background:var(--amber-soft);
  border:1px solid var(--amber-line); padding:6px 14px; border-radius:999px;
  font-weight:600; margin-bottom:20px;
}
.lp-hero h1{
  font-size:clamp(30px, 4.2vw, 48px); line-height:1.35; font-weight:800;
  margin:0 0 18px; letter-spacing:-.5px;
}
.lp-hero h1 span{ color:var(--amber); }
.lp-hero p.lead{ color:var(--text-dim); font-size:16px; line-height:2; max-width:52ch; margin:0 0 30px; }
.lp-hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; }
.lp-hero-visual{
  position:relative; display:flex; align-items:center; justify-content:center; height:340px;
}
.lp-radar{ position:relative; width:260px; height:260px; }
.lp-radar .ring{
  position:absolute; inset:0; border-radius:50%; border:1px solid var(--amber-line);
  animation:pulse-out 3.2s cubic-bezier(.2,.7,.3,1) infinite;
}
.lp-radar .ring:nth-child(2){ animation-delay:1.05s; }
.lp-radar .ring:nth-child(3){ animation-delay:2.1s; }
.lp-radar .core{
  position:absolute; inset:0; margin:auto; width:96px; height:96px; border-radius:28px;
  background:linear-gradient(155deg, var(--surface-2), var(--surface));
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  box-shadow:0 20px 50px -20px #000;
}
.lp-radar .core svg{ width:40px; height:40px; color:var(--amber); }
@media (prefers-reduced-motion: reduce){ .lp-radar .ring{ animation:none; opacity:.3; } }
@media (max-width: 900px){ .lp-hero{ grid-template-columns:1fr; padding-top:40px; } .lp-hero-visual{ order:-1; height:220px; } }

.lp-section{ padding:80px 6vw; }
.lp-section.tight{ padding-top:0; }
.lp-section-head{ text-align:center; max-width:640px; margin:0 auto 46px; }
.lp-section-head .eyebrow{ color:var(--teal); font-size:12.5px; font-weight:700; letter-spacing:.5px; }
.lp-section-head h2{ font-size:clamp(22px,3vw,30px); margin:10px 0 12px; font-weight:800; }
.lp-section-head p{ color:var(--text-mute); font-size:14.5px; line-height:1.9; }

.lp-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
@media (max-width: 900px){ .lp-grid{ grid-template-columns:1fr; } }

.lp-feature{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m);
  padding:26px; transition:border-color .2s, transform .2s;
}
.lp-feature:hover{ border-color:var(--amber-line); transform:translateY(-3px); }
.lp-feature .icon{
  width:44px; height:44px; border-radius:12px; background:var(--amber-soft); color:var(--amber);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.lp-feature .icon svg{ width:22px; height:22px; }
.lp-feature h3{ font-size:15.5px; margin:0 0 8px; font-weight:700; }
.lp-feature p{ font-size:13.5px; color:var(--text-mute); line-height:1.9; margin:0; }

.lp-about{
  display:grid; grid-template-columns:.95fr 1.05fr; gap:50px; align-items:center;
}
@media (max-width:900px){ .lp-about{ grid-template-columns:1fr; } }
.lp-about-art{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-l);
  padding:34px; position:relative; overflow:hidden;
}
.lp-about-art .stat{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--border); }
.lp-about-art .stat:last-child{ border-bottom:none; }
.lp-about-art .stat .dot{ width:9px; height:9px; border-radius:50%; background:var(--teal); box-shadow:0 0 10px var(--teal); flex-shrink:0; }
.lp-about-art .stat b{ font-weight:700; }
.lp-about h2{ font-size:26px; font-weight:800; margin:0 0 16px; }
.lp-about p{ color:var(--text-dim); line-height:2; font-size:14.5px; margin:0 0 14px; }

.lp-faq{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.lp-faq details{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-s);
  padding:4px 20px;
}
.lp-faq summary{
  cursor:pointer; list-style:none; padding:16px 0; font-weight:600; font-size:14.5px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.lp-faq summary::-webkit-details-marker{ display:none; }
.lp-faq summary::after{
  content:'+'; font-size:20px; color:var(--amber); flex-shrink:0; transition:transform .2s;
}
.lp-faq details[open] summary::after{ transform:rotate(45deg); }
.lp-faq .a{ padding:0 0 18px; color:var(--text-dim); font-size:13.5px; line-height:2; }

.lp-contact{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:900px){ .lp-contact{ grid-template-columns:1fr; } }
.lp-contact-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:26px;
  display:flex; flex-direction:column; gap:10px;
}
.lp-contact-card .icon{ width:40px; height:40px; border-radius:11px; background:var(--teal-soft); color:var(--teal); display:flex; align-items:center; justify-content:center; }
.lp-contact-card .icon svg{ width:20px; height:20px; }
.lp-contact-card h3{ margin:6px 0 0; font-size:15px; }
.lp-contact-card p{ margin:0; color:var(--text-mute); font-size:13px; line-height:1.9; }

.lp-cta-banner{
  margin:0 6vw 80px; padding:46px 6vw; text-align:center;
  background:linear-gradient(135deg, var(--surface), var(--surface-2));
  border:1px solid var(--amber-line); border-radius:var(--radius-l);
}
.lp-cta-banner h2{ font-size:22px; margin:0 0 10px; }
.lp-cta-banner p{ color:var(--text-mute); font-size:14px; margin:0 0 22px; }

.lp-footer{
  border-top:1px solid var(--border); padding:34px 6vw; display:flex; align-items:center;
  justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--text-mute); font-size:12.5px;
}
.lp-footer-links{ display:flex; gap:20px; }
.lp-footer-links a{ color:var(--text-mute); }
.lp-footer-links a:hover{ color:var(--text); }
