/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENTS.css — پارت اول (Foundation, Header, Hero, Filter)
   🎨 Dark Gold Glassmorphism
   ✅ RTL  ✅ Responsive  ✅ Ready for Part 2
   ═══════════════════════════════════════════════════════════ */

:root {
  /* رنگ‌های پس‌زمینه */
  --void:      #0a0e27;
  --abyss:     #0f1535;
  --depths:    #141a40;
  --midnight:  #1a2050;
  --twilight:  #1f2765;
  
  /* طلایی */
  --gold:         #d4af37;
  --gold-bright:  #f5d878;
  --gold-pale:    #e8c85a;
  --gold-dark:    #b8962d;
  --gold-glow:    rgba(212,175,55,0.32);
  --gold-glow-sm: rgba(212,175,55,0.14);
  --gold-border:  rgba(212,175,55,0.28);

  /* متن */
  --text-0: #ffffff;
  --text-1: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --text-4: #64748b;
  --text-5: #475569;

  /* رنگ‌های کاربردی */
  --green:  #10b981;   --green-bg:  rgba(16,185,129,0.12);
  --red:    #ef4444;   --red-bg:    rgba(239,68,68,0.12);
  --blue:   #3b82f6;   --blue-bg:   rgba(59,130,246,0.12);
  --purple: #a855f7;
  --amber:  #f59e0b;   --amber-bg:  rgba(245,158,11,0.12);
  --teal:   #14b8a6;

  /* border-radius */
  --r-xs:   6px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-2xl:  40px;
  --r-full: 9999px;

  /* transition */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:  cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* z-index */
  --z-bg:      0;
  --z-content: 2;
  --z-header:  100;
  --z-filter:  90;
  --z-modal:   9999;
  --z-toast:   10000;

  /* height */
  --header-h: 80px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', -apple-system, sans-serif;
  background: var(--void);
  color: var(--text-1);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ----- Animated Background ----- */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--void) 0%, var(--abyss) 45%, var(--depths) 100%);
}

/* اورب‌های رنگی */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  will-change: transform, opacity;
  animation: orbFloat 30s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 900px; height: 900px;
  top: -350px; right: -200px;
  background: radial-gradient(circle, rgba(212,175,55,0.22), transparent 65%);
}

.orb-2 {
  width: 750px; height: 750px;
  bottom: -280px; left: -180px;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 65%);
  animation-delay: -12s;
  animation-direction: alternate-reverse;
}

.orb-3 {
  width: 600px; height: 600px;
  top: 35%; left: 25%;
  background: radial-gradient(circle, rgba(168,85,247,0.13), transparent 65%);
  animation-delay: -20s;
}

@keyframes orbFloat {
  0%   { opacity: 0.4; transform: translate(0,0) scale(0.9); }
  50%  { opacity: 0.85; transform: translate(60px, -50px) scale(1.12); }
  100% { opacity: 0.5; transform: translate(-30px, 40px) scale(0.95); }
}

/* گرید خطوط */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.06) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.45;
}

/* وینیت */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 40%, transparent 15%, rgba(10,14,39,0.94) 100%);
}

/* ----- HEADER ----- */
.ann-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(10,14,39,0.96);
  backdrop-filter: blur(60px) saturate(200%);
  border-bottom: 2px solid rgba(212,175,55,0.22);
  box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.1) inset;
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--void);
  font-size: 1.5rem;
  box-shadow: 0 8px 28px var(--gold-glow), 0 0 0 4px rgba(212,175,55,0.25);
  transition: all 0.35s var(--ease);
  flex-shrink: 0;
}

.brand-icon:hover {
  transform: translateY(-3px) rotate(8deg);
  box-shadow: 0 15px 40px var(--gold-glow), 0 0 0 6px rgba(212,175,55,0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-0);
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  color: var(--text-3);
}

.user-chip i {
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ----- HERO ----- */
.ann-hero {
  position: relative;
  z-index: var(--z-content);
  padding: 6rem 3rem 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.4rem;
  background: rgba(212,175,55,0.12);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--r-full);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-0);
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-0) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-3);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
  border-radius: var(--r-full);
}

/* Stats mini */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.2rem 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-stat .val {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold);
}

.hero-stat .lbl {
  font-size: 0.75rem;
  color: var(--text-4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----- FILTER BAR ----- */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: var(--z-filter);
  background: rgba(10,14,39,0.9);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.9rem 0;
}

.filter-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  color: var(--text-4);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.pill i {
  font-size: 0.8rem;
}

.pill:hover {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold-border);
  color: var(--gold);
}

.pill.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.06));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow-sm), 0 2px 8px rgba(0,0,0,0.3);
}

/* نوار جستجو */
.search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  position: relative;
  margin-right: auto;
}

.search-wrap .search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-wrap input {
  width: 100%;
  padding: 0.65rem 2.8rem 0.65rem 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  color: var(--text-1);
  font-size: 0.88rem;
  transition: all 0.3s;
}

.search-wrap input::placeholder {
  color: var(--text-5);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.count-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--text-4);
  font-weight: 700;
}

.count-badge span {
  color: var(--gold);
  font-weight: 800;
}

/* ----- MAIN CONTENT ----- */
.main-container {
  position: relative;
  z-index: var(--z-content);
  max-width: 1500px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 5rem;
}

/* ----- ANNOUNCEMENTS GRID (اسکلت اولیه) ----- */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: start;
}

/* کارت اعلامیه ویژه (مهم/اخطار) تمام عرض */
.ann-card.featured {
  grid-column: 1 / -1;
}

/* اسکلت کارت‌ها (Part 2 کامل می‌شه) */
.ann-card {
  background: rgba(18, 24, 52, 0.85);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
}

.ann-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.15);
}

/* --- Responsive Quick Adjustments --- */
@media (max-width: 1200px) {
  .ann-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ann-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: 0 auto;
  }
  .header-inner,
  .filter-inner,
  .main-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-stats {
    gap: 1.5rem;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .header-actions .user-chip span,
  .header-actions .btn-outline span {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENTS.css — پارت دوم (کارت‌های اعلامیه)
   🃏 Full Card Design, Featured, Priority Badges, Admin Actions
   ═══════════════════════════════════════════════════════════ */

/* ----- Grid Layout Refinements ----- */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: start;
}

/* کارت ویژه تمام‌عرض */
.ann-card.featured {
  grid-column: auto; /* دیگر تمام عرض نیست */
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border: 2px solid var(--gold-border);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
}

/* در موبایل ویژه هم یک ستونه می‌شه */
@media (max-width: 768px) {
  .ann-card.featured {
    grid-template-columns: 1fr;
  }
}

/* ----- پایه کارت ----- */
.ann-card {
  background: rgba(18, 24, 52, 0.85);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
  animation: cardAppear 0.5s var(--ease) both;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ann-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px var(--gold-glow-sm);
}

/* ----- نشان رنگی بالای کارت برای اولویت (مهم/اخطار) ----- */
.ann-card.priority-important::before,
.ann-card.priority-warning::before,
.ann-card.priority-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 2;
}

.ann-card.priority-important::before {
  background: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
  box-shadow: 0 0 20px rgba(239,68,68,0.5);
}

.ann-card.priority-warning::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  box-shadow: 0 0 20px rgba(245,158,11,0.5);
}

.ann-card.priority-note::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
  box-shadow: 0 0 20px rgba(59,130,246,0.5);
}

/* ----- بنر / تامنیل ----- */
.card-banner {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--depths), var(--midnight));
}

.featured .card-banner {
  height: 100%;
  min-height: 280px;
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ann-card:hover .card-banner img {
  transform: scale(1.05);
}

/* حالت بدون تصویر */
.card-banner .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
}

.placeholder i {
  font-size: 3rem;
  color: var(--text-5);
  opacity: 0.3;
}

.placeholder span {
  font-size: 0.8rem;
  color: var(--text-5);
  text-transform: uppercase;
}

/* ----- Overlay روی بنر ----- */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,39,0.9) 0%, rgba(10,14,39,0.3) 60%, transparent 100%);
}

/* ----- تگ دسته‌بندی روی بنر ----- */
.card-category {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1.5px solid;
  backdrop-filter: blur(8px);
}

.cat-announcement   { background: rgba(212,175,55,0.18); color: var(--gold); border-color: rgba(212,175,55,0.4); }
.cat-law            { background: rgba(168,85,247,0.18); color: #c084fc; border-color: rgba(168,85,247,0.4); }
.cat-court          { background: rgba(239,68,68,0.18); color: #f87171; border-color: rgba(239,68,68,0.4); }
.cat-general        { background: rgba(59,130,246,0.18); color: #60a5fa; border-color: rgba(59,130,246,0.4); }
.cat-guide          { background: rgba(16,185,129,0.18); color: var(--green); border-color: rgba(16,185,129,0.4); }

/* ----- نشان اولویت (لوگوی کوچک) ----- */
.priority-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
  border: 1px solid;
}

.priority-important .priority-tag {
  background: rgba(239,68,68,0.25);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.5);
}

.priority-warning .priority-tag {
  background: rgba(245,158,11,0.25);
  color: #fcd34d;
  border-color: rgba(245,158,11,0.5);
}

.priority-note .priority-tag {
  background: rgba(59,130,246,0.25);
  color: #93c5fd;
  border-color: rgba(59,130,246,0.5);
}

/* ----- بدنه کارت ----- */
.card-body {
  padding: 1.6rem 1.6rem 1.2rem;
}

.featured .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* متادیتا (تاریخ، نویسنده) */
.card-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-5);
  flex-wrap: wrap;
}

.card-meta i {
  margin-left: 0.3rem;
  color: var(--text-5);
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-5);
}

/* عنوان کارت */
.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured .card-title {
  font-size: 1.6rem;
  -webkit-line-clamp: 3;
}

/* خلاصه متن */
.card-excerpt {
  color: var(--text-4);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- فوتر کارت ----- */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--void);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.85rem;
  color: var(--text-4);
  font-weight: 700;
}

.stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-5);
}

.stat-item i {
  font-size: 0.85rem;
}

/* ----- دکمه‌های مدیریت (فقط ادمین) ----- */
.admin-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.ann-card:hover .admin-actions {
  opacity: 1;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-icon:hover {
  background: rgba(212,175,55,0.25);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}

.btn-icon.delete:hover {
  background: rgba(239,68,68,0.3);
  border-color: var(--red);
  color: var(--red);
}

/* ----- Responsive tweaks in part 2 ----- */
@media (max-width: 1200px) {
  .ann-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ann-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .card-banner {
    height: 200px;
  }
}

/* empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-5);
}
.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.empty-state h3 {
  font-size: 1.4rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENTS.css — پارت سوم (Modal, Form, Admin Panel, Toast, Pagination)
   🧩 Full Feature Set — Complete Design
   ═══════════════════════════════════════════════════════════ */

/* ============================
   MODAL BASE
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(2, 6, 20, 0.9);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: linear-gradient(145deg, rgba(15,21,53,0.99), rgba(10,14,39,0.99));
  border: 1.5px solid rgba(212,175,55,0.2);
  border-radius: var(--r-2xl);
  max-width: 950px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.1) inset;
  margin: auto;
  overflow: hidden;
  animation: slideUp 0.4s var(--ease-spring);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   DETAIL MODAL (نمایش کامل)
   ============================ */
.modal-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--depths);
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-banner .banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(255,255,255,0.02);
}

.modal-banner .banner-placeholder i {
  font-size: 4rem;
  color: rgba(212,175,55,0.25);
}

.modal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,39,0.95) 0%, rgba(10,14,39,0.3) 70%, transparent 100%);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(239,68,68,0.3);
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.2rem 2.5rem 2.5rem;
}

.modal-priority-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

.priority-important .modal-priority-tag {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.4);
}

.priority-warning .modal-priority-tag {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border-color: rgba(245,158,11,0.4);
}

.priority-note .modal-priority-tag {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border-color: rgba(59,130,246,0.4);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-0);
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-4);
  flex-wrap: wrap;
}

.modal-meta i {
  color: var(--text-5);
  margin-left: 0.4rem;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
  margin: 1.5rem 0;
}

.modal-content-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

/* کد embed (اگر اعلامیه شامل کد باشه) */
.modal-code-block {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Courier New', monospace;
  color: var(--gold-pale);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

/* تگ‌های انتهای مودال */
.modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.modal-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--text-4);
}

/* ============================
   FORM MODAL (ایجاد/ویرایش)
   ============================ */
.form-modal .modal-box {
  max-width: 750px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label i {
  width: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1.2rem;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.form-check label {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 700;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================
   BUTTONS (Global)
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--void);
  box-shadow: 0 8px 20px rgba(212,175,55,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212,175,55,0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(212,175,55,0.8);
  border-color: var(--gold);
}

.btn-danger {
  background: var(--red-bg);
  border: 1.5px solid rgba(239,68,68,0.4);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.25);
}

/* ============================
   ADMIN PANEL TABLE
   ============================ */
.admin-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  display: none;
}

.admin-panel-overlay.active {
  display: block;
}

.admin-panel-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(212,175,55,0.18);
}

.admin-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-stats-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: rgba(26,32,68,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 1.2rem;
  text-align: center;
}

.admin-stat-card .val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

.admin-stat-card .lbl {
  font-size: 0.75rem;
  color: var(--text-5);
  font-weight: 700;
}

.table-wrap {
  background: rgba(18,24,52,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 1rem 1.2rem;
  text-align: right;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(212,175,55,0.06);
  border-bottom: 2px solid rgba(212,175,55,0.2);
}

.admin-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-2);
  font-size: 0.9rem;
}

.admin-table tbody tr:hover {
  background: rgba(212,175,55,0.04);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(145deg, rgba(15,21,53,0.99), rgba(10,14,39,0.99));
  backdrop-filter: blur(40px);
  border: 2px solid;
  border-radius: var(--r-xl);
  padding: 1.2rem 1.8rem;
  min-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateX(-130%);
  transition: transform 0.5s var(--ease-bounce);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast.success {
  border-color: rgba(16,185,129,0.5);
}

.toast.success .toast-icon {
  background: var(--green-bg);
  color: var(--green);
}

.toast.error {
  border-color: rgba(239,68,68,0.5);
}

.toast.error .toast-icon {
  background: var(--red-bg);
  color: var(--red);
}

.toast.warning {
  border-color: rgba(245,158,11,0.5);
}

.toast.warning .toast-icon {
  background: var(--amber-bg);
  color: var(--amber);
}

.toast .t-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-0);
  margin-bottom: 0.2rem;
}

.toast .t-msg {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ============================
   PAGINATION
   ============================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: var(--text-3);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 42px;
}

.page-btn:hover:not(:disabled) {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold-border);
  color: var(--gold);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--void);
  border-color: var(--gold);
  font-weight: 900;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================
   SKELETON LOADING
   ============================ */
.skel-card {
  background: rgba(18,24,52,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: pulse 1.6s ease-in-out infinite;
}

.skel-banner {
  height: 200px;
  background: rgba(255,255,255,0.04);
}

.skel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skel-line {
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-full);
}

.skel-line.short { width: 40%; }
.skel-line.medium { width: 70%; }
.skel-line.long { width: 90%; }

/* ============================
   EMPTY STATE
   ============================ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-5);
  margin-bottom: 1.2rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.4rem;
  color: var(--text-3);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-5);
}

/* ============================
   RESPONSIVE FINAL
   ============================ */
@media (max-width: 960px) {
  .admin-stats-mini {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-banner {
    height: 240px;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 1rem;
  }
  .modal-banner {
    height: 200px;
  }
  .toast {
    left: 1rem;
    right: 1rem;
    min-width: auto;
  }
}

/* ========== استایل عمومی سلکت (دراپ‌داون) ========== */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border 0.3s, box-shadow 0.3s;
}

select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}