:root{
  --bg:#0b1020;
  --card:#121a33;
  --muted:#9fb0ff;
  --text:#e9eeff;
  --accent:#6d7dff;
  --accent2:#22c55e;
  --danger:#ef4444;
  --border: rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1000px 600px at 80% -20%, rgba(109,125,255,.35), transparent 60%),
              radial-gradient(900px 500px at 10% 0%, rgba(34,197,94,.20), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans Arabic", "Vazirmatn", Arial, sans-serif;
  direction: rtl;
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding: 28px 18px 60px}
.topbar{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.60);
  border-bottom: 1px solid var(--border);
}
.topbar .inner{max-width:var(--max); margin:0 auto; padding: 14px 18px; display:flex; gap:14px; align-items:center; justify-content:space-between}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), rgba(34,197,94,.85));
  box-shadow: var(--shadow);
}
.brand h1{font-size:16px; margin:0}
.nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.nav a{
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:rgba(233,238,255,.92);
}
.nav a:hover{border-color:var(--border); background: rgba(255,255,255,.06)}
.badge{
  font-size:12px; padding:5px 10px; border-radius:999px; background: rgba(109,125,255,.18);
  border:1px solid rgba(109,125,255,.25);
}
.lang{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(109,125,255,.9), rgba(109,125,255,.55));
  border-color: rgba(109,125,255,.55);
}
.btn.success{
  background: linear-gradient(135deg, rgba(34,197,94,.9), rgba(34,197,94,.55));
  border-color: rgba(34,197,94,.55);
}
.hero{
  margin-top: 26px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 900px){ .hero{grid-template-columns:1fr} }
.card{
  background: rgba(18,26,51,.72);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .p{padding: 18px}
.kicker{color:var(--muted); font-size:13px}
.h2{font-size:28px; margin:8px 0 10px}
.lead{color: rgba(233,238,255,.85); line-height:1.8}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:14px}
@media (max-width: 900px){ .grid3{grid-template-columns:1fr} }
.tile{padding:14px; border-radius: 16px; border:1px solid var(--border); background: rgba(255,255,255,.05)}
.tile h3{margin:8px 0 6px; font-size:16px}
.tile p{margin:0; color: rgba(233,238,255,.82); line-height:1.7; font-size:14px}
.steps{display:grid; gap:10px; margin-top:12px}
.step{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px; border-radius: 16px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
}
.step .n{
  width:28px; height:28px; border-radius:10px;
  display:grid; place-items:center;
  background: rgba(109,125,255,.18); border:1px solid rgba(109,125,255,.30);
  font-weight:700;
}
.section-title{margin:24px 0 10px; font-size:18px}
.list{display:grid; gap:12px; margin-top:12px}
.row{
  display:flex; gap:12px; justify-content:space-between; align-items:flex-start;
  padding:14px; border-radius: 16px; border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.row .meta{color: rgba(233,238,255,.75); font-size:13px}
.row .title{font-weight:700; margin-bottom:4px}
.pills{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.pill{font-size:12px; padding:5px 10px; border-radius:999px; border:1px solid var(--border); background: rgba(255,255,255,.03)}
.footer{
  margin-top: 30px;
  color: rgba(233,238,255,.72);
  font-size: 13px;
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
}
textarea{min-height:120px; resize:vertical}
.form-grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 900px){ .form-grid{grid-template-columns:1fr} }
hr{border:0; border-top:1px solid var(--border); margin:16px 0}
.small{font-size:12px; color: rgba(233,238,255,.70)}
.notice{
  padding:12px; border-radius: 16px;
  border:1px solid rgba(239,68,68,.30);
  background: rgba(239,68,68,.10);
  color: rgba(255,255,255,.92);
}
.successBox{
  padding:12px; border-radius: 16px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
}

/* Chatbot widget */
.chatbot-fab{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34,197,94,.9), rgba(109,125,255,.65));
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.chatbot-panel{
  position: fixed;
  left: 18px;
  bottom: 84px;
  z-index: 9999;
  width: min(380px, calc(100vw - 36px));
  max-height: min(70vh, 620px);
  display: none;
  overflow: hidden;
}
.chatbot-panel.open{ display: block; }
.chatbot-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.chatbot-body{
  padding: 12px 14px 14px;
  overflow:auto;
  max-height: calc(min(70vh, 620px) - 56px);
}
.chat-msg{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 14px;
}
.chat-msg.me{
  background: rgba(109,125,255,.14);
  border-color: rgba(109,125,255,.25);
}
.chat-input{
  display:flex;
  gap:10px;
  margin-top: 10px;
}
.chat-input input{
  flex:1;
}
