/* ═══════════════════════════════════════════
   THE DAILY PULSE — Ultra-modern 3D news theme
   ═══════════════════════════════════════════ */

/* ══════════ COOKIE CONSENT + POPUP (Phase 3) ══════════ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(12, 14, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.7);
  animation: cookieUp 0.5s ease;
}
.cookie-banner.show { display: flex; }
@keyframes cookieUp { from { transform: translateY(30px); opacity: 0; } }
.cookie-text { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.cookie-text strong { font-family: var(--font-head); font-size: 0.95rem; }
.cookie-text span { color: var(--text-dim); }
.cookie-text a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 11px 20px;
  border-radius: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.cookie-decline { background: var(--surface); color: var(--text-dim); }
.cookie-decline:hover { color: var(--text); }
.cookie-accept {
  background: linear-gradient(135deg, var(--accent), #b02638);
  color: #fff; border: none;
  box-shadow: 0 8px 20px -6px rgba(227,59,78,0.5);
}
.cookie-accept:hover { transform: translateY(-2px); }

.sub-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 5, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sub-popup.show { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.sub-popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 40px 34px 30px;
  background:
    radial-gradient(500px circle at 50% -10%, rgba(227,59,78,0.22), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.8);
  animation: popIn 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes popIn { from { transform: scale(0.9) translateY(20px); opacity: 0; } }
.sub-popup-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.1rem; cursor: pointer;
}
.sub-popup-icon { font-size: 3rem; margin-bottom: 10px; }
.sub-popup-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.sub-popup-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 22px; }
.sub-popup-form { display: flex; flex-direction: column; gap: 10px; }
.sub-popup-form input {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  text-align: center;
}
.sub-popup-form input:focus { border-color: var(--accent); }
.sub-popup-form button {
  background: linear-gradient(135deg, var(--accent), #b02638);
  border: none; color: #fff;
  padding: 13px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(227,59,78,0.55);
  transition: transform 0.2s;
}
.sub-popup-form button:hover { transform: translateY(-2px); }
.sub-popup-push {
  margin-top: 14px;
  background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 11px;
  padding: 11px; width: 100%; cursor: pointer;
  font-size: 0.84rem; transition: all 0.2s;
}
.sub-popup-push:hover { border-color: rgba(255,255,255,0.25); }
.sub-popup-dismiss {
  display: block; margin: 14px auto 0;
  background: none; border: none; color: var(--text-dim);
  font-size: 0.78rem; cursor: pointer;
}
.sub-popup-dismiss:hover { color: var(--text); }

@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}

/* ══════════ SHOP / CART (Phase 2) ══════════ */
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.66rem;
  display: grid; place-items: center;
  line-height: 1;
}
.cart-count.hidden { display: none; }
.cart-count.bump { animation: cartBump 0.3s ease; }
@keyframes cartBump { 50% { transform: scale(1.4); } }

.flash-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.contact-form .err { color: var(--accent-2); font-size: 0.8rem; }

.back-link { color: var(--text-dim); font-size: 0.88rem; transition: color 0.2s; }
.back-link:hover { color: var(--text); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  background: radial-gradient(500px circle at 50% 120%, rgba(224,176,75,0.16), transparent 60%), linear-gradient(135deg, #1a1610, #0c0a06);
  overflow: hidden;
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 14px; }
.pd-price { font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; color: #e0b04b; margin-bottom: 20px; }
.pd-price .old { text-decoration: line-through; color: var(--text-dim); font-size: 1.1rem; margin-right: 10px; }
.pd-desc { color: var(--text-dim); margin-bottom: 26px; line-height: 1.7; }
.pd-buy { display: flex; gap: 12px; align-items: center; }
.pd-sku { color: var(--text-dim); font-size: 0.8rem; margin-top: 16px; }

.qty-input {
  width: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
}
.pd-add { padding: 12px 28px; font-size: 0.9rem; }

/* Cart list */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}
.cart-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1610, #0c0a06);
  display: grid; place-items: center;
  font-size: 1.8rem;
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 { font-size: 0.98rem; font-weight: 700; }
.cart-unit { font-size: 0.8rem; color: var(--text-dim); }
.cart-line-total { font-family: var(--font-head); font-weight: 800; color: #e0b04b; min-width: 80px; text-align: right; }
.cart-remove {
  background: none; border: none; color: var(--text-dim);
  font-size: 1rem; cursor: pointer; padding: 8px; transition: color 0.2s;
}
.cart-remove:hover { color: var(--accent); }

.cart-summary {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  max-width: 360px;
  margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; margin-bottom: 6px; }
.cart-note { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 18px; }
.btn-checkout, .order-summary + * { }
.btn-checkout {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #b02638);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(227,59,78,0.55);
  transition: transform 0.2s;
}
.btn-checkout:hover { transform: translateY(-2px); }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.checkout-form { margin-top: 0; }
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  position: sticky; top: 90px;
}
.order-summary h2 { font-size: 1.15rem; margin-bottom: 16px; }
.os-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--text-dim); padding: 8px 0; }
.os-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; color: var(--text); }

/* Confirmation */
.confirm-badge {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  display: grid; place-items: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -8px rgba(16,185,129,0.5);
}

@media (max-width: 820px) {
  .product-detail, .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .cart-row { grid-template-columns: 52px 1fr auto; row-gap: 10px; }
  .cart-thumb { width: 52px; height: 52px; }
  .cart-line-total { grid-column: 2 / 3; text-align: left; }
}


:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f8;
  --text-dim: #9aa0b5;
  --accent: #e33b4e;
  --accent-2: #ff6b7d;

  --c-politics: #e33b4e;
  --c-usnews: #3b82f6;
  --c-world: #10b981;
  --c-hope: #f472b6;
  --c-opinion: #a855f7;

  --font-head: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 18px;
  --shadow-3d: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ══════════ ANIMATED BACKGROUND ══════════ */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#bgCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Slow-drifting aurora glows (transform-only — GPU cheap) */
.bg-aura {
  position: absolute;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  will-change: transform;
}
.bg-aura-1 {
  background: radial-gradient(circle, rgba(227, 59, 78, 0.13), transparent 65%);
  top: -22vw; left: -16vw;
  animation: auraDrift1 46s ease-in-out infinite;
}
.bg-aura-2 {
  background: radial-gradient(circle, rgba(88, 76, 235, 0.11), transparent 65%);
  bottom: -26vw; right: -18vw;
  animation: auraDrift2 58s ease-in-out infinite;
}

@keyframes auraDrift1 {
  50% { transform: translate(13vw, 9vh) scale(1.18); }
}
@keyframes auraDrift2 {
  50% { transform: translate(-11vw, -10vh) scale(1.22); }
}

/* ══════════ TICKER ══════════ */
.ticker-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #14060a, #1a0810);
  border-bottom: 1px solid rgba(227, 59, 78, 0.25);
  height: 38px;
  overflow: hidden;
  position: relative;
  z-index: 60;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
}

.ticker-track { overflow: hidden; flex: 1; }

.ticker-content {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.ticker-content span::before { content: '●'; color: var(--accent); margin-right: 10px; font-size: 0.6rem; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ══════════ NAV ══════════ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(7, 8, 15, 0.85);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav-wrap.scrolled { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7); }

.nav {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #8b1e2c);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 6px 20px -4px rgba(227, 59, 78, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: perspective(300px) rotateX(8deg);
}

.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--accent-2); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.25s;
  position: relative;
}

.nav-links a:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-icon:hover { color: var(--text); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-subscribe {
  background: linear-gradient(135deg, var(--accent), #b02638);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(227, 59, 78, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.25s;
}
.btn-subscribe:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 32px -6px rgba(227, 59, 78, 0.7); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.search-overlay {
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px 16px;
}
.search-overlay.open { display: flex; }
.search-overlay input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
.search-overlay input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,59,78,0.15); }
.search-close { background: none; border: none; color: var(--text-dim); font-size: 1.1rem; cursor: pointer; padding: 8px; }

/* ══════════ HERO ══════════ */
.hero { position: relative; padding: 60px 28px 80px; }

.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* Soft glow orbs — radial gradients instead of filter:blur (much cheaper on GPU) */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 640px; height: 640px; background: radial-gradient(circle, rgba(227,59,78,0.35), transparent 70%); top: -240px; left: -180px; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(59,59,246,0.32), transparent 70%); top: 15%; right: -200px; animation-delay: -5s; }
.orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%); bottom: -160px; left: 33%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.grid-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* Hero header row: eyebrow + date */
.hero-top {
  position: relative;
  max-width: 1360px;
  margin: 0 auto 22px;
}

.hero-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.live-chip i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(227, 59, 78, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 59, 78, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(227, 59, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 59, 78, 0); }
}

.hero-date {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ══════════ HERO POST SLIDER ══════════ */
.slider {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  height: clamp(430px, 56vh, 580px);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(227, 59, 78, 0.25);
  box-shadow: 0 30px 80px -24px rgba(227, 59, 78, 0.28), 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  background: var(--surface);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

.slide { position: relative; min-width: 100%; height: 100%; overflow: hidden; }

.slide .slide-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  transition: transform 6.5s linear;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-bg .ph-icon { font-size: 5rem; opacity: 0.5; transform: translateY(-55%); }

.slide-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(4, 5, 10, 0.97) 0%,
      rgba(4, 5, 10, 0.86) 22%,
      rgba(4, 5, 10, 0.62) 42%,
      rgba(4, 5, 10, 0.38) 60%,
      rgba(4, 5, 10, 0.16) 78%,
      rgba(4, 5, 10, 0.02) 100%),
    linear-gradient(100deg, rgba(4, 5, 10, 0.45), transparent 55%);
}

.slide-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px clamp(24px, 6vw, 88px) 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 860px;
}

.slide-content h1, .slide-content h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.slide-content p { color: var(--text-dim); font-size: clamp(0.88rem, 1.4vw, 1.02rem); max-width: 58ch; }

/* Staggered content entrance on the active slide */
.slide-content > * { opacity: 0; transform: translateY(26px); }
.slide.active .slide-content > * { animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.slide.active .slide-content > *:nth-child(1) { animation-delay: 0.25s; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: 0.38s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: 0.5s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: 0.62s; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 22, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s;
}
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }

/* Footer: progress dots + counter */
.slider-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(24px, 6vw, 88px) 24px;
}

.slider-dots { display: flex; gap: 10px; }

.slider-dots .dot {
  width: 34px; height: 5px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: width 0.35s, background 0.25s;
}
.slider-dots .dot:hover { background: rgba(255, 255, 255, 0.35); }
.slider-dots .dot.active { width: 64px; }

.slider-dots .dot i {
  display: block;
  width: 0; height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.slider-dots .dot.active i { animation: dotFill 6s linear forwards; }
.slider:hover .slider-dots .dot.active i { animation-play-state: paused; }

@keyframes dotFill { to { width: 100%; } }

.slider-count {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.story-card { display: block; }

/* Headline accent */
.hl {
  background: linear-gradient(100deg, var(--accent-2), #ff9d6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CTA row on featured story */
.story-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #b02638);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 11px 20px;
  border-radius: 11px;
  box-shadow: 0 8px 24px -6px rgba(227, 59, 78, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.story-card:hover .story-cta { transform: translateX(3px); box-shadow: 0 12px 32px -6px rgba(227, 59, 78, 0.7); }
.story-cta span { transition: transform 0.25s; }
.story-card:hover .story-cta span { transform: translateX(3px); }

.story-bg { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.story-card:hover .story-bg { transform: scale(1.06); }
.story-bg .ph-icon { font-size: 2.4rem; opacity: 0.55; transform: translateY(-30%); }
.story-lg .story-bg .ph-icon { font-size: 4rem; }

.story-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 10, 0.95) 0%, rgba(4, 5, 10, 0.55) 45%, rgba(4, 5, 10, 0.05) 75%);
  z-index: 1;
}

.story-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transform: translateZ(20px);
}
.story-content h3 { font-size: 1.02rem; font-weight: 700; }
.story-content h1 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em; }
.story-lg .story-content { padding: 30px 34px; gap: 10px; }
.story-lg .story-content p { color: var(--text-dim); font-size: 0.95rem; max-width: 56ch; }
.story-author { font-size: 0.8rem; color: var(--text-dim); }
.story-content .meta-row { margin-bottom: 0; }

/* ══════════ 3D TILT CARD BASE ══════════ */
.tilt-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
  cursor: pointer;
}

.tilt-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-3d);
}

.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 3;
}
.tilt-card:hover .card-glare { opacity: 1; }

/* Image placeholders (swap for real images later) */
.img-ph {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
/* Card backgrounds must stay absolutely positioned — .img-ph (later in this
   file) would otherwise override .story-bg's position and collapse it to
   height 0, hiding the photo. */
.story-bg.img-ph { position: absolute; }
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ph-icon { font-size: 3rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)); transform: translateZ(30px); }

/* On-image brand logo (overlay — pinned to the visible corner, never cropped) */
.img-logo {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; align-items: center; gap: 6px; pointer-events: none;
}
.img-logo-mark {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent), #8b1e2c);
  border-radius: 7px;
  font-family: var(--font-head); font-weight: 900; font-size: 0.58rem; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.img-logo-text {
  font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8); letter-spacing: -0.01em;
}
.img-logo-text em { font-style: normal; color: var(--accent-2); }

/* Bigger on the full-width article hero */
.article-hero-bg .img-logo { top: 16px; left: 16px; gap: 8px; }
.article-hero-bg .img-logo-mark { width: 34px; height: 34px; font-size: 0.75rem; border-radius: 9px; }
.article-hero-bg .img-logo-text { font-size: 1.05rem; }

.ph-politics { background: linear-gradient(135deg, #3d0e15, #1a0508); }
.ph-usnews  { background: linear-gradient(135deg, #0e1f3d, #050b1a); }
.ph-world   { background: linear-gradient(135deg, #0e3d2b, #05170f); }
.ph-hope    { background: linear-gradient(135deg, #3d0e2a, #170510); }
.ph-opinion { background: linear-gradient(135deg, #2b0e3d, #0f0517); }

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: 7px;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.5);
}
.badge-politics { background: var(--c-politics); }
.badge-usnews  { background: var(--c-usnews); }
.badge-world   { background: var(--c-world); }
.badge-hope    { background: var(--c-hope); color: #2a0416; }
.badge-opinion { background: var(--c-opinion); }

.meta-time { font-size: 0.78rem; color: var(--text-dim); }
.meta-dot { color: var(--text-dim); }
.meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }


/* ══════════ SECTIONS ══════════ */
.section { max-width: 1360px; margin: 0 auto; padding: 50px 28px; }

.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.head-accent { font-size: 1.3rem; }
.head-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.head-link { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.head-link:hover { color: var(--accent-2); }

/* Trending — slim ranked strip */
.trend-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trend-item {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.trend-item:last-child { border-right: none; }
.trend-item:hover { background: var(--surface-2); }

.trend-rank {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.06));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}

.trend-body { display: flex; flex-direction: column; gap: 8px; }
.trend-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend-meta { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; color: var(--text-dim); }
.trend-meta i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ══════════ CATEGORY LAYOUTS ══════════ */

.head-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 1.15rem;
}

.news-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; color: var(--text-dim); margin-top: 4px; }

/* — Feature split: big overlay story + compact side list — */
.feat-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.feat-main { min-height: 380px; }
.feat-title { font-size: clamp(1.2rem, 2vw, 1.6rem) !important; font-weight: 800; }
.feat-main .story-content p { color: var(--text-dim); font-size: 0.9rem; }

.feat-list { display: flex; flex-direction: column; gap: 20px; }
.feat-item { display: flex; gap: 16px; padding: 14px; flex: 1; align-items: center; }
.feat-thumb { width: 92px; height: 92px; border-radius: 12px; flex-shrink: 0; }
.feat-thumb .ph-icon { font-size: 1.7rem; }
.feat-body { display: flex; flex-direction: column; gap: 8px; transform: translateZ(12px); }
.feat-body h3 { font-size: 0.98rem; font-weight: 700; }

/* — Overlay tiles — */
.overlay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ov-card { height: 280px; }

/* — Horizontal rows — */
.rows-list { display: flex; flex-direction: column; gap: 18px; }
.row-card { display: flex; align-items: stretch; min-height: 150px; }
.row-img { width: 250px; flex-shrink: 0; }
.row-img .ph-icon { font-size: 2.2rem; }
.row-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 9px; transform: translateZ(12px); flex: 1; min-width: 0; }
.row-body .badge { align-self: flex-start; }
.row-body h3 { font-size: 1.15rem; font-weight: 800; }
.row-body p { font-size: 0.88rem; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Pin the author/date row to the bottom so the time is always in the same spot,
   regardless of how long the headline or summary is. */
.row-body .news-foot { margin-top: auto; padding-top: 8px; }

/* — News briefs — */
.briefs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brief-card { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.brief-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.brief-icon { font-size: 1.6rem; }
.brief-card h3 { font-size: 1.02rem; font-weight: 700; flex: 1; transform: translateZ(12px); }
.brief-card p { font-size: 0.85rem; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* — Opinion quote cards — */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.quote-mark { font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; height: 0.65em; }
.quote-card h3 { font-size: 1.08rem; font-weight: 800; transform: translateZ(12px); }
.quote-card p { font-size: 0.86rem; color: var(--text-dim); font-style: italic; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}
.quote-author div { display: flex; flex-direction: column; line-height: 1.35; }
.quote-author strong { font-size: 0.86rem; }
.quote-author span:last-child { font-size: 0.74rem; color: var(--text-dim); }

/* Section reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════ SHOP ══════════ */
.nav-shop { color: #e0b04b !important; }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card { display: flex; flex-direction: column; }

.prod-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 4;
  background: linear-gradient(135deg, #e0b04b, #a87818);
  color: #1a1200;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 7px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.5);
}

.prod-img {
  height: 170px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(400px circle at 50% 120%, rgba(224,176,75,0.18), transparent 60%),
    linear-gradient(135deg, #1a1610, #0c0a06);
  position: relative;
}
.prod-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}
.prod-icon { font-size: 3.2rem; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); transform: translateZ(25px); }

.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; transform: translateZ(12px); }
.prod-body h3 { font-size: 0.95rem; font-weight: 700; flex: 1; }

.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-price { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: #e0b04b; }

.btn-cart {
  background: var(--surface-2);
  border: 1px solid rgba(224,176,75,0.4);
  color: #e0b04b;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-cart:hover { background: #e0b04b; color: #1a1200; transform: translateY(-2px); }
.btn-cart.added { background: #10b981; border-color: #10b981; color: #fff; }

/* ══════════ SUBPAGES (about / contact / privacy / terms) ══════════ */
.page-main { max-width: 860px; margin: 0 auto; padding: 60px 28px 80px; min-height: 55vh; }

.page-main h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-sub { color: var(--text-dim); font-size: 1.02rem; margin-bottom: 40px; }

.page-main h2 { font-size: 1.25rem; font-weight: 800; margin: 34px 0 12px; }
.page-main p, .page-main li { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 12px; }
.page-main ul { padding-left: 22px; margin-bottom: 12px; }
.page-main strong { color: var(--text); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; max-width: 560px; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,59,78,0.15); }
.contact-form button {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent), #b02638);
  border: none;
  color: #fff;
  padding: 13px 30px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(227,59,78,0.55);
  transition: transform 0.2s;
}
.contact-form button:hover { transform: translateY(-2px); }

/* ══════════ NEWSLETTER ══════════ */
.newsletter { max-width: 1360px; margin: 0 auto; padding: 40px 28px 70px; }

.newsletter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 54px;
  background:
    radial-gradient(800px circle at 15% 0%, rgba(227,59,78,0.18), transparent 50%),
    var(--surface);
}
.nl-text h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.nl-text p { color: var(--text-dim); max-width: 44ch; }

.nl-form { display: flex; gap: 12px; flex-shrink: 0; }
.nl-form input {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.92rem;
  width: 260px;
  outline: none;
}
.nl-form input:focus { border-color: var(--accent); }
.nl-form button {
  background: linear-gradient(135deg, var(--accent), #b02638);
  border: none;
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(227,59,78,0.55);
  transition: transform 0.2s;
}
.nl-form button:hover { transform: translateY(-2px); }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }

.footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { color: var(--text-dim); font-size: 0.88rem; margin: 16px 0 20px; max-width: 34ch; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.25s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom a { color: var(--text-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1100px) {
  .slider { height: clamp(400px, 52vh, 500px); }
  .trend-row { grid-template-columns: 1fr; }
  .trend-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trend-item:last-child { border-bottom: none; }
  .trend-body h4 { -webkit-line-clamp: 2; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-main { min-height: 300px; }
  .overlay-grid, .briefs-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-card { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 12px 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .hamburger { display: flex; }
  .btn-subscribe { display: none; }

  .hero { padding: 32px 16px 48px; }
  .hero-top { margin-bottom: 16px; }

  .slider { height: 440px; }
  .slide-content { padding: 24px 20px 88px; gap: 10px; }
  .slide-content h1, .slide-content h2 { font-size: 1.45rem; }
  .slide-content p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-bg .ph-icon { font-size: 3.2rem; }
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  .slider-footer { padding: 16px 20px 20px; }
  .story-content { padding: 16px 18px; }
  .story-content h3 { font-size: 0.95rem; }

  .section { padding: 34px 16px; }
  .section-head { gap: 12px; margin-bottom: 22px; }
  .section-head h2 { font-size: 1.25rem; }
  .head-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
  .head-link { font-size: 0.78rem; }

  .trend-item { padding: 16px 18px; }

  .overlay-grid, .briefs-grid, .quote-grid, .shop-grid { grid-template-columns: 1fr; }
  .ov-card { height: 230px; }
  .row-card { flex-direction: column; }
  .row-img { width: 100%; height: 140px; }
  .feat-main { min-height: 260px; }
  .feat-thumb { width: 76px; height: 76px; }
  .feat-body h3 { font-size: 0.92rem; }

  .newsletter { padding: 20px 16px 50px; }
  .newsletter-card { padding: 32px 22px; gap: 24px; }
  .nl-text h2 { font-size: 1.4rem; }
  .nl-form { flex-direction: column; width: 100%; }
  .nl-form input { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 16px 30px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; padding: 18px 16px; }

  .page-main { padding: 40px 16px 60px; }
}

@media (max-width: 480px) {
  html { -webkit-text-size-adjust: 100%; }
  .ticker-bar { height: 34px; }
  .ticker-label { font-size: 0.64rem; padding: 0 12px; padding-right: 20px; }
  .ticker-content { font-size: 0.74rem; }

  .logo-text { font-size: 1rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 0.85rem; }
  .btn-icon { width: 36px; height: 36px; }

  .hero-eyebrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .slider { height: 400px; }
  .slide-content h1, .slide-content h2 { font-size: 1.25rem; }
  .slider-count { display: none; }
  .story-cta { font-size: 0.76rem; padding: 9px 16px; }
  .story-cta-row { gap: 12px; }

  .trend-rank { font-size: 1.5rem; }

  .prod-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .prod-foot .btn-cart { width: 100%; padding: 11px; }
  .prod-price { text-align: center; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .ticker-content, .orb, .bg-aura { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .slider-track { transition: none; }
  .slide-bg { transition: none; transform: none; }
  .slide-content > * { opacity: 1; transform: none; animation: none !important; }
}

/* ══════════ ARTICLE PAGE (ultra-modern redesign) ══════════ */

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 120;
  box-shadow: 0 0 12px rgba(227, 59, 78, 0.6);
}

/* — Cinematic hero — */
.article-hero {
  position: relative;
  height: clamp(380px, 54vh, 620px);
  overflow: hidden;
}
.article-hero-bg { position: absolute; inset: 0; display: grid; place-items: center; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-bg .ph-icon { font-size: 6rem; opacity: 0.5; }
.article-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      var(--bg) 0%,
      rgba(7, 8, 15, 0.82) 22%,
      rgba(7, 8, 15, 0.35) 55%,
      rgba(7, 8, 15, 0.55) 100%);
}
.article-hero-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-crumb { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
.article-crumb a { color: var(--text-dim); transition: color 0.2s; }
.article-crumb a:hover { color: var(--accent-2); }
.article-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.87rem;
}
.article-meta .avatar { width: 40px; height: 40px; font-size: 0.78rem; }
.article-author { color: var(--text); font-weight: 600; }
.article-meta .dot { opacity: 0.5; }

/* — Layout: sticky share rail + reading column — */
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 22px 20px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.share-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.share-btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.share-btn.copied { color: #fff; background: #10b981; border-color: #10b981; }

/* — Typography — */
.article-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  font-weight: 500;
  color: #dde1ee;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 30px;
}
.article-body {
  font-size: 1.07rem;
  line-height: 1.85;
  color: #c9cedd;
}
.article-body p { margin: 0 0 1.4em; }
.article-body.first > p:first-child::first-letter {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3.3em;
  line-height: 0.85;
  float: left;
  padding: 4px 12px 0 0;
  color: var(--accent);
}
.article-body h2, .article-body h3 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.7em;
}
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; border-radius: 14px; margin: 1.4em 0; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: #d8dcea;
}
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: 0.5em; }

/* — Source attribution — */
.article-source {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 34px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.article-source a { color: var(--accent-2); }
.src-icon { font-size: 1rem; }

.article-related { padding-top: 30px; }

/* — Ad slots (Google AdSense) — */
.ad-slot { margin: 38px 0; text-align: center; }
.ad-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
  margin-bottom: 10px;
}
.ad-slot ins.adsbygoogle { min-height: 100px; }
.ad-placeholder {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 40px 20px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* — Responsive — */
@media (max-width: 860px) {
  .article-hero { height: clamp(300px, 44vh, 460px); }
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 16px 10px;
  }
  .share-rail {
    position: static;
    flex-direction: row;
    justify-content: center;
    order: 2;                 /* rail moves below the article on phones */
    padding-top: 6px;
  }
  .article-main { order: 1; }
  .article-lead { font-size: 1.05rem; }
  .article-body { font-size: 1.02rem; }
  .article-hero-inner { padding-bottom: 26px; }
}
