:root { --bg:#0B0F14; --text:#E8E8E8; --accent:#00E5FF; --muted:#99A0A7; --card:#141A22; }
* { box-sizing: border-box; }
body { font-family: -apple-system, 'SF Pro Display', Segoe UI, sans-serif; background: var(--bg); color: var(--text); margin: 0; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-hdr { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid #1F2731; }
.logo { font-size: 1.3rem; font-weight: 700; }
.logo span { color: var(--accent); }
nav a { margin: 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
main { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem; }
.hero h1 { font-size: 2.4rem; margin: 0 0 0.5rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 2rem; }
.posts-list ul, .latest ul { list-style: none; padding: 0; }
.posts-list li, .latest li { padding: 0.8rem 0; border-bottom: 1px solid #1F2731; display: flex; gap: 1rem; align-items: baseline; }
.posts-list time, .latest time { color: var(--muted); font-size: 0.85rem; min-width: 4rem; }
.ch { color: #7C4DFF; font-size: 0.85rem; font-weight: 500; margin-left: auto; }
.post header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.post .meta { color: var(--muted); font-size: 0.85rem; }
.post .content { margin: 2rem 0; font-size: 1.05rem; }
.post .content p { margin: 1rem 0; }
.post .content img { max-width: 100%; border-radius: 8px; }
.tg-link { padding: 1.5rem; background: var(--card); border-radius: 12px; text-align: center; margin: 2rem 0; }
footer { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid #1F2731; margin-top: 4rem; }

/* === Subscription landing (homepage hero + channel grid) === */
.sub-hero { text-align: center; padding: 2.5rem 0 2rem; border-bottom: 1px solid #1F2731; margin-bottom: 2.5rem; }
.sub-hero h1 { font-size: 2.2rem; margin: 0 0 0.6rem; background: linear-gradient(90deg, var(--accent) 0%, #7C4DFF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sub-hero .lead { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 620px; margin-left: auto; margin-right: auto; }

.channels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 0 0 3rem; }

.ch-card { background: var(--card); border: 1px solid #1F2731; border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease; }
.ch-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.ch-card header { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.ch-card .ch-emoji { grid-row: 1 / span 2; font-size: 1.8rem; line-height: 1; }
.ch-card h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.ch-card .ch-handle { color: var(--muted); font-size: 0.8rem; font-family: ui-monospace, Menlo, monospace; }
.ch-card .ch-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin: 0 0 0.9rem; flex: 1; }
.ch-card .ch-qr { display: flex; justify-content: center; margin: 0.2rem 0 0.9rem; }
.ch-card .ch-qr img { width: 140px; height: 140px; display: block; border-radius: 8px; image-rendering: pixelated; }
.ch-card .ch-join { display: block; text-align: center; padding: 0.7rem 1rem; background: var(--accent); color: #0B0F14; font-weight: 600; border-radius: 8px; text-decoration: none; font-size: 0.95rem; transition: background 0.15s ease; }
.ch-card .ch-join:hover { background: #33EDFF; text-decoration: none; }
.ch-card[data-lang="EN"] .ch-join { background: #7C4DFF; color: #fff; }
.ch-card[data-lang="EN"] .ch-join:hover { background: #9B7BFF; }
.ch-card[data-lang="VIDEO"] .ch-join { background: #FF4D6D; color: #fff; }
.ch-card[data-lang="VIDEO"] .ch-join:hover { background: #FF7088; }

.latest h2 { margin-top: 2rem; }

@media (max-width: 560px) {
  .sub-hero h1 { font-size: 1.7rem; }
  .channels-grid { grid-template-columns: 1fr; }
}

/* === Referrals bot bonus banner === */
.bonus-banner { background: linear-gradient(135deg, #1E293B 0%, #15202B 100%); border: 2px solid var(--accent); border-radius: 16px; padding: 1.5rem; margin: 0 0 2.5rem; position: relative; overflow: hidden; }
.bonus-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(0,229,255,0.12), transparent 70%); pointer-events: none; }
.bonus-content { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.bonus-emoji { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.bonus-text { flex: 1; min-width: 240px; }
.bonus-text h2 { margin: 0 0 0.4rem; color: var(--accent); font-size: 1.3rem; }
.bonus-text p { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.bonus-cta { display: inline-block; padding: 0.8rem 1.6rem; background: var(--accent); color: #0B0F14; font-weight: 700; border-radius: 8px; text-decoration: none; font-size: 1rem; white-space: nowrap; transition: transform 0.15s ease, background 0.15s ease; }
.bonus-cta:hover { background: #33EDFF; text-decoration: none; transform: translateY(-2px); }

@media (max-width: 560px) {
  .bonus-content { flex-direction: column; text-align: center; }
}


/* Digest bot banner variant — purple accent */
.bonus-banner--digest { border-color: #7C4DFF; }
.bonus-banner--digest::before { background: radial-gradient(circle at top right, rgba(124,77,255,0.12), transparent 70%); }
.bonus-banner--digest .bonus-text h2 { color: #9B7BFF; }
.bonus-cta--digest { background: #7C4DFF; color: #fff; }
.bonus-cta--digest:hover { background: #9B7BFF; }
