/* ==========================================================================
   components.css — کامپوننت‌های قابل استفاده مجدد
   ========================================================================== */

/* ---------------- دکمه‌ها ---------------- */
.btn {
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(47, 107, 255, .25);
  font-weight: 700;
  font-size: var(--fs-base);
  border-radius: var(--r-sm);
  padding: .62rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn i {
  font-size: 1.05em;
}

.btn-brand {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-brand:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 20px 40px -18px var(--on-primary-shadow);
}

.btn-solid {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-solid:hover {
  background: var(--primary-hover);
  color: var(--primary-contrast);
}

.btn-outline-brand {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-outline-brand:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-soft:hover {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-lg-x {
  padding: .85rem 1.6rem;
  font-size: var(--fs-md);
  border-radius: var(--r-md);
}

.btn-sm-x {
  padding: .4rem .8rem;
  font-size: var(--fs-sm);
  border-radius: var(--r-xs);
}

.btn-block {
  width: 100%;
}

/* ---------------- نشان‌ها ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tag-primary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

.tag-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
}

.tag-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: transparent;
}

.tag-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.tag-info {
  background: var(--info-soft);
  color: var(--info);
  border-color: transparent;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: .68rem;
}

/* ---------------- کارت پایه ---------------- */
.card-x {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-x:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-x-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-x-title {
  font-size: var(--fs-md);
  font-weight: 800;
  margin: .55rem 0 .5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-x-title a {
  color: var(--text);
}

.card-x-title a:hover {
  color: var(--primary);
}

.card-x-text {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-x-meta {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.card-x-meta i {
  font-size: .95rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.card-x:hover .card-thumb img {
  transform: scale(1.06);
}

.card-thumb-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
}

.card-thumb-action {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: var(--r-xs);
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .82);
  color: var(--navy-800);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all var(--t-fast);
}

.card-thumb-action:hover {
  background: #fff;
  color: var(--primary);
}

.card-thumb-action.active {
  background: var(--primary);
  color: #fff;
}

/* نویسنده */
.author-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.author-row img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-row span {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------------- کارت دوره ---------------- */
.price-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.price-now {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  font-size: var(--fs-md);
}

.price-old {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-free {
  color: var(--success);
  font-weight: 800;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  color: var(--warning);
  font-size: var(--fs-sm);
}

.rating b {
  color: var(--text);
  font-family: var(--font-mono);
}

/* ---------------- کارت پروژه ---------------- */
.project-card .card-thumb {
  aspect-ratio: 4 / 3;
}

.project-card .tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .85rem;
}

/* ---------------- کارت تکنولوژی ---------------- */
.tech-card {
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
  align-items: center;
}

.tech-logo {
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: .9rem;
  transition: transform var(--t-base);
}

.tech-card:hover .tech-logo {
  transform: translateY(-3px) rotate(-4deg);
}

.tech-logo img {
  width: 36px;
  height: 36px;
}

.tech-stats {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.tech-stats span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

/* ---------------- کارت ابزار ---------------- */
.tool-card {
  padding: var(--sp-4);
  gap: .3rem;
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: .7rem;
  transition: all var(--t-base);
}

.tool-card:hover .tool-icon {
  background: var(--grad-brand);
  color: #fff;
}

/* ---------------- آمار ---------------- */
.stat-box {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
}

.stat-box-loading .skeleton {
  display: block;
  height: 2rem;
  margin: .5rem auto;
  border-radius: var(--r-sm);
}

.stat-box-loading .skeleton:first-child {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.stat-box-loading .skeleton:last-child {
  width: 60%;
}

.article-card-loading {
  min-height: 420px;
  padding: 1rem;
}

.article-card-loading .skeleton {
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--r-sm);
}

.article-card-loading .skeleton:first-child {
  height: 190px;
}

.article-card-loading .skeleton:nth-child(2) {
  width: 78%;
  height: 1.4rem;
}

.article-card-loading .skeleton:last-child {
  width: 92%;
  height: 4rem;
}

.home-static-courses {
  display: none;
}

.home-legacy-projects {
  display: none;
}

.home-legacy-technologies {
  display: none;
}

.technology-card-loading .skeleton {
  display: block;
  margin: .6rem auto;
  height: 1rem;
  border-radius: var(--r-sm);
}

.technology-card-loading .skeleton:first-child {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.technology-card-loading .skeleton:nth-child(2) {
  width: 70%;
}

.technology-card-loading .skeleton:last-child {
  width: 90%;
  height: 2.5rem;
}

.tech-stats-single {
  justify-content: center;
}

.search-result-summary {
  margin-bottom: 2rem;
  color: var(--text-soft);
}

.search-result-summary strong {
  color: var(--primary);
  font-size: 1.2rem;
}

.search-result-group+.search-result-group {
  margin-top: 3rem;
}

.search-result-group>h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.search-result-group>h2 i {
  color: var(--primary);
}

.search-result-card {
  display: flex;
  flex-direction: column;
}

.search-result-card .card-x-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.search-result-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.search-page-loading {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}

.search-page-loading .skeleton {
  display: block;
  height: 2rem;
  border-radius: var(--r-sm);
}

.project-slider {
  position: relative;
}

.project-slider-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-slider-card {
  min-width: 0;
  animation: project-slider-enter .65s ease both;
}

.project-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-slider-dots {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.swiper-nav-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.swiper-nav-button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

@keyframes project-slider-enter {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 991.98px) {
  .project-slider-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .project-slider-track {
    grid-template-columns: 1fr;
  }
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  direction: ltr;
}

.stat-label {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin-top: .4rem;
}

/* ---------------- نظر کاربران ---------------- */
.testimonial {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.testimonial-quote {
  color: var(--text-soft);
  line-height: var(--lh-loose);
  margin: 0;
  font-size: var(--fs-base);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
}

.testimonial-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-user b {
  display: block;
  font-size: var(--fs-base);
}

.testimonial-user small {
  color: var(--text-muted);
}

/* ---------------- فرم‌ها ---------------- */
.form-label {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin-bottom: .4rem;
}

.form-control,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: .68rem .9rem;
  font-size: var(--fs-base);
  font-family: var(--font-fa);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-control:disabled {
  background: var(--surface-2);
}

textarea.form-control {
  line-height: var(--lh-normal);
}

.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-inline-start: 2.6rem;
}

.input-icon>i {
  position: absolute;
  inset-inline-start: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.05rem;
  pointer-events: none;
}

.input-icon .pass-toggle {
  position: absolute;
  inset-inline-end: .55rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  padding: .25rem;
  border-radius: var(--r-xs);
}

.input-icon .pass-toggle:hover {
  color: var(--primary);
}

.form-check-input {
  background-color: var(--surface);
  border-color: var(--border-strong);
  width: 1.05em;
  height: 1.05em;
  margin-top: .28em;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px var(--primary-soft);
  border-color: var(--primary);
}

.form-check-label {
  font-size: var(--fs-base);
  color: var(--text-soft);
}

.form-text {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.form-switch .form-check-input {
  width: 2.4em;
  height: 1.25em;
  margin-top: .18em;
}

/* نوار قدرت رمز */
.pw-meter {
  display: flex;
  gap: 4px;
  margin-top: .5rem;
}

.pw-meter span {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--border);
  transition: background var(--t-base);
}

/* ---------------- بردکرامب ---------------- */
.breadcrumb-x {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 0;
  margin-bottom: var(--sp-4);
  list-style: none;
}

.breadcrumb-x a {
  color: var(--text-soft);
}

.breadcrumb-x a:hover {
  color: var(--primary);
}

.breadcrumb-x li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.breadcrumb-x li:not(:last-child)::after {
  content: "\F284";
  font-family: "bootstrap-icons";
  font-size: .7rem;
  color: var(--text-muted);
  opacity: .7;
}

.breadcrumb-x .current {
  color: var(--text);
  font-weight: 600;
}

/* ---------------- صفحه‌بندی ---------------- */
.pagination-x {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.pagination-x a,
.pagination-x span {
  min-width: 40px;
  height: 40px;
  padding-inline: .6rem;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 700;
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  transition: all var(--t-fast);
}

.pagination-x a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-x .active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.pagination-x .disabled {
  opacity: .45;
  pointer-events: none;
}

/* ---------------- چیپ فیلتر ---------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  padding: .45rem .95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.chips-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: .4rem;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

/* ---------------- آکاردئون ---------------- */
.accordion-x .accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}

.accordion-x .accordion-button {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: 1rem 1.15rem;
  box-shadow: none;
}

.accordion-x .accordion-button:not(.collapsed) {
  background: var(--primary-soft);
  color: var(--primary);
}

.accordion-x .accordion-button::after {
  margin-inline-start: auto;
  margin-inline-end: 0;
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: .9rem;
  width: auto;
  height: auto;
  transition: transform var(--t-base);
}

.accordion-x .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-x .accordion-body {
  color: var(--text-soft);
  padding: 0 1.15rem 1.15rem;
  line-height: var(--lh-loose);
}

/* ---------------- تب‌ها ---------------- */
.tabs-x {
  display: flex;
  gap: .3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-x::-webkit-scrollbar {
  display: none;
}

.tabs-x button {
  border: 0;
  background: transparent;
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.tabs-x button:hover {
  color: var(--text);
}

.tabs-x button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp .35s var(--ease-out);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- مودال ---------------- */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
}

.btn-close {
  filter: none;
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

/* مودال جستجو */
.search-modal .modal-dialog {
  max-width: 640px;
  margin-top: 8vh;
}

.search-modal .modal-content {
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap i {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-lg);
  font-family: var(--font-fa);
  outline: none;
}

.search-results {
  max-height: 56vh;
  overflow-y: auto;
  padding: .5rem;
}

.search-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  padding: .6rem .7rem .35rem;
}

.search-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .7rem;
  border-radius: var(--r-sm);
  color: var(--text-soft);
}

.search-item:hover,
.search-item:focus {
  background: var(--surface-2);
  color: var(--text);
}

.search-item .si-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.search-item b {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
}

.search-item small {
  color: var(--text-muted);
}

.popular-search-copy {
  min-width: 0;
}

.popular-search-copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-search-loading {
  gap: .75rem;
}

.popular-search-loading .skeleton:first-child {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: var(--r-xs);
}

.popular-search-loading .skeleton:last-child {
  width: 70%;
  height: 1.2rem;
  border-radius: var(--r-xs);
}

.search-empty-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.about-copy {
  line-height: var(--lh-loose);
}

.about-copy p {
  margin-bottom: 1rem;
}

.about-loading {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.about-loading .skeleton {
  display: block;
  height: 1.2rem;
  border-radius: var(--r-sm);
}

.about-loading .skeleton:first-child {
  width: 85%;
  height: 8rem;
}

.about-loading .skeleton:last-child {
  width: 68%;
}

.privacy-loading {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.privacy-loading .skeleton {
  display: block;
  height: 1.2rem;
  border-radius: var(--r-sm);
}

.privacy-loading .skeleton:first-child {
  width: 90%;
  height: 10rem;
}

.privacy-loading .skeleton:last-child {
  width: 72%;
}

.faq-loading {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.faq-loading .skeleton {
  display: block;
  height: 3.5rem;
  border-radius: var(--r-sm);
}

.search-footer {
  display: flex;
  gap: 1rem;
  padding: .6rem 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--surface-2);
}

.search-footer kbd {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 .3rem;
}

/* ---------------- توست ---------------- */
.toast-stack {
  position: fixed;
  z-index: var(--z-toast);
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 20px);
  inset-inline-start: 16px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

@media (min-width: 992px) {
  .toast-stack {
    bottom: 22px;
  }
}

.toast-x {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .75rem 1rem;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  min-width: 240px;
  animation: toastIn .3s var(--ease-out);
}

.toast-x.hide {
  animation: toastOut .25s var(--ease) forwards;
}

.toast-x i {
  font-size: 1.2rem;
}

.toast-x.success i {
  color: var(--success);
}

.toast-x.error i {
  color: var(--danger);
}

.toast-x.info i {
  color: var(--primary);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------------- اسکلتون ---------------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--r-sm);
}

@keyframes skeleton {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.skeleton-line {
  height: 12px;
  margin-bottom: .6rem;
}

.skeleton-thumb {
  aspect-ratio: 16/9;
  border-radius: 0;
}

/* ---------------- حالت خالی ---------------- */
.empty-state {
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.empty-state i {
  font-size: 2.6rem;
  color: var(--text-muted);
  margin-bottom: .8rem;
  display: block;
}

.empty-state h3 {
  font-size: var(--fs-lg);
  margin-bottom: .4rem;
}

.empty-state p {
  color: var(--text-soft);
  margin-bottom: var(--sp-4);
}

/* ---------------- بلوک کد ---------------- */
.code-block {
  position: relative;
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  margin-block: var(--sp-5);
  overflow: hidden;
  direction: ltr;
}

.code-block-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--code-comment);
}

.code-block-head .lang {
  padding: .1rem .5rem;
  border-radius: var(--r-pill);
  background: rgba(47, 107, 255, .18);
  color: #8fb3ff;
  font-weight: 700;
}

.copy-code {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #b9c7e2;
  border-radius: var(--r-xs);
  font-size: .68rem;
  padding: .18rem .5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  transition: all var(--t-fast);
}

.copy-code:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.9;
  color: var(--code-text);
  counter-reset: line;
}

.code-block code {
  font-family: inherit;
}

/* ---------------- محتوای مقاله ---------------- */
.article-content {
  font-size: 1.02rem;
  line-height: var(--lh-loose);
  color: var(--text-soft);
}

.article-content h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
  padding-inline-start: .75rem;
  border-inline-start: 4px solid var(--primary);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.article-content h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.article-content ul,
.article-content ol {
  padding-inline-start: 1.4rem;
  margin-bottom: var(--sp-4);
}

.article-content li {
  margin-bottom: .5rem;
}

.article-content img {
  border-radius: var(--r-md);
  margin-block: var(--sp-4);
}

.article-content figure {
  margin: var(--sp-5) 0;
}

.article-content figcaption {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: .5rem;
}

.article-content strong {
  color: var(--text);
}

.article-content code:not(.code-block code) {
  font-family: var(--font-mono);
  background: var(--primary-soft);
  color: var(--primary);
  padding: .12rem .4rem;
  border-radius: 6px;
  font-size: .84em;
  direction: ltr;
  display: inline-block;
}

.quote-x {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--grad-soft);
  border-inline-start: 4px solid var(--primary);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: var(--lh-loose);
}

.quote-x footer {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: .5rem;
}

.callout {
  display: flex;
  gap: .8rem;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--info-soft);
  border: 1px solid transparent;
  margin-block: var(--sp-5);
  color: var(--text-soft);
}

.callout i {
  font-size: 1.3rem;
  color: var(--info);
  flex-shrink: 0;
}

.callout.warn {
  background: var(--warning-soft);
}

.callout.warn i {
  color: var(--warning);
}

/* فهرست مطالب */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}

.toc h4 {
  font-size: var(--fs-base);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: block;
  padding: .4rem .6rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  border-inline-start: 2px solid transparent;
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.toc a.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-inline-start-color: var(--primary);
  font-weight: 700;
}

/* اشتراک‌گذاری */
.share-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}

.share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* نظرات */
.comment {
  display: flex;
  gap: .85rem;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-3);
}

.comment img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}

.comment-head b {
  font-size: var(--fs-base);
}

.comment-head time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.comment p {
  margin: 0 0 .5rem;
  color: var(--text-soft);
  font-size: var(--fs-base);
}

.comment-actions {
  display: flex;
  gap: .8rem;
  font-size: var(--fs-xs);
}

.comment-actions button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
}

.comment-actions button:hover {
  color: var(--primary);
}

.comment-reply {
  margin-inline-start: 2.6rem;
}

/* ---------------- داشبورد ---------------- */
.dash-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
}

@media (min-width: 992px) {
  .dash-layout {
    grid-template-columns: 268px 1fr;
    align-items: start;
  }
}

.dash-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.dash-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.dash-user b {
  display: block;
}

.dash-user small {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.dash-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-menu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 600;
  font-size: var(--fs-base);
}

.dash-menu a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.dash-menu a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.dash-menu a i {
  font-size: 1.1rem;
}

.dash-menu a .count {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: .05rem .45rem;
  color: var(--text-muted);
}

.dash-menu a.danger {
  color: var(--danger);
}

.dash-menu a.danger:hover {
  background: var(--danger-soft);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.panel-head h2,
.panel-head h3 {
  font-size: var(--fs-lg);
  margin: 0;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
}

.mini-stat .ms-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.mini-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1.2;
}

.mini-stat small {
  color: var(--text-muted);
}

.progress-x {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.progress-x>span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
}

.activity-item {
  display: flex;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item .ai-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-soft);
  flex-shrink: 0;
}

.activity-item p {
  margin: 0;
  font-size: var(--fs-base);
}

.activity-item small {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.table-x {
  width: 100%;
  color: var(--text);
  font-size: var(--fs-base);
  border-collapse: collapse;
}

.table-x th {
  text-align: start;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 700;
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-x td {
  padding: .85rem .6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-x tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

/* ---------------- صفحات احراز هویت ---------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .auth-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-side {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--grad-deep);
  color: #fff;
  padding: var(--sp-8) var(--sp-7);
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .auth-side {
    display: flex;
  }
}

.auth-side h2 {
  color: #fff;
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}

.auth-side p {
  color: rgba(255, 255, 255, .82);
  max-width: 46ch;
  line-height: var(--lh-loose);
}

.auth-side .auth-points {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
}

.auth-side .auth-points li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .9rem;
  color: rgba(255, 255, 255, .9);
}

.auth-side .auth-points i {
  color: #7fe3c0;
  font-size: 1.2rem;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  font-size: var(--fs-2xl);
  margin-bottom: .5rem;
}

.auth-card>p {
  color: var(--text-soft);
  margin-bottom: var(--sp-5);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-block: var(--sp-4);
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
}

.btn-google:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------------- ابزارها ---------------- */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tool-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-soft);
  flex-wrap: wrap;
}

.tool-io {
  width: 100%;
  min-height: 240px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.85;
  resize: vertical;
  outline: none;
  direction: ltr;
  text-align: left;
}

.tool-io:focus {
  box-shadow: inset 0 0 0 2px var(--primary-soft);
}

.tool-status {
  padding: .55rem 1rem;
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  min-height: 40px;
}

.tool-status.ok {
  color: var(--success);
  background: var(--success-soft);
}

.tool-status.err {
  color: var(--danger);
  background: var(--danger-soft);
}

.tool-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-nav button {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: var(--fs-base);
  text-align: start;
  cursor: pointer;
  width: 100%;
  transition: all var(--t-fast);
}

.tool-nav button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.tool-nav button.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.tool-nav button i {
  font-size: 1.05rem;
}

.out-box {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--r-sm);
  padding: .9rem 1rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  direction: ltr;
  text-align: left;
  word-break: break-all;
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* ---------------- اسلایدر ---------------- */
.swiper {
  padding-bottom: 3rem !important;
  overflow: hidden;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet {
  background: var(--border-strong);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all var(--t-base);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  width: 26px;
  border-radius: var(--r-pill);
}

.swiper-nav {
  display: inline-flex;
  gap: .4rem;
}

.swiper-nav button {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--t-fast);
}

.swiper-nav button:hover {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.swiper-nav button.swiper-button-disabled {
  opacity: .4;
  cursor: default;
}

.swiper-nav button:hover.swiper-button-disabled {
  background: var(--surface);
  color: var(--text-soft);
  border-color: var(--border);
}

/* ---------------- خبرنامه ---------------- */
.newsletter-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--grad-deep);
  color: #fff;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

.newsletter-box h2 {
  color: #fff;
  font-size: var(--fs-2xl);
  margin-bottom: .6rem;
}

.newsletter-box p {
  color: rgba(255, 255, 255, .8);
  max-width: 52ch;
}

.newsletter-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.newsletter-form .form-control {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, .6);
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, .18);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
  color: #fff;
}

.newsletter-form .btn {
  background: #fff;
  color: var(--brand-600);
}

.newsletter-form .btn:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---------------- صفحات خطا ---------------- */
.error-page {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7);
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.04em;
}

.error-page h1 {
  font-size: var(--fs-2xl);
  margin-block: var(--sp-4) var(--sp-3);
}

.error-page p {
  color: var(--text-soft);
  max-width: 48ch;
  margin-inline: auto;
}

/* ---------------- گالری پروژه ---------------- */
.gallery-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 16/9;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .5rem;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  padding: 0;
  background: var(--surface-2);
  cursor: pointer;
  aspect-ratio: 16/9;
}

.gallery-thumbs button.active {
  border-color: var(--primary);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- باکس خرید چسبان ---------------- */
.buy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
  .buy-box {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.buy-features {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
}

.buy-features li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.buy-features li:last-child {
  border-bottom: 0;
}

.buy-features i {
  color: var(--primary);
  font-size: 1.05rem;
}

/* ---------------- تیم ---------------- */
.team-card {
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
}

.team-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .9rem;
  border: 3px solid var(--surface-2);
}

/* ---------------- ویژگی‌ها ---------------- */
.feature-item {
  display: flex;
  gap: .85rem;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
}

.feature-item .fi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: var(--fs-base);
  margin: 0 0 .3rem;
}

.feature-item p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

/* ---------------- اعلان ---------------- */
.notif-item {
  display: flex;
  gap: .8rem;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: .6rem;
  transition: border-color var(--t-fast);
}

.notif-item.unread {
  border-inline-start: 3px solid var(--primary);
  background: var(--primary-soft);
}

.notif-item .n-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-soft);
}