
*{box-sizing:border-box}
:root{--bg:#f6f7fb;--card:#fff;--border:#e5e7eb;--text:#0f172a;--muted:#6b7280;--pri:#0a7cff}
body{direction:rtl;background:var(--bg);font-family:Tahoma,"IRANSans",system-ui,sans-serif;margin:0;color:var(--text)}
.container{max-width:980px;margin:24px auto;padding:0 16px}
.header{position:relative;border-radius:16px;overflow:hidden;margin-bottom:16px}
.header .bar{height:7px;background:linear-gradient(90deg,#0a7cff,#28a745,#ffc107,#dc3545);background-size:300% 100%;animation:flow 8s ease infinite}
.header .content{display:flex;gap:12px;align-items:center;background:#101828;color:#fff;padding:14px 16px}
.header img{height:42px}
.header h1{font-size:18px;margin:0}
@keyframes flow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 30px rgba(2,6,23,.05);padding:18px}
h2{margin:12px 0;font-size:18px}
label{display:block;margin:10px 0 6px;font-weight:700}
input,select,textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:10px;background:#fff}
textarea{resize:vertical}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.badge{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;padding:6px 10px;border-radius:10px;font-size:12px;display:inline-block;margin:8px 0}
.note{font-size:12px;color:var(--muted)}
.warn{background:#fffbea;border:1px solid #f6e05e;color:#744210;padding:10px;border-radius:10px;margin:10px 0}
button{padding:12px 16px;border:0;border-radius:12px;background:var(--pri);color:#fff;font-weight:800;cursor:pointer}
.checkbox-wrap{display:flex;flex-wrap:wrap;gap:12px}
.checkbox-wrap label{font-weight:600;margin:0}
.inline{display:flex;gap:10px;align-items:center}
hr{border:0;border-top:1px dashed #e5e7eb;margin:16px 0}
.footer{font-size:12px;color:#64748b;margin-top:12px}
.hidden{display:none}
.success{background:#ecfdf5;border:1px solid #10b981;color:#065f46;padding:10px;border-radius:10px;margin:10px 0}
.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:10px;border-radius:10px;margin:10px 0}
