/* =====================================================================
   کانال‌کده — سیستم طراحی نسخه ۲
   الهام‌گرفته از لینکدونی‌های معتبر کانال (کارت افقی، پالت نیلی-آبی-قرمز)
   ===================================================================== */

:root{
  --ink-night: #4338CA;       /* نیلی پررنگ - برند اصلی، دکمه‌ها، هدرها */
  --ink-night-soft: #5B52D6;  /* حالت هاور روشن‌تر */
  --brand-start: #4F46E5;     /* شروع گرادیان برند */
  --brand-end: #2563EB;       /* پایان گرادیان برند */
  --accent: #EF4444;          /* قرمز ویژه/CTA - همون رنگ نشان «ویژه» */
  --accent-soft: #FEE7E7;
  --teal: #0D9488;            /* رنگ فرعی (تیک، لینک‌های ثانویه) */
  --paper: #F5F6FB;           /* زمینه‌ی سرد و روشن صفحه */
  --surface: #FFFFFF;
  --ink: #1E2233;
  --ink-soft: #676C80;
  --line: #E7E8F2;
  --danger: #DC2626;
  --danger-soft: #FDE7E7;
  --success: #16A34A;
  --success-soft: #DCFCE7;

  --header-footer-bg: #4338CA;      /* همون رنگ اصلی برند سایت (--ink-night) برای هدر و فوتر */
  --header-footer-bg-soft: #5B52D6; /* حالت هاور روشن‌تر */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(30,34,51,.05), 0 10px 24px -16px rgba(67,56,202,.28);
  --shadow-pop: 0 24px 50px -20px rgba(37,38,90,.4);

  --font-fa: 'Vazirmatn', Tahoma, sans-serif;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-fa);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; font-size: 1rem; }

h1, h2, h3{ margin: 0 0 .4em; font-weight: 800; color: var(--ink-night); line-height: 1.35; }
h1{ font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h2{ font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
h3{ font-size: 1.05rem; }
p{ margin: 0 0 1em; color: var(--ink); }

.skip-link{
  position: absolute; top: -60px; right: 12px; background: var(--ink-night); color:#fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 999;
  transition: top .15s ease;
}
.skip-link:focus{ top: 0; }

:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------------
   هدر و ناوبری
   --------------------------------------------------------------------- */
.site-header{
  background: var(--header-footer-bg);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 6px 16px -10px rgba(15,23,42,.4);
}
.header-inner{ display: flex; align-items: center; gap: 28px; height: 68px; }
.brand{ display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; margin-left: auto; }
.brand-mark{
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: #fff;
  color: var(--header-footer-bg); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.brand-logo-img{ height: 36px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.main-nav{ display: flex; gap: 22px; }
.main-nav a{ font-weight: 600; color: rgba(255,255,255,.78); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover{ color: #fff; border-color: var(--accent); }
.header-actions{ display: flex; gap: 10px; align-items: center; }
.header-actions .btn-ghost{ color: #fff; border-color: rgba(255,255,255,.4); }
.header-actions .btn-ghost:hover{ background: rgba(255,255,255,.12); }

.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span{ width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav{ display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav a{ padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-nav.is-open{ display: flex; }

/* ---------------------------------------------------------------------
   دکمه‌ها و فرم‌ها
   --------------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }
.btn-primary{ background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; box-shadow: 0 8px 18px -10px rgba(67,56,202,.6); }
.btn-primary:hover{ filter: brightness(1.06); }
.btn-ghost{ background: transparent; color: var(--ink-night); border-color: var(--line); }
.btn-ghost:hover{ background: var(--paper); }

/* روی زمینه‌ی گرادیانت (page-head) دکمه‌ی شفاف باید روشن باشد، وگرنه دیده نمی‌شود */
.page-head .btn-ghost{ color: #fff; border-color: rgba(255,255,255,.55); }
.page-head .btn-ghost:hover{ background: rgba(255,255,255,.15); }
.btn-lg{ padding: 14px 26px; font-size: 1.02rem; }
.btn-block{ width: 100%; }

.field{ margin-bottom: 18px; }
.field label{ display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; color: var(--ink-night); }
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--ink-night); }
.char-counter{ display: block; text-align: left; font-size: .76rem; color: var(--ink-soft); margin-top: 5px; }
.char-counter-warn{ color: var(--accent); font-weight: 700; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-field{ display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 20px; }
.checkbox-field input{ margin-top: 4px; }

.alert{ padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }
.alert-error{ background: var(--danger-soft); color: var(--danger); border: 1px solid #f3c6c6; }
.alert-success{ background: var(--success-soft); color: var(--success); border: 1px solid #bfe0cd; }

/* ---------------------------------------------------------------------
   هیرو (صفحه اصلی)
   --------------------------------------------------------------------- */
.hero{
  background: linear-gradient(120deg, var(--brand-start) 0%, var(--brand-end) 65%, #1D4ED8 100%);
  color: #fff; padding: 72px 0 84px; position: relative; overflow: hidden;
}
.hero-blob{ position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; }
.hero-blob-1{ width: 340px; height: 340px; background: #A5B4FC; top: -140px; left: -90px; }
.hero-blob-2{ width: 280px; height: 280px; background: var(--accent); bottom: -120px; right: 4%; opacity: .3; }

.hero-inner{ position: relative; max-width: 780px; }
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 700; font-size: .78rem;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.hero h1{ color: #fff; margin-bottom: .5em; }
.hero h1 span{ color: #FDE68A; }
.hero-sub{ color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 560px; }

.hero-search-card{
  background: #fff; border-radius: var(--radius-lg); padding: 10px; margin-top: 28px;
  max-width: 560px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 8px;
}
.hero-search-row{ display: flex; gap: 8px; }
.hero-search-row input{
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper);
  padding: 12px 18px; font-size: .95rem; color: var(--ink); font-family: inherit;
}
.hero-search-row input:focus{ outline: none; border-color: var(--brand-start); }
.hero-search-row button{
  border: none; background: var(--accent); color: #fff; font-weight: 800; flex-shrink: 0;
  padding: 0 26px; border-radius: var(--radius-pill);
}
.hero-search-row button:hover{ background: #e13a3a; }

.hero-search-row-filters select{
  flex: 1; appearance: none; -webkit-appearance: none; border: 1px solid var(--line);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234B5563'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%234B5563' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 12px center / 14px no-repeat;
  color: var(--ink-night); font-family: inherit; font-size: .84rem; font-weight: 600;
  padding: 10px 34px 10px 14px; border-radius: var(--radius-pill); min-width: 0;
}
.hero-search-row-filters select:focus{ outline: none; border-color: var(--brand-start); }

.load-more-wrap{ display: flex; justify-content: center; margin-top: 22px; }
.load-more-btn{
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-night); font-weight: 700;
  padding: 12px 32px; border-radius: var(--radius-pill); font-size: .92rem; transition: background .15s ease;
}
.load-more-btn:hover{ background: var(--paper); }
.load-more-btn[disabled]{ opacity: .6; }

.hero-cta{
  display: inline-block; margin-top: 16px; background: var(--accent); border: 1px solid var(--accent);
  color: #fff; font-weight: 700; font-size: .88rem; padding: 10px 22px; border-radius: var(--radius-pill);
}
.hero-cta:hover{ background: #e13a3a; }

.footer-stats{
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: rgba(255,255,255,.65);
}
.footer-stats strong{ color: #fff; font-weight: 800; margin-inline-end: 4px; }

   بخش‌های عمومی
   --------------------------------------------------------------------- */
.section{ padding: 46px 0; }
.section-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.see-all{ font-weight: 700; color: var(--ink-night); font-size: .9rem; border-bottom: 2px solid var(--accent); }

.page-head{
  background: linear-gradient(120deg, var(--brand-start), var(--brand-end));
  color: #fff; padding: 40px 0; margin-bottom: 4px;
}
.page-head h1{ color: #fff; }
.page-head p{ color: rgba(255,255,255,.82); margin: 0; }

.empty-state{ background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 34px; text-align: center; color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   دسته‌بندی‌ها (فقط صفحه‌ی /categories.php و فوتر)
   --------------------------------------------------------------------- */
.category-grid{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-grid-lg{ grid-template-columns: repeat(4, 1fr); }
.category-tile{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 14px; text-align: center; display: flex; flex-direction: column; gap: 6px;
  border-top: 3px solid var(--cat-color, var(--ink-night));
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-tile:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card); }
.category-name{ font-weight: 700; color: var(--ink-night); font-size: .92rem; }
.category-count{ font-size: .78rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   کارت افقی کانال (سبک لیستی، الهام از لینکدونی‌های معتبر کانال)
   یک کارت واحد که در صفحه اصلی، لیست، دسته‌بندی و کانال‌های مشابه استفاده می‌شود
   --------------------------------------------------------------------- */
.channel-list{ display: grid; grid-template-columns: 1fr; gap: 16px; }
.channel-list.two-col{ grid-template-columns: 1fr; }
@media (min-width: 860px){
  .channel-list.two-col{ grid-template-columns: 1fr 1fr; }
}

.list-card{
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.list-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--cat-color, var(--ink-night)) 30%, var(--line)); }

.list-card-featured-badge{
  position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800; padding: 4px 13px; border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px -2px rgba(220,38,38,.5); z-index: 2;
}

.list-card-link{ display: flex; gap: 18px; align-items: flex-start; }

.list-card-avatar{
  width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--paper); color: var(--cat-color, var(--ink-night));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.6rem;
  border: 4px solid var(--cat-color, var(--ink-night)); box-shadow: 0 6px 16px -8px rgba(30,34,51,.35);
}
.list-card-avatar img{ width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.list-card-body{ flex: 1; min-width: 0; }
.list-card-title{ margin: 0 0 6px; font-size: 1.05rem; }
.list-card-desc{ color: var(--ink-soft); font-size: .87rem; margin: 0 0 10px; }

.list-card-meta{ display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }

.tag{ font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); }
.tag-telegram{ background: #E6F2FB; color: #1C7ED6; }
.tag-rubika{ background: #FDE9E3; color: #E0521E; }
.tag-eitaa{ background: #FDEBD8; color: #D9660F; }
.tag-bale{ background: #E1F7EF; color: #1E7A5F; }
.tag-category{ background: color-mix(in srgb, var(--cat-color, var(--ink-night)) 12%, white); color: var(--cat-color, var(--ink-night)); }
.tag-member{ color: var(--ink-soft); font-weight: 600; }
.tag-report{ background: var(--danger-soft); color: var(--danger); border: none; cursor: pointer; font-family: inherit; }
.tag-report:hover{ background: #fbd6d6; }

.list-card-stats{ display: flex; align-items: center; gap: 18px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------------
   اسلایدر افقی (کانال‌های ویژه / پربازدیدترین‌ها) — کشویی با اسکرول لمسی،
   بدون نیاز به جاوااسکریپت یا کتابخانه‌ی جانبی، برای بهترین سرعت و سبکی
   --------------------------------------------------------------------- */
.channel-slider{
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.channel-slider::-webkit-scrollbar{ display: none; }
.slide-card{
  position: relative; flex: 0 0 172px; scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.slide-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card); }
.slide-card-badge{
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
  font-size: .64rem; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill);
}
.slide-card-avatar{
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--paper);
  color: var(--cat-color, var(--ink-night)); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.9rem; border: 3px solid var(--cat-color, var(--ink-night));
}
.slide-card-avatar img{ width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.slide-card-title{
  margin: 0; font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.slide-card-stats{ display: flex; gap: 10px; font-size: .76rem; color: var(--ink-soft); }

.featured-section, .popular-section{ padding: 26px 0; }
.featured-section .section-head, .popular-section .section-head{ margin-bottom: 14px; }


/* ---------------------------------------------------------------------
   نوار آمار (لایک/کامنت/بازدید) — سبک اینستاگرام
   --------------------------------------------------------------------- */
.stat-action{
  display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  color: var(--ink-soft); font-size: .82rem; font-weight: 700; cursor: pointer;
}
.stat-action svg{ fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.stat-view{ cursor: default; margin-right: auto; }
button.stat-action{ cursor: pointer; }
button.stat-action:hover svg{ transform: scale(1.12); }

.like-action.is-liked{ color: var(--danger); }
.like-action.is-liked svg{ fill: var(--danger); stroke: var(--danger); animation: like-pop .3s ease; }
@keyframes like-pop{ 0%{ transform: scale(.7); } 50%{ transform: scale(1.25); } 100%{ transform: scale(1); } }

/* ---------------------------------------------------------------------
   بخش نظرات
   --------------------------------------------------------------------- */
.comments-section{ margin-top: 30px; }
.comment-form{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.comment-form textarea,
.comment-form .comment-name-input{ width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; font-family: inherit; }
.comment-form textarea{ resize: vertical; }
.comment-form-result{ font-size: .85rem; margin: 8px 0 0; }
.comment-login-hint{ color: var(--ink-soft); font-size: .9rem; }
.comment-login-hint a{ color: var(--ink-night); font-weight: 700; border-bottom: 2px solid var(--accent); }

.comment-list{ display: flex; flex-direction: column; gap: 14px; }
.comment-item{ display: flex; gap: 12px; }
.comment-avatar{
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; flex-shrink: 0;
}
.comment-body{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; flex: 1; }
.comment-meta{ font-size: .76rem; color: var(--ink-soft); margin-bottom: 4px; }
.comment-body p{ margin: 0; font-size: .9rem; }
.comment-empty{ color: var(--ink-soft); font-size: .9rem; }

/* ---------------------------------------------------------------------
   نوار CTA
   --------------------------------------------------------------------- */
.cta-band{ background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band-inner{ display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band-inner p{ margin: 0; color: var(--ink-soft); max-width: 480px; }

/* ---------------------------------------------------------------------
   فوتر
   --------------------------------------------------------------------- */
.site-footer{ background: var(--header-footer-bg); color: rgba(255,255,255,.75); padding: 48px 0 0; margin-top: 40px; }
.footer-inner{ display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 32px; }
.footer-brand .brand{ color: #fff; margin-left: 0; margin-bottom: 10px; }
.footer-brand .brand-mark{ background: rgba(255,255,255,.15); }
.footer-brand p{ color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-col h3{ color: #fff; font-size: .92rem; margin-bottom: 12px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 9px; }
.footer-col a{ color: rgba(255,255,255,.68); font-size: .88rem; }
.footer-col a:hover{ color: #FDE68A; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------------
   لیست/فیلتر کانال‌ها
   --------------------------------------------------------------------- */
.listing-layout{ display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; position: sticky; top: 84px; }
.filter-group{ margin-bottom: 14px; }
.filter-group h3{ font-size: .85rem; margin-bottom: 8px; }
.filter-select{
  width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234B5563'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%234B5563' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 12px center / 14px no-repeat;
  color: var(--ink-night); font-family: inherit; font-size: .88rem; font-weight: 600;
  padding: 10px 34px 10px 14px; border-radius: var(--radius-pill);
}
.filter-select:focus{ outline: none; border-color: var(--brand-start); }

.platform-filter-bar{ display: flex; gap: 10px; margin-bottom: 20px; }
.platform-filter-bar a{ padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.platform-filter-bar a.active{ background: var(--ink-night); color: #fff; border-color: var(--ink-night); }

.pagination{ display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a{
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 700; font-size: .88rem;
}
.pagination a.active{ background: var(--ink-night); color: #fff; border-color: var(--ink-night); }

/* ---------------------------------------------------------------------
   صفحه جزئیات کانال
   --------------------------------------------------------------------- */
.breadcrumb{ font-size: .82rem; color: var(--ink-soft); margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a{ color: var(--ink-soft); }
.breadcrumb a:hover{ color: var(--ink-night); }

.channel-detail-head{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 28px; }
.channel-detail-info{ display: flex; flex-direction: column; align-items: center; width: 100%; }
.channel-detail-badges{ display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; justify-content: center; }
.channel-detail-stats{ display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: .88rem; justify-content: center; }
.join-btn{ margin-top: 6px; }

.share-block{ display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.share-block-label{ font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.share-icons{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.share-icon{
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-night); flex-shrink: 0;
  transition: transform .15s ease, background .15s ease;
}
.share-icon:hover{ transform: translateY(-2px); background: #EDEFF6; }
.share-icon img{ width: 20px; height: 20px; border-radius: 6px; object-fit: contain; }
.share-icon-telegram{ background: #E6F2FB; color: #1C7ED6; }
.share-icon-telegram:hover{ background: #d7ebf9; }
.share-copied-msg{ font-size: .8rem; color: var(--success); font-weight: 700; }

.channel-logo-lg{
  width: 192px; height: 192px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--paper); color: var(--cat-color, var(--ink-night));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 4rem;
  border: 5px solid var(--cat-color, var(--ink-night)); box-shadow: 0 12px 28px -10px rgba(30,34,51,.42);
}
.channel-logo-lg img{ width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.channel-stat-bar-lg{ display: flex; align-items: center; gap: 26px; padding: 14px 0 0; margin-top: 14px; justify-content: center; }
.channel-stat-bar-lg .stat-action{ font-size: .92rem; }
.channel-stat-bar-lg .stat-view{ margin-right: 0; }

.channel-detail-desc{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px; }
.channel-detail-desc h2{ font-size: 1.05rem; }


/* ---------------------------------------------------------------------
   مودال گزارش تخلف
   --------------------------------------------------------------------- */
.modal{ position: fixed; inset: 0; background: rgba(30,25,60,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.is-open{ display: flex; }
.modal-box{ background: #fff; border-radius: var(--radius-lg); padding: 28px; max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow-pop); }
.modal-close{ position: absolute; top: 14px; left: 14px; background: none; border: none; font-size: 1.4rem; color: var(--ink-soft); line-height: 1; }
.report-result{ font-size: .88rem; margin-top: 10px; text-align: center; }

/* ---------------------------------------------------------------------
   احراز هویت (ورود/ثبت‌نام)
   --------------------------------------------------------------------- */
.auth-section{ display: flex; align-items: center; min-height: 60vh; }
.auth-wrap{ display: flex; justify-content: center; width: 100%; }
.auth-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; width: 100%; max-width: 420px; box-shadow: var(--shadow-card); }
.auth-card-lg{ max-width: 620px; }
.auth-sub{ color: var(--ink-soft); font-size: .9rem; margin-bottom: 22px; }
.auth-alt-link{ display: block; text-align: center; margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }
.auth-alt-link:hover{ color: var(--ink-night); }

/* ---------------------------------------------------------------------
   پنل کاربری
   --------------------------------------------------------------------- */
.dashboard-head{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.dashboard-head-actions{ display: flex; gap: 10px; }
.dash-table-wrap{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: auto; }
.dash-table{ width: 100%; border-collapse: collapse; min-width: 640px; }
.dash-table th, .dash-table td{ padding: 14px 16px; text-align: right; font-size: .88rem; border-bottom: 1px solid var(--line); }
.dash-table th{ color: var(--ink-soft); font-weight: 700; background: var(--paper); }
.dash-title-cell{ font-weight: 700; }
.dash-reject-row td{ color: var(--danger); font-size: .82rem; background: var(--danger-soft); }

.status-badge{ padding: 4px 12px; border-radius: var(--radius-pill); font-size: .76rem; font-weight: 700; }
.status-pending{ background: #FEF3C7; color: #92620A; }
.status-approved{ background: var(--success-soft); color: var(--success); }
.status-rejected{ background: var(--danger-soft); color: var(--danger); }
.status-disabled{ background: #ECEAF5; color: var(--ink-soft); }

.link-btn{ font-size: .8rem; font-weight: 700; color: var(--ink-night); border-bottom: 1px solid var(--accent); }
.link-btn.is-active{ color: var(--accent); border: none; }

/* ---------------------------------------------------------------------
   طرح‌های ویژه‌سازی
   --------------------------------------------------------------------- */
.plan-options{ display: grid; gap: 12px; margin-bottom: 22px; }
.plan-option{ display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; cursor: pointer; }
.plan-option:has(input:checked){ border-color: var(--accent); background: var(--accent-soft); }
.plan-option-body{ display: flex; flex-direction: column; gap: 3px; }
.plan-price{ color: var(--ink-night); font-weight: 800; }

/* ---------------------------------------------------------------------
   صفحات محتوایی ساده
   --------------------------------------------------------------------- */
.content-page{ max-width: 720px; }
.content-page p{ color: var(--ink-soft); }
.rules-list{ display: flex; flex-direction: column; gap: 12px; }
.rules-list li{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink-soft); font-size: .92rem; }

/* =====================================================================
   واکنش‌گرا (Responsive)
   ===================================================================== */
@media (max-width: 980px){
  .category-grid{ grid-template-columns: repeat(3, 1fr); }
  .listing-layout{ grid-template-columns: 1fr; }
  .filters{ position: static; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .main-nav, .header-actions{ display: none; }
  .nav-toggle{ display: flex; }
  .header-inner{ height: 60px; }
  .brand{ margin-left: 0; margin-right: auto; }
  .category-grid, .category-grid-lg{ grid-template-columns: repeat(2, 1fr); }
  .list-card-link{ gap: 14px; }
  .list-card-avatar{ width: 100px; height: 100px; font-size: 2rem; }
  .channel-logo-lg{ width: 156px; height: 156px; font-size: 3.2rem; }
  .field-row{ grid-template-columns: 1fr; }
  .channel-detail-head{ margin-bottom: 22px; }
  .join-btn{ align-self: stretch; text-align: center; width: 100%; }
  .footer-inner{ grid-template-columns: 1fr; }
  .cta-band-inner{ flex-direction: column; align-items: flex-start; }
  .section{ padding: 34px 0; }
  .hero{ padding: 44px 0 76px; }
}
