:root{
  --bg-1:#12132a;
  --bg-2:#1b1c3a;
  --card:#fff;
  --muted:#6b7280;
  --brand:#5c7cfa;
}

html,body{
  background:linear-gradient(135deg,var(--bg-1),var(--bg-2));
  min-height:100%;
}

body{
  font-family:'Vazirmatn',sans-serif;
  color:#111;
}

.navbar{
  background:rgba(18,19,42,.9);
  backdrop-filter:blur(6px);
}

.breadcrumb-wrap{
  background:#fff;
  border-bottom:1px solid #eef2ff;
}

.breadcrumb{
  margin:0;
  padding:.6rem 0;
}

.profile-card{
  background:#fff;
  border:1px solid #eef2ff;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.profile-header{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  flex-wrap:wrap;
}

.profile-image{
  position:relative;
  width:92px;
  height:92px;
}

.profile-image img{
  width:92px;
  height:92px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #eef2ff;
  background:#fff;
}

.status-dot{
  position:absolute;
  right:-2px;
  bottom:-2px;
  width:18px;
  height:18px;
  border-radius:50%;
  border:3px solid #fff;
}

.status-online{background:#22c55e;}
.status-offline{background:#9ca3af;}

.profile-name{
  font-weight:800;
  font-size:1.25rem;
  margin:0;
}

.badge-online{
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}

.badge-offline{
  background:#f3f4f6;
  color:#374151;
  border:1px solid #e5e7eb;
}

.meta{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  color:#374151;
}

.meta .pill{
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  color:#111;
  border-radius:999px;
  padding:.25rem .6rem;
  font-size:.8rem;
}

.section{
  background:#fff;
  border:1px solid #eef2ff;
  border-radius:14px;
  padding:14px 16px;
}

.section h3{
  font-size:1rem;
  margin-bottom:.5rem;
}

.video-frame{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#000;
}

.video-frame video{
  width:100%;
  height:auto;
  display:block;
}

.badge-sub{font-size:.75rem;}

.small-hint{
  color:#6b7280;
  font-size:.82rem;
}

.rating-stars .bi-star-fill{
  font-size:1.05rem;
  color:#e5e7eb;
  cursor:pointer;
}

.rating-stars .bi-star-fill.active{
  color:#f59e0b;
}

/* کادر تیک‌های الزامی / ارجاع */
.req-outline{
  padding:.35rem .75rem;
  border-radius:.6rem;
  border:1px dashed #d1d5db;
  background:#f9fafb;
  transition:box-shadow .2s,border-color .2s,background-color .2s;
}

.req-outline.invalid{
  box-shadow:0 0 0 3px rgba(34,197,94,.25);
  border-color:#22c55e;
  background:#ecfdf5;
}

.req-text{
  color:#10b981;
  display:none;
}

.req-text.show{
  display:inline;
}

.post-preview{
  border:1px dashed #e5e7eb;
  border-radius:12px;
  padding:12px;
  margin-bottom:12px;
  background:#fff;
}

.post-thumb{
  width:96px;
  height:64px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
}

.post-title{font-weight:700;}

.post-excerpt{
  font-size:.92rem;
  color:#374151;
  line-height:1.9;
}

.meeting-status-badge{font-size:.8rem;}

/* کارت‌های "آخرین تولیدات علمی من" */
.science-products-wrap{margin-top:1rem;}

.product-mini-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:10px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease;
}

.product-mini-card:hover{
  box-shadow:0 10px 25px rgba(15,23,42,.08);
  transform:translateY(-2px);
  border-color:#c7d2fe;
}

.product-mini-thumb{
  width:64px;
  min-width:64px;
  height:64px;
  border-radius:12px;
  overflow:hidden;
  background:#f9fafb;
  border:1px solid #e5e7eb;
}

.product-mini-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-mini-meta{
  font-size:.75rem;
  color:#6b7280;
}

.product-mini-title{
  font-size:.9rem;
  font-weight:700;
  margin-top:2px;
  color:#111827;
}

.product-mini-excerpt{
  font-size:.8rem;
  color:#4b5563;
  margin-top:4px;
}

.product-mini-footer{
  margin-top:6px;
  font-size:.8rem;
}

.product-mini-price{
  font-weight:600;
}

.product-mini-cta{
  font-size:.75rem;
  color:var(--brand);
}

/* بهبود چیدمان دسکتاپ */
@media (min-width: 992px){
  main.container{
    max-width:1100px;
  }
}
