/* ================================================
   AI Treasure Lab — style.css v3
   System fonts, mobile-first, clean architecture
   ================================================ */

/* ── Display font for headings (self-hosted, Cyrillic) ── */
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700 900;font-display:swap;src:url('fonts/unbounded-cyr.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700 900;font-display:swap;src:url('fonts/unbounded-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2212}

/* ════════════════════════════════════════════════
   1. DESIGN TOKENS
   ════════════════════════════════════════════════ */
/* ── Self-hosted premium font (Manrope, Cyrillic) ── */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/manrope-cyr.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2212}

:root {
  /* Colors */
  --bg:        #060D18;
  --bg2:       #0A1623;
  --bg3:       #0E1C2E;
  --card:      #0C1929;
  --border:    #162436;
  --border2:   rgba(255,255,255,.07);
  --accent:    #a6adb5;
  --accent2:   #8A5A10;
  --accent-hi: #d4d9df;
  --grad:      linear-gradient(115deg, #ffffff, #d4d9df 48%, #838a92);
  --disp:      'Unbounded', var(--font);
  --red:       #E8002D;
  --gold:      #34D399;
  --teal:      #2DD4BF;
  --violet:    #A78BFA;
  --orange:    #FB923C;
  --tg:        #2AABEE;

  /* Text */
  --text:   #E8EEF6;
  --muted:  #6A88A4;
  --muted2: #3A5268;
  --white:  #FFFFFF;

  /* Radii */
  --r:    8px;
  --r-md: 12px;
  --r-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,.35);
  --shadow-md: 0 8px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);

  /* Transitions */
  --t:    .2s ease;
  --t-lg: .35s cubic-bezier(.22,1,.36,1);

  /* Fonts */
  --font: 'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 90% 55% at 18% -8%, rgba(255,255,255,.065) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 82% 108%, rgba(232,0,45,.042) 0%, transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ════════════════════════════════════════════════
   3. SEARCH OVERLAY
   ════════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(4,9,18,.94);
  backdrop-filter: blur(16px) saturate(140%);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 96px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 700px; padding: 0 20px; }
.search-box {
  display: flex; align-items: center; gap: 14px;
  background: rgba(10,22,38,.98);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset;
  backdrop-filter: blur(20px);
}
.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(--t); }
.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(--t), border-color var(--t);
}
.search-result-item:hover { background: var(--bg3); border-color: rgba(255,255,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: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ════════════════════════════════════════════════
   4. COOKIE BANNER
   ════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: rgba(10,22,38,.98);
  backdrop-filter: blur(20px);
  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,.4);
}
.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; }
.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 22px; border-radius: 50px; cursor: pointer;
  transition: opacity var(--t), transform var(--t);
}
.cookie-accept:hover { opacity: .88; transform: translateY(-1px); }
.cookie-more { font-size: 13px; color: var(--muted2); }
.cookie-more:hover { color: var(--accent); }

/* ════════════════════════════════════════════════
   5. TICKER
   ════════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--red);
  height: 34px; overflow: hidden;
  display: flex; align-items: center;
  position: relative; z-index: 100;
}
.ticker-label {
  background: rgba(0,0,0,.25); color: #fff;
  height: 100%; padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.15);
}
.ticker-label-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 48s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12.5px; font-weight: 500; color: #fff;
  padding: 0 26px; position: relative; opacity: .95;
}
.ticker-item::after { content:'·'; position:absolute; right:4px; opacity:.4; }
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ════════════════════════════════════════════════
   6. HEADER
   ════════════════════════════════════════════════ */
.header {
  background: rgba(6,13,24,.86);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 4px 32px rgba(0,0,0,.5);
  position: sticky; top: 0; z-index: 200;
}
.header-top {
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; height: 64px;
  max-width: 1400px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(148deg, #0b0c0e 0%, #B87E22 45%, #a6adb5 100%);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
  font-size: 0; color: transparent;
  box-shadow:
    0 0 0 1px rgba(184,126,34,.5),
    0 3px 10px rgba(0,0,0,.35),
    0 6px 26px rgba(255,255,255,.38),
    0 14px 48px rgba(36,25,5,.28),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.12);
  transition: box-shadow var(--t-lg), transform var(--t-lg);
}
.logo-icon::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(175deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 55%, transparent 100%);
  border-radius: 13px 13px 0 0; pointer-events: none; z-index: 1;
}
.logo-icon svg { display: none; }
.logo-icon::after {
  content: '';
  position: relative; z-index: 2;
  width: 55%; height: 55%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3Cpath d='M11 3 8 9l4 12 4-12-3-6'/%3E%3Cpath d='M2 9h20'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3Cpath d='M11 3 8 9l4 12 4-12-3-6'/%3E%3Cpath d='M2 9h20'/%3E%3C/svg%3E") center/contain no-repeat;
  background: #0b0c0e;
}
.logo:hover .logo-icon {
  box-shadow:
    0 0 0 1px rgba(184,126,34,.8),
    0 4px 14px rgba(0,0,0,.3),
    0 10px 36px rgba(255,255,255,.55),
    0 18px 60px rgba(36,25,5,.42),
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -1px 0 rgba(0,0,0,.1);
  transform: translateY(-2px) scale(1.04);
}
.logo-text { line-height: 1.15; }
.logo-title {
  font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.4px;
}
.logo-ai   { color: rgba(255,255,255,.38); font-weight: 500; font-size: 12px; }
.logo-title > span:not(.logo-ai):not(.logo-lab) {
  background: linear-gradient(125deg, #ffffff 0%, #a6adb5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-lab  { color: rgba(255,255,255,.42); font-weight: 500; font-size: 13px; }
.logo-sub  { font-size: 9px; color: rgba(255,255,255,.22); letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; }

.header-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 12px; border-radius: var(--r);
  transition: color var(--t), background var(--t);
  white-space: nowrap; position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--accent-hi); background: rgba(255,255,255,.12); }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-date { font-size: 12px; color: var(--muted2); white-space: nowrap; }
.live-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; user-select: none;
}
.live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
.search-btn, .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(--t), background var(--t);
}
.search-btn:hover, .theme-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ════════════════════════════════════════════════
   7. HERO SLIDER
   ════════════════════════════════════════════════ */
.hero {
  position: relative; height: 580px;
  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;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 9s ease;
}
.hero-slide.active > img { transform: scale(1.06); }

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(6,13,24,.99) 0%, rgba(6,13,24,.88) 28%, rgba(6,13,24,.48) 58%, rgba(6,13,24,.08) 100%),
    linear-gradient(to top, rgba(6,13,24,.82) 0%, transparent 42%);
}
.hero-content {
  position: absolute; bottom: 60px; left: 0;
  max-width: 600px; padding: 0 54px; z-index: 3;
}
.hero-cat {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 5px; margin-bottom: 16px;
}
.hero-title {
  font-size: 34px; font-weight: 800;
  line-height: 1.2; color: #fff;
  margin-bottom: 14px; letter-spacing: -.6px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero-desc {
  font-size: 15.5px; color: rgba(255,255,255,.7);
  margin-bottom: 22px; line-height: 1.65; max-width: 510px;
}
.hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 22px;
}
.hero-meta-dot { opacity: .35; }
.hero-read-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #dfe3e8 0%, #a6adb5 60%, #6E4408 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 13px 28px; border-radius: 50px;
  box-shadow: 0 4px 30px rgba(255,255,255,.55), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: all var(--t-lg);
}
.hero-read-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 42px rgba(255,255,255,.7), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.hero-read-btn svg { transition: transform .2s; }
.hero-read-btn:hover svg { transform: translateX(5px); }

.hero-thumbs {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 260px; 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.07); }
.hero-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,24,.9) 0%, rgba(6,13,24,.2) 100%);
  transition: background .3s;
}
.hero-thumb.active .hero-thumb-overlay {
  background: linear-gradient(to top, rgba(255,255,255,.6) 0%, rgba(255,255,255,.1) 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(--t), box-shadow var(--t);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-arr:hover { background: rgba(255,255,255,.22); box-shadow: 0 0 24px rgba(255,255,255,.15); }
.hero-arr.prev { left: 18px; }
.hero-arr.next { right: 18px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 54px;
  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: 28px; background: linear-gradient(90deg, #f0f2f4, #a6adb5); }

/* ════════════════════════════════════════════════
   8. LAYOUT
   ════════════════════════════════════════════════ */
.main-wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.main-grid {
  display: grid; grid-template-columns: 1fr 316px;
  gap: 36px; padding: 36px 0 64px; align-items: start;
}

/* ════════════════════════════════════════════════
   9. SECTION HEADERS
   ════════════════════════════════════════════════ */
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.sec-hd-left { display: flex; align-items: center; gap: 12px; }
.sec-bar {
  width: 3px; height: 22px;
  background: linear-gradient(180deg, #d4d9df, #a6adb5);
  border-radius: 2px;
}
.sec-title {
  font-size: 17px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(130deg, #fff 55%, rgba(255,255,255,.65));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sec-count {
  font-size: 11px; color: var(--muted2);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 12px;
}
.sec-all {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: color var(--t);
}
.sec-all:hover { color: var(--accent-hi); }
.sec-all svg { transition: transform .2s; }
.sec-all:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════
   10. CARDS
   ════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards-grid.auto-col {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Featured first card */
.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; min-height: 200px;
}
.cards-grid.has-featured > .card:first-child .card-body { padding: 24px 22px; }
.cards-grid.has-featured > .card:first-child .card-title { font-size: 18px; -webkit-line-clamp: 4; }
.cards-grid.has-featured > .card:first-child .card-desc { -webkit-line-clamp: 3; }

.card {
  background: linear-gradient(165deg, #0D1F32 0%, #08172A 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--border2);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, var(--shadow-sm);
  transition:
    transform .3s cubic-bezier(.22,1,.36,1),
    border-color .3s,
    box-shadow .3s;
}
.card:hover { transform: translateY(-7px); }
.card:has(.cat-models):hover   { border-color: rgba(75,148,255,.35); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(26,110,255,.14); }
.card:has(.cat-tools):hover    { border-color: rgba(45,212,191,.32); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(45,212,191,.1); }
.card:has(.cat-research):hover { border-color: rgba(167,139,250,.32); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(167,139,250,.1); }
.card:has(.cat-hardware):hover { border-color: rgba(249,115,22,.28); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(249,115,22,.1); }
.card:has(.cat-business):hover { border-color: rgba(52,211,153,.3); box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 60px rgba(52,211,153,.1); }

.card-img-wrap {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0C1A2C, #06101C);
  flex-shrink: 0;
}
.card-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,24,.5) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.card:hover .card-img { transform: scale(1.07); }
.card-img-wrap .card-cat { position: absolute; top: 10px; left: 10px; z-index: 2; }

.card-body { padding: 16px 17px 18px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; margin-bottom: 10px;
}
.cat-models   { background: rgba(26,110,255,.16); color: #6BA8FF; border: 1px solid rgba(26,110,255,.2); }
.cat-tools    { background: rgba(45,212,191,.13); color: #2DD4BF; border: 1px solid rgba(45,212,191,.2); }
.cat-research { background: rgba(167,139,250,.13); color: #B89DFA; border: 1px solid rgba(167,139,250,.2); }
.cat-business { background: rgba(52,211,153,.12); color: #34D399; border: 1px solid rgba(52,211,153,.22); }
.cat-hardware { background: rgba(249,115,22,.11); color: #FB923C; border: 1px solid rgba(249,115,22,.18); }
.cat-edu      { background: rgba(56,189,248,.11); color: #38BDF8; border: 1px solid rgba(56,189,248,.18); }

.card-title {
  font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -.015em;
  color: var(--text); margin-bottom: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t);
}
.card:hover .card-title { color: #F5F9FF; }
.card-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6; 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: 9px; }
.feed-empty { color: var(--muted2); font-size: 13px; padding: 12px 0; }

/* Stagger animations */
.cards-grid .card:nth-child(2) { transition-delay: .04s; }
.cards-grid .card:nth-child(3) { transition-delay: .08s; }
.cards-grid .card:nth-child(4) { transition-delay: .06s; }
.cards-grid .card:nth-child(5) { transition-delay: .10s; }
.cards-grid .card:nth-child(6) { transition-delay: .05s; }

/* ════════════════════════════════════════════════
   11. BREAKING BAND
   ════════════════════════════════════════════════ */
.breaking-band {
  background: linear-gradient(to right, rgba(255,255,255,.06), rgba(45,212,191,.04));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: 14px 0;
  margin: 36px 0;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
}
.breaking-band:hover { border-color: rgba(255,255,255,.32); box-shadow: 0 0 24px rgba(255,255,255,.08); }
.breaking-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.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: var(--text);
  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: var(--muted2); letter-spacing: .05em; }

/* ════════════════════════════════════════════════
   12. CATEGORY SECTIONS
   ════════════════════════════════════════════════ */
.cat-section { margin-top: 44px; }

/* ════════════════════════════════════════════════
   13. SIDEBAR / WIDGETS
   ════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: linear-gradient(155deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s;
}
.widget:hover { border-color: rgba(255,255,255,.16); box-shadow: 0 4px 20px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.05); }

.widget-hd {
  padding: 15px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  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: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.05); }
.stat-cell {
  background: rgba(255,255,255,.025); padding: 16px 12px; text-align: center;
  transition: background .2s; border-radius: 4px;
}
.stat-cell:hover { background: rgba(255,255,255,.05); }
.stat-val {
  font-size: 22px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.65));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-lbl { font-size: 10.5px; color: var(--muted2); margin-top: 4px; }

.popular-list { padding: 6px 8px; }
.popular-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  transition: background .2s;
}
.popular-item:hover { background: rgba(255,255,255,.05); }
.popular-num {
  min-width: 26px; height: 26px;
  border-radius: 7px;
  font-size: 11px; font-weight: 900;
  background: rgba(255,255,255,.12); color: #63B3ED;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.popular-item:nth-child(1) .popular-num {
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.1));
  color: #6BA8FF;
}
.popular-item:nth-child(2) .popular-num { background: rgba(255,255,255,.1); }
.popular-item:nth-child(3) .popular-num { background: rgba(255,255,255,.07); }
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t);
}
.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: rgba(255,255,255,.04); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 13px; cursor: pointer;
  transition: all .22s;
}
.topic-pill:hover {
  color: #fff; border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,255,255,.14);
}

/* Telegram Widget */
.tg-widget {
  background: linear-gradient(145deg, #0A1E30 0%, #061626 60%, #031120 100%) !important;
  border: 1px solid rgba(42,171,238,.25) !important;
  text-align: center; padding: 26px 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,.14) 0%, transparent 70%);
  pointer-events: none;
}
.tg-icon-wrap {
  width: 58px; height: 58px; 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 28px 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: 18px; }
.tg-widget-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; border-radius: 50px; padding: 13px 22px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 22px rgba(42,171,238,.4);
  transition: all var(--t-lg); width: 100%;
}
.tg-widget-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(42,171,238,.6);
}
.tg-widget-hint { margin-top: 12px; font-size: 12px; color: rgba(42,171,238,.6); }

/* ════════════════════════════════════════════════
   14. TELEGRAM CTAs
   ════════════════════════════════════════════════ */
/* Inline CTA */
.tg-inline-cta {
  display: flex; align-items: center; gap: 18px;
  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: 16px;
  padding: 20px 24px; margin: 36px 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.tg-inline-cta:hover { border-color: rgba(42,171,238,.35); box-shadow: 0 0 28px rgba(42,171,238,.08); }
.tg-inline-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px 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; border-radius: 50px; padding: 11px 20px;
  font-weight: 700; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 2px 14px rgba(42,171,238,.35);
  transition: all var(--t-lg);
}
.tg-inline-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(42,171,238,.55); }

/* 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: 16px;
  padding: 24px 28px; 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 22px 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; border-radius: 50px; padding: 13px 24px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 20px rgba(42,171,238,.4);
  transition: all var(--t-lg); white-space: nowrap;
}
.tg-art-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,171,238,.6); }

/* Slide-in */
.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,.3); border-radius: 18px;
  padding: 16px 38px 16px 16px; max-width: 340px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(42,171,238,.05) inset;
  transform: translateY(140%); opacity: 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s;
}
.tg-slide.visible { transform: translateY(0); opacity: 1; }
.tg-slide-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 18px 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; border-radius: 10px; padding: 9px 15px;
  font-weight: 700; font-size: 12.5px;
  box-shadow: 0 2px 12px rgba(42,171,238,.4); white-space: nowrap;
  transition: all .2s;
}
.tg-slide-btn:hover { box-shadow: 0 4px 18px rgba(42,171,238,.6); }
.tg-slide-close {
  position: absolute; top: 9px; right: 11px;
  color: var(--muted); font-size: 17px;
  cursor: pointer; line-height: 1; padding: 3px 5px;
  transition: color .2s;
}
.tg-slide-close:hover { color: #fff; }

/* ════════════════════════════════════════════════
   15. FOOTER
   ════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, var(--bg2) 0%, #030912 100%);
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 64px;
}
.footer-top {
  max-width: 1400px; margin: 0 auto; padding: 52px 24px 40px;
  display: grid; grid-template-columns: 240px 1fr 1fr 1fr; gap: 52px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-col-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 13.5px; color: var(--muted); transition: color var(--t); }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 18px 24px; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), transparent 50%, rgba(255,255,255,.03));
}
.footer-copy { font-size: 12px; color: var(--muted2); }
.rss-link { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ════════════════════════════════════════════════
   16. ARTICLE PAGE
   ════════════════════════════════════════════════ */
#rdg-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4d9df 0%, #dfe3e8 50%, #a6adb5 100%);
  z-index: 9999; width: 0; transition: width .12s linear;
  box-shadow: 0 0 14px rgba(255,255,255,.75);
}
.art-wrap {
  max-width: 1400px; margin: 0 auto; padding: 40px 24px 72px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; 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(--t);
}
.art-nav-back:hover { color: #fff; }
.art-cat { display: inline-block; margin-bottom: 14px; }
.art-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800; line-height: 1.22; color: #fff;
  letter-spacing: -.05em; margin-bottom: 18px;
}
.art-lead {
  font-size: 17px; color: var(--muted); line-height: 1.72;
  margin-bottom: 24px;
  background: linear-gradient(to right, rgba(255,255,255,.06), transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 16px 22px;
}
.art-info {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 30px; 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: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.04);
}
.art-body { font-size: 17px; line-height: 1.86; color: #C8D9E9; }
.art-body p { margin-bottom: 20px; }
.art-body h2 {
  font-size: 22px; font-weight: 800; color: #fff; margin: 40px 0 14px;
  letter-spacing: -.04em;
}
.art-body h3 { font-size: 18px; font-weight: 700; color: #dde8f2; margin: 28px 0 10px; }
.art-body blockquote.tg-quote {
  margin: 22px 0; padding: 16px 22px;
  border-left: 3px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  border-radius: 0 12px 12px 0;
  color: var(--muted); font-style: italic;
  font-size: 15px; line-height: 1.7;
  position: relative;
}
.art-body blockquote.tg-quote::before {
  content: '"'; position: absolute; top: -8px; left: 15px;
  font-size: 44px; font-style: normal;
  color: rgba(255,255,255,.28); line-height: 1; font-family: Georgia, serif;
}

/* Share */
.art-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 30px 0; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.art-share-label { font-size: 12px; color: var(--muted2); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 50px; cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border2); color: var(--muted);
  background: rgba(255,255,255,.04);
}
.share-btn:hover { transform: translateY(-1px); }
.share-copy:hover { background: var(--accent); color: #fff; border-color: transparent; }
.share-tg:hover   { background: #0088CC; color: #fff; border-color: transparent; }

/* Related */
.related-section { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); }
.related-section h3 {
  font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.related-section h3::before {
  content: ''; width: 3px; height: 20px;
  background: var(--accent); border-radius: 2px; display: block; flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--muted2); margin-bottom: 20px;
}
.breadcrumb-link { color: var(--muted2); transition: color var(--t); }
.breadcrumb-link:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); font-size: 14px; }
.breadcrumb-cur { color: var(--muted); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════════════════════════════════════════════════
   17. UTILITIES
   ════════════════════════════════════════════════ */
.mt-40 { margin-top: 40px; }

/* Loading "fade-up" animation */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* Back to top */
.to-top {
  position: fixed; bottom: 32px; right: 28px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #dfe3e8, #a6adb5);
  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 var(--t-lg), box-shadow .25s;
  box-shadow: 0 4px 22px rgba(255,255,255,.55);
  cursor: pointer;
}
.to-top.show { opacity: 1; pointer-events: all; }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 10px 34px rgba(255,255,255,.7); }

/* Load More */
.load-more-wrap { text-align: center; margin-top: 28px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; font-weight: 600;
  padding: 13px 44px; border-radius: 50px;
  cursor: pointer; transition: all .25s;
  letter-spacing: .01em;
}
.load-more-btn:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.42);
  color: var(--accent-hi);
  transform: translateY(-2px);
}

/* Legal pages */
.legal-body { font-size: 15px; line-height: 1.8; 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 strong { color: var(--muted); }
.legal-date { font-size: 13px; color: var(--muted2); font-style: italic; margin-bottom: 28px; }

/* ════════════════════════════════════════════════
   18. MOBILE BOTTOM NAV
   ════════════════════════════════════════════════ */
.mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(6,13,22,.97);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border-top: 1px solid rgba(255,255,255,.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;
  color: var(--muted2);
  font-size: 9.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 12px; margin: 4px 2px;
  transition: color .18s, background .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,.06); }
.mob-nav-tg { color: var(--tg) !important; }

/* ════════════════════════════════════════════════
   19. LIGHT THEME
   ════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:     #EFF3FA;
  --bg2:    #FFFFFF;
  --bg3:    #E4EAF5;
  --card:   #FFFFFF;
  --border: #CBD4E4;
  --border2: rgba(0,0,0,.08);
  --text:   #0B1A2A;
  --muted:  #486278;
  --muted2: #7A8FA6;
}
[data-theme="light"] body {
  background: linear-gradient(135deg, #EEF4FF 0%, #F0F5FC 100%);
  background-image:
    radial-gradient(ellipse 90% 55% at 18% -8%, rgba(255,255,255,.055) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 82% 108%, rgba(232,0,45,.03) 0%, transparent 55%),
    linear-gradient(135deg, #EEF4FF 0%, #F0F5FC 100%);
}
[data-theme="light"] .header {
  background: rgba(244,248,253,.92);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
[data-theme="light"] .card {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
[data-theme="light"] .card:hover { box-shadow: 0 16px 44px rgba(0,0,0,.14); }
[data-theme="light"] .card-title { color: #0B1A2A; }
[data-theme="light"] .card:hover .card-title { color: #000; }
[data-theme="light"] .widget {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
[data-theme="light"] .widget-hd-title { color: rgba(0,0,0,.4); }
[data-theme="light"] .stat-val { background: linear-gradient(135deg, #a6adb5, #8A5A10); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .sec-title { background: linear-gradient(130deg, #0B1A2A 55%, rgba(11,26,42,.6)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(110deg, rgba(238,244,255,.99) 0%, rgba(238,244,255,.85) 28%, rgba(238,244,255,.4) 58%, rgba(238,244,255,.06) 100%),
    linear-gradient(to top, rgba(238,244,255,.88) 0%, transparent 42%);
}
[data-theme="light"] .hero-title { color: #0B1A2A; text-shadow: none; }
[data-theme="light"] .hero-desc  { color: rgba(11,26,42,.6); }
[data-theme="light"] .hero-meta  { color: rgba(11,26,42,.4); }
[data-theme="light"] .search-overlay { background: rgba(220,228,242,.96); }
[data-theme="light"] .search-box { background: #fff; border-color: rgba(255,255,255,.2); }
[data-theme="light"] .search-box input { color: #0B1A2A; }
[data-theme="light"] .search-result-item { background: #fff; }
[data-theme="light"] .search-result-title { color: #0B1A2A; }
[data-theme="light"] .art-body { color: #2A3D54; }
[data-theme="light"] .art-body h2 { color: #0B1A2A; }
[data-theme="light"] .art-lead { color: var(--muted); }
[data-theme="light"] .popular-num { background: rgba(255,255,255,.1); color: var(--accent); }
[data-theme="light"] .topic-pill { background: rgba(0,0,0,.04); color: var(--muted); }
[data-theme="light"] .tg-widget { background: linear-gradient(145deg, #EBF7FF, #D5EEF9) !important; border-color: rgba(42,171,238,.3) !important; }
[data-theme="light"] .tg-widget-text { color: #3A5468; }
[data-theme="light"] .tg-widget-hint { color: rgba(42,171,238,.8); }
[data-theme="light"] .tg-inline-content strong { color: #071B2E; }
[data-theme="light"] .tg-inline-content span { color: #486278; }
[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: #486278; }
[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: #486278; }
[data-theme="light"] .mob-nav { background: rgba(242,246,252,.97); border-top-color: rgba(0,0,0,.1); }
[data-theme="light"] .mob-nav-item { color: #7A8FA6; }
[data-theme="light"] .mob-nav-item.active { color: var(--accent); }
[data-theme="light"] .footer { background: linear-gradient(180deg, #fff 0%, #EEF3FA 100%); border-top-color: rgba(0,0,0,.08); }
[data-theme="light"] .footer-copy { color: #7A8FA6; }
[data-theme="light"] .legal-body h2 { color: #0B1A2A; }
[data-theme="light"] .legal-body { color: #3A5268; }
[data-theme="light"] .related-section h3 { color: #0B1A2A; }
[data-theme="light"] .sec-hd { border-bottom-color: rgba(0,0,0,.07); }
[data-theme="light"] .breadcrumb-sep { color: var(--border); }
[data-theme="light"] .load-more-btn { border-color: rgba(0,0,0,.14); color: var(--text); }
[data-theme="light"] .load-more-btn:hover { border-color: rgba(255,255,255,.4); color: var(--accent); background: rgba(255,255,255,.06); }
[data-theme="light"] .breaking-band { background: linear-gradient(to right, rgba(255,255,255,.06), rgba(45,212,191,.03)); border-color: rgba(255,255,255,.18); }
[data-theme="light"] .breaking-text { color: #0B1A2A; }

/* ════════════════════════════════════════════════
   20. TABLET (≤ 1150px)
   ════════════════════════════════════════════════ */
@media (max-width: 1150px) {
  .main-grid  { grid-template-columns: 1fr; }
  .art-wrap   { grid-template-columns: 1fr; }
  .sidebar    { display: none; }
  .hero-thumbs { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.has-featured > .card:first-child { grid-column: span 2; }
}

/* ════════════════════════════════════════════════
   21. MOBILE (≤ 760px)
   ════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* ── Show bottom nav + body pad ── */
  .mob-nav { display: flex; flex-direction: column; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

  /* ── Header ── */
  .header-top { height: 56px; padding: 0 18px; gap: 12px; }
  .header-nav { display: none; }
  .logo-sub { display: none; }
  .logo-icon { width: 40px; height: 40px; border-radius: 11px; }
  .logo-icon svg { width: 38px; height: 38px; }
  .logo-title { font-size: 16px; }
  .header-date { display: none; }
  .live-btn { display: none; }

  /* ── Ticker ── */
  .ticker-wrap { height: 32px; }
  .ticker-label { padding: 0 12px; font-size: 9.5px; }
  .ticker-item { font-size: 12.5px; padding: 0 20px; }

  /* ── Hero ── */
  .hero {
    height: 340px;
    margin: 14px 16px 0;
    width: calc(100% - 32px);
    border-radius: 22px;
  }
  .hero-placeholder { height: 100%; border-radius: 22px; }
  .hero-overlay {
    border-radius: 22px;
    background:
      linear-gradient(to top, rgba(6,8,18,.97) 0%, rgba(6,8,18,.6) 46%, rgba(6,8,18,.06) 100%);
  }
  .hero-content {
    bottom: 22px; padding: 0 20px; max-width: none;
  }
  .hero-cat { font-size: 10.5px; padding: 5px 12px; margin-bottom: 12px; }
  .hero-title {
    font-size: 23px; line-height: 1.22; letter-spacing: -.4px; margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,.9);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-desc {
    display: -webkit-box; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.82);
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0;
  }
  .hero-meta { display: none; }
  .hero-read-btn { display: none; }
  .hero-dots { bottom: 10px; right: 14px; left: auto; gap: 5px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
  .hero-arr { display: none; }

  /* ── Main layout ── */
  .main-wrap { padding: 0 16px; }
  .main-grid { padding: 28px 0 56px; gap: 0; }

  /* ── Section headers ── */
  .sec-hd { margin-bottom: 20px; padding-bottom: 16px; }
  .sec-title { font-size: 17px; }
  .sec-count { font-size: 11px; }
  .sec-all { font-size: 13px; }

  /* ── Main feed: force single-column, kill featured span-2 ── */
  .cards-grid,
  .cards-grid.auto-col { grid-template-columns: 1fr; gap: 0; }
  /* Reset span-2 that desktop sets on the featured first card */
  .cards-grid.has-featured > .card:first-child { grid-column: 1 / -1; }

  /* ── Main feed: beautiful full-width vertical cards ── */
  #mainFeed .card {
    flex-direction: column;
    border-radius: 20px;
    margin-bottom: 18px;
    align-items: stretch;
    overflow: hidden;
  }
  #mainFeed .card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 0;
    border-radius: 0;
    background: var(--bg3);
  }
  #mainFeed .card-img-wrap::after { display: block; }
  #mainFeed .card-img { border-radius: 0; height: 100%; object-fit: cover; }
  #mainFeed .card-img-wrap .card-cat {
    display: inline-flex; position: absolute; top: 12px; left: 12px;
    font-size: 10px; padding: 4px 10px;
  }
  #mainFeed .card-body {
    padding: 15px 17px 18px;
    justify-content: flex-start;
    min-width: 0;
  }
  #mainFeed .card-title {
    font-size: 17px; line-height: 1.36;
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
    word-break: break-word; overflow-wrap: break-word;
  }
  #mainFeed .card-desc {
    display: -webkit-box; font-size: 13.5px; line-height: 1.6;
    -webkit-line-clamp: 2; margin-bottom: 10px;
  }
  #mainFeed .card-meta { font-size: 12px; margin-top: auto; gap: 7px; }

  /* ── Featured first card: bigger hero card ── */
  #mainFeed > .card:first-child {
    flex-direction: column !important;
    margin-bottom: 22px !important;
    border-radius: 22px !important;
  }
  #mainFeed > .card:first-child .card-img-wrap {
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }
  #mainFeed > .card:first-child .card-body { padding: 18px 18px 20px !important; }
  #mainFeed > .card:first-child .card-title {
    font-size: 21px !important; line-height: 1.24 !important; -webkit-line-clamp: 3 !important;
  }
  #mainFeed > .card:first-child .card-desc {
    display: -webkit-box !important; font-size: 14px; -webkit-line-clamp: 3 !important;
    margin-top: 2px;
  }
  #mainFeed > .card:first-child .card-meta { font-size: 12.5px; margin-top: 10px; }

  /* ── Category horizontal scroll card body ── */
  .card { border-radius: 16px; }
  .card-body { padding: 14px 15px 16px; }
  .card-cat { font-size: 10.5px; padding: 4px 10px; margin-bottom: 10px; }
  .card-title { font-size: 15px; line-height: 1.42; -webkit-line-clamp: 3; }
  .card-desc { font-size: 13.5px; line-height: 1.6; -webkit-line-clamp: 2; }
  .card-meta { font-size: 12px; margin-top: 12px; }

  /* ── Category sections: horizontal scroll ── */
  .cat-section { margin-top: 40px; }
  .cat-section .sec-hd { margin-bottom: 16px; }
  .cat-section {
    position: relative;
  }
  .cat-section .cards-grid.auto-col {
    display: flex; flex-direction: row;
    overflow-x: auto; gap: 14px;
    padding-bottom: 10px;
    margin: 0 -16px; padding-left: 16px; padding-right: 40px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-section .cards-grid.auto-col::-webkit-scrollbar { display: none; }
  .cat-section .cards-grid.auto-col .card {
    flex: 0 0 clamp(220px, 65vw, 280px);
    border-radius: 16px;
  }
  .cat-section .cards-grid.auto-col .card-img-wrap {
    aspect-ratio: 16/10; border-radius: 16px 16px 0 0;
  }
  .cat-section .cards-grid.auto-col .card-body { padding: 14px 16px 18px; }
  .cat-section .cards-grid.auto-col .card-title { font-size: 14.5px; -webkit-line-clamp: 3; }
  .cat-section .cards-grid.auto-col .card-desc { font-size: 12.5px; }

  /* ── Breaking band ── */
  .breaking-band { border-radius: 12px; margin: 32px 0; padding: 16px 0; }
  .breaking-inner { padding: 0 18px; gap: 12px; }
  .breaking-text { font-size: 13.5px; }
  .breaking-counter { font-size: 12px; }

  /* ── TG inline CTA ── */
  .tg-inline-cta {
    flex-direction: column; text-align: center;
    padding: 22px 20px; gap: 16px; margin: 32px 0;
    border-radius: 18px;
  }
  .tg-inline-content strong { font-size: 15px; }
  .tg-inline-content span { font-size: 13px; }
  .tg-inline-btn { width: 100%; text-align: center; justify-content: center; padding: 13px; font-size: 14px; }

  /* ── Load more ── */
  .load-more-wrap { margin-top: 24px; }
  .load-more-btn { width: 100%; justify-content: center; font-size: 14px; padding: 14px; }

  /* ── Back to top (above bottom nav) ── */
  .to-top { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 44px; height: 44px; font-size: 19px; }

  /* ── TG slide (above bottom nav) ── */
  .tg-slide {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 16px; right: 16px; max-width: none;
    border-radius: 18px; padding: 18px 44px 18px 18px;
  }

  /* ── Cookie banner (above bottom nav) ── */
  .cookie-banner {
    padding: 16px 18px 20px; flex-direction: column; gap: 14px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
  }
  .cookie-content p { font-size: 13px; line-height: 1.55; }
  .cookie-accept { width: 100%; padding: 12px; font-size: 14px; border-radius: 50px; }

  /* ── Footer ── */
  .footer { margin-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; padding: 16px 20px; }
  .footer-copy { font-size: 12px; }
  .footer-col-title { margin-bottom: 14px; }
  .footer-links { gap: 14px; }
  .footer-link { font-size: 14px; }

  /* ── Bottom nav ── */
  .mob-nav-inner { height: 62px; }
  .mob-nav-item { font-size: 10px; gap: 4px; }
  .mob-nav-item svg { width: 24px; height: 24px; }

  /* ── Article page ── */
  .art-wrap { grid-template-columns: 1fr; padding: 20px 18px 48px; gap: 0; }
  .breadcrumb { font-size: 12px; margin-bottom: 16px; gap: 8px; }
  .art-cat { font-size: 11px; padding: 4px 10px; }
  .art-title { font-size: clamp(21px, 5.5vw, 28px); margin: 12px 0 16px; line-height: 1.25; }
  .art-lead { font-size: 15.5px; line-height: 1.68; padding: 16px 18px; border-radius: 0 12px 12px 0; margin-bottom: 20px; }
  .art-info { font-size: 12.5px; gap: 10px; padding: 14px 0; margin-bottom: 20px; }
  .art-hero-img { border-radius: 16px; margin: 0 0 24px; aspect-ratio: 16/9; }
  .art-body { font-size: 16.5px; line-height: 1.82; }
  .art-body p { margin-bottom: 20px; }
  .art-body h2 { font-size: 20px; margin: 36px 0 14px; }
  .art-body h3 { font-size: 17px; margin: 24px 0 10px; }
  .art-body blockquote.tg-quote { font-size: 14.5px; padding: 14px 18px; margin: 20px 0; }
  .art-share { margin: 24px 0; padding: 18px 0; gap: 10px; }
  .share-btn { font-size: 13px; padding: 10px 16px; }
  .tg-art-cta { flex-direction: column; text-align: center; padding: 22px 20px; gap: 16px; border-radius: 18px; }
  .tg-art-cta-icon { width: 54px; height: 54px; margin: 0 auto; }
  .tg-art-cta-body strong { font-size: 16px; }
  .tg-art-cta-body span { font-size: 14px; }
  .tg-art-cta-btn { width: 100%; justify-content: center; padding: 14px; font-size: 14px; }
  .related-section { margin-top: 36px; padding-top: 24px; }
  .related-section h3 { font-size: 16px; margin-bottom: 20px; }
}

/* ════════════════════════════════════════════════
   22. EXTRA SMALL (≤ 390px)
   ════════════════════════════════════════════════ */
@media (max-width: 390px) {
  .hero { height: 210px; }
  .hero-title { font-size: 15.5px; }
  .card-title { font-size: 15px; }
  .art-title { font-size: 20px; }
  .art-body { font-size: 16px; }
  .mob-nav-item { font-size: 9px; }
  .logo-title { font-size: 15px; }
  .main-wrap { padding: 0 14px; }
  .hero { margin: 14px 14px 0; width: calc(100% - 28px); }
}

/* ═══════════════════════════════════════════════════

/* ═══════════════════════════════════════════════════
   FEATURED HERO — «главная новость + топ» (1tv-style)
   ═══════════════════════════════════════════════════ */
.hero{
  height:auto !important;
  overflow:visible !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.hero-feat{
  position:relative; display:block; border-radius:22px; overflow:hidden;
  min-height:460px; isolation:isolate;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.06);
}
.hero-feat-img{ position:absolute; inset:0; z-index:0; }
.hero-feat-img img{ width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.2,.8,.2,1); }
.hero-feat:hover .hero-feat-img img{ transform:scale(1.05); }
.hero-feat-ov{ position:absolute; inset:0; z-index:1; background:linear-gradient(to top, rgba(8,7,3,.97) 3%, rgba(8,7,3,.5) 46%, rgba(8,7,3,.05) 100%); }
.hero-feat-body{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding:32px 34px; }
.hero-feat-body .card-cat{ position:static; display:inline-flex; margin-bottom:14px; font-size:11px; padding:5px 12px; background:var(--grad); color:#0b0c0e; border:none; font-weight:800; }
.hero-feat-title{ font-family:var(--font); font-weight:800; font-size:clamp(24px,2.5vw,36px); line-height:1.13; letter-spacing:-.025em; color:#fff; margin-bottom:12px; text-shadow:0 2px 26px rgba(0,0,0,.7); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hero-feat-desc{ font-size:15px; line-height:1.55; color:rgba(255,255,255,.85); max-width:92%; margin-bottom:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-feat .hero-meta{ display:flex; gap:9px; align-items:center; font-size:13px; color:rgba(255,255,255,.65); margin-bottom:0; }

.hero-side{ display:flex; flex-direction:column; background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.015)); border:1px solid rgba(255,255,255,.09); border-radius:22px; padding:6px 18px; }
.hero-side-hd{ display:flex; align-items:center; gap:10px; font-family:var(--font); font-weight:800; font-size:14px; letter-spacing:.01em; padding:16px 0 12px; color:var(--text); }
.hero-side-bar{ width:5px; height:18px; border-radius:4px; background:var(--grad); }
.hero-item{ display:flex; gap:13px; padding:13px 0; border-top:1px solid rgba(255,255,255,.07); align-items:flex-start; cursor:pointer; }
.hero-item:first-of-type{ border-top:none; }
.hero-item-img{ width:80px; min-width:80px; height:60px; border-radius:12px; overflow:hidden; background:var(--bg3); flex-shrink:0; }
.hero-item-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.hero-item:hover .hero-item-img img{ transform:scale(1.08); }
.hero-item-body{ min-width:0; }
.hero-item .card-cat{ position:static; display:inline-flex; margin-bottom:5px; font-size:8.5px; padding:2px 7px; }
.hero-item-title{ font-size:13.5px; font-weight:700; line-height:1.32; color:var(--text); transition:color .2s; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-item:hover .hero-item-title{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-item-meta{ font-size:11px; color:var(--muted2); margin-top:5px; }

@media(max-width:900px){
  .hero{ grid-template-columns:1fr !important; gap:14px; margin:16px 16px 0 !important; padding:0; max-width:none; }
  .hero-feat{ min-height:320px; }
  .hero-feat-body{ padding:22px; }
  .hero-feat-title{ font-size:23px; }
  .hero-side{ border-radius:18px; padding:4px 16px; }
  .hero-item-img{ width:96px; min-width:96px; height:70px; }
  .hero-item-title{ font-size:14.5px; }
  .hero-item .card-cat{ font-size:9px; }
}

/* ═══ TELEGRAM CTA — header (gold) ═══ */
.gpt-cta{
  display:inline-flex; align-items:center; gap:9px;
  background:var(--grad); color:#0b0c0e; text-decoration:none;
  padding:7px 15px 7px 8px; border-radius:13px; margin-right:6px;
  box-shadow:0 10px 26px -10px rgba(255,255,255,.75), inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .2s, box-shadow .2s; white-space:nowrap;
}
.gpt-cta:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -10px rgba(255,255,255,.95), inset 0 1px 0 rgba(255,255,255,.5); }
.gpt-cta-ic{ display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:rgba(36,25,5,.16); flex-shrink:0; }
.gpt-cta-ic svg{ fill:#0b0c0e !important; }
.gpt-cta-txt{ display:flex; flex-direction:column; line-height:1.02; }
.gpt-cta-txt b{ font-family:var(--font); font-size:14px; font-weight:800; letter-spacing:-.01em; }
.gpt-cta-txt span{ font-size:10px; font-weight:600; opacity:.85; letter-spacing:.02em; }
@media (max-width:760px){
  .gpt-cta{ padding:6px 12px 6px 7px; margin-right:2px; border-radius:11px; }
  .gpt-cta-ic{ width:24px; height:24px; border-radius:8px; }
  .gpt-cta-txt b{ font-size:12.5px; }
  .gpt-cta-txt span{ font-size:9px; }
}
@media (max-width:390px){
  .gpt-cta-txt span{ display:none; }
  .gpt-cta-txt b{ font-size:13px; }
}

/* ═══════════════════════════════════════════════════
   PREVIEW-STYLE UPGRADES — display font, canvas bg, buttons
   ═══════════════════════════════════════════════════ */

/* Display typography on headings */
.hero-feat-title, .hero-title, .sec-title, .logo-title, .art-title,
.stat-val, h1.art-title {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-title { background: none !important; -webkit-text-fill-color: initial !important; color: var(--text); }

/* Live particle background (canvas, JS-driven — moves even with reduced-motion OS setting) */
#bgParticles{ position:fixed; inset:0; z-index:-2; pointer-events:none; }
body::after{
  content:''; position:fixed; inset:0; z-index:-3; pointer-events:none;
  background:
    radial-gradient(1000px 560px at 50% -8%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(700px 500px at 92% 6%, rgba(255,255,255,.06), transparent 55%);
}

/* Premium pill buttons (matches preview concept) */
.hero-read-btn, .load-more-btn, .gpt-cta, .tg-inline-btn, .tg-art-cta-btn, .tg-widget-btn {
  border-radius: 100px !important;
}
.hero-read-btn{
  background: var(--grad) !important; color:#0b0c0e !important;
  box-shadow: 0 16px 40px -12px rgba(255,255,255,.65), 0 3px 8px -1px rgba(0,0,0,.3), inset 0 1.5px 0 rgba(255,255,255,.6) !important;
}
.hero-read-btn:hover{ box-shadow: 0 22px 52px -12px rgba(255,255,255,.85), 0 3px 8px -1px rgba(0,0,0,.3), inset 0 1.5px 0 rgba(255,255,255,.7) !important; }
.load-more-btn{
  background: var(--glass, rgba(255,255,255,.04)); border:1px solid rgba(255,255,255,.14);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.load-more-btn:hover{ border-color: rgba(255,255,255,.4); box-shadow: 0 14px 30px -14px rgba(255,255,255,.35); transform: translateY(-2px); }

/* ═══ FULL PREVIEW CSS SYSTEM (nav/btn/marq/stats/grid/card) — merged verbatim ═══ */


*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0b0c0e; --bg2:#111316;
  --ink:#f4f6f8; --muted:#9ba2ab; --muted2:#6b727b;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.15);
  --glass:rgba(255,255,255,.04);
  --gold:#f4f6f8; --gold2:#c8ccd2; --amber:#ffffff;
  --grad: linear-gradient(120deg,#ffffff,#cdd2d8 55%,#a6adb5);
  --grad2: linear-gradient(120deg,#c8ccd2,#ffffff 60%,#dfe3e8);
  --disp:'Unbounded','Manrope',system-ui,sans-serif;
  --font:'Manrope',-apple-system,'Segoe UI',system-ui,sans-serif;
}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--ink);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit} img{display:block;max-width:100%}
::selection{background:#f4f6f8;color:#0b0c0e}
::-webkit-scrollbar{width:12px} ::-webkit-scrollbar-track{background:#070809}
::-webkit-scrollbar-thumb{background:linear-gradient(#2a2e33,#16181b);border-radius:20px;border:3px solid #070809}
:focus-visible{outline:2px solid #f4f6f8;outline-offset:3px}

#bgcv{display:none}
/* clean flat background (vc.ru-style, no particles/glow) */

.wrap{max-width:1440px;margin:0 auto;padding:0 30px}
.disp{font-family:var(--disp);font-weight:800;letter-spacing:-.02em;line-height:1}
.grad-t{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}

.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:11px;
  font-family:var(--font); font-weight:700; font-size:15.5px; letter-spacing:-.01em;
  padding:6px 8px 6px 24px; border-radius:100px; border:1px solid transparent;
  cursor:pointer;
  transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1), background .25s;
}
.btn-sm{ padding:5px 6px 5px 18px; font-size:13.5px; }
.btn-lg{ padding:8px 10px 8px 32px; font-size:16.5px; }

/* Circular icon chip that holds the arrow — slides + rotates on hover */
.btn-ic{
  display:grid; place-items:center; flex-shrink:0;
  width:36px; height:36px; border-radius:50%;
  transition:transform .3s cubic-bezier(.2,.8,.2,1), background .25s;
}
.btn-sm .btn-ic{ width:28px; height:28px; }
.btn-lg .btn-ic{ width:42px; height:42px; }
.btn-ic svg{ width:16px; height:16px; transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover .btn-ic{ transform:translateX(2px) rotate(45deg); }

.btn-g{
  background:linear-gradient(175deg, #ffffff 0%, #eef1f4 40%, #ced3d9 100%);
  color:#0b0c0e; font-weight:800;
  box-shadow:
    0 18px 44px -14px rgba(255,255,255,.35),
    0 3px 8px -1px rgba(0,0,0,.3),
    inset 0 1.5px 0 rgba(255,255,255,.9),
    inset 0 -3px 8px rgba(120,128,138,.25);
}
.btn-g .btn-ic{ background:rgba(11,12,14,.1); }
.btn-g .btn-ic svg{ stroke:#0b0c0e; }
.btn-g:hover{
  transform:translateY(-3px);
  box-shadow:
    0 26px 58px -14px rgba(255,255,255,.45),
    0 5px 12px -1px rgba(0,0,0,.35),
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -3px 8px rgba(120,128,138,.22);
}
.btn-g:hover .btn-ic{ background:rgba(11,12,14,.18); }
.btn-g:active{ transform:translateY(-1px) scale(.985); }

.btn-o{
  background:rgba(255,255,255,.045); color:var(--ink);
  border-color:rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-o .btn-ic{ background:rgba(255,255,255,.07); }
.btn-o .btn-ic svg{ stroke:var(--ink); }
.btn-o:hover{
  background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.5); color:#fff;
  transform:translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px -16px rgba(255,255,255,.4);
}
.btn-o:hover .btn-ic{ background:rgba(255,255,255,.18); }
.btn-o:active{ transform:translateY(-1px); }

/* Primary hero CTA — extra ambient glow via box-shadow only (never clipped) */
.btn-glow{
  box-shadow:
    0 0 0 1px rgba(255,232,171,.5),
    0 18px 44px -14px rgba(255,255,255,.7),
    0 0 70px -12px rgba(255,255,255,.55),
    0 3px 8px -1px rgba(0,0,0,.3),
    inset 0 1.5px 0 rgba(255,255,255,.7),
    inset 0 -3px 8px rgba(110,68,8,.4) !important;
}
.btn-glow:hover{
  box-shadow:
    0 0 0 1px rgba(255,232,171,.7),
    0 26px 58px -14px rgba(255,255,255,.9),
    0 0 90px -10px rgba(255,255,255,.75),
    0 5px 12px -1px rgba(0,0,0,.35),
    inset 0 1.5px 0 rgba(255,255,255,.85),
    inset 0 -3px 8px rgba(110,68,8,.35) !important;
}

/* NAV */
.nav{position:sticky;top:0;z-index:100;background:rgba(11,12,14,.72);backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);border-bottom:1px solid var(--line)}
.nav-in{height:72px;display:flex;align-items:center;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--disp);font-weight:800;font-size:18px;letter-spacing:-.02em;color:#fff;white-space:nowrap;flex-shrink:0}
.brand-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--grad2);box-shadow:0 4px 14px -6px rgba(255,255,255,.35);flex-shrink:0}
.brand-mark svg{width:19px;height:19px}
.nav-links{display:flex;gap:2px;margin-left:6px}
.nav-links a{color:var(--muted);font-size:13.5px;font-weight:600;padding:8px 11px;border-radius:10px;transition:.15s;white-space:nowrap}
.nav-links a:hover,.nav-links a.on{color:#fff;background:var(--glass)}
.nav-r{margin-left:auto;display:flex;align-items:center;gap:12px}
.live{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#d4d9df;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);padding:6px 12px;border-radius:100px}
.live::before{content:'';width:6px;height:6px;border-radius:50%;background:#d4d9df;box-shadow:0 0 8px #d4d9df}
.burger{display:none;align-items:center;justify-content:center;background:none;border:none;color:#fff;cursor:pointer;margin-left:auto}
.burger svg{width:22px;height:22px}

/* HERO */
.hero{padding:64px 0 46px}
.hero-top{display:grid;grid-template-columns:1.65fr 1fr;gap:20px}
.hero-feat{position:relative;display:block;border-radius:24px;overflow:hidden;min-height:470px;isolation:isolate;
  box-shadow:0 34px 80px -32px rgba(0,0,0,.9),inset 0 0 0 1px rgba(255,255,255,.06)}
.hero-feat-bg{position:absolute;inset:0;z-index:0;background:
  radial-gradient(120% 90% at 20% 10%,rgba(255,255,255,.35),transparent 55%),
  radial-gradient(100% 80% at 90% 100%,rgba(120,80,10,.4),transparent 60%),
  linear-gradient(160deg,#241a0c,#0b0906)}
.hero-feat-ov{position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(5,4,3,.94) 6%,rgba(5,4,3,.35) 50%,transparent 100%)}
.hero-feat-body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:36px}
.hero-tag{display:inline-flex;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#0b0c0e;background:var(--grad);padding:6px 14px;border-radius:9px;margin-bottom:16px}
.hero-feat-title{font-family:var(--disp);font-weight:800;font-size:clamp(26px,3vw,40px);line-height:1.1;color:#fff;margin-bottom:14px;text-shadow:0 2px 24px rgba(0,0,0,.6)}
.hero-feat-desc{font-size:15.5px;color:rgba(243,239,232,.8);max-width:88%;margin-bottom:16px}
.hero-meta{display:flex;gap:10px;align-items:center;font-size:13px;color:rgba(243,239,232,.55)}
.hero-meta .d{width:3px;height:3px;border-radius:50%;background:currentColor}

.hero-side{display:flex;flex-direction:column;background:linear-gradient(165deg,rgba(255,255,255,.045),rgba(255,255,255,.015));border:1px solid var(--line);border-radius:24px;padding:6px 20px}
.hero-side-hd{display:flex;align-items:center;gap:10px;font-family:var(--disp);font-weight:800;font-size:14.5px;padding:18px 0 14px}
.hero-side-bar{width:5px;height:18px;border-radius:4px;background:var(--grad)}
.hero-item{display:flex;gap:14px;padding:14px 0;border-top:1px solid var(--line)}
.hero-item:first-of-type{border-top:none}
.hero-item-n{font-family:var(--disp);font-weight:800;font-size:20px;color:var(--gold2);opacity:.55;width:24px;flex-shrink:0}
.hero-item-title{font-size:14px;font-weight:700;line-height:1.35;transition:.2s}
.hero-item:hover .hero-item-title{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-item-meta{font-size:11px;color:var(--muted2);margin-top:6px}

/* MARQUEE */
.marq{border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;padding:22px 0;margin-top:46px;background:rgba(255,255,255,.015)}
.marq-track{display:flex;width:max-content;white-space:nowrap;will-change:transform}
.marq-item{font-family:var(--disp);font-weight:800;font-size:clamp(24px,4vw,42px);letter-spacing:-.02em;padding:0 28px;color:transparent;-webkit-text-stroke:1.3px rgba(255,255,255,.25)}
.marq-item.fill{-webkit-text-stroke:0;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.marq-star{color:var(--gold);-webkit-text-stroke:0;padding:0 8px}

/* SECTIONS */
.sec{padding:44px 0}
.sec-stats{padding-bottom:16px}
.hero-side-more{display:block;text-align:center;margin-top:auto;padding-top:14px;font-size:12.5px;font-weight:700;color:var(--gold,#d4d9df);border-top:1px solid rgba(255,255,255,.07)}
.hero-side-more:hover{opacity:.8}
/* Reader-submission teaser banner */
.submit-cta{display:flex;align-items:center;gap:22px;padding:26px 30px;border-radius:20px;margin:8px 0 0;
  background:linear-gradient(120deg,rgba(255,255,255,.10),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.22)}
.submit-cta-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--grad,linear-gradient(115deg,#ffffff,#d4d9df 48%,#838a92));flex-shrink:0;color:#0b0c0e}
.submit-cta-ic svg{width:24px;height:24px}
.info-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.14);color:var(--gold,#d4d9df);flex-shrink:0}
.info-ic svg{width:16px;height:16px}
.badge-reader{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted2);border:1px solid var(--line2);border-radius:8px;padding:3px 9px;margin-left:8px}
.badge-reader svg{width:11px;height:11px}
.submit-cta-body{flex:1;min-width:0}
.submit-cta-body strong{display:block;font-family:var(--disp);font-size:16px;margin-bottom:3px}
.submit-cta-body span{font-size:13px;color:var(--muted,#a39a8c)}
.submit-cta-btns{display:flex;gap:10px;flex-shrink:0;flex-wrap:wrap}
@media(max-width:640px){.submit-cta{flex-direction:column;text-align:center;padding:22px 20px}.submit-cta-btns{justify-content:center}}

/* Section header link */
.sec-hd-link{font-size:13px;font-weight:700;color:var(--gold,#d4d9df);white-space:nowrap}
.sec-hd-link:hover{opacity:.8}

/* Category strips on homepage */
.cat-strip{margin-bottom:38px}
.cat-strip:last-child{margin-bottom:0}
.cat-strip-hd{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.cat-strip-hd h3{font-family:var(--disp);font-size:17px;font-weight:800;display:flex;align-items:center;gap:10px}
.cat-strip-hd h3::before{content:'';width:4px;height:16px;border-radius:3px;background:var(--grad)}
.cat-strip-hd .n{font-size:11.5px;color:var(--muted2);background:var(--glass);border:1px solid var(--line);padding:2px 9px;border-radius:8px}
.cat-strip-hd a{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--gold,#d4d9df)}
.cat-strip-hd a:hover{opacity:.8}
.grid.g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){.grid.g4{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.grid.g4{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.grid.g4{grid-template-columns:1fr}}

/* Readers zone on homepage */
.readers-empty{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}
.step-card{background:var(--glass);border:1px solid var(--line);border-radius:18px;padding:24px 22px}
.step-num{font-family:var(--disp);font-weight:800;font-size:13px;color:#0b0c0e;background:var(--grad);width:30px;height:30px;border-radius:9px;display:grid;place-items:center;margin-bottom:14px}
.step-card strong{display:block;font-size:15px;margin-bottom:6px}
.step-card span{font-size:13px;color:var(--muted);line-height:1.55}
.readers-cta{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:900px){.readers-empty{grid-template-columns:1fr}}
.sec-hd{display:flex;align-items:center;gap:18px;margin-bottom:34px}
.sec-hd h2{font-family:var(--disp);font-weight:800;font-size:clamp(22px,2.6vw,30px);letter-spacing:-.02em;display:flex;align-items:center;gap:12px;white-space:nowrap}
.sec-hd h2::before{content:'';width:5px;height:22px;border-radius:4px;background:var(--grad)}
.sec-hd-line{flex:1;height:1px;background:linear-gradient(90deg,var(--line2),transparent)}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:var(--glass);border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;
  display:flex;flex-direction:column;transition:transform .3s,border-color .3s,box-shadow .3s}
.card:hover{transform:translateY(-7px);border-color:var(--line2);box-shadow:0 30px 60px -28px rgba(0,0,0,.8)}
.card-img{position:relative;aspect-ratio:16/10;overflow:hidden}
.card-img .ci{position:absolute;inset:0;transition:transform .6s}
.card:hover .ci{transform:scale(1.06)}
.card-cat{position:absolute;top:12px;left:12px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#0b0c0e;background:var(--grad);padding:5px 11px;border-radius:8px}
.card-body{padding:18px 19px 20px;display:flex;flex-direction:column;flex:1}
.card-title{font-size:16px;font-weight:800;line-height:1.32;margin-bottom:9px;transition:.2s}
.card:hover .card-title{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.card-desc{font-size:13.5px;color:var(--muted);line-height:1.55;margin-bottom:14px}
.card-meta{font-size:12px;color:var(--muted2);margin-top:auto;display:flex;gap:9px;align-items:center}
.card-meta .d{width:3px;height:3px;border-radius:50%;background:currentColor}

/* placeholder photo textures (no external images needed) */
.ph1{background:linear-gradient(135deg,#2a1f0c,#0d0a06),radial-gradient(circle at 30% 30%,rgba(255,255,255,.5),transparent 60%)}
.ph2{background:linear-gradient(135deg,#1c1408,#090705),radial-gradient(circle at 70% 60%,rgba(255,255,255,.45),transparent 55%)}
.ph3{background:linear-gradient(135deg,#241b0a,#0b0805),radial-gradient(circle at 50% 20%,rgba(255,255,255,.4),transparent 55%)}

/* STATS */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat{background:var(--glass);border:1px solid var(--line);border-radius:18px;padding:24px 18px;text-align:center}
.stat b{display:block;font-family:var(--disp);font-size:30px;font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat span{font-size:12.5px;color:var(--muted2);font-weight:600}

/* CTA */
.cta{text-align:center;padding:80px 30px;border-radius:28px;background:linear-gradient(160deg,rgba(255,255,255,.18),rgba(120,80,10,.06));
  border:1px solid rgba(255,255,255,.3);box-shadow:0 0 100px -30px rgba(255,255,255,.4)}
.cta h2{font-family:var(--disp);font-weight:800;font-size:clamp(26px,4.5vw,44px);margin-bottom:16px}
.cta p{font-size:16px;color:var(--muted);margin-bottom:28px}

/* FOOTER */
.footer{border-top:1px solid var(--line);margin-top:60px;padding:44px 0 28px}
.ft-bot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12.5px;color:var(--muted2)}

@media(max-width:1040px){
  .nav-links,.nav-r .live{display:none} .burger{display:block}
  .nav-links.open{
    display:flex;flex-direction:column;gap:2px;position:absolute;top:72px;left:0;right:0;
    background:#0e1013;border-bottom:1px solid var(--line);
    padding:12px 18px 18px;box-shadow:0 30px 60px -20px rgba(0,0,0,.8);z-index:60;margin:0}
  .nav-links.open a{padding:12px 14px;font-size:15px;border-radius:12px}
}
@media(max-width:900px){
  .hero-top{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .wrap{padding:0 18px}
  .hero-feat{min-height:340px}
  .hero-feat-body{padding:22px}
  .grid{grid-template-columns:1fr}
  .sec{padding:56px 0}
}
@media(max-width:480px){
  .brand{font-size:15px;gap:8px;white-space:nowrap}
  .brand-mark{width:28px;height:28px}
  .brand-mark svg{width:16px;height:16px}
  .nav-r .btn-sm{padding:8px 12px;font-size:12px}
}

/* ── News-style colored category labels (vc.ru-like) — win over base .card-cat ── */
.card-cat.cat-models  {background:rgba(110,168,255,.15);color:#8fbaff;border:1px solid rgba(110,168,255,.26)}
.card-cat.cat-tools   {background:rgba(45,212,191,.14);color:#3fe0cd;border:1px solid rgba(45,212,191,.26)}
.card-cat.cat-research{background:rgba(167,139,250,.15);color:#c3aefb;border:1px solid rgba(167,139,250,.28)}
.card-cat.cat-business{background:rgba(52,211,153,.14);color:#5ee2ad;border:1px solid rgba(52,211,153,.26)}
.card-cat.cat-hardware{background:rgba(249,115,22,.14);color:#fb923c;border:1px solid rgba(249,115,22,.26)}
.card-cat.cat-edu     {background:rgba(56,189,248,.14);color:#7dd3fc;border:1px solid rgba(56,189,248,.26)}

/* ═══════════════════════════════════════════════════════════════
   VC.RU-STYLE FEED LAYOUT  (sidebar + central feed + right rail)
   ═══════════════════════════════════════════════════════════════ */
.feed-layout{display:grid;grid-template-columns:232px minmax(0,1fr) 300px;gap:28px;align-items:start;padding-top:26px;padding-bottom:60px}
@media(max-width:1180px){.feed-layout{grid-template-columns:212px minmax(0,1fr)}.rail{display:none}}
@media(max-width:860px){.feed-layout{grid-template-columns:1fr;gap:0}.side{display:none}}

/* left sidebar */
.side{position:sticky;top:92px}
.side-nav{display:flex;flex-direction:column;gap:2px;margin-bottom:16px}
.side-link{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:11px;color:var(--muted);font-size:14.5px;font-weight:600;transition:.15s}
.side-link svg{width:18px;height:18px;opacity:.75;flex-shrink:0}
.side-link:hover{background:var(--glass);color:var(--ink)}
.side-link.active{background:rgba(255,255,255,.09);color:#fff}
.side-link.active svg{opacity:1}
.side-cta{width:100%;justify-content:center;margin-bottom:14px}
.side-note{font-size:12.5px;color:var(--muted2);line-height:1.6;padding:0 4px}
.side-note a{color:var(--ink);border-bottom:1px solid var(--line2)}

/* feed tabs */
.feed-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:1px solid var(--line);padding-bottom:0}
.feed-tab{background:none;border:none;cursor:pointer;font-family:var(--font);font-size:15px;font-weight:700;color:var(--muted2);padding:10px 14px;border-bottom:2px solid transparent;margin-bottom:-1px;transition:.15s}
.feed-tab:hover{color:var(--ink)}
.feed-tab.active{color:var(--ink);border-bottom-color:var(--ink)}

/* post card (vc.ru style) */
.feed-main{min-width:0}
.post{background:var(--glass);border:1px solid var(--line);border-radius:18px;padding:22px 24px;margin-bottom:16px;transition:border-color .2s,transform .2s}
.post:hover{border-color:var(--line2)}
.post-head{display:flex;align-items:center;gap:9px;margin-bottom:12px;flex-wrap:wrap}
.post-date{font-size:12.5px;color:var(--muted2)}
.post-dot{color:var(--muted2);opacity:.5}
.post-title{display:block;font-family:var(--disp);font-weight:800;font-size:22px;line-height:1.22;letter-spacing:-.02em;color:var(--ink);margin-bottom:9px;transition:.15s}
.post-title:hover{opacity:.82}
.post-lead{font-size:15px;line-height:1.6;color:var(--muted);margin-bottom:16px}
.post-cover{display:block;position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--bg2);margin-bottom:16px}
.post-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.post:hover .post-cover img{transform:scale(1.03)}
.post-foot{display:flex;align-items:center;gap:20px;color:var(--muted2)}
.pf-item{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--muted2);transition:.15s}
.pf-item svg{width:16px;height:16px}
a.pf-item:hover{color:var(--ink)}
.pf-share{margin-left:auto}
.feed-more{display:block;width:100%;text-align:center;padding:14px;margin-top:6px;background:var(--glass);border:1px solid var(--line);border-radius:14px;color:var(--ink);font-weight:700;font-size:14px;cursor:pointer;transition:.15s}
.feed-more:hover{border-color:var(--line2);background:rgba(255,255,255,.06)}

/* first (featured) post — bigger title */
.post.feat .post-title{font-size:27px}
@media(max-width:640px){.post.feat .post-title{font-size:22px}.post-title{font-size:20px}.post{padding:18px}}

/* right rail */
.rail{position:sticky;top:92px;display:flex;flex-direction:column;gap:16px}
.rail-card{background:var(--glass);border:1px solid var(--line);border-radius:16px;padding:18px}
.rail-hd{font-family:var(--disp);font-weight:800;font-size:14px;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.rail-hd::before{content:'';width:4px;height:15px;border-radius:3px;background:var(--grad)}
.pop-item{display:flex;gap:11px;padding:9px 0;border-top:1px solid var(--line);align-items:flex-start}
.pop-item:first-child{border-top:none;padding-top:0}
.pop-n{font-family:var(--disp);font-weight:800;font-size:15px;color:var(--muted2);width:16px;flex-shrink:0;line-height:1.3}
.pop-t{font-size:13px;font-weight:600;line-height:1.35;color:var(--ink);transition:.15s}
.pop-item:hover .pop-t{color:#fff;opacity:.85}
.pop-v{font-size:11px;color:var(--muted2);margin-top:3px}
.rail-note{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:12px}

/* category chip inline inside vc-post head + popular rail */
.post-head .card-cat{position:static;top:auto;left:auto;display:inline-flex;font-size:10.5px;padding:4px 9px}

/* ensure feed sidebars collapse (source-order override) */
@media(max-width:1180px){.feed-layout .rail{display:none}}
@media(max-width:860px){.feed-layout .side{display:none}}

/* ── Feed polish: byline, counters, cover, animations ── */
.post-by{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.post-av{width:25px;height:25px;border-radius:7px;background:var(--grad2);display:grid;place-items:center;flex-shrink:0}
.post-av svg{width:13px;height:13px}
.post-by-name{font-size:13px;font-weight:700;color:var(--ink)}
.post-by .post-date{font-size:12.5px;color:var(--muted2)}
.post-by .card-cat{margin-left:auto;position:static;top:auto;left:auto;display:inline-flex;font-size:10.5px;padding:4px 9px}

.post-cover{background:linear-gradient(100deg,#141619 30%,#1b1e23 50%,#141619 70%);background-size:200% 100%;animation:cvShimmer 1.5s linear infinite}
.post-cover.loaded{animation:none;background:var(--bg2)}
@keyframes cvShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.post-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(11,12,14,.32),transparent 42%);pointer-events:none;z-index:1}

.side-link{justify-content:flex-start}
.side-n{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--muted2);background:var(--glass);border:1px solid var(--line);padding:1px 8px;border-radius:20px;min-width:22px;text-align:center}
.side-link.active .side-n,.side-link:hover .side-n{color:var(--ink)}

.post{opacity:0;transform:translateY(14px)}
.post.in{opacity:1;transform:none;transition:opacity .5s ease,transform .55s cubic-bezier(.2,.8,.2,1)}
@media(prefers-reduced-motion:reduce){.post{opacity:1;transform:none}.post-cover{animation:none}}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNTS / PROFILES (vc.ru-like)
   ═══════════════════════════════════════════════════════════════ */
.prof{max-width:820px;margin:0 auto;padding:28px 0 60px}
.prof-hd{display:flex;gap:22px;align-items:flex-start;margin-bottom:8px}
.prof-av{width:96px;height:96px;border-radius:22px;object-fit:cover;background:var(--bg2);flex-shrink:0;border:1px solid var(--line)}
.prof-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:38px;color:#0b0c0e;background:var(--grad2)}
.prof-info{flex:1;min-width:0;padding-top:4px}
.prof-name{font-family:var(--disp);font-weight:800;font-size:26px;letter-spacing:-.02em;margin-bottom:3px}
.prof-user{font-size:14px;color:var(--muted2);margin-bottom:12px}
.prof-bio{font-size:14.5px;color:var(--muted);line-height:1.6;margin-bottom:16px;max-width:560px}
.prof-stats{display:flex;gap:26px;margin-bottom:18px}
.prof-stat b{font-family:var(--disp);font-weight:800;font-size:18px;margin-right:6px}
.prof-stat span{font-size:13px;color:var(--muted2)}
.prof-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn-follow{cursor:pointer}
.btn-following{background:var(--glass)!important;border:1px solid var(--line2)!important;color:var(--ink)!important;box-shadow:none!important}
.btn-following .btn-ic{background:rgba(255,255,255,.08)!important}
.btn-following .btn-ic svg{stroke:var(--ink)!important}
.prof-sec-hd{display:flex;align-items:center;gap:14px;margin:34px 0 20px}
.prof-sec-hd h2{font-family:var(--disp);font-weight:800;font-size:20px}
.prof-sec-hd .line{flex:1;height:1px;background:var(--line)}
.prof-empty{color:var(--muted2);font-size:14px;padding:24px;text-align:center;background:var(--glass);border:1px solid var(--line);border-radius:16px}
@media(max-width:640px){.prof-hd{flex-direction:column;gap:16px}.prof-av{width:80px;height:80px}}

/* editor */
.editor{max-width:720px;margin:0 auto;padding:28px 0 60px}
.editor h1{font-family:var(--disp);font-weight:800;font-size:26px;margin-bottom:22px}
.editor label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:0 0 8px}
.editor .fld{margin-bottom:18px}
.editor input[type=text],.editor textarea,.editor select{width:100%;background:rgba(255,255,255,.04);border:1px solid var(--line2);border-radius:13px;padding:13px 15px;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none;transition:.2s;resize:vertical}
.editor input:focus,.editor textarea:focus,.editor select:focus{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}
.editor textarea{min-height:200px;line-height:1.6}
.editor select{appearance:none;cursor:pointer}
.editor select option{background:#141518}

/* login prompt card */
.auth-card{max-width:440px;margin:60px auto;text-align:center;background:var(--glass);border:1px solid var(--line);border-radius:22px;padding:40px 34px}
.auth-card h1{font-family:var(--disp);font-weight:800;font-size:24px;margin-bottom:10px}
.auth-card p{font-size:14.5px;color:var(--muted);line-height:1.6;margin-bottom:24px}
.auth-card label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:0 0 8px}
.auth-card .fld{margin-bottom:16px}
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{
  width:100%;background:rgba(255,255,255,.04);border:1px solid var(--line2);border-radius:13px;
  padding:12px 14px;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none;transition:.2s}
.auth-card input:focus{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}
.btn-ya{display:inline-flex;align-items:center;gap:10px;background:#fc3f1d;color:#fff;font-weight:700;font-size:15px;padding:13px 26px;border-radius:12px;transition:.2s}
.btn-ya:hover{background:#e5350f;transform:translateY(-2px)}
.nav-ava{width:32px;height:32px;border-radius:9px;object-fit:cover;border:1px solid var(--line2)}

/* ═══════════════════════════════════════════════════════════════
   MODERN ACCOUNTS UI (2026 refresh)
   ═══════════════════════════════════════════════════════════════ */
/* clean modern buttons for account area */
.mbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font);font-weight:700;font-size:14px;line-height:1;padding:11px 20px;border-radius:12px;cursor:pointer;transition:transform .15s cubic-bezier(.2,.8,.2,1),background .18s,border-color .18s,box-shadow .18s,opacity .18s;border:1px solid transparent;white-space:nowrap;text-decoration:none}
.mbtn svg{width:17px;height:17px;flex-shrink:0}
.mbtn-primary{background:linear-gradient(180deg,#ffffff,#e7ebef);color:#0b0c0e;box-shadow:0 2px 14px -3px rgba(255,255,255,.3)}
.mbtn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 26px -6px rgba(255,255,255,.45)}
.mbtn-primary:active{transform:translateY(0)}
.mbtn-ghost{background:rgba(255,255,255,.06);color:var(--ink);border-color:var(--line2)}
.mbtn-ghost:hover{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.28)}
.mbtn-following{background:rgba(52,211,153,.12);color:#5ee2ad;border-color:rgba(52,211,153,.3)}
.mbtn-following:hover{background:rgba(255,80,80,.1);color:#ff8080;border-color:rgba(255,80,80,.3)}
.mbtn-sm{padding:8px 14px;font-size:13px;border-radius:10px}
.mbtn-block{width:100%}
.mbtn-lg{padding:14px 26px;font-size:15px;border-radius:13px}

/* profile v2 */
.pf2{max-width:900px;margin:0 auto;padding:0 0 70px}
.pf2-cover{height:190px;border-radius:20px;margin-top:18px;position:relative;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(130% 180% at 12% 0%, rgba(110,168,255,.28), transparent 52%),
            radial-gradient(130% 180% at 88% 8%, rgba(52,211,153,.2), transparent 52%),
            linear-gradient(120deg,#171a20,#0e1013)}
.pf2-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(11,12,14,.6),transparent 60%)}
.pf2-head{display:flex;align-items:flex-end;gap:22px;margin-top:-56px;padding:0 26px;position:relative;z-index:2}
.pf2-av{width:124px;height:124px;border-radius:30px;object-fit:cover;background:var(--bg2);border:4px solid var(--bg);box-shadow:0 16px 44px -12px rgba(0,0,0,.75);flex-shrink:0}
.pf2-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:48px;color:#0b0c0e;background:var(--grad2)}
.pf2-head-r{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-bottom:16px}
.pf2-body{padding:18px 26px 0}
.pf2-name{font-family:var(--disp);font-weight:800;font-size:29px;letter-spacing:-.025em;line-height:1.1}
.pf2-handle{font-size:14.5px;color:var(--muted2);margin-top:4px}
.pf2-bio{font-size:15px;color:var(--muted);line-height:1.65;margin-top:15px;max-width:620px;white-space:pre-wrap}
.pf2-stats{display:flex;gap:26px;margin-top:20px}
.pf2-stat{font-size:14px;color:var(--muted2)}
.pf2-stat b{font-family:var(--disp);color:var(--ink);font-size:17px;margin-right:6px;font-weight:800}
.pf2-tabs{display:flex;margin:28px 0 20px;border-bottom:1px solid var(--line);padding:0 26px}
.pf2-tab{padding:13px 0;margin-right:26px;font-weight:700;font-size:15px;color:var(--muted2);border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer}
.pf2-tab.on{color:var(--ink);border-bottom-color:var(--ink)}
.pf2-feed{padding:0 26px}
.pf2-empty{margin:0 26px;color:var(--muted2);font-size:14.5px;padding:40px 24px;text-align:center;background:var(--glass);border:1px dashed var(--line2);border-radius:18px}
.pf2-empty a{color:var(--ink);font-weight:700}

/* settings / edit profile */
.settings{max-width:560px;margin:0 auto;padding:34px 0 70px}
.settings h1{font-family:var(--disp);font-weight:800;font-size:27px;margin-bottom:26px}
.set-av-row{display:flex;align-items:center;gap:20px;margin-bottom:26px}
.set-av{width:92px;height:92px;border-radius:24px;object-fit:cover;background:var(--bg2);border:1px solid var(--line)}
.set-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:36px;color:#0b0c0e;background:var(--grad2)}
.set-av-hint{font-size:12.5px;color:var(--muted2);margin-top:7px;line-height:1.5}
.fld2{margin-bottom:20px}
.fld2 label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:0 0 8px}
.fld2 input[type=text],.fld2 textarea{width:100%;background:rgba(255,255,255,.04);border:1px solid var(--line2);border-radius:13px;padding:13px 15px;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none;transition:.2s;resize:vertical}
.fld2 input:focus,.fld2 textarea:focus{border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.06)}
.fld2 textarea{min-height:110px;line-height:1.6}
.fld2 .hint{font-size:12px;color:var(--muted2);margin-top:6px}

/* modern auth card */
.acard{max-width:400px;margin:56px auto;background:var(--glass);border:1px solid var(--line);border-radius:24px;padding:38px 34px}
.acard-logo{width:46px;height:46px;border-radius:14px;background:var(--grad2);display:grid;place-items:center;margin:0 auto 18px}
.acard-logo svg{width:24px;height:24px}
.acard h1{font-family:var(--disp);font-weight:800;font-size:23px;text-align:center;margin-bottom:6px}
.acard-sub{text-align:center;font-size:13.5px;color:var(--muted2);margin-bottom:26px}
.acard .fld2{margin-bottom:15px}
.acard-err{color:#ff8080;font-size:13px;background:rgba(255,80,80,.08);border:1px solid rgba(255,80,80,.2);border-radius:11px;padding:10px 13px;margin-bottom:16px}
.acard-alt{text-align:center;font-size:13.5px;color:var(--muted);margin-top:20px}
.acard-alt a{color:var(--ink);font-weight:700}
.acard-or{display:flex;align-items:center;gap:12px;color:var(--muted2);font-size:12.5px;margin:16px 0}
.acard-or::before,.acard-or::after{content:'';flex:1;height:1px;background:var(--line)}

/* mobile */
@media(max-width:640px){
  .pf2-cover{height:130px;border-radius:16px;margin-top:12px}
  .pf2-head{flex-direction:column;align-items:flex-start;gap:14px;margin-top:-46px;padding:0 16px}
  .pf2-av{width:92px;height:92px;border-radius:24px}
  .pf2-head-r{width:100%;justify-content:stretch;padding-bottom:0}
  .pf2-head-r .mbtn{flex:1}
  .pf2-body{padding:16px 16px 0}
  .pf2-name{font-size:24px}
  .pf2-tabs,.pf2-feed,.pf2-empty{padding-left:16px;padding-right:16px}
  .pf2-empty{margin:0 16px}
  .pf2-stats{gap:18px}
  .acard{margin:24px 16px;padding:30px 22px}
  .settings{padding:24px 16px 60px}
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN BUTTON + USERNAME + MESSAGING
   ═══════════════════════════════════════════════════════════════ */
/* prettier login button (nav) */
.btn-login{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#ffffff,#e6eaee);color:#0b0c0e;font-weight:700;font-size:13.5px;line-height:1;padding:10px 18px;border-radius:12px;transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .18s;box-shadow:0 2px 12px -3px rgba(255,255,255,.35),inset 0 1px 0 rgba(255,255,255,.7);white-space:nowrap}
.btn-login svg{width:15px;height:15px}
.btn-login:hover{transform:translateY(-1px);box-shadow:0 9px 24px -6px rgba(255,255,255,.5),inset 0 1px 0 rgba(255,255,255,.8)}
.btn-login:active{transform:translateY(0)}

/* username availability hint */
.uname-wrap{position:relative}
.uname-prefix{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted2);font-size:14.5px;pointer-events:none}
.uname-wrap input{padding-left:30px!important}
.uname-msg{font-size:12.5px;margin-top:6px;min-height:16px}
.uname-msg.ok{color:#5ee2ad}.uname-msg.bad{color:#ff8080}

/* nav messages link with badge */
.nav-msg{position:relative;display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--glass);border:1px solid var(--line);color:var(--ink);transition:.15s}
.nav-msg:hover{background:rgba(255,255,255,.1)}
.nav-msg svg{width:18px;height:18px}
.nav-msg-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ff5069;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;border:2px solid var(--bg)}

/* conversations list */
.conv-wrap{max-width:680px;margin:0 auto;padding:26px 0 60px}
.conv-wrap h1{font-family:var(--disp);font-weight:800;font-size:26px;margin-bottom:22px}
.conv{display:flex;gap:13px;padding:14px;border-radius:16px;align-items:center;transition:.15s;border:1px solid transparent}
.conv:hover{background:var(--glass);border-color:var(--line)}
.conv-av{width:52px;height:52px;border-radius:16px;object-fit:cover;flex-shrink:0;background:var(--bg2)}
.conv-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:21px;color:#0b0c0e;background:var(--grad2)}
.conv-main{flex:1;min-width:0}
.conv-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.conv-name{font-weight:700;font-size:15px}
.conv-time{font-size:12px;color:var(--muted2);flex-shrink:0}
.conv-last{font-size:13.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}
.conv-unread{width:9px;height:9px;border-radius:50%;background:#ff5069;flex-shrink:0}
.conv-empty{text-align:center;color:var(--muted2);padding:50px 20px;font-size:14.5px}

/* chat thread */
.chat{max-width:680px;margin:0 auto;display:flex;flex-direction:column;height:calc(100dvh - 128px);min-height:420px}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 4px 16px;border-bottom:1px solid var(--line)}
.chat-back{color:var(--muted);display:grid;place-items:center;width:34px;height:34px;border-radius:10px}
.chat-back:hover{background:var(--glass);color:var(--ink)}
.chat-av{width:42px;height:42px;border-radius:13px;object-fit:cover;background:var(--bg2)}
.chat-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:18px;color:#0b0c0e;background:var(--grad2)}
.chat-name{font-weight:700;font-size:16px}
.chat-user{font-size:12.5px;color:var(--muted2)}
.chat-body{flex:1;overflow-y:auto;padding:18px 4px;display:flex;flex-direction:column;gap:8px}
.bubble{max-width:74%;padding:10px 14px;border-radius:17px;font-size:14.5px;line-height:1.5;word-wrap:break-word;white-space:pre-wrap}
.bubble.them{align-self:flex-start;background:var(--glass);border:1px solid var(--line);border-bottom-left-radius:5px}
.bubble.me{align-self:flex-end;background:linear-gradient(180deg,#fff,#e7ebef);color:#0b0c0e;border-bottom-right-radius:5px}
.bubble-t{font-size:10.5px;opacity:.5;margin-top:4px;text-align:right}
.chat-empty{margin:auto;color:var(--muted2);font-size:14px;text-align:center}
.chat-input{display:flex;gap:10px;padding:14px 0 4px;border-top:1px solid var(--line)}
.chat-input textarea{flex:1;background:rgba(255,255,255,.05);border:1px solid var(--line2);border-radius:14px;padding:12px 15px;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none;resize:none;max-height:120px;line-height:1.5}
.chat-input textarea:focus{border-color:rgba(255,255,255,.4)}
.chat-send{width:46px;height:46px;border-radius:14px;background:linear-gradient(180deg,#fff,#e7ebef);color:#0b0c0e;border:none;cursor:pointer;display:grid;place-items:center;flex-shrink:0;transition:.15s;align-self:flex-end}
.chat-send:hover{transform:translateY(-1px)}
.chat-send svg{width:19px;height:19px}
@media(max-width:640px){.chat{height:calc(100dvh - 96px)}.conv-wrap{padding:18px 0 50px}}

/* account id badge on profile */
.pf2-id{color:var(--muted2);font-weight:600;cursor:default}

/* verified badge + role */
.verified{width:20px;height:20px;display:inline-block;vertical-align:-3px;margin-left:5px;flex-shrink:0}
.post-by-name + .verified{width:16px;height:16px;vertical-align:-2px;margin-left:3px}
.pf2-name{display:inline-flex;align-items:center;flex-wrap:wrap}
.role-badge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:12.5px;font-weight:700;color:#1d9bf0;background:rgba(29,155,240,.12);border:1px solid rgba(29,155,240,.28);padding:5px 12px;border-radius:20px}
.role-badge svg{width:14px;height:14px;fill:rgba(29,155,240,.18)}
.chat-name .verified,.conv-name .verified{width:15px;height:15px;vertical-align:-2px;margin-left:3px}

/* delete-post button (inline in byline, owner only) */
.post-by{position:relative}
.post-del{width:28px;height:28px;border-radius:8px;background:transparent;border:none;color:var(--muted2);display:grid;place-items:center;cursor:pointer;transition:.15s;flex-shrink:0;margin-left:4px;padding:0}
.post-del:hover{background:rgba(255,80,80,.15);color:#ff8080}
.post-del svg{width:15px;height:15px}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS — site-wide modern refresh (overrides legacy .btn pill)
   ═══════════════════════════════════════════════════════════════ */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font);font-weight:700;font-size:14.5px;letter-spacing:-.01em;padding:11px 20px;border-radius:12px;border:1px solid transparent;cursor:pointer;overflow:visible;
  transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .18s,background .18s,border-color .18s}
.btn-sm{padding:9px 15px;font-size:13.5px;border-radius:11px}
.btn-lg{padding:14px 26px;font-size:15.5px;border-radius:13px}
.btn-ic{width:auto!important;height:auto!important;background:none!important;border-radius:0!important;box-shadow:none!important;display:inline-grid;place-items:center;flex-shrink:0}
.btn-ic svg{width:16px;height:16px}
.btn-g{background:linear-gradient(180deg,#ffffff,#e7ebef);color:#0b0c0e;box-shadow:0 2px 14px -4px rgba(255,255,255,.3),inset 0 1px 0 rgba(255,255,255,.75)}
.btn-g:hover{transform:translateY(-1px);box-shadow:0 10px 26px -7px rgba(255,255,255,.5),inset 0 1px 0 rgba(255,255,255,.85)}
.btn-g:active{transform:translateY(0)}
.btn-g .btn-ic svg{stroke:#0b0c0e}
.btn-o{background:rgba(255,255,255,.06);color:var(--ink);border-color:var(--line2)}
.btn-o:hover{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.28);transform:translateY(-1px)}
.btn-o .btn-ic svg{stroke:var(--ink)}
.btn-glow:hover{box-shadow:0 12px 30px -6px rgba(255,255,255,.55),inset 0 1px 0 rgba(255,255,255,.85)}
/* side CTA + submit CTA buttons inherit the clean look */
.side-cta{border-radius:13px}

/* ═══════════════════════════════════════════════════════════════
   LIKES / COMMENTS / POST DETAIL / SEARCH  (vc.ru-style)
   ═══════════════════════════════════════════════════════════════ */
/* post card footer actions */
.post .post-foot{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:2px}
.pf-act{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:var(--muted2);background:var(--glass);border:1px solid var(--line);padding:7px 13px;border-radius:11px;cursor:pointer;transition:.15s;text-decoration:none}
.pf-act:hover{background:rgba(255,255,255,.09);color:var(--ink)}
.pf-act svg{width:16px;height:16px}
.like-btn.on{color:#ff4d6d;border-color:rgba(255,77,109,.3);background:rgba(255,77,109,.1)}
.like-btn.on:hover{color:#ff4d6d}
.post-title{cursor:pointer}
a.post-title:hover{opacity:.82}
a.post-lead{color:var(--muted)}

/* nav search icon */
.nav-search{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--glass);border:1px solid var(--line);color:var(--ink);transition:.15s}
.nav-search:hover{background:rgba(255,255,255,.1)}
.nav-search svg{width:18px;height:18px}

/* search page */
.search-pg{max-width:620px;margin:0 auto;padding:28px 0 60px}
.search-pg h1{font-family:var(--disp);font-weight:800;font-size:27px;margin-bottom:20px}
.search-box{display:flex;align-items:center;gap:11px;background:var(--glass);border:1px solid var(--line2);border-radius:15px;padding:0 16px;transition:.2s}
.search-box:focus-within{border-color:rgba(255,255,255,.4)}
.search-box svg{width:19px;height:19px;color:var(--muted2);flex-shrink:0}
.search-box input{flex:1;background:none;border:none;outline:none;color:var(--ink);font-family:var(--font);font-size:15.5px;padding:15px 0}
.search-results{margin-top:14px;display:flex;flex-direction:column;gap:2px}
.sr{display:flex;align-items:center;gap:13px;padding:11px 14px;border-radius:14px;transition:.15s}
.sr:hover{background:var(--glass)}
.sr-av{width:48px;height:48px;border-radius:14px;object-fit:cover;flex-shrink:0;background:var(--bg2)}
.sr-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:19px;color:#0b0c0e;background:var(--grad2)}
.sr-name{font-weight:700;font-size:15px;color:var(--ink)}
.sr-user{font-size:13px;color:var(--muted2);margin-top:2px}
.search-empty{text-align:center;color:var(--muted2);padding:40px 20px;font-size:14.5px}

/* post detail page */
.pd{max-width:680px;margin:0 auto;padding:20px 0 70px}
.pd-back{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:14px;font-weight:600;margin-bottom:20px}
.pd-back:hover{color:var(--ink)}
.pd-back svg{width:18px;height:18px}
.pd-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.pd-av{width:46px;height:46px;border-radius:14px;object-fit:cover;background:var(--bg2)}
.pd-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:18px;color:#0b0c0e;background:var(--grad2)}
.pd-name{font-weight:700;font-size:16px;display:flex;align-items:center}
.pd-name .verified{width:16px;height:16px;margin-left:4px}
.pd-meta{font-size:13px;color:var(--muted2);margin-top:1px}
.pd-title{font-family:var(--disp);font-weight:800;font-size:clamp(26px,4vw,36px);line-height:1.15;letter-spacing:-.02em;margin-bottom:20px}
.pd-cover{width:100%;border-radius:18px;margin-bottom:22px;display:block}
.pd-body{font-size:17px;line-height:1.75;color:#d4dae2}
.pd-body p{margin-bottom:16px}
.pd-actions{display:flex;align-items:center;gap:12px;margin:26px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pd-like{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--muted);background:var(--glass);border:1px solid var(--line);padding:10px 18px;border-radius:12px;cursor:pointer;transition:.15s}
.pd-like:hover{background:rgba(255,255,255,.09);color:var(--ink)}
.pd-like.on{color:#ff4d6d;border-color:rgba(255,77,109,.3);background:rgba(255,77,109,.1)}
.pd-like svg{width:19px;height:19px}
.pd-cc{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--muted2)}
.pd-cc svg{width:19px;height:19px}

/* comments */
.pd-comments h3{font-family:var(--disp);font-weight:800;font-size:20px;margin-bottom:18px}
.pd-comments h3 span{color:var(--muted2)}
.cm-form{display:flex;gap:10px;margin-bottom:26px;align-items:flex-end}
.cm-form textarea{flex:1;background:rgba(255,255,255,.05);border:1px solid var(--line2);border-radius:14px;padding:12px 15px;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none;resize:none;min-height:46px;max-height:160px;line-height:1.5}
.cm-form textarea:focus{border-color:rgba(255,255,255,.4)}
.cm-login{display:block;text-align:center;color:var(--muted);background:var(--glass);border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:26px;font-size:14px}
.cm-login:hover{color:var(--ink)}
.cm-list{display:flex;flex-direction:column;gap:18px}
.cm{display:flex;gap:12px}
.cm-av{width:40px;height:40px;border-radius:12px;object-fit:cover;flex-shrink:0;background:var(--bg2)}
.cm-av.ph{display:grid;place-items:center;font-family:var(--disp);font-weight:800;font-size:16px;color:#0b0c0e;background:var(--grad2)}
.cm-main{flex:1;min-width:0}
.cm-head{display:flex;align-items:center;gap:7px;margin-bottom:4px}
.cm-name{font-weight:700;font-size:14px;color:var(--ink)}
.cm-head .verified{width:14px;height:14px}
.cm-time{font-size:12px;color:var(--muted2)}
.cm-body{font-size:14.5px;line-height:1.6;color:var(--muted);white-space:pre-wrap}
.cm-empty{color:var(--muted2);font-size:14px;padding:20px 0}
@media(max-width:640px){.pd,.search-pg{padding-left:16px;padding-right:16px}}


/* ═══════════════════════════════════════════════════
   v23 — ЧИПСЫ КАТЕГОРИЙ · ТЕМЫ · ЗАКЛАДКИ · ПОЛИРОВКА
   ═══════════════════════════════════════════════════ */
.cat-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;margin-bottom:6px;scrollbar-width:none;-ms-overflow-style:none}
.cat-chips::-webkit-scrollbar{display:none}
.cat-chips .chip{flex:0 0 auto;background:var(--card);border:1px solid var(--border);color:var(--muted);
  font-family:var(--font);font-size:13.5px;font-weight:700;padding:8px 15px;border-radius:100px;cursor:pointer;
  white-space:nowrap;transition:.18s;line-height:1}
.cat-chips .chip:hover{color:var(--text);border-color:var(--accent-hi);transform:translateY(-1px)}
.cat-chips .chip.active{background:var(--accent-hi);color:#0a1420;border-color:var(--accent-hi);box-shadow:0 4px 14px rgba(212,217,223,.14)}
.cat-chips .chip-saved{margin-left:auto}

/* сортировочные вкладки — эмодзи-выравнивание */
.feed-tab{display:inline-flex;align-items:center;gap:6px}

/* ТЕМЫ ДНЯ */
.topics{display:flex;flex-wrap:wrap;gap:8px}
.topic-chip{background:rgba(255,255,255,.03);border:1px solid var(--border);color:var(--muted);
  font-family:var(--font);font-size:12.5px;font-weight:700;padding:6px 12px;border-radius:100px;cursor:pointer;transition:.16s;line-height:1}
.topic-chip:hover{color:var(--text);border-color:var(--accent-hi);transform:translateY(-1px)}
.topic-chip.on{background:rgba(45,212,191,.14);border-color:rgba(45,212,191,.4);color:#2DD4BF}

/* КНОПКА ЗАКЛАДКИ */
.pf-save{background:none;border:none;cursor:pointer;font-family:var(--font)}
.pf-save svg{width:15px;height:15px;transition:.18s}
.pf-save:hover{color:var(--text)}
.pf-save.on{color:#34D399}
.pf-save.on svg{fill:#34D399;stroke:#34D399}

/* ПУСТОЕ СОСТОЯНИЕ ЛЕНТЫ */
.feed-empty{padding:54px 24px;text-align:center;color:var(--muted);font-size:15px;font-weight:600;
  background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg);line-height:1.6}

/* карточки — чуть живее ховер */
.post{transition:transform var(--t),box-shadow var(--t)}
.post:hover{transform:translateY(-2px)}

@media (max-width:860px){
  .cat-chips{margin-left:-2px;padding-right:14px}
  .cat-chips .chip-saved{margin-left:8px}
}


/* Премиум-эмодзи (Twemoji SVG) */
img.emoji{height:1.15em;width:1.15em;margin:0 .06em 0 .1em;vertical-align:-.18em;display:inline-block;object-fit:contain}
.card-cat img.emoji,.chip img.emoji,.feed-tab img.emoji,.topic-chip img.emoji,.rail-hd img.emoji{vertical-align:-.16em}


/* ═══════════════════════════════════════════════════
   v24 — PREMIUM UI OVERHAUL (инпуты · кнопки · сообщения · основатель)
   ═══════════════════════════════════════════════════ */

/* ── ИНПУТЫ: фикс — теперь стилизуются ВСЕ поля (пароль/email тоже) ── */
.fld2 input, .fld2 textarea, .fld2 select{
  width:100%;background:rgba(255,255,255,.045);border:1px solid var(--line2);border-radius:13px;
  padding:13px 15px;color:var(--ink);font-family:var(--font);font-size:15px;outline:none;transition:.18s}
.fld2 input::placeholder,.fld2 textarea::placeholder{color:var(--muted);opacity:.75}
.fld2 input:focus,.fld2 textarea:focus{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.07);
  box-shadow:0 0 0 3px rgba(255,255,255,.07)}
.fld2 input:-webkit-autofill,.fld2 input:-webkit-autofill:hover,.fld2 input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--ink);-webkit-box-shadow:0 0 0 40px #12161b inset;caret-color:var(--ink);
  transition:background-color 9999s ease-in-out 0s}
.inp{position:relative;display:flex;align-items:center}
.inp-ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--muted);pointer-events:none;display:flex}
.inp-ic svg{width:100%;height:100%}
.inp .inp-f{padding-left:44px !important}
.inp .inp-f:not(:last-child){padding-right:46px !important}
.inp-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:none;background:none;
  color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:9px;transition:.15s}
.inp-eye svg{width:19px;height:19px}
.inp-eye:hover{color:var(--ink);background:rgba(255,255,255,.07)}
.inp-eye.on{color:var(--ink)}

/* ── КАРТОЧКА ВХОДА: вордмарк вместо алмаза ── */
.acard-logo{width:52px;height:52px;border-radius:16px;background:var(--grad2);display:grid;place-items:center;
  margin:0 auto 12px;box-shadow:0 10px 26px -8px rgba(255,255,255,.32)}
.acard-logo span{font-family:var(--disp);font-weight:800;font-size:20px;color:#0b0c0e;letter-spacing:-.03em}
.acard-brand{text-align:center;font-family:var(--disp);font-weight:800;font-size:14.5px;color:var(--muted);margin-bottom:18px;letter-spacing:.01em}

/* ── КНОПКИ: единый премиум-вид (ховер-лифт, нажатие, фокус) ── */
.mbtn{border-radius:12px;border:1px solid transparent;transition:transform .16s ease,box-shadow .16s,background .16s,border-color .16s}
.mbtn:hover{transform:translateY(-2px)}
.mbtn:active{transform:translateY(0);transition-duration:.05s}
.mbtn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mbtn-primary:hover{box-shadow:0 12px 28px -8px rgba(255,255,255,.4)}
.mbtn-ghost:hover{background:rgba(255,255,255,.1);border-color:var(--line2)}
.mbtn-following{background:rgba(255,255,255,.06);color:var(--ink);border-color:var(--line2)}
.mbtn-following:hover{background:rgba(232,0,45,.1);border-color:rgba(232,0,45,.4);color:#ff6b81}
.btn,.btn-g,.btn-o,.btn-login,.feed-more{transition:transform .16s ease,box-shadow .16s,background .16s,border-color .16s,opacity .16s}
.btn:hover,.btn-g:hover,.btn-o:hover,.btn-login:hover,.feed-more:hover{transform:translateY(-2px)}
.btn:active,.btn-g:active,.btn-o:active,.btn-login:active,.feed-more:active{transform:translateY(0)}
.btn:focus-visible,.btn-g:focus-visible,.btn-o:focus-visible,.btn-login:focus-visible{outline:2px solid #fff;outline-offset:2px}
.btn-g:hover{box-shadow:0 22px 50px -16px rgba(255,255,255,.45)}
.cookie-accept{border-radius:12px;transition:transform .16s,opacity .16s}
.cookie-accept:hover{transform:translateY(-1px);opacity:1}
button[disabled],.mbtn[disabled],.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none !important;box-shadow:none !important}

/* ── СООБЩЕНИЯ: вкладки + полировка ── */
.conv-hd h1{font-family:var(--disp);font-weight:800;font-size:26px;letter-spacing:-.02em;margin-bottom:14px}
.conv-tabs{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.conv-tab{background:none;border:none;cursor:pointer;font-family:var(--font);font-size:14.5px;font-weight:700;
  color:var(--muted);padding:9px 15px;border-bottom:2px solid transparent;margin-bottom:-1px;transition:.15s}
.conv-tab:hover{color:var(--ink)}
.conv-tab.on{color:var(--ink);border-bottom-color:var(--ink)}
.conv{border-radius:14px;transition:background .15s,transform .15s}
.conv:hover{background:rgba(255,255,255,.045);transform:translateX(2px)}
.conv-un .conv-name{font-weight:800}
.conv-un .conv-last{color:var(--ink)}

/* ── ПРОФИЛЬ ОСНОВАТЕЛЯ (@admin) ── */
.role-founder{color:#f5c451 !important;background:rgba(245,196,81,.12) !important;border-color:rgba(245,196,81,.38) !important}
.pf2-founder .pf2-cover{
  background:radial-gradient(130% 180% at 12% 0%, rgba(245,196,81,.30), transparent 55%),
            radial-gradient(120% 160% at 88% 15%, rgba(255,255,255,.16), transparent 55%),
            linear-gradient(120deg,#191509,#0c0d0f);
  border-color:rgba(245,196,81,.32)}
.pf2-cover-tag{position:absolute;top:14px;right:16px;font-size:12.5px;font-weight:800;color:#f5c451;
  background:rgba(15,12,4,.55);border:1px solid rgba(245,196,81,.4);padding:6px 13px;border-radius:100px;backdrop-filter:blur(6px)}
.pf2-founder .pf2-av{border-color:#f5c451 !important;box-shadow:0 16px 44px -12px rgba(245,196,81,.5),0 0 0 1px rgba(245,196,81,.3)}
.pf2-founder .pf2-name{background:linear-gradient(100deg,#ffffff 30%,#f5c451);-webkit-background-clip:text;background-clip:text;color:transparent}
.role-founder svg{width:14px;height:14px}


/* ═══════════════════════════════════════════════════
   v25 — WOW-ПОЛИРОВКА + МОБИЛЬНЫЙ OVERHAUL
   ═══════════════════════════════════════════════════ */

/* — Прогресс-бар чтения статьи — */
.read-bar{position:fixed;top:0;left:0;right:0;height:3px;z-index:300;pointer-events:none;background:transparent}
.read-bar-fill{height:100%;width:0;background:linear-gradient(90deg,#2DD4BF,#38BDF8 55%,#A78BFA);box-shadow:0 0 12px rgba(56,189,248,.55);border-radius:0 3px 3px 0}

/* — Поиск по новостям — */
.feed-search{position:relative;margin-bottom:14px}
.feed-search input{width:100%;background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:13px 40px 13px 44px;color:var(--ink);font-family:var(--font);font-size:15px;outline:none;transition:.18s;-webkit-appearance:none}
.feed-search input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.feed-search input::placeholder{color:var(--muted)}
.feed-search input:focus{border-color:var(--line2);background:rgba(255,255,255,.05);box-shadow:0 0 0 3px rgba(255,255,255,.05)}
.fs-ic{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.fs-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:none;background:none;
  color:var(--muted);font-size:22px;line-height:1;cursor:pointer;border-radius:9px;display:none;align-items:center;justify-content:center;transition:.15s}
.fs-clear.show{display:flex}
.fs-clear:hover{color:var(--ink);background:rgba(255,255,255,.07)}

/* — Карточки: живой ховер + зум обложки — */
.post{transition:border-color .2s,transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s}
.post:hover{transform:translateY(-3px);box-shadow:0 22px 50px -26px rgba(0,0,0,.8);border-color:var(--line2)}
.post-cover img{transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.post:hover .post-cover img{transform:scale(1.05)}
.post-title{transition:color .15s}
.post:hover .post-title{color:#fff}
.cat-chips .chip.active{background:linear-gradient(180deg,#ffffff,#dfe3e8);color:#0a1420;border-color:#fff}

/* ═══ МОБИЛЬНОЕ НИЖНЕЕ МЕНЮ (app-like) ═══ */
.mnav{display:none}
.mnav-ava{width:24px;height:24px;border-radius:50%;object-fit:cover}
@media(max-width:860px){
  .mnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:200;align-items:flex-end;
    background:rgba(9,14,22,.9);backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);
    border-top:1px solid var(--line);padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px))}
  .mnav-i{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);
    font-size:10px;font-weight:700;padding:5px 0;border-radius:12px;transition:.15s;text-decoration:none}
  .mnav-i svg{width:23px;height:23px}
  .mnav-i.on{color:var(--ink)}
  .mnav-i:active{transform:scale(.9)}
  .mnav-mid{flex:0 0 auto;margin:0 6px}
  .mnav-fab{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;margin-top:-20px;
    background:var(--grad2);color:#0b0c0e;box-shadow:0 12px 28px -8px rgba(255,255,255,.4)}
  .mnav-fab svg{width:24px;height:24px}
  body{padding-bottom:72px}
  body:has(.chat) .mnav{display:none}
  body:has(.chat){padding-bottom:0}
}

/* ═══ МОБИЛЬНЫЙ OVERHAUL ═══ */
@media(max-width:860px){
  .feed-layout{padding-top:14px;padding-bottom:26px}
  .post{padding:18px 17px;border-radius:16px}
  .post-title{font-size:20px}
  .feed-search input{font-size:16px}   /* без авто-зума на iOS */
  .cat-chips{gap:7px}
  .btn,.mbtn,.btn-login,.btn-g{min-height:44px}
  .nav-r .btn-g.btn-sm{display:none}    /* declutter: Telegram есть в футере/боте */
  .fld2 input,.fld2 textarea{font-size:16px}
}
@media(max-width:480px){
  .wrap{padding-left:15px;padding-right:15px}
  .post-title{font-size:18.5px}
  .brand{font-size:15.5px}
  .acard{margin:22px 12px;padding:26px 18px}
  .pf2-name{font-size:22px}
  .conv-tab,.feed-tab{padding-left:11px;padding-right:11px}
}


/* ═══════════════════════════════════════════════════
   v26 — МОНЕТИЗАЦИЯ (рекламные слоты · поддержка) + уведомления
   ═══════════════════════════════════════════════════ */
.ad-slot{position:relative;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.02);
  padding:14px;margin-bottom:16px;overflow:hidden}
.ad-label{position:absolute;top:9px;right:12px;font-size:9.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted2)}
.ad-body{min-height:40px}
.ad-infeed{margin:6px 0 16px}
.ad-rail{padding:12px}
.house-ad{display:flex;align-items:center;gap:13px;padding:6px 4px;border-radius:12px;transition:.15s}
.house-ad:hover{background:rgba(255,255,255,.03)}
.house-ad .ha-ic{width:26px;height:26px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.house-ad .ha-ic svg{width:22px;height:22px}
.house-ad .ha-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.house-ad .ha-txt b{font-size:14.5px;font-weight:800;color:var(--ink)}
.house-ad .ha-txt span{font-size:12.5px;color:var(--muted);line-height:1.4}
.house-ad .ha-go{margin-left:auto;flex-shrink:0;font-size:12.5px;font-weight:700;color:var(--accent-hi);white-space:nowrap}
.ad-rail .house-ad{flex-wrap:wrap}
.ad-rail .house-ad .ha-go{display:none}

.rail-support{background:linear-gradient(150deg,rgba(245,196,81,.07),rgba(255,255,255,.02));border-color:rgba(245,196,81,.22)}
.rail-support .rail-hd{color:#f5c451}

@media(max-width:860px){
  .ad-infeed .house-ad .ha-go{display:none}
}


/* ═══════════════════════════════════════════════════
   v27 — КРАСИВЫЕ КНОПКИ (премиум-серебро, блик, глубина)
   ═══════════════════════════════════════════════════ */

/* базовая геометрия для всех кнопок */
.btn,.btn-g,.btn-o,.btn-login,.mbtn,.cookie-accept,.side-cta,.feed-more{
  border-radius:13px;font-weight:800;letter-spacing:-.01em;
  transition:transform .18s cubic-bezier(.2,.9,.3,1.2),box-shadow .2s ease,background .2s ease,border-color .2s ease;
  -webkit-tap-highlight-color:transparent}

/* ── ПЕРВИЧНЫЕ (серебро) ── */
.btn-g,.mbtn-primary,.btn-login,.side-cta,.cookie-accept{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#f3f5f8 46%,#d9dee4 100%);
  color:#0b0c0e;border:1px solid rgba(255,255,255,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 10px 26px -12px rgba(150,175,210,.55), 0 2px 6px rgba(0,0,0,.28)}
.btn-g:hover,.mbtn-primary:hover,.btn-login:hover,.side-cta:hover,.cookie-accept:hover{
  transform:translateY(-2px);
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fb 46%,#e2e7ec 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 20px 44px -14px rgba(150,180,225,.75), 0 4px 12px rgba(0,0,0,.32)}
.btn-g:active,.mbtn-primary:active,.btn-login:active,.side-cta:active,.cookie-accept:active{
  transform:translateY(0) scale(.985);transition-duration:.06s}

/* блик-свип по наведению */
.btn-g::after,.mbtn-primary::after,.btn-login::after,.side-cta::after{
  content:'';position:absolute;top:0;left:-130%;width:55%;height:100%;pointer-events:none;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.7) 50%,transparent 100%);
  transform:skewX(-18deg);transition:left .65s cubic-bezier(.2,.8,.2,1)}
.btn-g:hover::after,.mbtn-primary:hover::after,.btn-login:hover::after,.side-cta:hover::after{left:140%}

/* ── ВТОРИЧНЫЕ / ПРИЗРАЧНЫЕ ── */
.btn-o,.mbtn-ghost{
  background:rgba(255,255,255,.045);color:var(--ink);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.btn-o:hover,.mbtn-ghost:hover{
  transform:translateY(-2px);background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 12px 26px -16px rgba(0,0,0,.6)}
.btn-o:active,.mbtn-ghost:active{transform:translateY(0) scale(.985);transition-duration:.06s}

/* «показать ещё» — призрачная, широкая */
.feed-more{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);color:var(--muted);font-weight:700}
.feed-more:hover{transform:translateY(-2px);color:var(--ink);background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.25)}

/* «подписаны» → на ховере намёк на отписку */
.mbtn-following{background:rgba(255,255,255,.06);color:var(--ink);border:1px solid rgba(255,255,255,.16)}
.mbtn-following:hover{background:rgba(232,0,45,.1);border-color:rgba(232,0,45,.45);color:#ff6b81;transform:translateY(-2px)}

/* иконка внутри кнопки — мягкий сдвиг при ховере */
.btn .btn-ic{transition:transform .2s ease}
.btn-g:hover .btn-ic,.side-cta:hover .btn-ic{transform:translate(2px,-2px)}

/* фокус для доступности */
.btn:focus-visible,.btn-g:focus-visible,.btn-o:focus-visible,.btn-login:focus-visible,.mbtn:focus-visible,.feed-more:focus-visible{
  outline:2px solid #fff;outline-offset:2px}

/* disabled */
button[disabled],.btn[disabled],.mbtn[disabled]{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}
button[disabled]::after{display:none!important}


/* ═══════════════ v28 — ВЕТКИ КОММЕНТОВ · КНОПКА НАВЕРХ ═══════════════ */
.cm-child{margin-left:44px;padding-left:14px;border-left:2px solid var(--line)}
.cm-reply-btn{background:none;border:none;color:var(--muted);font-family:var(--font);font-size:12.5px;font-weight:700;cursor:pointer;padding:4px 0;margin-top:4px;transition:.15s}
.cm-reply-btn:hover{color:var(--ink)}
.cm-reply{display:none;gap:8px;margin-top:10px;align-items:flex-end}
.cm-reply textarea{flex:1;background:rgba(255,255,255,.04);border:1px solid var(--line2);border-radius:11px;padding:9px 12px;color:var(--ink);font-family:var(--font);font-size:14px;outline:none;resize:vertical;min-height:38px}
.cm-reply textarea:focus{border-color:rgba(255,255,255,.4)}
.mbtn-sm{padding:8px 14px;font-size:13px;border-radius:10px}

.to-top{position:fixed;right:20px;bottom:24px;z-index:150;width:46px;height:46px;border-radius:14px;border:1px solid var(--line2);
  background:rgba(12,18,28,.85);backdrop-filter:blur(14px);color:var(--ink);cursor:pointer;
  display:grid;place-items:center;opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;
  transition:opacity .25s,transform .25s;box-shadow:0 12px 30px -12px rgba(0,0,0,.7)}
.to-top svg{width:22px;height:22px}
.to-top.show{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{border-color:var(--accent-hi);transform:translateY(-2px)}
@media(max-width:860px){ .to-top{bottom:84px;right:16px;width:42px;height:42px} }  /* над нижним меню */


/* ═══════════════════════════════════════════════════
   v29 — МОБИЛЬНАЯ ПАНЕЛЬ (drawer) + чистая шапка + полировка мобилок
   ═══════════════════════════════════════════════════ */

/* ── Выдвижная боковая панель ── */
.drawer{position:fixed;top:0;right:0;height:100vh;height:100dvh;width:min(86vw,340px);z-index:400;
  background:#0a1220;border-left:1px solid var(--line);display:flex;flex-direction:column;
  transform:translateX(106%);transition:transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
body.drawer-open .drawer{transform:none;box-shadow:-24px 0 70px rgba(0,0,0,.55)}
.drawer-ov{position:fixed;inset:0;z-index:390;background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  opacity:0;pointer-events:none;transition:opacity .3s}
body.drawer-open .drawer-ov{opacity:1;pointer-events:auto}
body.drawer-open{overflow:hidden}
.dw-top{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px;position:sticky;top:0;background:#0a1220;z-index:2;border-bottom:1px solid var(--line)}
.dw-brand{font-family:var(--disp);font-weight:800;font-size:16px;color:#fff;letter-spacing:-.02em}
.dw-x{width:38px;height:38px;border:none;background:rgba(255,255,255,.05);border-radius:11px;color:var(--ink);display:grid;place-items:center;cursor:pointer;transition:.15s}
.dw-x:active{background:rgba(255,255,255,.1)}
.dw-x svg{width:20px;height:20px}
.dw-acct{padding:14px 12px 4px}
.dw-me{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid var(--line);transition:.15s}
.dw-me:active{background:rgba(255,255,255,.08)}
.dw-av{width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--bg2)}
.dw-av.ph{display:grid;place-items:center;background:var(--grad2);color:#0b0c0e;font-weight:800;font-size:19px}
.dw-me-tx{display:flex;flex-direction:column;min-width:0}
.dw-me-tx b{font-size:15.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-me-tx span{font-size:13px;color:var(--muted)}
.dw-auth{display:flex;flex-direction:column;gap:9px}
.dw-nav{padding:2px 10px 16px}
.dw-grp{font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--muted2);padding:18px 12px 6px}
.dw-i{display:flex;align-items:center;gap:13px;padding:12px;border-radius:12px;color:var(--ink);font-size:15.5px;font-weight:600;transition:background .15s}
.dw-i:active{background:rgba(255,255,255,.08)}
.dw-i svg{width:21px;height:21px;color:var(--muted);flex-shrink:0}
.dw-i>span{flex:1}
.dw-badge{background:var(--red,#E8002D);color:#fff;font-size:11px;font-weight:800;min-width:20px;height:20px;border-radius:10px;display:grid;place-items:center;padding:0 5px;flex-shrink:0}
.mbtn-block{width:100%;justify-content:center}

/* ── Чистая шапка на мобилках: только лого + бургер ── */
@media(max-width:860px){
  .nav-r{display:none!important}
  .burger{display:block;margin-left:auto}
  .nav-in{gap:10px;height:58px}
  .brand{font-size:16px}
}

/* ── Общая полировка мобилок ── */
@media(max-width:860px){
  html,body{overflow-x:hidden;max-width:100vw}
  .wrap{padding-left:16px;padding-right:16px}
  .feed-layout{padding-top:12px}
  .post{padding:16px 15px}
  .post-title{font-size:22px;line-height:1.28}
  .post-lead{font-size:14.5px;line-height:1.55}
  .post-foot{gap:14px;flex-wrap:wrap}
  .pf-item{font-size:12.5px}
  .pf2-head-r{flex-wrap:wrap;gap:8px}
  .pf2-head-r .mbtn{flex:1 1 auto;min-width:118px;justify-content:center}
  .pd-actions{flex-wrap:wrap;gap:10px}
  .art-body{font-size:16.5px;line-height:1.7}
  h1,.pd-title{word-break:break-word}
}
@media(max-width:400px){
  .brand{font-size:15px}
  .post-title{font-size:20.5px;line-height:1.28}
}


/* ═══════════════════════════════════════════════════
   v30 — CHAT TELEGRAM-STYLE (пузыри-хвостики · галочки · онлайн · паттерн-фон)
   ═══════════════════════════════════════════════════ */

/* — фон переписки: тонкий точечный паттерн вместо пустоты — */
.chat-body{
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: rgba(255,255,255,.012);
  border-radius: 18px;
  scroll-behavior: smooth;
}

/* — шапка чата: аватар с онлайн-точкой + статус — */
.chat-head{gap:13px;padding:12px 6px 16px}
.chat-av-wrap{position:relative;flex-shrink:0;display:block}
.chat-dot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;
  background:var(--muted2);border:2.5px solid var(--bg);transition:background .2s}
.chat-dot.on{background:#34D399;box-shadow:0 0 0 2px rgba(52,211,153,.15)}
.chat-status{font-size:12.5px;color:var(--muted);margin-top:1px;transition:color .2s}
.chat-name{display:flex;align-items:center;gap:5px}

/* — пузыри: настоящий "хвостик" через clip-path на скруглённом углу — */
.bubble{position:relative;box-shadow:0 1px 2px rgba(0,0,0,.15);animation:bubbleIn .22s cubic-bezier(.2,.8,.2,1)}
@keyframes bubbleIn{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
.bubble.me{border-radius:17px 17px 4px 17px}
.bubble.them{border-radius:17px 17px 17px 4px}
.bubble-t{display:flex;align-items:center;justify-content:flex-end;gap:3px;margin-top:5px;font-size:10.5px;opacity:.6}
.bubble.them .bubble-t{justify-content:flex-start}

/* — галочки доставки/прочтения — */
.tick{width:14px;height:10px;color:var(--muted2);flex-shrink:0;vertical-align:-1px}
.bubble.me .tick{color:rgba(11,12,14,.45)}
.tick.tick2{width:17px}
.tick2{color:#2DD4BF !important}

/* — пустой чат — */
.chat-empty{margin:auto;text-align:center;color:var(--muted);font-size:24px;line-height:2.2;opacity:.8}

/* — поле ввода: пилюля, круглая кнопка — */
.chat-input{align-items:flex-end;gap:10px;padding:12px 2px 4px}
.chat-input textarea{flex:1;background:rgba(255,255,255,.045);border:1px solid var(--line2);border-radius:22px;
  padding:12px 18px;color:var(--ink);font-family:var(--font);font-size:14.5px;line-height:1.4;resize:none;outline:none;
  max-height:120px;transition:border-color .15s,background .15s}
.chat-input textarea:focus{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.07)}
.chat-send{border-radius:50%;flex-shrink:0;transition:transform .16s,box-shadow .2s}
.chat-send:hover{transform:scale(1.06) translateY(-1px);box-shadow:0 10px 22px -8px rgba(255,255,255,.4)}
.chat-send:active{transform:scale(.94)}

/* — онлайн-точки в списке диалогов — */
.conv-av-wrap{position:relative;flex-shrink:0;display:block}
.conv-dot{position:absolute;right:0;bottom:0;width:13px;height:13px;border-radius:50%;
  background:var(--muted2);border:2.5px solid var(--bg);transition:background .2s}
.conv-dot.on{background:#34D399;box-shadow:0 0 0 2px rgba(52,211,153,.15)}

@media(max-width:640px){
  .chat{height:calc(100dvh - 118px)}
  .bubble{max-width:82%}
}


/* ═══════════════════════════════════════════════════
   v31 — CHAT FULL (фоны · закрепы · реакции · стикеры · фото · мобилка)
   ═══════════════════════════════════════════════════ */

/* — фоны переписки (выбираемые) — */
.chat-bg-default .chat-body{
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 18px 18px; background-color: rgba(255,255,255,.012);
}
.chat-bg-navy .chat-body{background:linear-gradient(155deg,#0a1830,#0b0f1c 60%,#091220)}
.chat-bg-forest .chat-body{background:linear-gradient(155deg,#0c1f16,#0a120e 60%,#0d1a12)}
.chat-bg-plum .chat-body{background:linear-gradient(155deg,#1d1128,#120c1a 60%,#180f22)}
.chat-bg-sunset .chat-body{background:linear-gradient(155deg,rgba(120,60,20,.35),#120d0a 55%,rgba(60,20,40,.25))}
.chat-bg-mono .chat-body{background:#0a0a0c}
.chat-body{border-radius:18px;scroll-behavior:smooth;position:relative}

/* — палитра выбора фона — */
.chat-bg-btn{margin-left:auto;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.05);
  border:1px solid var(--line);color:var(--ink);display:grid;place-items:center;cursor:pointer;transition:.15s;flex-shrink:0}
.chat-bg-btn:hover{background:rgba(255,255,255,.09)}
.chat-bg-btn svg{width:19px;height:19px}
.chat-title{min-width:0;flex:1}
.bg-picker{display:none;gap:10px;padding:10px 6px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:2px}
.bg-picker.show{display:flex}
.bg-swatch{width:34px;height:34px;border-radius:11px;border:2px solid transparent;cursor:pointer;transition:.15s;flex-shrink:0}
.bg-swatch:hover{transform:translateY(-2px)}
.bg-swatch.on{border-color:#fff}
.bg-swatch.bg-default{background:repeating-radial-gradient(rgba(255,255,255,.5) 1px,#1a1c22 1px,#1a1c22 6px)}
.bg-swatch.bg-navy{background:linear-gradient(155deg,#123059,#0b0f1c)}
.bg-swatch.bg-forest{background:linear-gradient(155deg,#164a30,#0a120e)}
.bg-swatch.bg-plum{background:linear-gradient(155deg,#3a2050,#120c1a)}
.bg-swatch.bg-sunset{background:linear-gradient(155deg,#a05a20,#2a1218)}
.bg-swatch.bg-mono{background:#3a3d44}

/* — пузыри: фото / стикеры / реакции / инструменты — */
.bubble{position:relative}
.bubble-img{display:block;max-width:100%;border-radius:13px;cursor:pointer;max-height:320px;object-fit:cover}
.bubble.has-img{padding:4px;background:rgba(255,255,255,.06)!important;border:1px solid var(--line)}
.bubble.has-img .bubble-t{padding:4px 6px 0}
.bubble.sticker{background:none!important;border:none!important;box-shadow:none!important;padding:0;max-width:none}
.sticker-emoji{font-size:64px;line-height:1;display:block;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.bubble.sticker .bubble-t{position:absolute;bottom:-2px;right:2px;background:rgba(0,0,0,.35);border-radius:8px;padding:2px 5px;opacity:.9}

.bubble-tools{position:absolute;top:-14px;display:flex;gap:4px;opacity:0;transition:opacity .15s;pointer-events:none}
.bubble.me .bubble-tools{right:6px}
.bubble.them .bubble-tools{left:6px}
.bubble:hover .bubble-tools,.bubble.tools-open .bubble-tools{opacity:1;pointer-events:auto}
.bubble-react-add,.bubble-del{width:26px;height:26px;border-radius:50%;background:rgba(20,22,28,.92);border:1px solid var(--line2);
  color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.3)}
.bubble-react-add svg,.bubble-del svg{width:14px;height:14px}
.bubble-del{color:#ff8080}

.bubble-reacts{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.bubble-reacts:empty{display:none;margin:0}
.react-pill{display:inline-flex;align-items:center;gap:4px;font-size:12px;background:rgba(255,255,255,.08);
  border:1px solid var(--line2);border-radius:100px;padding:2px 8px;cursor:pointer;transition:.15s;color:var(--ink)}
.react-pill:hover{background:rgba(255,255,255,.14)}
.react-pill.mine{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.5)}
.react-pill span{font-size:11px;opacity:.8}

.react-popover{display:none;position:absolute;z-index:40;background:#14161c;border:1px solid var(--line2);border-radius:100px;
  padding:6px 8px;gap:4px;box-shadow:0 12px 30px rgba(0,0,0,.4)}
.react-popover.show{display:flex}
.react-popover button{background:none;border:none;font-size:20px;cursor:pointer;padding:2px 3px;border-radius:8px;transition:.15s}
.react-popover button:hover{background:rgba(255,255,255,.08);transform:scale(1.15)}

/* — стикеры — */
.sticker-panel{display:none;grid-template-columns:repeat(6,1fr);gap:6px;padding:10px 4px;max-height:180px;overflow-y:auto;
  border-top:1px solid var(--line)}
.sticker-panel.show{display:grid}
.sticker-btn{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:12px;font-size:26px;
  padding:8px 0;cursor:pointer;transition:.15s}
.sticker-btn:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}

/* — кнопка "вниз" — */
.scroll-down-btn{position:absolute;right:16px;bottom:84px;width:40px;height:40px;border-radius:50%;
  background:rgba(18,20,26,.9);border:1px solid var(--line2);color:var(--ink);display:grid;place-items:center;
  cursor:pointer;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .2s,transform .2s;
  box-shadow:0 8px 22px rgba(0,0,0,.35);z-index:5}
.scroll-down-btn.show{opacity:1;transform:none;pointer-events:auto}
.scroll-down-btn svg{width:19px;height:19px}
.chat{position:relative}

/* — вложение фото / стикеры в поле ввода — */
.chat-attach,.chat-sticker-btn{width:38px;height:38px;border-radius:50%;background:none;border:none;
  color:var(--muted);display:grid;place-items:center;cursor:pointer;flex-shrink:0;transition:.15s}
.chat-attach:hover,.chat-sticker-btn:hover{color:var(--ink);background:rgba(255,255,255,.06)}
.chat-attach svg,.chat-sticker-btn svg{width:21px;height:21px}

/* — закреп в списке диалогов — */
.conv{position:relative}
.conv-pin-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.05);border:none;color:var(--muted);display:none;place-items:center;cursor:pointer;flex-shrink:0}
.conv:hover .conv-pin-btn{display:grid}
.conv-pin-btn svg{width:14px;height:14px}
.conv-pin-btn:hover{background:rgba(255,255,255,.1);color:var(--ink)}
.conv.conv-pinned{background:rgba(255,255,255,.025)}
.pin-ic{width:12px;height:12px;color:var(--muted);vertical-align:-1px}

/* — typing indicator текст — */
.chat-status.typing{color:#34D399;font-style:italic}

/* — мобильная полировка чата — */
@media(max-width:640px){
  .chat{height:100dvh;height:100vh;position:fixed;inset:0;z-index:250;background:var(--bg);padding:0 12px;margin:0;max-width:none}
  .chat-head{padding-top:calc(10px + env(safe-area-inset-top,0px))}
  .chat-input{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  .bubble{max-width:86%}
  .sticker-emoji{font-size:56px}
  .scroll-down-btn{bottom:76px}
}


/* ═══════════════════════════════════════════════════
   v32 — ГРУППЫ-СООБЩЕСТВА (дискавери · карточки · slug-поле)
   ═══════════════════════════════════════════════════ */
.grp-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:22px;flex-wrap:wrap}
.grp-search{flex:1;min-width:200px}
.grp-search input{width:100%;background:var(--glass);border:1px solid var(--line2);border-radius:13px;
  padding:11px 16px;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none;transition:.15s}
.grp-search input:focus{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}

.grp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.grp-card{display:block;background:var(--glass);border:1px solid var(--line);border-radius:18px;padding:20px;
  transition:transform .18s,border-color .18s,box-shadow .18s}
.grp-card:hover{transform:translateY(-3px);border-color:var(--line2);box-shadow:0 16px 34px -18px rgba(0,0,0,.6)}
.grp-card-av{width:52px;height:52px;margin-bottom:12px}
.grp-card-av img,.grp-card-av span{width:52px;height:52px;border-radius:14px;object-fit:cover;font-size:20px}
.grp-card-name{font-weight:800;font-size:16px;color:var(--ink);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grp-card-subs{font-size:12.5px;color:var(--muted2);margin-bottom:10px}
.grp-card-desc{font-size:13.5px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.slug-wrap{position:relative;display:flex;align-items:center;background:rgba(255,255,255,.04);border:1px solid var(--line2);border-radius:13px;overflow:hidden}
.slug-prefix{padding:13px 0 13px 15px;color:var(--muted2);font-size:14.5px;white-space:nowrap}
.slug-wrap input{flex:1;background:none!important;border:none!important;padding:13px 15px 13px 4px!important;color:var(--ink);font-family:var(--font);font-size:14.5px;outline:none}

@media(max-width:640px){
  .grp-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .grp-card{padding:15px}
  .grp-toolbar{flex-direction:column;align-items:stretch}
}


/* ═══════════════════════════════════════════════════
   v33 — ЧАТ TELEGRAM-LEVEL (long-press · reply · edit · группировка · unread)
   ═══════════════════════════════════════════════════ */

/* — подавляем нативный long-press callout на iOS/Android, иначе конфликтует с нашим меню — */
.conv{ -webkit-touch-callout: none; touch-action: manipulation; }
.bubble{ -webkit-touch-callout: none; touch-action: manipulation; }

/* — универсальное контекстное меню (long-press) — переиспользуется и для чата, и для сообщений — */
.ctx-backdrop{position:fixed;inset:0;z-index:300;background:transparent;display:none}
.ctx-backdrop.show{display:block}
.ctx-menu{position:fixed;z-index:301;background:#181a20;border:1px solid var(--line2);border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,.5);padding:6px;min-width:190px;display:none;flex-direction:column;
  opacity:0;transform:scale(.92);transform-origin:top left;transition:opacity .12s,transform .12s}
.ctx-menu.show{display:flex;opacity:1;transform:scale(1)}
.ctx-menu button{background:none;border:none;color:var(--ink);font-family:var(--font);font-size:14.5px;font-weight:600;
  text-align:left;padding:11px 13px;border-radius:10px;cursor:pointer;transition:.12s}
.ctx-menu button:hover{background:rgba(255,255,255,.08)}
.ctx-menu button.danger{color:#ff6b6b}
.ctx-menu button.danger:hover{background:rgba(255,107,107,.1)}

/* — эмодзи-ряд вверху меню сообщения — */
.mctx-emojis{display:flex;gap:2px;padding:4px 2px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.mctx-emoji{flex:1;background:none;border:none;font-size:22px;padding:6px 0!important;border-radius:10px;cursor:pointer;transition:.15s}
.mctx-emoji:hover{background:rgba(255,255,255,.08);transform:scale(1.15)}

/* — группировка соседних пузырей одного отправителя — */
.bubble{margin-bottom:9px}
.bubble.stack-top{margin-top:-5px}
.bubble.stack-top.me{border-top-right-radius:6px}
.bubble.stack-top.them{border-top-left-radius:6px}
.bubble.stack-bottom.me{border-bottom-right-radius:6px}
.bubble.stack-bottom.them{border-bottom-left-radius:6px}

/* — цитата ответа внутри пузыря — */
.bubble-quote{display:flex;flex-direction:column;gap:1px;padding:5px 9px;margin-bottom:6px;border-radius:8px;
  border-left:3px solid rgba(255,255,255,.4);background:rgba(255,255,255,.06);cursor:pointer;max-width:100%}
.bubble.me .bubble-quote{border-left-color:rgba(11,12,14,.35);background:rgba(0,0,0,.08)}
.bubble-quote b{font-size:12px;color:var(--ink)}
.bubble.me .bubble-quote b{color:#0b0c0e}
.bubble-quote span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bubble.me .bubble-quote span{color:rgba(11,12,14,.65)}

/* — метка «изменено» — */
.bubble-edited{opacity:.65;font-size:10px;margin-right:4px;font-style:italic}

/* — разделитель непрочитанных — */
.unread-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:#f5c451;font-size:12px;font-weight:700}
.unread-divider::before,.unread-divider::after{content:'';flex:1;height:1px;background:rgba(245,196,81,.3)}

/* — бар «ответить/редактировать» над полем ввода — */
.reply-bar{display:none;align-items:center;gap:10px;padding:8px 10px;margin:0 2px 6px;background:rgba(255,255,255,.05);
  border-radius:12px;border:1px solid var(--line)}
.reply-bar.show{display:flex}
.reply-bar-line{width:3px;align-self:stretch;border-radius:2px;background:var(--accent-hi,#fff)}
.reply-bar-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.reply-bar-tx b{font-size:12.5px;color:var(--ink)}
.reply-bar-tx span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reply-bar-x{background:none;border:none;color:var(--muted);font-size:20px;cursor:pointer;padding:0 4px;flex-shrink:0}
.reply-bar-x:hover{color:var(--ink)}
.edit-bar .reply-bar-line{background:#f5c451}

/* — карточки/дискавери групп: закреп + бейджи ролей — */
.grp-pinned-lbl{font-size:12px;font-weight:800;color:#f5c451;margin-bottom:8px;display:flex;align-items:center;gap:5px}

@media(max-width:640px){
  .ctx-menu{min-width:170px}
  .mctx-emoji{font-size:19px}
}

/* ── v34: mute-иконка в списке чатов ── */
.mute-ic{width:12px;height:12px;color:var(--muted2);vertical-align:-1px;margin-right:2px}
.conv-unread-muted{background:var(--muted2)!important}

/* ── v34: тост-уведомление (копирование ссылки) ── */
.atl-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(12px);z-index:900;
  background:#1c1e22;color:#f4f6f8;border:1px solid var(--line2);font-size:13.5px;font-weight:600;
  padding:11px 20px;border-radius:100px;box-shadow:0 12px 30px -10px rgba(0,0,0,.6);opacity:0;
  transition:opacity .22s ease,transform .22s ease;pointer-events:none;white-space:nowrap}
.atl-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:640px){.atl-toast{bottom:calc(76px + env(safe-area-inset-bottom,0px));font-size:13px;padding:10px 16px}}

/* ── v34: кнопка «поделиться» в ленте постов и на странице поста ── */
.pf-act-share{padding:7px 11px}
.pf-act-share svg{width:16px;height:16px}
.pd-share{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--muted2);
  background:var(--glass);border:1px solid var(--line);padding:10px 16px;border-radius:12px;cursor:pointer;transition:.15s}
.pd-share:hover{background:rgba(255,255,255,.09);color:var(--ink)}
.pd-share svg{width:17px;height:17px}

/* ── v34: копируемая ссылка на группу (Telegram channel-info стиль) ── */
.pf2-link{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:8px 14px;border-radius:11px;
  background:var(--glass);border:1px solid var(--line);color:var(--accent-hi);font-size:13.5px;font-weight:600;
  cursor:pointer;transition:.15s;max-width:100%}
.pf2-link:hover{background:rgba(255,255,255,.09);border-color:var(--line2)}
.pf2-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf2-link svg{width:14px;height:14px;flex-shrink:0;color:var(--muted2)}

/* ── v34: подписчики/админы как кликабельные строки ── */
.pf2-stat-link{text-decoration:none;transition:.15s;border-radius:8px;padding:2px 4px;margin:-2px -4px}
.pf2-stat-link:hover{background:rgba(255,255,255,.06);color:var(--ink)}

/* ── v34: заголовки секций на странице участников (Администраторы/Подписчики) ── */
.grp-sec-hd{font-size:12.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted2);
  margin:22px 4px 8px;padding-top:4px}
.grp-sec-hd:first-of-type{margin-top:14px}

/* ══════════════ v35: Telegram-синий акцент в переписке ══════════════
   Остальной сайт (посты, кнопки, навигация) остаётся в монохромном
   серебристом стиле бренда — синий вводится ТОЛЬКО внутри чата/списка
   чатов, где он и создаёт узнаваемое ощущение "как в Telegram". */
:root{
  --tg-1:#4fa0e6; --tg-2:#2b7bc4; --tg-glow:rgba(79,160,230,.35);
}

/* — исходящий пузырь — */
.bubble.me{background:linear-gradient(165deg,var(--tg-1),var(--tg-2))!important;color:#fff!important}
.bubble.me .bubble-t{color:rgba(255,255,255,.75)}
.bubble.me .tick{color:rgba(255,255,255,.7)!important}
.bubble.me .bubble-edited{color:rgba(255,255,255,.65)}
.bubble.me .bubble-quote{background:rgba(255,255,255,.16)!important;border-left-color:rgba(255,255,255,.55)!important}
.bubble.me .bubble-quote b{color:#fff!important}
.bubble.me .bubble-quote span{color:rgba(255,255,255,.8)!important}
.bubble.me.sticker{background:none!important}

/* — кнопка отправки — */
.chat-send{background:linear-gradient(165deg,var(--tg-1),var(--tg-2))!important;color:#fff!important}
.chat-send:hover{box-shadow:0 10px 24px -8px var(--tg-glow)!important}
.chat-send svg{stroke:#fff}

/* — активная вкладка списка чатов — */
.conv-tab.on{color:var(--tg-1)!important;border-bottom-color:var(--tg-1)!important}

/* — бейдж непрочитанных с числом — */
.conv-unread{width:auto;height:20px;min-width:20px;padding:0 6px;border-radius:11px;background:var(--tg-1);
  color:#fff;font-size:11.5px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.conv-unread-muted{background:var(--muted2)!important;color:#0009!important}

/* — полоска ответа/редактирования над полем ввода — */
.reply-bar-line{background:var(--tg-1)!important}
.edit-bar .reply-bar-line{background:#f5c451!important}

/* — строка поиска над списком чатов — */
.conv-search{display:flex;align-items:center;gap:9px;background:var(--glass);border:1px solid var(--line);
  border-radius:13px;padding:10px 14px;margin:2px 0 14px;transition:.15s}
.conv-search:focus-within{border-color:var(--tg-1);background:rgba(79,160,230,.06)}
.conv-search svg{width:17px;height:17px;color:var(--muted2);flex-shrink:0}
.conv-search input{flex:1;background:none;border:none;outline:none;color:var(--ink);font-family:var(--font);font-size:14.5px}
.conv-search input::placeholder{color:var(--muted2)}

/* — ссылки/акцентные элементы внутри самого чата — */
.chat-back:hover, .chat-bg-btn:hover{color:var(--tg-1)}
.scroll-down-btn{background:var(--tg-1)!important;color:#fff!important}
.scroll-down-btn svg{stroke:#fff}

/* — счётчик результатов рядом с вкладкой поиска — */
.s-tab-n{font-size:11.5px;color:var(--muted2);font-weight:700}

/* — микрофон / запись голосового сообщения — */
.chat-mic-btn{width:38px;height:38px;border-radius:50%;background:none;border:none;color:var(--muted);
  display:grid;place-items:center;cursor:pointer;transition:.15s;flex-shrink:0;-webkit-touch-callout:none;touch-action:none}
.chat-mic-btn:hover{color:var(--ink);background:rgba(255,255,255,.06)}
.chat-mic-btn svg{width:21px;height:21px}
.chat-mic-btn.recording{color:#ff4d6d;background:rgba(255,77,109,.12);animation:micPulse 1.1s ease-in-out infinite}
@keyframes micPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.voice-rec-indicator{display:none;align-items:center;gap:9px;justify-content:center;padding:8px 0 2px;
  font-size:12.5px;color:var(--muted);font-weight:600}
.voice-rec-indicator.show{display:flex}
.voice-rec-dot{width:9px;height:9px;border-radius:50%;background:#ff4d6d;animation:micPulse 1s ease-in-out infinite}

/* — пузырь голосового сообщения — */
.bubble-voice{display:flex;align-items:center;gap:10px;min-width:190px;padding:2px 0}
.voice-play-btn{width:34px;height:34px;border-radius:50%;border:none;cursor:pointer;flex-shrink:0;
  display:grid;place-items:center;background:rgba(255,255,255,.14);color:inherit;transition:.15s}
.voice-play-btn:hover{background:rgba(255,255,255,.22)}
.voice-play-btn svg{width:15px;height:15px}
.bubble.me .voice-play-btn{background:rgba(255,255,255,.22)}
.voice-wave{flex:1;height:22px;border-radius:3px;
  background-image:repeating-linear-gradient(90deg,currentColor 0,currentColor 2px,transparent 2px,transparent 5px);
  opacity:.45;-webkit-mask-image:linear-gradient(90deg,#000 60%,transparent);mask-image:linear-gradient(90deg,#000 60%,transparent)}
.voice-dur{font-size:12px;font-weight:700;opacity:.8;flex-shrink:0}

/* — обзорные карточки в /admin — */
.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-top:6px}
.admin-stat-card{display:flex;flex-direction:column;gap:4px;padding:20px 18px;border-radius:16px;
  background:var(--glass);border:1px solid var(--line);text-decoration:none;transition:.15s}
.admin-stat-card:hover{border-color:var(--line2);background:rgba(255,255,255,.06);transform:translateY(-2px)}
.admin-stat-card b{font-family:var(--disp);font-size:28px;font-weight:800;color:var(--ink)}
.admin-stat-card span{font-size:13px;color:var(--muted2)}

/* ══════════════ v39: финальная полировка кнопок по сайту ══════════════
   Бренд остаётся монохромным (серебро/чёрный, под лого Raull) — здесь
   только форма/тень/нажатие приводятся к одному консистентному виду,
   без смены цвета. Синий акцент — только в чате (см. v35). */
.mbtn, .btn, .btn-login, .btn-g, .btn-o, .btn-ya, .feed-more, .side-cta, .cookie-accept{
  border-radius:100px!important;
}
.mbtn-sm, .btn-sm{ border-radius:100px!important; }
.mbtn-lg, .btn-lg{ border-radius:100px!important; }
.pf-act, .post-del{ border-radius:100px; }

/* единая тактильная реакция на нажатие — вместо разнобоя translateY/scale по разным блокам стилей */
.mbtn:active, .btn:active, .btn-login:active, .btn-g:active, .btn-o:active, .btn-ya:active, .feed-more:active{
  transform:scale(.96)!important; transition-duration:.08s!important;
}

/* мягче и заметнее подъём при наведении */
.mbtn:hover, .btn-o:hover{ transform:translateY(-2px); }
.mbtn-primary:hover, .btn-g:hover, .btn-login:hover{ transform:translateY(-2px); }

/* явное disabled-состояние везде одинаково */
.mbtn[disabled], .btn[disabled], button[disabled]{
  opacity:.45!important; cursor:not-allowed!important; transform:none!important; box-shadow:none!important;
}

/* фокус с клавиатуры — одно консистентное кольцо */
.mbtn:focus-visible, .btn:focus-visible, .btn-o:focus-visible, .btn-g:focus-visible, .btn-login:focus-visible{
  outline:2px solid rgba(255,255,255,.55); outline-offset:2px;
}

/* ══════════════ v41: тонкая зернистая текстура фона (под лого Raull) ══════════════ */
body::before{
  content:'';
  position:fixed; inset:0; z-index:2147483000; pointer-events:none;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

/* ══════════════ v41: карточка поста в стиле VK-ленты ══════════════ */
.post{
  border-radius:20px; box-shadow:0 1px 0 rgba(255,255,255,.02), 0 12px 30px -22px rgba(0,0,0,.6);
}
.post:hover{
  box-shadow:0 1px 0 rgba(255,255,255,.03), 0 24px 48px -20px rgba(0,0,0,.65);
  transform:translateY(-3px);
}
.post-by{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}
.post-av{width:42px;height:42px;border-radius:50%;object-fit:cover;flex-shrink:0}
.post-by-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.post-by-name{font-size:14.5px;font-weight:800;color:var(--ink);line-height:1.2}
.post-by-sub{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted2)}
.post-by-sub .post-dot{opacity:.6}
.post-by-sub .card-cat{position:static !important;margin-left:0 !important;top:auto;left:auto}
.post-by-actions{margin-left:auto;display:flex;align-items:center;gap:2px;flex-shrink:0}

/* ── плавное появление второстепенных карточек при скролле ── */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.reveal-in{opacity:1;transform:none}

/* ── единый стиль пустых состояний (иконка + текст + CTA) ── */
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;
  padding:52px 24px;color:var(--muted2)}
.empty-ic{width:64px;height:64px;border-radius:50%;background:var(--glass);border:1px solid var(--line);
  display:grid;place-items:center;color:var(--muted)}
.empty-ic svg{width:28px;height:28px}
.empty-state p{font-size:14.5px;line-height:1.5;max-width:320px;margin:0}
