/* ════════════════════════════════════════════
   پرتال فرهنگی راسخون — استایل اصلی
   ════════════════════════════════════════════ */
:root {
  --teal: #0fb2aa;
  --teal-dark: #0a8880;
  --teal-xdark: #076660;
  --teal-light: rgba(15,178,170,0.12);
  --gold: #d7b46a;
  --gold-dark: #b8923f;
  --gold-light: rgba(215,180,106,0.12);
  --black: #0d1117;
  --dark: #1a2332;
  --dark2: #243044;
  --mid: #374a63;
  --muted: #5c7391;
  --muted2: #8aa3be;
  --light: #f0f4f8;
  --white: #ffffff;
  --border: rgba(15,178,170,0.18);
  --border-gold: rgba(215,180,106,0.25);
  --border-subtle: rgba(255,255,255,0.07);
  --font: 'Amiri', 'Tahoma', serif;
  --shadow: 0 8px 32px rgba(0,0,0,0.22);
  --shadow-teal: 0 4px 20px rgba(15,178,170,0.28);
  --shadow-gold: 0 4px 20px rgba(215,180,106,0.28);
  --r: 16px;
  --r-sm: 8px;
  --r-lg: 24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ── BACKGROUND ── */
.bg-pattern {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(15,178,170,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(215,180,106,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0d1117 0%, #1a2332 50%, #0d1117 100%);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(15,178,170,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,178,170,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── APP LAYOUT ── */
#app { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
header {
  background: rgba(26,35,50,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow-teal);
}
.logo-text .name { display: block; font-size: 20px; font-weight: 700; }
.logo-text .sub { display: block; font-size: 11px; color: var(--teal); letter-spacing: 1px; }

.header-center { display: flex; gap: 4px; }
.nav-btn {
  padding: 8px 16px;
  background: none; border: none;
  border-radius: 10px;
  color: var(--muted2);
  font-family: var(--font); font-size: 14px;
  cursor: pointer; transition: all 0.22s;
  white-space: nowrap;
}
.nav-btn:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-btn.active { background: var(--teal-light); color: var(--teal); border: 1px solid rgba(15,178,170,0.25); }

.header-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 7px 14px;
  transition: all 0.3s;
  width: 200px;
}
.search-bar:focus-within {
  border-color: var(--teal);
  background: rgba(15,178,170,0.08);
  box-shadow: 0 0 0 3px rgba(15,178,170,0.12);
  width: 260px;
}
.search-bar input {
  background: none; border: none; outline: none;
  color: var(--white); font-family: var(--font); font-size: 14px; width: 100%; direction: rtl;
}
.search-bar input::placeholder { color: var(--muted); }
.btn-admin {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); border: none; border-radius: 22px;
  padding: 8px 18px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  box-shadow: var(--shadow-gold); white-space: nowrap;
}
.btn-admin:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(215,180,106,0.4); }

/* ════════════════════════════════════════════
   VIEWS
   ════════════════════════════════════════════ */
main { flex: 1; }
.view { display: none; }
.view.active { display: block; animation: fadeInUp 0.35s ease; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero { padding: 72px 32px 52px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal-light);
  border: 1px solid rgba(15,178,170,0.3);
  border-radius: 22px; padding: 6px 16px;
  font-size: 13px; color: var(--teal); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(26px,5vw,50px); font-weight: 700; line-height: 1.45; margin-bottom: 16px; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 16px; color: var(--muted2); max-width: 580px; margin: 0 auto 36px; line-height: 1.9; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.meta-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 6px 13px; font-size: 13px; color: var(--muted2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }

/* ════════════════════════════════════════════
   QUICK STATS
   ════════════════════════════════════════════ */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 0 32px 44px;
  max-width: 1200px; margin: 0 auto;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px 16px; text-align: center;
  transition: all 0.3s; cursor: default; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { border-color: rgba(15,178,170,0.35); transform: translateY(-3px); box-shadow: var(--shadow-teal); }
.stat-card:hover::before { opacity: 1; }
.stat-num { font-size: 34px; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ════════════════════════════════════════════
   SECTION
   ════════════════════════════════════════════ */
.section { padding: 36px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(15,178,170,0.2), rgba(15,178,170,0.08));
  border: 1px solid rgba(15,178,170,0.25); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.section-title { font-size: 22px; font-weight: 700; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════ */
.tabs-scroll { overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs {
  display: flex; gap: 6px; padding: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px; width: max-content; min-width: 100%;
}
.tab-btn {
  flex: 1; min-width: 100px; padding: 9px 14px;
  background: none; border: none; border-radius: 10px;
  color: var(--muted2); font-family: var(--font); font-size: 14px;
  cursor: pointer; transition: all 0.22s; white-space: nowrap; text-align: center;
}
.tab-btn:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white); box-shadow: var(--shadow-teal); font-weight: 700;
}

/* ════════════════════════════════════════════
   ARTICLE CARDS
   ════════════════════════════════════════════ */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.article-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  cursor: pointer; transition: all 0.3s;
}
.article-card:hover { border-color: rgba(15,178,170,0.4); transform: translateY(-4px); box-shadow: var(--shadow-teal); }
.card-accent { height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.card-body { padding: 22px; }
.card-chapter {
  display: inline-block; background: var(--teal-light);
  color: var(--teal); font-size: 11px; padding: 3px 10px;
  border-radius: 7px; margin-bottom: 11px; border: 1px solid rgba(15,178,170,0.2);
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 9px; line-height: 1.5; }
.card-excerpt {
  font-size: 14px; color: var(--muted2); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  padding: 13px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.card-meta { font-size: 12px; color: var(--muted); }
.card-read { font-size: 12px; color: var(--teal); }

/* ════════════════════════════════════════════
   ARTICLE DETAIL
   ════════════════════════════════════════════ */
.article-detail { max-width: 820px; margin: 0 auto; padding: 40px 32px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); background: none; border: none;
  cursor: pointer; font-family: var(--font); font-size: 15px;
  margin-bottom: 28px; padding: 8px 14px; border-radius: 8px; transition: background 0.2s;
}
.back-btn:hover { background: rgba(15,178,170,0.1); }
.article-chapter-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(15,178,170,0.15), rgba(215,180,106,0.1));
  border: 1px solid rgba(15,178,170,0.3);
  color: var(--teal); font-size: 13px; padding: 5px 14px; border-radius: 10px; margin-bottom: 14px;
}
.article-main-title { font-size: clamp(22px,4vw,34px); font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.article-divider {
  height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold), transparent);
  border-radius: 2px; margin: 18px 0 28px;
}
.article-content { font-size: 16px; line-height: 2; color: rgba(255,255,255,0.87); }
.article-content h2 {
  font-size: 21px; color: var(--white); margin: 30px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.article-content h2::before {
  content: ''; width: 4px; height: 21px;
  background: linear-gradient(var(--teal), var(--gold)); border-radius: 2px; flex-shrink: 0;
}
.article-content h3 { font-size: 17px; color: var(--gold); margin: 22px 0 10px; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { padding-right: 22px; margin-bottom: 14px; }
.article-content li { margin-bottom: 7px; }
.article-content code {
  background: rgba(15,178,170,0.12); color: var(--teal);
  padding: 2px 7px; border-radius: 5px; font-size: 14px; direction: ltr; display: inline-block;
}
.highlight-box {
  background: rgba(15,178,170,0.08); border-right: 4px solid var(--teal);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 18px 0; font-size: 15px;
}
.warning-box {
  background: rgba(215,180,106,0.08); border-right: 4px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 18px 0; font-size: 15px;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article-content th {
  background: rgba(15,178,170,0.15); color: var(--teal);
  padding: 11px 14px; text-align: right; font-weight: 700; border: 1px solid var(--border);
}
.article-content td {
  padding: 10px 14px; border: 1px solid var(--border); color: rgba(255,255,255,0.8); vertical-align: top;
}
.article-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ════════════════════════════════════════════
   PUBLIC MEMBERS
   ════════════════════════════════════════════ */
.members-pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.member-pub-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; transition: all 0.3s;
}
.member-pub-card:hover { border-color: rgba(15,178,170,0.35); transform: translateY(-3px); box-shadow: var(--shadow-teal); }
.member-avatar-wrap {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.member-pub-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.member-pub-role { font-size: 13px; color: var(--teal); margin-bottom: 12px; }
.member-pub-resp {
  font-size: 13px; color: var(--muted2); line-height: 1.7;
  border-top: 1px solid var(--border-subtle); padding-top: 12px;
}
.member-contact { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.contact-tag {
  font-size: 12px; color: var(--muted2);
  background: rgba(255,255,255,0.05); border-radius: 6px; padding: 3px 8px;
  display: flex; align-items: center; gap: 4px;
}

/* ════════════════════════════════════════════
   PUBLIC TASKS
   ════════════════════════════════════════════ */
.task-pub-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 22px; margin-bottom: 12px; transition: all 0.3s;
}
.task-pub-item:hover { border-color: rgba(15,178,170,0.3); transform: translateX(-3px); box-shadow: var(--shadow-teal); }
.task-pub-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.task-pub-title { font-size: 16px; font-weight: 700; color: var(--white); }
.task-pub-body { font-size: 14px; color: var(--muted2); line-height: 1.8; margin-bottom: 12px; }
.task-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge-teal { background: rgba(15,178,170,0.15); color: var(--teal); }
.badge-gold { background: rgba(215,180,106,0.15); color: var(--gold); }
.badge-red { background: rgba(255,80,80,0.15); color: #ff6b6b; }
.badge-green { background: rgba(80,200,120,0.15); color: #4cd38b; }
.badge-purple { background: rgba(160,100,220,0.15); color: #b47fe6; }
.badge-gray { background: rgba(255,255,255,0.08); color: var(--muted2); }
.badge-orange { background: rgba(255,165,0,0.15); color: #ffaa33; }

/* ════════════════════════════════════════════
   SEARCH RESULTS
   ════════════════════════════════════════════ */
.search-results { padding: 32px; max-width: 900px; margin: 0 auto; }
.search-count { color: var(--muted2); font-size: 14px; margin-bottom: 24px; }
.search-count span { color: var(--teal); font-weight: 700; }
.search-result-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 22px; margin-bottom: 10px;
  cursor: pointer; transition: all 0.3s;
}
.search-result-item:hover { border-color: var(--teal); background: rgba(15,178,170,0.06); transform: translateX(-3px); }
.search-result-item h3 { font-size: 16px; color: var(--white); margin-bottom: 7px; }
.search-result-item p { font-size: 13px; color: var(--muted2); line-height: 1.7; }
.result-tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-top: 7px; }
mark { background: rgba(215,180,106,0.25); color: var(--gold); border-radius: 2px; padding: 0 2px; }

/* ════════════════════════════════════════════
   ADMIN LOGIN
   ════════════════════════════════════════════ */
.admin-login {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.login-card {
  background: rgba(26,35,50,0.97); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 44px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow); animation: fadeInUp 0.4s ease;
}
.logo-center { text-align: center; margin-bottom: 32px; }
.login-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 14px; box-shadow: var(--shadow-teal);
}
.login-card h2 { font-size: 23px; font-weight: 700; margin-bottom: 4px; }
.login-card p { color: var(--muted2); font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 7px; font-weight: 700; }
.form-input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--white);
  font-family: var(--font); font-size: 15px; outline: none; transition: all 0.3s;
}
.form-input:focus { border-color: var(--teal); background: rgba(15,178,170,0.08); box-shadow: 0 0 0 3px rgba(15,178,170,0.12); }
.form-input::placeholder { color: var(--muted); }
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white); border: none; border-radius: 10px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-teal);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,178,170,0.4); }
.login-error {
  background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3);
  color: #ff6b6b; padding: 11px 14px; border-radius: 9px;
  font-size: 14px; margin-top: 12px; display: none; text-align: center;
}
.login-error.show { display: block; }

/* ════════════════════════════════════════════
   ADMIN LAYOUT
   ════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar {
  width: 250px; background: rgba(20,28,42,0.97);
  border-left: 1px solid var(--border); padding: 20px 0;
  flex-shrink: 0; position: sticky; top: 68px;
  height: calc(100vh - 68px); overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-section { padding: 0 12px; margin-bottom: 4px; }
.sidebar-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); padding: 10px 8px 5px; display: block;
}
.sidebar-btn {
  width: 100%; padding: 10px 12px;
  background: none; border: none; border-radius: 9px;
  color: rgba(255,255,255,0.6); font-family: var(--font); font-size: 14px;
  cursor: pointer; transition: all 0.2s; text-align: right;
  display: flex; align-items: center; gap: 9px; margin-bottom: 2px;
}
.sidebar-btn span { font-size: 16px; width: 22px; text-align: center; }
.sidebar-btn:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.sidebar-btn.active { background: rgba(15,178,170,0.15); color: var(--teal); border: 1px solid rgba(15,178,170,0.22); }
.admin-main { flex: 1; padding: 28px 32px; overflow-y: auto; }
.admin-page { display: none; animation: fadeInUp 0.3s ease; }
.admin-page.active { display: block; }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 5px; }
.page-sub { color: var(--muted2); font-size: 14px; margin-bottom: 24px; }

/* ════════════════════════════════════════════
   PANELS & FORMS
   ════════════════════════════════════════════ */
.panel {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; margin-bottom: 18px;
}
.panel-title {
  font-size: 18px; font-weight: 700; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 9px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-label { display: block; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-weight: 700; }
.form-control {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; color: var(--white);
  font-family: var(--font); font-size: 14px; outline: none; transition: all 0.3s; direction: rtl;
}
.form-control:focus { border-color: var(--teal); background: rgba(15,178,170,0.08); }
.form-control::placeholder { color: var(--muted); }
select.form-control option { background: #1a2332; color: var(--white); }
textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.8; }
.btn-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn { padding: 10px 18px; border: none; border-radius: 8px; font-family: var(--font); font-size: 14px; cursor: pointer; transition: all 0.25s; font-weight: 700; }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: var(--white); box-shadow: var(--shadow-teal); }
.btn-teal:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,178,170,0.4); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--black); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--muted2); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-danger { background: rgba(255,80,80,0.15); color: #ff6b6b; border: 1px solid rgba(255,80,80,0.25); }
.btn-danger:hover { background: rgba(255,80,80,0.25); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ════════════════════════════════════════════
   DATA TABLES
   ════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: rgba(15,178,170,0.1); color: var(--teal); padding: 11px 14px; text-align: right; font-weight: 700; border-bottom: 2px solid rgba(15,178,170,0.2); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; color: rgba(255,255,255,0.8); }
.data-table tr:hover td { background: rgba(255,255,255,0.03); }

/* DASHBOARD STATS */
.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.ds-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.ds-card .val { font-size: 30px; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 4px; }
.ds-card .lbl { font-size: 12px; color: var(--muted); }

/* MEMBER CARDS (admin) */
.members-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member-admin-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; transition: all 0.3s;
}
.member-admin-card:hover { border-color: rgba(15,178,170,0.3); }
.member-name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.member-role-tag { font-size: 13px; color: var(--teal); margin-bottom: 10px; }
.member-resp-preview { font-size: 12px; color: var(--muted2); line-height: 1.6; border-top: 1px solid var(--border-subtle); padding-top: 10px; }

/* TASK ITEMS (admin) */
.task-admin-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; margin-bottom: 10px; transition: all 0.3s;
}
.task-admin-item:hover { border-color: rgba(15,178,170,0.25); }
.task-admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.task-admin-title { font-size: 15px; font-weight: 700; }
.task-admin-body { font-size: 13px; color: var(--muted2); line-height: 1.7; margin-bottom: 10px; }
.task-admin-footer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* PROGRESS BAR */
.progress-wrap { background: rgba(255,255,255,0.07); border-radius: 4px; height: 5px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.5s; }

/* BISMILLAH */
.bismillah-bar {
  background: linear-gradient(135deg, rgba(15,178,170,0.07), rgba(215,180,106,0.05));
  border: 1px solid var(--border-gold); border-radius: 12px;
  padding: 14px 22px; text-align: center; margin-bottom: 30px;
}
.bismillah-text { font-size: 18px; color: var(--gold); letter-spacing: 2px; }
.quran-quote {
  background: linear-gradient(135deg, rgba(215,180,106,0.07), rgba(15,178,170,0.04));
  border: 1px solid var(--border-gold); border-radius: 14px;
  padding: 24px 28px; text-align: center; margin: 40px 0;
}
.quran-text { font-size: 20px; color: var(--gold); line-height: 1.9; margin-bottom: 7px; }
.quran-ref { font-size: 13px; color: var(--muted2); }

/* COLOR PALETTE */
.color-palette { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.swatch {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
}
.swatch-color { width: 32px; height: 32px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.15); }
.swatch-hex { font-size: 14px; font-weight: 700; }
.swatch-name { font-size: 12px; color: var(--muted2); }

/* LOG */
.log-item {
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
  display: flex; gap: 12px; align-items: flex-start; font-size: 13px;
}
.log-action { color: var(--teal); font-weight: 700; white-space: nowrap; }
.log-details { color: var(--muted2); flex: 1; }
.log-time { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* FOOTER */
footer { background: rgba(26,35,50,0.95); border-top: 1px solid var(--border); padding: 28px 32px; text-align: center; margin-top: auto; }
.footer-logo { font-size: 20px; font-weight: 700; color: var(--teal); margin-bottom: 7px; }
.footer-sub { font-size: 13px; color: var(--muted2); margin-bottom: 8px; }
.footer-meta { font-size: 12px; color: rgba(255,255,255,0.3); }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; width: 100%; max-width: 600px;
  max-height: 88vh; overflow-y: auto;
  transform: scale(0.9); transition: transform 0.3s; box-shadow: var(--shadow);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; background: rgba(255,255,255,0.08);
  border: none; border-radius: 8px; color: var(--muted2);
  cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,80,80,0.2); color: #ff6b6b; }

/* TOAST */
.toast {
  position: fixed; bottom: 24px; left: 24px;
  background: rgba(15,178,170,0.95); color: var(--white);
  padding: 13px 20px; border-radius: 12px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-teal); z-index: 9999;
  transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted2); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; margin-bottom: 20px; }

/* LOADING */
.loading-state { text-align: center; padding: 40px; color: var(--muted2); font-size: 15px; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.6; transform:scale(0.88); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-center { display: none; }
  .dashboard-stats { grid-template-columns: repeat(2,1fr); }
  .form-row.triple { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  header { padding: 0 14px; gap: 10px; }
  .search-bar { width: 130px; }
  .search-bar:focus-within { width: 170px; }
  .section { padding: 20px 14px; }
  .quick-stats { padding: 0 14px 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .members-pub-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; position: relative; top: 0; height: auto; border-left: none; border-bottom: 1px solid var(--border); }
  .admin-main { padding: 18px 14px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr; }
  .article-detail { padding: 22px 14px; }
  .hero { padding: 44px 14px 36px; }
  .login-card { padding: 28px 20px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
}
