/* ═══════════════════════════════════════════════════════════
   دانلودچی نیوز — Premium v4
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg:         #05050d;
  --bg-2:       #090918;
  --bg-3:       #0e0e28;
  --glass:      rgba(10,10,30,.78);
  --glass-b:    rgba(12,12,38,.55);
  --purple:     #7c6fff;
  --purple-2:   #a78bfa;
  --purple-3:   #c4b5fd;
  --purple-dim: rgba(124,111,255,.14);
  --cyan:       #00d4ff;
  --cyan-2:     #67e8f9;
  --cyan-dim:   rgba(0,212,255,.11);
  --pink:       #f472b6;
  --green:      #4ade80;
  --amber:      #fbbf24;
  --text-1:     #f2f2ff;
  --text-2:     #bdbdd8;
  --text-3:     #62628a;
  --border:     rgba(124,111,255,.16);
  --border-h:   rgba(124,111,255,.48);
  --r:          14px;
  --r-sm:       9px;
  --r-lg:       20px;
  --r-xl:       28px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  direction: rtl; background: var(--bg);
  color: var(--text-2); min-height: 100vh; line-height: 1.75;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan-2); }
::selection { background: rgba(124,111,255,.4); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--cyan)); border-radius: 5px; }

/* ── Page loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#page-loader.out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--purple); border-right-color: var(--cyan);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress bar ────────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; right: 0; left: 0; height: 2px; z-index: 8999;
  width: 0; background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
  box-shadow: 0 0 10px rgba(124,111,255,.6);
  transition: width .08s linear;
}

/* ── Ambient blobs ───────────────────────────────────────── */
#ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(100px); }
.blob-1 {
  width: 750px; height: 750px; opacity: .1;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  top: -220px; right: -280px;
  animation: blob-drift-1 20s ease-in-out infinite;
}
.blob-2 {
  width: 600px; height: 600px; opacity: .08;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  bottom: -150px; left: -220px;
  animation: blob-drift-2 25s ease-in-out infinite;
}
.blob-3 {
  width: 450px; height: 450px; opacity: .05;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  top: 50%; left: 35%;
  animation: blob-drift-3 30s ease-in-out infinite;
}
@keyframes blob-drift-1 { 0%,100%{transform:translate(0,0) scale(1)} 30%{transform:translate(70px,90px) scale(1.1)} 65%{transform:translate(-50px,60px) scale(.93)} }
@keyframes blob-drift-2 { 0%,100%{transform:translate(0,0)} 40%{transform:translate(-80px,-60px) scale(1.07)} 70%{transform:translate(60px,-80px)} }
@keyframes blob-drift-3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(90px,-70px)} }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(5,5,13,.55);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; transition: background .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(5,5,13,.94); box-shadow: 0 4px 40px rgba(0,0,0,.5); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; height: 66px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 900;
}
.logo-icon { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(124,111,255,.7)); animation: logo-glow 3s ease-in-out infinite; }
@keyframes logo-glow { 0%,100%{filter:drop-shadow(0 0 6px rgba(124,111,255,.6))} 50%{filter:drop-shadow(0 0 16px rgba(0,212,255,.8))} }
.logo-text {
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--purple-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  color: var(--text-3); padding: 7px 15px; border-radius: var(--r-sm);
  font-size: .875rem; transition: color .2s, background .2s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 3px; right: 50%; left: 50%;
  height: 2px; background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px; transition: right .3s, left .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }
.nav-links a:hover::after, .nav-links a.active::after { right: 14px; left: 14px; }
.nav-right { margin-right: auto; display: flex; align-items: center; gap: 10px; }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 24px; padding: 7px 16px; transition: all .3s;
}
.search-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,111,255,.12); background: rgba(255,255,255,.08); }
.search-icon { font-size: .85rem; opacity: .5; }
.search-wrap input {
  background: none; border: none; outline: none; color: var(--text-1);
  font-size: .87rem; font-family: inherit; width: 180px; transition: width .3s;
}
.search-wrap:focus-within input { width: 220px; }
.search-wrap input::placeholder { color: var(--text-3); }
.nav-tg-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(124,111,255,.12); border: 1px solid rgba(124,111,255,.3);
  border-radius: 20px; padding: 7px 16px;
  color: var(--purple-2); font-size: .83rem; font-weight: 600;
  transition: all .25s;
}
.nav-tg-btn:hover { background: rgba(124,111,255,.22); border-color: var(--purple); color: var(--purple-2); box-shadow: 0 0 14px rgba(124,111,255,.2); }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker-wrap {
  background: linear-gradient(90deg, rgba(124,111,255,.07), rgba(0,212,255,.04), rgba(124,111,255,.07));
  border-bottom: 1px solid var(--border); padding: 9px 0;
  overflow: hidden; position: relative; z-index: 1;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2;
}
.ticker-wrap::before { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.ticker-wrap::after  { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.ticker-badge {
  position: absolute; right: 18px; z-index: 3; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; padding: 3px 14px; border-radius: 14px; font-size: .72rem; font-weight: 800;
  box-shadow: 0 0 18px rgba(124,111,255,.5); letter-spacing: .5px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse { 0%,100%{box-shadow:0 0 12px rgba(124,111,255,.5)} 50%{box-shadow:0 0 24px rgba(0,212,255,.8),0 0 40px rgba(124,111,255,.3)} }
.ticker-track {
  display: flex; gap: 64px; white-space: nowrap;
  animation: ticker-scroll 55s linear infinite; padding-right: 140px;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item { font-size: .81rem; display: inline-flex; align-items: center; gap: 8px; }
.ticker-item a { color: var(--text-2); transition: color .2s; }
.ticker-item a:hover { color: var(--cyan); }
.ticker-dot { color: var(--purple); font-size: .55rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 28px 60px; min-height: 480px;
  display: flex; align-items: center;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,5,13,.1), rgba(5,5,13,.75) 100%); }
.hero-inner {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 380px; gap: 52px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,111,255,.13); border: 1px solid rgba(124,111,255,.28);
  border-radius: 20px; padding: 5px 16px; margin-bottom: 20px;
  font-size: .77rem; color: var(--purple-2); width: fit-content;
  animation: fade-down .7s ease both;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes fade-down { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:none} }
.hero-title {
  font-size: 2.1rem; font-weight: 900; color: var(--text-1); line-height: 1.3;
  margin-bottom: 14px; animation: fade-up .8s ease .1s both;
}
.grad-text {
  background: linear-gradient(135deg, var(--purple-2) 0%, var(--cyan) 60%, var(--purple-3) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200%; animation: grad-move 5s ease-in-out infinite;
}
@keyframes grad-move { 0%,100%{background-position:0%} 50%{background-position:100%} }
@keyframes fade-up { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }
.hero-type-line {
  font-size: .97rem; color: var(--text-3); margin-bottom: 18px; min-height: 1.5em;
  animation: fade-up .8s ease .2s both;
}
.cursor { display: inline-block; background: var(--cyan); width: 2px; height: 1em; vertical-align: middle; animation: cur-blink .7s step-end infinite; }
@keyframes cur-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-excerpt {
  color: var(--text-3); font-size: .93rem; line-height: 1.85;
  margin-bottom: 28px; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  animation: fade-up .8s ease .3s both;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; animation: fade-up .8s ease .4s both; }
/* Right side panel */
.hero-panel { display: flex; flex-direction: column; gap: 14px; animation: fade-up .9s ease .3s both; }
.hpanel-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px; backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 16px;
  transition: border-color .3s, box-shadow .3s; cursor: default;
  position: relative; overflow: hidden;
}
.hpanel-card::after {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,111,255,.5), rgba(0,212,255,.4), transparent);
}
.hpanel-card:hover { border-color: var(--border-h); box-shadow: 0 4px 24px rgba(124,111,255,.15); }
.hp-icon { font-size: 1.9rem; flex-shrink: 0; }
.hp-num { font-size: 1.55rem; font-weight: 900; color: var(--purple-2); line-height: 1; }
.hp-lbl { font-size: .76rem; color: var(--text-3); margin-top: 3px; }

/* ── Layout ──────────────────────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.wrap-sm { max-width: 860px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
/* Magazine two-column */
.magazine-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--r-sm);
  font-size: .9rem; cursor: pointer; border: none;
  font-weight: 700; font-family: inherit; transition: all .28s;
  position: relative; overflow: hidden;
}
.btn::after { content: ""; position: absolute; top: -50%; right: -120%; bottom: -50%; width: 60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); transform: skewX(-20deg); transition: right .5s; }
.btn:hover::after { right: 130%; }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #4a38e0);
  color: #fff; box-shadow: 0 4px 20px rgba(124,111,255,.45);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(124,111,255,.7); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: rgba(124,111,255,.08); color: var(--purple-2);
  border: 1px solid rgba(124,111,255,.32);
}
.btn-outline:hover { background: rgba(124,111,255,.16); border-color: var(--purple); color: var(--purple-2); transform: translateY(-1px); }
.btn-cyan {
  background: linear-gradient(135deg, #007ba8, var(--cyan));
  color: #000; font-weight: 900;
}
.btn-cyan:hover { box-shadow: 0 4px 28px rgba(0,212,255,.55); transform: translateY(-2px); color: #000; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-danger { background: rgba(127,29,29,.5); color: #fca5a5; border: 1px solid rgba(220,38,38,.3); }
.btn-danger:hover { background: rgba(153,27,27,.65); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .2px;
  padding: 3px 11px; border-radius: 14px; line-height: 1.5;
}
.badge-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,212,255,.2); }
.badge-purple { background: var(--purple-dim); color: var(--purple-2); border: 1px solid rgba(124,111,255,.2); }
.badge-pink { background: rgba(244,114,182,.1); color: var(--pink); border: 1px solid rgba(244,114,182,.2); }
.badge-amber { background: rgba(251,191,36,.1); color: var(--amber); border: 1px solid rgba(251,191,36,.2); }
.badge-hot { background: rgba(239,68,68,.14); color: #f87171; border: 1px solid rgba(239,68,68,.25); animation: badge-pulse 2s ease-in-out infinite; }

/* ── Section heads ───────────────────────────────────────── */
.sec-head { display: flex; align-items: center; gap: 14px; padding: 40px 0 22px; }
.sec-head h2 { font-size: 1.12rem; color: var(--text-1); font-weight: 900; white-space: nowrap; }
.sec-head .line { flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--border)); }
.sec-head a { font-size: .8rem; color: var(--text-3); white-space: nowrap; transition: color .2s; }
.sec-head a:hover { color: var(--cyan); }

/* ── Category tabs ───────────────────────────────────────── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 28px 0 8px; }
.cat-tab {
  padding: 8px 20px; border-radius: 24px; font-size: .87rem;
  background: rgba(255,255,255,.03); color: var(--text-3);
  border: 1px solid var(--border); cursor: pointer; transition: all .25s; backdrop-filter: blur(8px);
}
.cat-tab:hover { color: var(--purple-2); border-color: rgba(124,111,255,.38); }
.cat-tab.active { background: rgba(124,111,255,.15); color: var(--purple-2); border-color: var(--purple); box-shadow: 0 0 18px rgba(124,111,255,.18); }

/* ── Cards grid ──────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* Featured (first card big) */
.cards-grid .card:first-child {
  grid-column: span 2;
}
.cards-grid .card:first-child .card-thumb-placeholder { aspect-ratio: 2.4/1; font-size: 4rem; }
.cards-grid .card:first-child .card-title { font-size: 1.1rem; -webkit-line-clamp: 2; }

.card {
  background: var(--glass-b); border-radius: var(--r); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow .32s, transform .32s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  opacity: 0; transition: opacity .32s;
}
.card:hover {
  box-shadow: 0 0 0 1px rgba(124,111,255,.45),
              0 12px 44px rgba(124,111,255,.18),
              0 0 60px rgba(0,212,255,.06);
  transform: translateY(-5px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
}
.card:hover::before { opacity: 1; }
.card-thumb-wrap { overflow: hidden; position: relative; }
.card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .42s ease; }
.card-thumb-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(124,111,255,.07), rgba(0,212,255,.04), rgba(124,111,255,.03));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; transition: transform .42s ease;
}
.card:hover .card-thumb-placeholder,
.card:hover .card-thumb { transform: scale(1.07); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-meta-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-title {
  font-size: .95rem; font-weight: 700; color: var(--text-1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s;
}
.card:hover .card-title { color: var(--purple-3); }
.card-excerpt {
  font-size: .81rem; color: var(--text-3); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid rgba(124,111,255,.07);
  font-size: .74rem; color: var(--text-3);
}
.read-time { display: flex; align-items: center; gap: 4px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--glass-b); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin-bottom: 22px;
  backdrop-filter: blur(14px);
}
.widget-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: .88rem; font-weight: 700; color: var(--text-1);
  background: rgba(124,111,255,.06); display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px; }
.trending-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(124,111,255,.07);
  transition: background .2s; border-radius: var(--r-sm);
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item:hover { background: rgba(124,111,255,.05); padding-right: 6px; padding-left: 6px; margin: 0 -6px; }
.trend-num {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900; margin-top: 1px;
}
.trend-num.n1 { background: linear-gradient(135deg, var(--amber), #f97316); color: #000; }
.trend-num.n2 { background: rgba(124,111,255,.2); color: var(--purple-2); }
.trend-num.n3 { background: rgba(0,212,255,.15); color: var(--cyan); }
.trend-num.n4, .trend-num.n5 { background: rgba(255,255,255,.06); color: var(--text-3); }
.trend-title { font-size: .82rem; color: var(--text-2); line-height: 1.45; transition: color .2s; }
.trending-item:hover .trend-title { color: var(--text-1); }
.trend-views { font-size: .7rem; color: var(--text-3); margin-top: 3px; }

/* Channel widget */
.channel-widget {
  background: linear-gradient(135deg, rgba(124,111,255,.12), rgba(0,212,255,.06));
  border: 1px solid rgba(124,111,255,.22); border-radius: var(--r);
  padding: 22px; text-align: center; position: relative; overflow: hidden;
}
.channel-widget::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
}
.channel-widget .icon { font-size: 2.5rem; margin-bottom: 10px; }
.channel-widget h4 { color: var(--text-1); font-size: .95rem; margin-bottom: 6px; }
.channel-widget p { color: var(--text-3); font-size: .81rem; margin-bottom: 16px; line-height: 1.6; }
.channel-widget .btn { width: 100%; justify-content: center; }

/* ── Scroll Animations ───────────────────────────────────── */
.anim { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.anim.show { opacity: 1; transform: none; }
.anim.d1 { transition-delay: .1s; }
.anim.d2 { transition-delay: .2s; }
.anim.d3 { transition-delay: .3s; }
.anim.d4 { transition-delay: .4s; }
.anim.from-right { transform: translateX(28px); }
.anim.from-right.show { transform: none; }

/* ── Article ─────────────────────────────────────────────── */
.art-head { padding: 48px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 38px; }
.art-head h1 { font-size: 1.9rem; color: var(--text-1); line-height: 1.35; margin: 15px 0; font-weight: 900; }
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--text-3); }
.art-meta span { display: flex; align-items: center; gap: 5px; }
.art-hero-img {
  margin-bottom: 34px; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
  border: 1px solid var(--border);
  max-height: 480px;
}
.art-hero-img img {
  width: 100%; max-height: 480px; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.art-hero-img:hover img { transform: scale(1.02); }

.art-body { font-size: 1.02rem; line-height: 2; color: var(--text-2); }
.art-body h2 { color: var(--text-1); font-size: 1.3rem; margin: 36px 0 14px; padding-right: 14px; border-right: 3px solid var(--purple); font-weight: 800; }
.art-body h3 { color: var(--cyan-2); font-size: 1.1rem; margin: 24px 0 10px; font-weight: 700; }
.art-body p { margin-bottom: 18px; }

.art-cta {
  margin-top: 50px; padding: 36px 30px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124,111,255,.1), rgba(0,212,255,.05));
  border: 1px solid rgba(124,111,255,.2); text-align: center; position: relative; overflow: hidden;
}
.art-cta::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink)); }
.art-cta h3 { color: var(--text-1); font-size: 1.05rem; margin-bottom: 8px; }
.art-cta p { color: var(--text-3); font-size: .87rem; margin-bottom: 18px; }

.art-source { margin-top: 22px; padding: 13px 18px; background: rgba(0,0,0,.2); border-radius: var(--r-sm); border-right: 3px solid rgba(124,111,255,.3); font-size: .8rem; color: var(--text-3); }
.art-source a { color: var(--cyan); }

.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding: 15px 20px; background: var(--glass-b); border: 1px solid var(--border); border-radius: var(--r-sm); backdrop-filter: blur(8px); }
.share-bar > span { font-size: .81rem; color: var(--text-3); margin-right: auto; }
.share-btn { padding: 7px 15px; border-radius: 18px; font-size: .79rem; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-family: inherit; transition: all .2s; }
.share-btn:hover { border-color: var(--purple); color: var(--purple-2); }
.share-btn.ok { border-color: var(--green); color: var(--green); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 44px 0; }
.page-btn { padding: 9px 16px; border-radius: var(--r-sm); background: var(--glass-b); color: var(--text-2); border: 1px solid var(--border); font-size: .87rem; backdrop-filter: blur(8px); transition: all .25s; }
.page-btn:hover, .page-btn.on { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 0 18px rgba(124,111,255,.4); }

/* ── Admin ───────────────────────────────────────────────── */
.adm-layout { display: flex; min-height: calc(100vh - 66px); }
.adm-sidebar { width: 220px; flex-shrink: 0; background: rgba(8,8,24,.92); border-left: 1px solid var(--border); padding: 20px 0; backdrop-filter: blur(12px); }
.adm-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: var(--text-3); font-size: .9rem; transition: all .2s; }
.adm-sidebar a:hover, .adm-sidebar a.on { background: rgba(124,111,255,.1); color: var(--text-1); border-right: 3px solid var(--purple); }
.adm-main { flex: 1; padding: 32px; overflow-x: auto; }
.adm-main h1 { color: var(--text-1); font-size: 1.4rem; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.scard { background: var(--glass-b); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; text-align: center; backdrop-filter: blur(12px); transition: all .3s; position: relative; overflow: hidden; }
.scard::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--cyan)); opacity: 0; transition: opacity .3s; }
.scard:hover { border-color: var(--border-h); box-shadow: 0 0 24px rgba(124,111,255,.14); }
.scard:hover::before { opacity: 1; }
.scard .n { font-size: 2rem; font-weight: 900; color: var(--purple-2); }
.scard.c .n { color: var(--cyan); }
.scard .l { font-size: .79rem; color: var(--text-3); margin-top: 4px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.adm-table th { background: rgba(124,111,255,.06); color: var(--text-3); font-weight: 700; padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid rgba(124,111,255,.07); color: var(--text-2); vertical-align: middle; }
.adm-table tr:hover td { background: rgba(124,111,255,.04); }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 88px; margin: 14px 0; }
.bar-chart .b { flex: 1; border-radius: 4px 4px 0 0; min-height: 4px; background: linear-gradient(0deg, var(--purple), var(--purple-2)); position: relative; transition: opacity .2s; }
.bar-chart .b:hover { opacity: .7; }
.bar-chart .b span { display: none; position: absolute; bottom: calc(100%+4px); left: 50%; transform: translateX(-50%); background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: .69rem; white-space: nowrap; color: var(--text-1); z-index: 10; }
.bar-chart .b:hover span { display: block; }

/* ── Login ───────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(124,111,255,.1), transparent 60%); }
.login-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 46px; width: 400px; max-width: 95vw; box-shadow: 0 0 60px rgba(124,111,255,.14); backdrop-filter: blur(24px); animation: fade-up .5s ease both; position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink)); }
.login-card h1 { text-align: center; margin-bottom: 32px; font-size: 1.5rem; color: var(--text-1); }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .84rem; color: var(--text-3); margin-bottom: 7px; }
.fg input, .fg select, .fg textarea { width: 100%; background: rgba(5,5,20,.8); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 15px; color: var(--text-1); outline: none; font-size: .9rem; font-family: inherit; transition: all .25s; }
.fg input:focus, .fg select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,111,255,.14); }
.err { color: #f87171; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); padding: 11px 15px; border-radius: var(--r-sm); font-size: .84rem; margin-bottom: 14px; text-align: center; }
.suc { color: var(--green); background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); padding: 11px 15px; border-radius: var(--r-sm); font-size: .84rem; margin-bottom: 14px; text-align: center; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { position: relative; z-index: 1; margin-top: 60px; padding: 52px 28px 28px; }
.footer::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 14px; display: inline-block; background: linear-gradient(135deg, var(--purple-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-desc { font-size: .84rem; color: var(--text-3); line-height: 1.8; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; transition: all .25s; }
.soc-btn.tg { background: rgba(124,111,255,.12); color: var(--purple-2); border: 1px solid rgba(124,111,255,.25); }
.soc-btn.tg:hover { background: rgba(124,111,255,.22); box-shadow: 0 0 14px rgba(124,111,255,.2); color: var(--purple-2); }
.soc-btn.bot { background: rgba(0,212,255,.1); color: var(--cyan); border: 1px solid rgba(0,212,255,.2); }
.soc-btn.bot:hover { background: rgba(0,212,255,.18); box-shadow: 0 0 14px rgba(0,212,255,.18); color: var(--cyan); }
.footer-col h4 { color: var(--text-1); font-size: .9rem; margin-bottom: 16px; font-weight: 800; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-3); font-size: .84rem; display: inline-flex; align-items: center; gap: 5px; transition: color .2s, padding-right .2s; }
.footer-col ul a:hover { color: var(--cyan); padding-right: 5px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .77rem; color: var(--text-3); }

/* ── Hamburger ───────────────────────────────────────────── */
.nav-burger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; padding: 8px 10px;
  flex-direction: column; align-items: center; gap: 5px; width: 42px; height: 42px;
  justify-content: center; transition: border-color .25s;
}
.nav-burger:hover { border-color: var(--purple); }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav panel ────────────────────────────────────── */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: min(300px, 80vw);
  height: 100dvh; z-index: 700;
  background: rgba(8,8,22,.97); backdrop-filter: blur(28px);
  border-left: 1px solid var(--border); padding: 88px 20px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transition: right .35s cubic-bezier(.25,.1,.25,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  color: var(--text-2); font-size: 1rem; font-weight: 600;
  padding: 13px 16px; border-radius: var(--r-sm);
  transition: all .2s; display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
}
.mobile-nav a:hover { color: var(--text-1); background: rgba(124,111,255,.1); border-color: var(--border); }
.mobile-nav .mn-sep { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav-close {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--text-2); width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-close:hover { background: rgba(255,255,255,.14); color: var(--text-1); }
#mobile-overlay {
  position: fixed; inset: 0; z-index: 690;
  background: rgba(0,0,0,.72); opacity: 0; pointer-events: none;
  transition: opacity .35s; backdrop-filter: blur(3px);
}
#mobile-overlay.show { opacity: 1; pointer-events: auto; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 22px 0 4px; font-size: .79rem; color: var(--text-3);
}
.breadcrumb a { color: var(--text-3); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .bc-sep { opacity: .4; }
.bc-current { color: var(--text-2); }

/* ── Back to top ─────────────────────────────────────────── */
#btt { position: fixed; bottom: 28px; left: 28px; z-index: 600; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), #4a38e0); border: none; color: #fff; cursor: pointer; font-size: 1.1rem; box-shadow: 0 4px 20px rgba(124,111,255,.5); transition: all .3s; opacity: 0; transform: translateY(16px) scale(.8); display: flex; align-items: center; justify-content: center; }
#btt.show { opacity: 1; transform: none; }
#btt:hover { box-shadow: 0 6px 32px rgba(124,111,255,.75); transform: translateY(-3px) scale(1.06); }

.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .magazine-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { flex-direction: row; flex-wrap: wrap; }
  .hpanel-card { flex: 1; min-width: 150px; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .cards-grid .card:first-child { grid-column: span 2; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid .card:first-child { grid-column: span 1; }
  .cards-grid .card:first-child .card-thumb-placeholder { aspect-ratio: 16/9; font-size: 3rem; }
  .nav-search-form { display: none; }
  .nav-tg-btn { display: none; }
  .adm-sidebar { display: none; }
  .art-head h1 { font-size: 1.4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .ticker-wrap { display: none; }
  .hero { padding: 48px 20px 40px; }
  .hero-title { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
