@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700&display=swap');

:root {
  --bg:       #07111D;
  --bg2:      #0C1826;
  --bg3:      #101D2C;
  --card:     #0E1B2A;
  --border:   #182A3D;
  --accent:   #1A6EFF;
  --accent2:  #0050CC;
  --red:      #E8002D;
  --gold:     #F5A623;
  --teal:     #2DD4BF;
  --violet:   #A78BFA;
  --text:     #EEF2F7;
  --muted:    #6E8BA8;
  --muted2:   #3E5A72;
  --white:    #FFFFFF;
  --r:        6px;
  --r-lg:     12px;
  --shadow:   0 4px 24px rgba(0,0,0,.45);
  --trans:    .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,10,18,.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 680px; padding: 0 20px; }
.search-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 18px; color: var(--text); font-family: inherit;
}
.search-box input::placeholder { color: var(--muted2); }
.search-close {
  color: var(--muted); font-size: 18px; padding: 4px 8px;
  transition: color var(--trans); flex-shrink: 0;
}
.search-close:hover { color: var(--white); }
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background var(--trans), border-color var(--trans);
}
.search-result-item:hover { background: var(--bg3); border-color: rgba(26,110,255,.3); }
.search-result-title { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.search-result-meta { font-size: 11px; color: var(--muted2); white-space: nowrap; }
.search-nores { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ════════════════════════════════
   TICKER
════════════════════════════════ */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  height: 36px;
  display: flex; align-items: center;
  position: relative; z-index: 100;
}
.ticker-label {
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0; gap: 7px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.ticker-label-dot {
  width: 7px; height: 7px;
  background: #fff; border-radius: 50%;
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 44s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 13px; font-weight: 500; color: #fff;
  padding: 0 28px; position: relative; opacity: .95;
}
.ticker-item::after { content: '·'; position: absolute; right: 4px; opacity: .45; }
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 20px rgba(0,0,0,.3);
}
.header-top {
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; height: 64px;
  max-width: 1380px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--accent); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  letter-spacing: -1px; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(26,110,255,.4);
}
.logo-text { line-height: 1.15; }
.logo-title { font-size: 16.5px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.logo-title span { color: var(--accent); }
.logo-sub { font-size: 9.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.header-nav { display: flex; align-items: center; gap: 1px; flex: 1; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: var(--r);
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--accent); background: rgba(26,110,255,.1); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-date { font-size: 12px; color: var(--muted2); white-space: nowrap; }
.live-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; user-select: none;
}
.live-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
.search-btn {
  width: 36px; height: 36px;
  color: var(--muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--trans), background var(--trans);
}
.search-btn:hover { color: #fff; background: rgba(255,255,255,.07); }

/* ════════════════════════════════
   HERO SLIDER
════════════════════════════════ */
.hero {
  position: relative; height: 560px;
  overflow: hidden; background: var(--bg3);
}
.hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0C1A2B 0%, #060E18 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-placeholder::after {
  content: '';
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 6s ease;
}
.hero-slide.active > img { transform: scale(1.04); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7,17,29,.97) 0%,
    rgba(7,17,29,.82) 34%,
    rgba(7,17,29,.42) 62%,
    rgba(7,17,29,.06) 100%
  );
}
.hero-content {
  position: absolute; bottom: 56px; left: 0;
  max-width: 580px; padding: 0 52px; z-index: 3;
}
.hero-cat {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 4px; margin-bottom: 14px;
}
.hero-cat.red { background: var(--red); }
.hero-cat.gold { background: var(--gold); color: #000; }
.hero-title {
  font-size: 30px; font-weight: 800;
  line-height: 1.2; color: #fff;
  margin-bottom: 14px; letter-spacing: -.5px;
}
.hero-desc {
  font-size: 15px; color: rgba(255,255,255,.72);
  margin-bottom: 20px; line-height: 1.65; max-width: 500px;
}
.hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 20px;
}
.hero-meta-dot { opacity: .35; }
.hero-read-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 11px 22px; border-radius: 7px;
  transition: background var(--trans), transform .15s;
  box-shadow: 0 0 20px rgba(26,110,255,.35);
}
.hero-read-btn:hover { background: var(--accent2); transform: translateY(-2px); }
.hero-read-btn svg { transition: transform .2s; }
.hero-read-btn:hover svg { transform: translateX(4px); }

.hero-thumbs {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 268px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-thumb { flex: 1; position: relative; cursor: pointer; overflow: hidden; }
.hero-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.hero-thumb:hover > img { transform: scale(1.06); }
.hero-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,17,29,.88) 0%, rgba(7,17,29,.2) 100%);
  transition: background .3s;
}
.hero-thumb.active .hero-thumb-overlay {
  background: linear-gradient(to top, rgba(26,110,255,.55) 0%, rgba(26,110,255,.08) 100%);
}
.hero-thumb-label {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.35;
}
.hero-thumb-cat {
  font-size: 9.5px; color: rgba(255,255,255,.5);
  margin-bottom: 3px; text-transform: uppercase; letter-spacing: .08em;
}
.hero-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; z-index: 10; cursor: pointer;
  transition: background var(--trans);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-arr:hover { background: rgba(255,255,255,.22); }
.hero-arr.prev { left: 18px; }
.hero-arr.next { right: 18px; }
.hero-dots {
  position: absolute; bottom: 18px; left: 52px;
  display: flex; gap: 7px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.28); cursor: pointer;
  transition: all .35s;
}
.hero-dot.active { width: 26px; background: var(--accent); }

/* ════════════════════════════════
   LAYOUT
════════════════════════════════ */
.main-wrap { max-width: 1380px; margin: 0 auto; padding: 0 24px; }
.main-grid {
  display: grid; grid-template-columns: 1fr 308px;
  gap: 32px; padding: 36px 0 56px; align-items: start;
}

/* ════════════════════════════════
   SECTION HEADER
════════════════════════════════ */
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sec-hd-left { display: flex; align-items: center; gap: 11px; }
.sec-bar { width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.sec-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.sec-count {
  font-size: 10.5px; color: var(--muted2);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 10px;
}

/* ════════════════════════════════
   CARDS
════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards-grid.has-featured > .card:first-child {
  grid-column: span 2;
  flex-direction: row;
}
.cards-grid.has-featured > .card:first-child .card-img-wrap {
  width: 46%; aspect-ratio: unset; flex-shrink: 0;
}
.cards-grid.has-featured > .card:first-child .card-body { padding: 22px; }
.cards-grid.has-featured > .card:first-child .card-title { font-size: 17.5px; -webkit-line-clamp: 4; }
.cards-grid.has-featured > .card:first-child .card-desc {
  font-size: 13px; -webkit-line-clamp: 3;
}
.cards-grid.auto-col {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(26,110,255,.32);
  box-shadow: 0 12px 36px rgba(0,0,0,.5), 0 0 0 1px rgba(26,110,255,.08);
}
.card-img-wrap {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0C1A2B, #06101A);
  flex-shrink: 0;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s, opacity .3s;
}
.card:hover .card-img { transform: scale(1.05); }
.card-img-wrap .card-cat { position: absolute; top: 10px; left: 10px; }
.card-body { padding: 15px 16px 18px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; margin-bottom: 9px;
}
.cat-models   { background: rgba(26,110,255,.14);  color: #5B9BFF; }
.cat-tools    { background: rgba(45,212,191,.12);  color: #2DD4BF; }
.cat-research { background: rgba(167,139,250,.12); color: #A78BFA; }
.cat-business { background: rgba(245,166,35,.12);  color: #F5C842; }
.cat-hardware { background: rgba(249,115,22,.12);  color: #FB923C; }
.cat-edu      { background: rgba(56,189,248,.12);  color: #38BDF8; }

.card-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.38;
  color: var(--text); margin-bottom: 8px; flex: 1;
  transition: color var(--trans);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: #fff; }
.card-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted2); margin-top: auto;
}
.card-meta-dot { font-size: 10px; }
.card-views-badge {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--muted2); font-size: 11px;
}
.feed-empty { color: var(--muted2); font-size: 13px; padding: 12px 0; }

/* ════════════════════════════════
   BREAKING BAND
════════════════════════════════ */
.breaking-band {
  background: linear-gradient(90deg, #900018 0%, #E8002D 40%, #E8002D 60%, #900018 100%);
  padding: 14px 0; margin: 36px 0;
  cursor: pointer; transition: filter .2s;
}
.breaking-band:hover { filter: brightness(1.1); }
.breaking-inner {
  max-width: 1380px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.breaking-tag {
  background: rgba(0,0,0,.22); color: #fff;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.breaking-rotate-wrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; overflow: hidden; }
.breaking-text { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-counter { flex-shrink: 0; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; white-space: nowrap; }

/* ════════════════════════════════
   CAT SECTIONS
════════════════════════════════ */
.cat-section { margin-top: 44px; }

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.widget-hd {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px;
}
.widget-hd-bar { width: 3px; height: 15px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.widget-hd-title { font-size: 13px; font-weight: 700; color: #fff; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.stat-cell { background: var(--card); padding: 16px; text-align: center; }
.stat-val { font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-lbl { font-size: 10.5px; color: var(--muted2); margin-top: 4px; }

.popular-list { padding: 6px 0; }
.popular-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 11px 16px; transition: background var(--trans);
}
.popular-item:hover { background: rgba(255,255,255,.04); }
.popular-num {
  font-size: 19px; font-weight: 900;
  color: var(--border); width: 22px; flex-shrink: 0; line-height: 1.2;
}
.popular-item:nth-child(1) .popular-num { color: var(--accent); }
.popular-item:nth-child(2) .popular-num { color: #5B7FA0; }
.popular-item:nth-child(3) .popular-num { color: #3E5A72; }
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.38; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--trans);
}
.popular-item:hover .popular-title { color: #fff; }
.popular-meta { font-size: 10.5px; color: var(--muted2); }

.topics-list { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.topic-pill {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; cursor: pointer;
  transition: all var(--trans);
}
.topic-pill:hover { color: #fff; border-color: var(--accent); background: rgba(26,110,255,.1); }

.promo-widget {
  background: linear-gradient(140deg, #0B1E38 0%, #071425 100%);
  border: 1px solid rgba(26,110,255,.2); padding: 20px 16px;
}
.promo-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.promo-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.promo-btn {
  display: block; width: 100%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px; border-radius: var(--r); text-align: center;
  transition: background var(--trans), transform .15s;
}
.promo-btn:hover { background: var(--accent2); transform: translateY(-1px); }

/* ════════════════════════════════
   ARTICLE PAGE
════════════════════════════════ */
#rdg-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--accent);
  z-index: 9999; width: 0; transition: width .12s linear;
  box-shadow: 0 0 8px rgba(26,110,255,.6);
}
.art-wrap {
  max-width: 1380px; margin: 0 auto; padding: 36px 24px 64px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start;
}
.art-nav-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); margin-bottom: 22px;
  transition: color var(--trans);
}
.art-nav-back:hover { color: #fff; }
.art-cat { display: inline-block; margin-bottom: 14px; }
.art-title { font-size: 31px; font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: -.5px; margin-bottom: 16px; }
.art-lead { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; border-left: 3px solid var(--accent); padding-left: 18px; }
.art-info {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 28px; font-size: 12.5px; color: var(--muted2);
}
.art-hero-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 28px; }
.art-body { font-size: 16.5px; line-height: 1.82; color: #C8D8E8; }
.art-body p { margin-bottom: 18px; }
.art-body h2 { font-size: 21px; font-weight: 700; color: #fff; margin: 36px 0 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.art-body h3 { font-size: 18px; font-weight: 600; color: #dde8f0; margin: 24px 0 10px; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 60px; }
.footer-top {
  max-width: 1380px; margin: 0 auto; padding: 48px 24px 36px;
  display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13px; color: var(--muted); transition: color var(--trans); }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 24px;
  max-width: 1380px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--muted2); }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 32px; height: 32px; background: var(--bg3); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: background var(--trans), color var(--trans);
}
.social-btn:hover { background: var(--accent); color: #fff; }
.rss-link { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1150px) {
  .main-grid, .art-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-thumbs { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.has-featured > .card:first-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .header-top { padding: 0 16px; }
  .header-nav { display: none; }
  .hero { height: 420px; }
  .hero-content { padding: 0 20px; bottom: 36px; }
  .hero-title { font-size: 21px; }
  .hero-arr { display: none; }
  .main-wrap { padding: 0 16px; }
  .cards-grid, .cards-grid.auto-col { grid-template-columns: 1fr; }
  .cards-grid.has-featured > .card:first-child { grid-column: span 1; flex-direction: column; }
  .cards-grid.has-featured > .card:first-child .card-img-wrap { width: 100%; aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .art-wrap { grid-template-columns: 1fr; padding: 20px 16px 40px; }
  .art-title { font-size: 24px; }
  .breaking-inner { padding: 0 16px; }
}

.mt-40 { margin-top: 40px; }

/* ════════════════════════════════
   LIGHT THEME
════════════════════════════════ */
[data-theme="light"] {
  --bg:     #F2F5FA;
  --bg2:    #FFFFFF;
  --bg3:    #E6EBF3;
  --card:   #FFFFFF;
  --border: #D5DDE9;
  --text:   #0D1B2A;
  --muted:  #4A6178;
  --muted2: #7A8FA6;
}
[data-theme="light"] .header { box-shadow: 0 1px 12px rgba(0,0,0,.1); }
[data-theme="light"] .hero-overlay { background: linear-gradient(100deg,rgba(242,245,250,.97) 0%,rgba(242,245,250,.8) 34%,rgba(242,245,250,.35) 62%,transparent 100%); }
[data-theme="light"] .hero-title { color: #0D1B2A; }
[data-theme="light"] .hero-desc { color: rgba(13,27,42,.65); }
[data-theme="light"] .hero-meta { color: rgba(13,27,42,.45); }
[data-theme="light"] .card { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
[data-theme="light"] .card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.14); border-color: rgba(26,110,255,.25); }
[data-theme="light"] .card-title { color: #0D1B2A; }
[data-theme="light"] .card:hover .card-title { color: #000; }
[data-theme="light"] .art-body { color: #2A3D52; }
[data-theme="light"] .popular-item:hover { background: rgba(0,0,0,.04); }
[data-theme="light"] .topic-pill { color: #4A6178; background: var(--bg3); }
[data-theme="light"] .widget { box-shadow: 0 1px 6px rgba(0,0,0,.06); }
[data-theme="light"] .promo-widget { background: linear-gradient(140deg,#E8EEF8,#DDE6F5); border-color: rgba(26,110,255,.15); }
[data-theme="light"] .promo-text { color: #4A6178; }
[data-theme="light"] .search-overlay { background: rgba(220,228,240,.94); }
[data-theme="light"] .search-box { background: #fff; }
[data-theme="light"] .search-box input { color: #0D1B2A; }
[data-theme="light"] .search-result-item { background: #fff; }
[data-theme="light"] .search-result-title { color: #0D1B2A; }
[data-theme="light"] .art-lead { color: var(--muted); }
[data-theme="light"] .breaking-band { background: linear-gradient(90deg,#900018,var(--red),var(--red),#900018); }

/* ════════════════════════════════
   THEME TOGGLE BUTTON
════════════════════════════════ */
.theme-btn {
  width: 36px; height: 36px;
  color: var(--muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: color var(--trans), background var(--trans);
}
.theme-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
[data-theme="light"] .theme-btn { color: var(--muted); }
[data-theme="light"] .theme-btn:hover { background: rgba(0,0,0,.06); color: #000; }

/* ════════════════════════════════
   BACK TO TOP
════════════════════════════════ */
.to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .25s, box-shadow .25s;
  box-shadow: 0 4px 18px rgba(26,110,255,.45);
  cursor: pointer;
}
.to-top.show { opacity: 1; pointer-events: all; }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(26,110,255,.55); }

/* ════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ════════════════════════════════
   LOAD MORE
════════════════════════════════ */
.load-more-wrap { text-align: center; margin-top: 26px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--accent);
  border: 1px solid rgba(26,110,255,.35);
  font-size: 14px; font-weight: 600;
  padding: 11px 30px; border-radius: 7px;
  cursor: pointer; transition: all .22s;
}
.load-more-btn:hover { background: rgba(26,110,255,.1); border-color: var(--accent); }
[data-theme="light"] .load-more-btn { border-color: rgba(26,110,255,.3); }

/* ════════════════════════════════
   SHARE BUTTONS
════════════════════════════════ */
.art-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 28px 0; padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.art-share-label { font-size: 12px; color: var(--muted2); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border); color: var(--muted);
  background: var(--bg3);
}
.share-btn:hover { color: #fff; border-color: transparent; }
.share-copy:hover { background: var(--accent); }
.share-tg:hover   { background: #0088CC; }

/* ════════════════════════════════
   RELATED ARTICLES
════════════════════════════════ */
.related-section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-section h3 {
  font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 20px;
  display: flex; align-items: center; gap: 11px;
}
.related-section h3::before {
  content: ''; width: 4px; height: 20px;
  background: var(--accent); border-radius: 2px; display: block; flex-shrink: 0;
}
[data-theme="light"] .related-section h3 { color: #0D1B2A; }

/* ════════════════════════════════
   COOKIE BANNER
════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 14px 24px; display: none; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.cookie-content { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: 1; }
.cookie-content p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.cookie-content a { color: var(--accent); }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-accept {
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 6px; cursor: pointer; transition: opacity .2s;
}
.cookie-accept:hover { opacity: .88; }
.cookie-more { font-size: 13px; color: var(--muted2); }
.cookie-more:hover { color: var(--accent); }

/* ════════════════════════════════
   BREADCRUMBS
════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--muted2); margin-bottom: 18px;
}
.breadcrumb-link { color: var(--muted2); transition: color var(--trans); }
.breadcrumb-link:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); font-size: 15px; }
.breadcrumb-cur { color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════════════════════════════════
   LEGAL PAGES
════════════════════════════════ */
.legal-body { font-size: 15px; line-height: 1.78; color: var(--muted); }
.legal-body h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 32px 0 12px; }
.legal-body ul { padding-left: 22px; margin: 10px 0 16px; }
.legal-body li { margin-bottom: 7px; }
.legal-body p { margin: 0 0 14px; }
.legal-body a { color: var(--accent); }
.legal-body code { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: 13px; color: #a8d4ff; }
.legal-body strong { color: var(--muted); }
.legal-date { font-size: 13px; color: var(--muted2); font-style: italic; margin-bottom: 28px !important; }
[data-theme="light"] .legal-body h2 { color: #0D1B2A; }
[data-theme="light"] .legal-body { color: #3A5268; }
[data-theme="light"] .legal-body strong { color: #2A3D52; }

/* ╔═══════════════════════════════════════════════╗
   ║        VISUAL REFRESH — PREMIUM LAYER        ║
   ╚═══════════════════════════════════════════════╝ */

/* ── Background depth ────────────────────────── */
body {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(26,110,255,.055) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(232,0,45,.04) 0%, transparent 55%),
    #06101A;
}
[data-theme="light"] body { background: #F0F4FB; }

/* ── Glassmorphism header ────────────────────── */
.header {
  background: rgba(7,17,28,.82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(26,110,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 4px 28px rgba(0,0,0,.45);
}
[data-theme="light"] .header {
  background: rgba(244,248,252,.88);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

/* ── Logo glow ───────────────────────────────── */
.logo-icon {
  background: linear-gradient(135deg, #2577FF 0%, #1A6EFF 50%, #1050CC 100%);
  box-shadow: 0 0 22px rgba(26,110,255,.55), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: box-shadow .3s;
}
.logo:hover .logo-icon {
  box-shadow: 0 0 32px rgba(26,110,255,.75), 0 0 0 1px rgba(255,255,255,.15) inset;
}

/* ── Nav links ───────────────────────────────── */
.nav-link { letter-spacing: .01em; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active {
  color: #fff; background: rgba(26,110,255,.14);
  border: 1px solid rgba(26,110,255,.2);
}
[data-theme="light"] .nav-link.active { border-color: rgba(26,110,255,.25); color: var(--accent); }

/* ── Hero cinematic upgrade ──────────────────── */
.hero { height: 590px; }
.hero-slide > img { transition: transform 8s ease; }
.hero-overlay {
  background:
    linear-gradient(108deg, rgba(6,15,26,.99) 0%, rgba(6,15,26,.88) 30%,
      rgba(6,15,26,.46) 58%, rgba(6,15,26,.06) 100%),
    linear-gradient(to top, rgba(6,15,26,.72) 0%, transparent 38%);
}
.hero-title { font-size: 34px; letter-spacing: -.7px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-desc  { font-size: 15.5px; }

/* Gradient read button */
.hero-read-btn {
  background: linear-gradient(135deg, #2E7FFF 0%, #1A6EFF 60%, #1150D5 100%);
  box-shadow: 0 4px 28px rgba(26,110,255,.5), 0 0 0 1px rgba(255,255,255,.1) inset;
  padding: 12px 26px; font-size: 14px;
}
.hero-read-btn:hover {
  background: linear-gradient(135deg, #3D8EFF 0%, #2577FF 60%, #1A6EFF 100%);
  box-shadow: 0 8px 36px rgba(26,110,255,.65), 0 0 0 1px rgba(255,255,255,.15) inset;
  transform: translateY(-3px);
}
.hero-dot.active { width: 28px; background: linear-gradient(90deg, #2E7FFF, #1A6EFF); }
.hero-arr { transition: background .2s, box-shadow .2s; }
.hero-arr:hover { box-shadow: 0 0 20px rgba(255,255,255,.15); }

/* ── Cards premium upgrade ───────────────────── */
.card {
  background: linear-gradient(165deg, #0D1F30 0%, #091724 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 2px 16px rgba(0,0,0,.3);
  transition: transform .26s cubic-bezier(.22,1,.36,1), border-color .26s, box-shadow .26s;
}
.card:hover { transform: translateY(-7px) scale(1.005); }

/* Category-coloured glow on card hover */
.card:has(.cat-models):hover    { border-color: rgba(37,119,255,.35); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 50px rgba(26,110,255,.12), 0 0 0 1px rgba(37,119,255,.2); }
.card:has(.cat-tools):hover     { border-color: rgba(45,212,191,.28); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 50px rgba(45,212,191,.1),  0 0 0 1px rgba(45,212,191,.18); }
.card:has(.cat-research):hover  { border-color: rgba(167,139,250,.28); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 50px rgba(167,139,250,.1), 0 0 0 1px rgba(167,139,250,.18); }
.card:has(.cat-hardware):hover  { border-color: rgba(249,115,22,.25); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 50px rgba(249,115,22,.1),  0 0 0 1px rgba(249,115,22,.16); }
.card:has(.cat-business):hover  { border-color: rgba(245,200,35,.25); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 50px rgba(245,200,35,.08), 0 0 0 1px rgba(245,200,35,.16); }
.card:has(.cat-edu):hover       { border-color: rgba(56,189,248,.25); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 50px rgba(56,189,248,.1),  0 0 0 1px rgba(56,189,248,.16); }

/* Image gradient overlay */
.card-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,15,26,.45) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}

/* Category badges — more vivid with subtle border */
.cat-models   { background: rgba(26,110,255,.18);  color: #6BA8FF; border: 1px solid rgba(26,110,255,.22); }
.cat-tools    { background: rgba(45,212,191,.14);  color: #2DD4BF; border: 1px solid rgba(45,212,191,.22); }
.cat-research { background: rgba(167,139,250,.14); color: #B89DFA; border: 1px solid rgba(167,139,250,.22); }
.cat-business { background: rgba(245,200,35,.12);  color: #F5C842; border: 1px solid rgba(245,200,35,.2); }
.cat-hardware { background: rgba(249,115,22,.12);  color: #FB923C; border: 1px solid rgba(249,115,22,.2); }
.cat-edu      { background: rgba(56,189,248,.12);  color: #38BDF8; border: 1px solid rgba(56,189,248,.2); }

/* Better card title */
.card-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.card:hover .card-title { color: #F0F6FF; }

/* ── Breaking band shimmer ───────────────────── */
.breaking-band {
  background: linear-gradient(90deg, #7A001A 0%, #C4001F 25%, #E8002D 50%, #C4001F 75%, #7A001A 100%);
  background-size: 200% 100%;
  animation: band-shimmer 5s linear infinite;
}
@keyframes band-shimmer { to { background-position: 200% 0; } }
.breaking-tag { animation: tag-flash 3s ease-in-out infinite; }
@keyframes tag-flash { 0%,100%{opacity:1} 50%{opacity:.72} }

/* ── Section headers ─────────────────────────── */
.sec-hd { border-bottom: none; padding-bottom: 0; position: relative; }
.sec-hd::after {
  content: ''; display: block; position: absolute;
  bottom: -14px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(26,110,255,.15) 40%, transparent 100%);
}
.sec-bar { background: linear-gradient(180deg, #3D8EFF, #1A6EFF); box-shadow: 0 0 10px rgba(26,110,255,.5); }

/* ── Sidebar stat values gradient ────────────── */
.stat-val {
  background: linear-gradient(135deg, #5BA8FF 0%, #1A6EFF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-val:not(:empty) { font-size: 24px; }

/* ── Promo widget ────────────────────────────── */
.promo-widget {
  background: linear-gradient(145deg, #0C2446 0%, #071B33 55%, #040E1E 100%);
  border: 1px solid rgba(26,110,255,.28); position: relative; overflow: hidden;
}
.promo-widget::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.promo-btn {
  background: linear-gradient(135deg, #2E7FFF 0%, #1A6EFF 100%);
  box-shadow: 0 2px 16px rgba(26,110,255,.35);
}
.promo-btn:hover { box-shadow: 0 4px 24px rgba(26,110,255,.5); transform: translateY(-2px); }

/* ── Progress bar gradient ───────────────────── */
#rdg-progress {
  background: linear-gradient(90deg, #1A6EFF 0%, #7B44FF 50%, #E8002D 100%);
  height: 3px;
  box-shadow: 0 0 14px rgba(26,110,255,.75);
}

/* ── Buttons ─────────────────────────────────── */
.to-top {
  background: linear-gradient(135deg, #2577FF, #1A6EFF);
  box-shadow: 0 4px 22px rgba(26,110,255,.55);
}
.to-top:hover {
  background: linear-gradient(135deg, #3385FF, #2577FF);
  box-shadow: 0 8px 32px rgba(26,110,255,.7);
}
.load-more-btn {
  border: 1px solid rgba(26,110,255,.3);
  background: linear-gradient(135deg, rgba(26,110,255,.06), rgba(26,110,255,.02));
  transition: all .25s;
}
.load-more-btn:hover {
  background: linear-gradient(135deg, rgba(26,110,255,.18), rgba(26,110,255,.08));
  border-color: rgba(26,110,255,.55);
  box-shadow: 0 0 20px rgba(26,110,255,.15);
  transform: translateY(-1px);
}

/* ── Footer depth ────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--bg2) 0%, #040C16 100%);
  border-top: 1px solid rgba(26,110,255,.1);
}
.footer-bottom {
  background: linear-gradient(90deg, rgba(26,110,255,.04), transparent 50%, rgba(232,0,45,.03));
}

/* ── Topic pills ─────────────────────────────── */
.topic-pill {
  transition: all .22s; border-radius: 20px;
}
.topic-pill:hover {
  color: #fff; border-color: rgba(26,110,255,.5);
  background: rgba(26,110,255,.14);
  box-shadow: 0 0 12px rgba(26,110,255,.15);
  transform: translateY(-1px);
}

/* ── Article page upgrade ────────────────────── */
.art-title { font-size: 34px; letter-spacing: -.65px; line-height: 1.18; }
.art-lead {
  background: linear-gradient(to right, rgba(26,110,255,.06), transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 16px 20px;
  font-size: 17.5px; line-height: 1.72;
}
.art-hero-img {
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.04);
}
.art-body { font-size: 17px; line-height: 1.85; color: #CCDAE8; }
.art-body p { margin-bottom: 20px; }
.art-body h2 {
  font-size: 22px; border-top: none; padding-top: 0; margin: 38px 0 14px;
  background: linear-gradient(90deg, #fff 60%, rgba(255,255,255,.6));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Popular list upgrade ────────────────────── */
.popular-num { font-size: 20px; font-weight: 900; }
.popular-item:nth-child(1) .popular-num {
  background: linear-gradient(135deg, #5BA8FF, #1A6EFF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Widget border glow ──────────────────────── */
.widget {
  background: linear-gradient(165deg, #0D1F30 0%, #091724 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  transition: border-color .25s, box-shadow .25s;
}
.widget:hover { border-color: rgba(26,110,255,.18); box-shadow: 0 4px 20px rgba(0,0,0,.25), 0 0 0 1px rgba(26,110,255,.06); }

/* ── Search box upgrade ──────────────────────── */
.search-box {
  background: rgba(10,24,40,.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(26,110,255,.25);
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(26,110,255,.08) inset;
}

/* ── Scroll animations stagger ───────────────── */
.cards-grid .card:nth-child(2) { transition-delay: .05s; }
.cards-grid .card:nth-child(3) { transition-delay: .10s; }
.cards-grid .card:nth-child(4) { transition-delay: .08s; }
.cards-grid .card:nth-child(5) { transition-delay: .13s; }
.cards-grid .card:nth-child(6) { transition-delay: .06s; }

/* ── Light theme override for premium layer ──── */
[data-theme="light"] body { background: linear-gradient(135deg, #EEF4FF 0%, #F2F6FC 100%); }
[data-theme="light"] .promo-widget { background: linear-gradient(145deg, #E4EEF9, #D8E8F5); }
[data-theme="light"] .promo-widget::before { background: radial-gradient(circle, rgba(26,110,255,.1) 0%, transparent 70%); }
[data-theme="light"] .card { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
[data-theme="light"] .widget { background: #fff; }
[data-theme="light"] .stat-val { background: linear-gradient(135deg, #1A6EFF, #1050CC); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .art-body h2 { background: none; -webkit-text-fill-color: #0D1B2A; }

/* ╔═══════════════════════════════════════════════╗
   ║           TELEGRAM SUBSCRIPTION               ║
   ╚═══════════════════════════════════════════════╝ */

/* ── Sidebar TG widget ───────────────────────── */
.tg-widget {
  background: linear-gradient(145deg, #0C2032 0%, #071829 60%, #031220 100%) !important;
  border: 1px solid rgba(42,171,238,.28) !important;
  text-align: center; padding: 24px 20px; position: relative; overflow: hidden;
}
.tg-widget::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(42,171,238,.15) 0%, transparent 70%);
  pointer-events: none;
}
.tg-icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 0 24px rgba(42,171,238,.5);
}
.tg-widget-title {
  font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -.3px;
}
.tg-widget-text {
  font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px;
}
.tg-widget-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; text-decoration: none; border-radius: 10px;
  padding: 12px 20px; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 20px rgba(42,171,238,.4);
  transition: all .25s; width: 100%; box-sizing: border-box;
}
.tg-widget-btn:hover {
  background: linear-gradient(135deg, #3DBCFF, #2AABEE);
  box-shadow: 0 6px 28px rgba(42,171,238,.6); transform: translateY(-2px);
}
.tg-widget-hint { margin-top: 12px; font-size: 12px; color: rgba(42,171,238,.7); }
[data-theme="light"] .tg-widget { background: linear-gradient(145deg, #EBF7FF, #D9F0FE) !important; border-color: rgba(42,171,238,.3) !important; }
[data-theme="light"] .tg-widget-text { color: #3A5468; }
[data-theme="light"] .tg-widget-hint { color: #229ED9; }

/* ── Inline CTA (between feed sections) ──────── */
.tg-inline-cta {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(to right, rgba(42,171,238,.08), rgba(42,171,238,.03));
  border: 1px solid rgba(42,171,238,.2); border-radius: 14px;
  padding: 18px 22px; margin: 32px 0;
}
.tg-inline-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(42,171,238,.4);
}
.tg-inline-content { flex: 1; min-width: 0; }
.tg-inline-content strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.tg-inline-content span { font-size: 12.5px; color: var(--muted); }
.tg-inline-btn {
  flex-shrink: 0; background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; text-decoration: none; border-radius: 8px;
  padding: 10px 18px; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; box-shadow: 0 2px 12px rgba(42,171,238,.35); transition: all .22s;
}
.tg-inline-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(42,171,238,.55); }
[data-theme="light"] .tg-inline-cta { background: linear-gradient(to right, rgba(42,171,238,.07), rgba(42,171,238,.02)); }
[data-theme="light"] .tg-inline-content strong { color: #07223A; }
[data-theme="light"] .tg-inline-content span { color: #4A6070; }
@media (max-width: 600px) {
  .tg-inline-cta { flex-direction: column; text-align: center; }
  .tg-inline-btn { width: 100%; text-align: center; }
}

/* ── Article-end CTA ─────────────────────────── */
.tg-art-cta {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #08192B 0%, #041220 100%);
  border: 1px solid rgba(42,171,238,.25); border-radius: 14px;
  padding: 22px 26px; margin: 36px 0 20px;
}
.tg-art-cta-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(42,171,238,.45);
}
.tg-art-cta-body { flex: 1; min-width: 0; }
.tg-art-cta-body strong { display: block; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.tg-art-cta-body span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tg-art-cta-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; text-decoration: none; border-radius: 10px;
  padding: 12px 22px; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 18px rgba(42,171,238,.4); transition: all .22s; white-space: nowrap;
}
.tg-art-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(42,171,238,.6); }
[data-theme="light"] .tg-art-cta { background: linear-gradient(135deg, #EBF7FF, #D2ECFD); border-color: rgba(42,171,238,.3); }
[data-theme="light"] .tg-art-cta-body strong { color: #071B2E; }
[data-theme="light"] .tg-art-cta-body span { color: #3A5468; }
@media (max-width: 640px) {
  .tg-art-cta { flex-direction: column; text-align: center; }
  .tg-art-cta-btn { width: 100%; justify-content: center; }
}

/* ── Slide-in notification ───────────────────── */
.tg-slide {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #0C1E30 0%, #071526 100%);
  border: 1px solid rgba(42,171,238,.35); border-radius: 16px;
  padding: 16px 36px 16px 16px; max-width: 330px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(42,171,238,.06) inset;
  transform: translateY(140%); opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s;
}
.tg-slide.visible { transform: translateY(0); opacity: 1; }
.tg-slide-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(42,171,238,.5);
}
.tg-slide-body { flex: 1; min-width: 0; }
.tg-slide-body strong { display: block; font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.tg-slide-body span { font-size: 12px; color: var(--muted); }
.tg-slide-btn {
  flex-shrink: 0; background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; text-decoration: none; border-radius: 8px;
  padding: 9px 14px; font-weight: 700; font-size: 12.5px;
  box-shadow: 0 2px 10px rgba(42,171,238,.4); white-space: nowrap; transition: all .2s;
}
.tg-slide-btn:hover { box-shadow: 0 3px 16px rgba(42,171,238,.6); }
.tg-slide-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--muted); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 2px 4px; transition: color .2s;
}
.tg-slide-close:hover { color: #fff; }
[data-theme="light"] .tg-slide { background: linear-gradient(135deg, #EBF7FF, #fff); border-color: rgba(42,171,238,.3); }
[data-theme="light"] .tg-slide-body strong { color: #071B2E; }
[data-theme="light"] .tg-slide-body span { color: #4A6070; }
@media (max-width: 480px) { .tg-slide { left: 12px; right: 12px; max-width: none; bottom: 80px; } }

/* ══ PREMIUM 2.0 ══ */

/* ── Typography ── */
body {
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}
.card-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.015em !important;
}
.card-desc {
  font-size: 13px !important;
  line-height: 1.65 !important;
}
.sec-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.art-title {
  font-size: clamp(22px, 4vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.03em !important;
}
.art-body p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  margin-bottom: 1.5em !important;
}
.art-lead {
  font-size: 17px !important;
  line-height: 1.7 !important;
}

/* ── Cards ── */
.card {
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.055) !important;
  transition: transform 0.3s cubic-bezier(0.2,0,0,1),
              box-shadow 0.3s cubic-bezier(0.2,0,0,1),
              border-color 0.3s cubic-bezier(0.2,0,0,1) !important;
}
.card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.3) !important;
  border-color: rgba(99,179,237,0.22) !important;
}
.card:has(.cat-models):hover { border-color: rgba(99,179,237,0.35) !important; }
.card:has(.cat-tools):hover  { border-color: rgba(45,212,191,0.35) !important; }
.card:has(.cat-research):hover { border-color: rgba(167,139,250,0.35) !important; }
.card:has(.cat-hardware):hover { border-color: rgba(251,146,60,0.35) !important; }
.card:has(.cat-business):hover { border-color: rgba(245,200,66,0.35) !important; }
.card-img-wrap {
  overflow: hidden !important;
}
.card-img {
  transition: transform 0.5s cubic-bezier(0.2,0,0,1) !important;
}
.card:hover .card-img {
  transform: scale(1.07) !important;
}
.card-cat {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  padding: 4px 9px !important;
}

/* ── Section headers ── */
.sec-hd {
  padding-bottom: 14px !important;
  margin-bottom: 22px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.sec-bar {
  width: 3px !important;
  border-radius: 2px !important;
  height: 20px !important;
}

/* ── Widgets (sidebar) ── */
.widget {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%) !important;
  backdrop-filter: blur(8px) !important;
}
.widget-hd {
  padding: 16px 18px 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.widget-hd-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.5) !important;
}
.popular-item {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  transition: background 0.2s !important;
}
.popular-item:hover {
  background: rgba(255,255,255,0.05) !important;
}
.popular-num {
  min-width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  background: rgba(99,179,237,0.12) !important;
  color: #63B3ED !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.popular-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* ── Navigation ── */
.nav-link {
  position: relative !important;
  padding-bottom: 2px !important;
}
.nav-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #63B3ED, #2DD4BF) !important;
  border-radius: 2px !important;
  transition: width 0.3s cubic-bezier(0.2,0,0,1) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100% !important;
}

/* ── Buttons ── */
.load-more-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: var(--fg) !important;
  padding: 12px 40px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
}
.load-more-btn:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(99,179,237,0.4) !important;
  color: #63B3ED !important;
  transform: translateY(-2px) !important;
}

/* ── Breaking band ── */
.breaking-band {
  background: linear-gradient(135deg, rgba(99,179,237,0.07) 0%, rgba(45,212,191,0.03) 100%) !important;
  border: 1px solid rgba(99,179,237,0.18) !important;
  border-radius: 12px !important;
}

/* ── Topic pills ── */
.topic-pill {
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: all 0.2s !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
}
.topic-pill:hover {
  border-color: rgba(99,179,237,0.4) !important;
  background: rgba(99,179,237,0.07) !important;
  color: #63B3ED !important;
}

/* ── Article page ── */
.art-hero-img {
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
}
.art-share {
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  padding: 16px 0 !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.share-btn {
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  transition: all 0.2s !important;
}
.share-btn:hover {
  transform: translateY(-1px) !important;
}
.art-wrap {
  max-width: 1360px !important;
  margin: 0 auto !important;
}

/* ── Stats grid (sidebar) ── */
.stat-cell {
  border-radius: 10px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  padding: 12px 8px !important;
  transition: background 0.2s !important;
}
.stat-cell:hover {
  background: rgba(255,255,255,0.06) !important;
}
.stat-val {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Cat section separators ── */
.cat-section {
  padding-top: 36px !important;
  margin-top: 12px !important;
}

/* ── Light mode overrides ── */
[data-theme=light] .card {
  border-color: rgba(0,0,0,0.08) !important;
}
[data-theme=light] .card:hover {
  border-color: rgba(42,100,150,0.3) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
}
[data-theme=light] .widget {
  background: linear-gradient(145deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.01) 100%) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

/* ══ PREMIUM LOGO — ATL ══ */
.logo-icon {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(145deg, #0A2E9C 0%, #1557E8 42%, #0AADCC 100%) !important;
  border-radius: 14px !important;
  font-size: 0 !important;
  padding: 0 !important;
  box-shadow:
    0 0 0 1px rgba(21,87,232,0.55),
    0 2px 8px rgba(0,0,0,0.35),
    0 6px 24px rgba(10,173,204,0.38),
    0 12px 44px rgba(10,46,156,0.32),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
/* Glass shine — top-left highlight */
.logo-icon::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 52% !important;
  background: linear-gradient(175deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.07) 55%,
    transparent 100%) !important;
  border-radius: 14px 14px 0 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
/* Bottom dark vignette */
.logo-icon::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 35% !important;
  background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, transparent 100%) !important;
  border-radius: 0 0 14px 14px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.logo-icon svg {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
}

/* Logo text */
.logo-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: #fff !important;
  line-height: 1.2 !important;
  -webkit-text-fill-color: initial !important;
}
.logo-ai {
  color: rgba(255,255,255,0.4) !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  -webkit-text-fill-color: initial !important;
}
.logo-title > span:not(.logo-ai):not(.logo-lab) {
  background: linear-gradient(125deg, #60BFFF 0%, #0AADCC 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.logo-lab {
  color: rgba(255,255,255,0.45) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  -webkit-text-fill-color: initial !important;
}
.logo-sub {
  font-size: 9px !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.25) !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
}

/* Hover glow */
.logo-icon { transition: box-shadow 0.35s ease, transform 0.35s ease !important; }
.logo:hover .logo-icon {
  box-shadow:
    0 0 0 1px rgba(21,87,232,0.8),
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 32px rgba(10,173,204,0.55),
    0 16px 56px rgba(10,46,156,0.45),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) scale(1.03) !important;
}

/* ── Telegram blockquote (цитаты из постов) ── */
.art-body blockquote.tg-quote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid rgba(26,110,255,0.55);
  background: rgba(26,110,255,0.06);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  position: relative;
}
.art-body blockquote.tg-quote::before {
  content: '"';
  position: absolute;
  top: -6px;
  left: 14px;
  font-size: 42px;
  font-style: normal;
  color: rgba(26,110,255,0.3);
  line-height: 1;
  font-family: Georgia, serif;
}

/* ══════════════════════════════════════════════
   PREMIUM MOBILE
══════════════════════════════════════════════ */

/* ── Bottom nav bar (app-style) ── */
.mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(7,14,24,0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-inner {
  display: flex; align-items: stretch;
  height: 58px; padding: 0 4px;
}
.mob-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted2);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 12px; margin: 4px 2px;
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item svg { width: 22px; height: 22px; stroke-width: 1.7; }
.mob-nav-item.active { color: var(--accent); }
.mob-nav-item:active { background: rgba(255,255,255,0.06); }
.mob-nav-tg { color: #2AABEE !important; }
.mob-nav-tg svg { fill: none !important; }

/* ── Mobile overrides ── */
@media (max-width: 760px) {
  /* Show bottom nav, add body padding */
  .mob-nav { display: flex; flex-direction: column; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  /* ── Header ── */
  .header-top { height: 54px; padding: 0 16px; gap: 12px; }
  .logo-sub { display: none !important; }
  .logo-icon { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
  .logo-icon svg { width: 36px !important; height: 36px !important; }
  .logo-title { font-size: 15px !important; }

  /* ── Ticker ── */
  .breaking-inner { padding: 0 12px; }

  /* ── Hero ── */
  .hero {
    height: 56vw; min-height: 220px; max-height: 310px;
    margin: 10px 12px; width: calc(100% - 24px);
    border-radius: 18px; overflow: hidden;
  }
  .hero-overlay { border-radius: 18px; }
  .hero-content { bottom: 18px; padding: 0 18px; }
  .hero-title { font-size: 17px; line-height: 1.35; margin-bottom: 0; }
  .hero-desc { display: none; }
  .hero-meta { font-size: 11px; margin-bottom: 8px; }
  .hero-cat { font-size: 10px; padding: 3px 9px; }
  .hero-dots { bottom: 10px; right: 12px; gap: 5px; }
  .hero-dot { width: 5px; height: 5px; }
  .hero-dot.active { width: 16px; }

  /* ── Main wrap ── */
  .main-wrap { padding: 0 12px; }

  /* ── Section headers ── */
  .section-title { font-size: 15px; }
  .section-more { font-size: 12px; }

  /* ── Cards ── */
  .card { border-radius: 14px; }
  .card-body { padding: 14px 14px 12px; }
  .card-title { font-size: 14px; line-height: 1.45; }
  .card-desc { font-size: 13px; -webkit-line-clamp: 2; }
  .card-meta { font-size: 11px; }
  .card-img-wrap { aspect-ratio: 16/9; border-radius: 14px 14px 0 0; }

  /* ── Footer ── */
  .footer-top { padding: 24px 16px; gap: 20px; }
  .footer-logo .logo-sub { display: none !important; }
  .footer-desc { font-size: 13px; }
  .footer-bottom { padding: 14px 16px; gap: 8px; }
  .footer-copy { font-size: 11px; }

  /* ── Article ── */
  .art-wrap { padding: 14px 14px 32px; }
  .breadcrumb { font-size: 11px; margin-bottom: 12px; }
  .art-cat { font-size: 11px; }
  .art-title { font-size: 22px; line-height: 1.3; margin: 10px 0 12px; }
  .art-lead { font-size: 15px; line-height: 1.6; }
  .art-info { font-size: 12px; gap: 6px; flex-wrap: wrap; }
  .art-hero-img { border-radius: 14px; margin: 14px 0 20px; }
  .art-body p { font-size: 16px; line-height: 1.75; }
  .art-body blockquote.tg-quote { font-size: 14px; padding: 12px 16px; }
  .art-share { margin: 20px 0; padding: 16px 0; gap: 8px; }
  .share-btn { font-size: 12px; padding: 7px 14px; }
  .tg-art-cta { padding: 18px; gap: 14px; }
  .tg-art-cta-icon { width: 42px; height: 42px; }
  .tg-art-cta-body strong { font-size: 14px; }
  .tg-art-cta-body span { font-size: 12.5px; }
  .tg-art-cta-btn { padding: 10px 18px; font-size: 13px; }
  .related-section { margin-top: 28px; }
  .related-section h3 { font-size: 15px; }

  /* ── Load more ── */
  .load-more-btn { width: 100%; justify-content: center; font-size: 13px; }

  /* ── Back to top — move above bottom nav ── */
  .to-top { bottom: 74px; right: 16px; width: 40px; height: 40px; font-size: 17px; }

  /* ── Cookie banner ── */
  .cookie-banner { padding: 12px 16px 16px; flex-direction: column; }
  .cookie-content p { font-size: 12px; }
  .cookie-accept { width: 100%; }

  /* ── TG slide notification — above bottom nav ── */
  .tg-slide { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; max-width: none; }
}

/* ── Extra small phones ── */
@media (max-width: 380px) {
  .hero { height: 62vw; }
  .hero-title { font-size: 15px; }
  .art-title { font-size: 20px; }
  .art-body p { font-size: 15px; }
  .mob-nav-item { font-size: 8.5px; }
}

/* ── Light mode bottom nav ── */
[data-theme="light"] .mob-nav {
  background: rgba(242,245,250,0.96);
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .mob-nav-item { color: #7A8FA6; }
[data-theme="light"] .mob-nav-item.active { color: var(--accent); }

