:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(17, 19, 27, 0.86);
  --panel-solid: #0f121b;
  --accent: #ed2d34;
  --accent-alt: #2d9cf0;
  --text: #f5f7fc;
  --muted: #98a0b5;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: all 0.25s ease;
  --feed-width: clamp(320px, 60vw, 720px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(237,45,52,0.18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(45,156,240,0.18), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button { font-family: inherit; }

.tiktok-app {
  min-height: 100vh;
}

.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(45,156,240,0.12), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(237,45,52,0.16), transparent 50%),
    var(--bg);
}

.legal-header {
  padding: clamp(32px, 6vw, 56px) clamp(24px, 6vw, 72px);
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}

.legal-header__logo img {
  width: clamp(168px, 22vw, 220px);
  filter: drop-shadow(0 10px 32px rgba(0,0,0,0.36));
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.4rem);
  color: #fff;
}

.legal-header p {
  margin: 0;
  color: rgba(204,208,220,0.68);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.legal-content {
  flex: 1;
  padding: clamp(24px, 5vw, 56px);
  padding-top: 0;
  max-width: min(92vw, 960px);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

.legal-section {
  background: rgba(15, 18, 27, 0.86);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 16px;
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem);
  color: #fff;
}

.legal-section p {
  margin: 0;
  color: rgba(222,226,239,0.82);
  line-height: 1.65;
  font-size: 0.96rem;
}

.legal-note {
  font-weight: 600;
  color: rgba(237,45,52,0.76);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(214,219,232,0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(237,45,52,0.75);
  box-shadow: 0 0 12px rgba(237,45,52,0.4);
}

.legal-list strong {
  color: rgba(245,247,252,0.92);
}

.legal-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(214,219,232,0.84);
}

.legal-contact a {
  color: rgba(220,224,236,0.82);
  text-decoration: underline;
  text-decoration-color: rgba(237,45,52,0.5);
  transition: color 0.2s ease;
}

.legal-contact a:hover {
  color: rgba(237,45,52,0.78);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.legal-actions .ghost {
  border-color: rgba(255,255,255,0.14);
  color: rgba(228,231,242,0.86);
}

.legal-actions .ghost-alt {
  border-color: rgba(237,45,52,0.28);
  color: rgba(237,45,52,0.86);
}

.legal-actions .ghost:hover {
  color: var(--accent);
  border-color: rgba(237,45,52,0.52);
}

.app-grid {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 360px;
  gap: 0;
  min-height: 100vh;
}

.nav-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  background: rgba(12, 14, 20, 0.82);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(18px);
}

.nav-rail__logo img {
  width: 54px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.nav-rail__stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.nav-rail__btn {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
}

.nav-rail__btn i { font-size: 1.2rem; }

.nav-rail__btn:hover,
.nav-rail__btn.active {
  background: rgba(237,45,52,0.18);
  border-color: rgba(237,45,52,0.4);
  color: var(--text);
}

.nav-rail__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-rail__social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-rail__social::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.28;
  transition: var(--transition);
}

.nav-rail__social i {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.nav-rail__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
}

.nav-rail__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.nav-rail__social:hover,
.nav-rail__social:focus-visible {
  color: var(--text);
  border-color: rgba(237,45,52,0.45);
}

.nav-rail__social:hover::before,
.nav-rail__social:focus-visible::before {
  opacity: 0.82;
}

.nav-rail__social:focus-visible {
  outline: 2px solid rgba(237,45,52,0.7);
  outline-offset: 3px;
}

.nav-rail__social--instagram::before {
  background: linear-gradient(135deg, rgba(255, 89, 125, 0.9), rgba(255, 196, 0, 0.85), rgba(142, 68, 173, 0.9));
}

.nav-rail__social--facebook::before {
  background: radial-gradient(circle at 30% 30%, rgba(82, 172, 255, 0.9), rgba(22, 96, 201, 0.9));
}

.nav-rail__social--tiktok::before {
  background: linear-gradient(135deg, rgba(0, 242, 234, 0.9), rgba(255, 24, 67, 0.9));
}

.nav-rail__social--tiktok .nav-rail__icon {
  width: 1.28rem;
  height: 1.28rem;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
}

.feed-column {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  padding: 48px clamp(32px, 6vw, 60px) 72px;
}

.feed-column::-webkit-scrollbar { width: 10px; }
.feed-column::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.feed-header {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}

.hero-card {
  position: relative;
  background: rgba(15, 18, 27, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-card.collapsed { display: none; }

.hero-card.hero-card--pending {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.hero-card.hero-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-card .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(237,45,52,0.2);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  line-height: 1.2;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.hero-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-slogan {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 156, 240, 0.14);
  color: rgba(183, 213, 255, 0.96);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(237,45,52,0.18), rgba(45,156,240,0.12));
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.hero-marquee__track {
  display: inline-flex;
  gap: 32px;
  padding-left: 32px;
  animation: heroMarquee 18s linear infinite;
  will-change: transform;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-marquee span {
  white-space: nowrap;
  color: rgba(10, 12, 18, 0.82);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats__item {
  min-width: 180px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 6px;
}

.hero-stats__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stats__label {
  font-size: 0.92rem;
  color: rgba(235, 239, 255, 0.68);
}

.hero-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.hero-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.hero-tile:hover {
  border-color: rgba(237, 45, 52, 0.4);
  background: rgba(237, 45, 52, 0.14);
  transform: translateY(-4px);
}

.hero-tile i {
  font-size: 1.8rem;
  color: var(--accent);
  flex: 0 0 auto;
}

.hero-tile h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  color: var(--text);
}

.hero-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@keyframes heroMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes favoritePulse {
  0% { box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(237,45,52,0.45); }
  70% { box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 0 16px rgba(237,45,52,0); }
  100% { box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(237,45,52,0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee__track {
    animation: none;
  }
  .hero-tile:hover {
    transform: none;
  }
  .post-card--pulse {
    animation: none;
  }
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ghost {
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.ghost-alt { border-color: rgba(237,45,52,0.36); }
.ghost:hover { color: var(--accent); border-color: rgba(237,45,52,0.5); }

.hero-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(12, 14, 20, 0.85);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-close:hover { color: var(--accent); border-color: rgba(237,45,52,0.5); }

.feed-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.search-bar {
  flex: 1;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(17,19,27,0.8);
  padding: 12px 18px;
}

.search-bar input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.search-bar input:focus { outline: none; }
.search-bar button { display: none; }

.toolbar-actions { display: flex; gap: 12px; }

.toolbar-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(17,19,27,0.7);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.toolbar-btn:hover { border-color: rgba(237,45,52,0.4); color: var(--accent); }

.feed-stream { display: flex; flex-direction: column; gap: 22px; }

.post-stack { display: flex; flex-direction: column; gap: 28px; }

.post-card {
  background: rgba(15,18,27,0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card--liked {
  border-color: rgba(237,45,52,0.45);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(237,45,52,0.28);
}

.post-card--pulse {
  animation: favoritePulse 1.1s ease;
}

.post-header {
  padding: 22px 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.post-meta { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(237,45,52,0.18);
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-meta h2 { margin: 0; font-size: 1.4rem; }
.post-meta p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.post-meta .post-hashtags { font-size: 0.82rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.55); text-transform: uppercase; }

.post-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  align-self: flex-start;
}

.post-category-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.post-media {
  width: clamp(240px, 78%, 560px);
  margin: 24px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background-color: #000;
  background-image: url("../images/fondo_producto.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.post-media img,
.post-media video,
.post-media iframe {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.post-media iframe {
  border: 0;
  background: #000;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-description {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}
  
.post-slider {
    position: relative;
    overflow: hidden;
}

.post-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
}

.post-slide {
    flex: 0 0 100%;
}

.post-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s ease;
}

.post-slider-nav.prev { left: 12px; }
.post-slider-nav.next { right: 12px; }

.post-slider-nav:hover {
    background: rgba(243, 146, 0, 0.75);
}

.post-slider-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.post-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.post-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease;
}

.post-slider-dot.is-active {
    background: #f39200;
}

.post-slider-dot:focus-visible,
.post-slider-nav:focus-visible {
    outline: 2px solid #f39200;
    outline-offset: 2px;
}

.post-body {
  padding: 20px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-caption {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

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

.post-actions-left { display: flex; gap: 12px; }

.action-btn {
  border: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover { background: rgba(237,45,52,0.22); color: var(--accent); }
.action-btn.active { background: rgba(237,45,52,0.32); color: var(--accent); }

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}

.action-link:hover { transform: translateY(-1px); opacity: 0.92; }

.category-modal[hidden] { display: none; }
.category-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  padding: clamp(18px, 6vw, 48px);
  overflow-y: auto;
}
.category-modal__inner {
  margin: auto;
  width: min(1100px, 100%);
  background: rgba(15, 18, 27, 0.96);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 36px);
}
.category-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.category-modal__header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  letter-spacing: 0.01em;
}
.category-modal__close {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.category-modal__close:hover {
  background: rgba(237, 45, 52, 0.2);
  border-color: rgba(237, 45, 52, 0.4);
  color: var(--accent);
}
.category-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 22, 0.8);
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 210px;
}
.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(237, 45, 52, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  outline: none;
}
.category-card__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 26px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.category-card__icon img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.category-card__initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #111728;
  background:
    radial-gradient(circle at 20% 20%, rgba(237,45,52,0.22), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(45,156,240,0.22), transparent 45%),
    #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.category-card__title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.category-card__cta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.category-card__cta i { font-size: 1rem; }

.feed-loader,
.feed-empty,
.feed-end {
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: rgba(17,19,27,0.7);
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

.feed-loader .spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.feed-empty i {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.32);
  margin-bottom: 10px;
}

.info-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: rgba(15,18,27,0.82);
  border-left: 1px solid var(--border);
  padding: 40px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(18px);
}

.info-panel::-webkit-scrollbar { width: 6px; }
.info-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }

.panel-block {
  background: rgba(10,12,18,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-heading h2 { margin: 0; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.76); }

.panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(237,45,52,0.24);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-count[hidden] {
  display: none;
}

.panel-subtitle {
  margin: 12px 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.panel-subtitle[hidden] {
  display: none;
}

.panel-close {
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.panel-close:hover { color: var(--accent); border-color: rgba(237,45,52,0.4); }

.category-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  padding: 8px 16px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
}

.tag:hover,
.tag.active { background: rgba(237,45,52,0.2); color: var(--text); }

.highlight-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 0.92rem; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot-red { background: #ed2d34; }
.dot-blue { background: #2d9cf0; }
.dot-green { background: #4ed38e; }

.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.02);
}

.favorites-empty i {
  font-size: 1.8rem;
  color: rgba(237,45,52,0.72);
}

.favorites-empty p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.favorites-empty[hidden] {
  display: none;
}

.favorites-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.favorites-list[hidden] {
  display: none;
}

.favorites-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.favorites-item__body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.favorites-item__body:focus-visible {
  outline: 2px solid rgba(237,45,52,0.45);
  outline-offset: 2px;
}

.favorites-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.favorites-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorites-item__thumb--placeholder {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.favorites-item__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.favorites-item__name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.favorites-item__category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(235,239,255,0.6);
}

.favorites-item__body:hover .favorites-item__name {
  color: var(--accent);
}

.favorites-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.favorites-item__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.favorites-item__detail:hover {
  color: var(--accent);
  border-color: rgba(237,45,52,0.45);
}

.favorites-item__remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.favorites-item__remove:hover {
  color: var(--accent);
  border-color: rgba(237,45,52,0.4);
}

.favorites-item__remove:focus-visible {
  outline: 2px solid rgba(237,45,52,0.45);
  outline-offset: 2px;
}

.cta-stack { display: flex; flex-direction: column; gap: 10px; }
.btn-primary,
.btn-secondary {
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: rgba(237,45,52,0.4); }

.panel-about p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  background: rgba(5,6,10,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 40;
}

.mobile-topbar button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,14,20,0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.mobile-topbar__actions { display: flex; gap: 10px; }

.mobile-logo {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -65%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mobile-logo img {
  display: block;
  max-width: min(248px, 78vw);
  width: auto;
  height: 78px;
  object-fit: contain;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 66px;
  background: rgba(5,6,10,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 40;
}

.mobile-bottom-nav button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-bottom-nav i { font-size: 1.2rem; }

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 35;
}

.sheet-overlay[hidden] { display: none; }

.site-footer {
  margin-top: 32px;
  padding: 22px clamp(18px, 5vw, 36px);
  border-top: 1px solid rgba(255,255,255,0.06);
  background: transparent;
}

.site-footer__inner {
  max-width: min(90vw, 1040px);
  margin: 0 auto;
  display: block;
}

.site-footer__copy {
  margin: 0;
  color: rgba(204,208,220,0.68);
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: rgba(220,224,236,0.52);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  text-transform: none;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: rgba(245,247,252,0.7);
}

@media (min-width: 1200px) {
  .app-grid {
    grid-template-columns: minmax(200px, 20%) minmax(0, 50%) minmax(280px, 30%);
  }

  .nav-rail {
    align-items: flex-start;
    padding: 36px clamp(32px, 4vw, 48px);
    background: transparent;
    border-right: none;
  }

  .nav-rail__logo {
    align-self: flex-start;
  }

  .nav-rail__logo img {
    width: 90%;
    max-width: 320px;
  }

  .nav-rail__stack {
    width: 100%;
    max-width: 260px;
  }

  .nav-rail__btn {
    width: 100%;
    height: 64px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
    gap: 14px;
    font-size: 0.95rem;
  }

  .nav-rail__btn i {
    font-size: 1.6rem;
  }

  .nav-rail__footer {
    flex-direction: row;
    gap: 18px;
  }

  .nav-rail__social {
    width: 48px;
    height: 48px;
  }

  .feed-column {
    padding-left: clamp(52px, 6vw, 72px);
    padding-right: clamp(52px, 6vw, 72px);
    background: transparent;
  }

  .info-panel {
    padding: 48px clamp(28px, 4vw, 44px) 60px;
    background: transparent;
    border-left: none;
  }
}

@media (max-width: 1280px) {
  .app-grid { grid-template-columns: 88px minmax(0, 1fr) 320px; }
}

@media (max-width: 1080px) {
  .app-grid { grid-template-columns: 82px minmax(0, 1fr); }
  .info-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(92vw, 360px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 45;
    padding-top: 80px;
  }
  .info-panel.open { transform: translateX(0); background: rgba(8,10,14,0.95); }
}

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }

  .nav-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 45;
    width: 78px;
    padding-top: 82px;
    background: rgba(4,6,10,0.96);
  }
  .nav-rail.open { transform: translateX(0); background: rgba(8,10,14,0.95); }
  .feed-column { padding: 96px 20px 118px; }
  .mobile-topbar { display: flex; }
  .mobile-bottom-nav { display: flex; }

  .info-panel {
    display: none;
  }

  .info-panel.open {
    display: flex;
    transform: translateX(0);
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(92vw, 360px);
    background: rgba(8,10,14,0.96);
    padding-top: 82px;
    z-index: 45;
    overflow-y: auto;
  }

  .search-modal { padding: 18px; }
  .search-modal__inner { border-radius: 22px; padding: 22px; gap: 18px; }
  .search-modal__close { width: 42px; height: 42px; border-radius: 14px; }
  .search-modal__hint { font-size: 0.92rem; }
}

@media (max-width: 640px) {
  .legal-header { padding: 28px 18px 32px; gap: 10px; }
  .legal-header__logo img { width: 160px; }
  .legal-content { padding: 0 18px 36px; gap: 26px; }
  .legal-section { padding: 20px 18px; gap: 14px; }
  .legal-section h2 { font-size: 1.18rem; }
  .legal-section p { font-size: 0.94rem; }
  .legal-list li { font-size: 0.92rem; padding-left: 18px; }
  .legal-actions { flex-direction: column; align-items: stretch; }
  .legal-actions .ghost { width: 100%; justify-content: center; }
  .hero-card { padding: 22px 18px; gap: 12px; }
  .hero-card h1 { font-size: 1.45rem; }
  .hero-card p { font-size: 0.92rem; }
  .hero-close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .hero-intro { gap: 8px; }
  .hero-slogan { font-size: 0.74rem; padding: 6px 10px; }
  .hero-marquee { padding: 8px 0; }
  .hero-marquee__track { gap: 20px; font-size: 0.78rem; }
  .hero-stats { gap: 10px; }
  .hero-stats__item { min-width: 100%; padding: 12px 14px; }
  .hero-stats__value { font-size: 1.4rem; }
  .hero-deck { grid-template-columns: 1fr; gap: 12px; }
  .hero-tile { padding: 14px 16px; }
  .hero-cta { gap: 10px; }
  .ghost { width: 100%; justify-content: center; }
  .favorites-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .favorites-item__actions { width: 100%; justify-content: space-between; }
  .favorites-item__detail { flex: 1; justify-content: center; }
  .site-footer { padding: 20px 18px 96px; margin-top: 28px; }
  .site-footer__inner { max-width: 100%; }
  .site-footer__copy { font-size: 0.76rem; line-height: 1.6; }
  .site-footer__links { margin-left: 8px; gap: 10px; }

  .feed-toolbar { gap: 10px; }
  .search-bar { padding: 10px 14px; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .toolbar-btn { flex: 1; justify-content: center; font-size: 0.85rem; }

  .post-header,
  .post-body { padding: 16px; }
  .post-media { width: 100%; margin: 16px; border-radius: 18px; }
  .post-media img,
  .post-media video,
  .post-media iframe { aspect-ratio: 3 / 4; object-fit: cover; }
  .post-meta h2 { font-size: 1.2rem; }
  .post-meta p { font-size: 0.88rem; }
  .post-category-icon { width: 56px; height: 56px; border-radius: 18px; }

  .post-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .post-actions-left { width: 100%; justify-content: space-between; }
  .action-btn { flex: 1; justify-content: center; }
  .action-link { width: 100%; justify-content: center; }

  .category-modal { padding: 18px; }
  .category-modal__inner { border-radius: 22px; padding: 22px; gap: 20px; }
  .category-modal__header h2 { font-size: 1.5rem; }
  .category-modal__close { width: 42px; height: 42px; border-radius: 14px; }
  .category-modal__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
  .category-card { min-height: 188px; padding: 18px; border-radius: 20px; }
  .category-card__icon { width: 78px; height: 78px; border-radius: 22px; }
}

@media (min-width: 1024px) {
  .post-card {
    flex-direction: row;
    align-items: stretch;
  }

  .post-media {
    width: auto;
    max-width: 420px;
    margin: 32px 0 32px 32px;
    flex: 0 0 42%;
  }

  .post-content {
    padding: 32px 32px 32px 24px;
    gap: 24px;
  }

  .post-category-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .category-modal__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .category-card {
    min-height: 220px;
  }

  .category-card__icon {
    width: 112px;
    height: 112px;
  }

  .post-header {
    padding: 0;
  }

  .post-body {
    padding: 0;
    flex: 1;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .legal-header { padding: 24px 16px 28px; }
  .legal-header__logo img { width: 148px; }
  .legal-content { padding: 0 16px 32px; gap: 24px; }
  .legal-section { padding: 18px 16px; }
  .legal-actions { gap: 10px; }
  .feed-column { padding: 88px 12px 94px; }
  .hero-card { padding: 20px 16px; border-radius: 20px; }
  .hero-card h1 { font-size: 1.32rem; }
  .hero-card p { font-size: 0.9rem; }
  .search-bar { grid-template-columns: 22px minmax(0,1fr); }
  .post-meta h2 { font-size: 1.1rem; }
  .post-caption { font-size: 0.92rem; }
  .mobile-bottom-nav button { font-size: 0.68rem; }
  .site-footer__inner { gap: 0; }
  .site-footer__links { gap: 8px; margin-left: 6px; }
}
.search-modal[hidden] { display: none; }
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  padding: clamp(18px, 6vw, 48px);
  overflow-y: auto;
}

.search-modal__inner {
  margin: auto;
  width: min(560px, 100%);
  background: rgba(18, 21, 31, 0.96);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-modal__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: 0.01em;
}

.search-modal__close {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: inherit;
}

.search-modal__close:hover {
  background: rgba(237, 45, 52, 0.18);
  border-color: rgba(237, 45, 52, 0.4);
  color: var(--accent);
}

.search-modal__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.search-modal__form {
  width: 100%;
}

.search-modal__form.search-bar {
  flex: none;
}

/* Explore page */
.explore-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(45,156,240,0.12), transparent 55%),
    radial-gradient(circle at 88% 0%, rgba(237,45,52,0.16), transparent 50%),
    var(--bg);
}

.explore-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 2vw, 26px) clamp(20px, 4vw, 56px);
  background: linear-gradient(135deg, rgba(17, 19, 27, 0.95), rgba(12, 14, 20, 0.92));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.explore-topbar__branding {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  min-inline-size: 0;
}

.explore-topbar__logo img {
  width: clamp(96px, 12vw, 142px);
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
}

.explore-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
  flex-wrap: wrap;
}

.explore-tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.explore-tab:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.explore-tab--active {
  background: linear-gradient(135deg, rgba(237,45,52,0.4), rgba(45,156,240,0.28));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(237, 45, 52, 0.25);
}

.explore-topbar__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  min-inline-size: 0;
}

.explore-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15, 18, 27, 0.86);
  transition: var(--transition);
  color: var(--muted);
}

.explore-search:focus-within {
  border-color: rgba(237, 45, 52, 0.5);
  box-shadow: 0 12px 28px rgba(237, 45, 52, 0.18);
}

.explore-search input {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  min-width: 220px;
}

.explore-search input::placeholder {
  color: rgba(152, 160, 181, 0.72);
}

.explore-topbar__cta {
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(237, 45, 52, 0.2);
  border: 1px solid rgba(237, 45, 52, 0.4);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: var(--transition);
}

.explore-topbar__cta:hover {
  background: rgba(237, 45, 52, 0.35);
  box-shadow: 0 16px 34px rgba(237, 45, 52, 0.22);
}

.explore-main {
  flex: 1;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  padding: clamp(28px, 6vw, 72px);
  padding-top: clamp(16px, 2vw, 32px);
}

.explore-hero {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 8% 8%, rgba(237,45,52,0.25), transparent 55%),
              radial-gradient(circle at 92% 20%, rgba(45,156,240,0.25), transparent 50%),
              rgba(15, 18, 27, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.explore-hero__copy {
  display: grid;
  gap: 14px;
}

.explore-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(237, 45, 52, 0.18);
  border: 1px solid rgba(237, 45, 52, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.explore-hero__subtitle {
  margin: 0;
  font-size: clamp(1.1rem, 0.4vw + 1.1rem, 1.4rem);
  color: rgba(255, 255, 255, 0.88);
}

.explore-hero__description {
  margin: 0;
  line-height: 1.7;
  color: rgba(222, 226, 239, 0.84);
}

.explore-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.explore-button--primary {
  background: linear-gradient(135deg, rgba(237,45,52,0.9), rgba(45,156,240,0.6));
  color: #fff;
  box-shadow: 0 20px 40px rgba(237, 45, 52, 0.35);
}

.explore-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(237, 45, 52, 0.42);
}

.explore-button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(15, 18, 27, 0.4);
}

.explore-button--ghost:hover {
  border-color: rgba(45, 156, 240, 0.55);
  color: #fff;
}

.explore-button--accent {
  background: rgba(45, 156, 240, 0.2);
  border-color: rgba(45, 156, 240, 0.5);
  color: #fff;
}

.explore-button--accent:hover {
  background: rgba(45, 156, 240, 0.32);
}

.explore-hero__visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.explore-hero__media {
  position: relative;
  border-radius: var(--radius-md);
  padding-top: 64%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.explore-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,11,0.1), rgba(5,7,11,0.55));
}

.explore-hero__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.explore-hero__stats li {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15, 18, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
}

.explore-hero__stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.explore-hero__stat-label {
  font-size: 0.82rem;
  color: rgba(204, 208, 220, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.explore-categories {
  display: grid;
  gap: 20px;
}

.explore-section-heading {
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.explore-section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 0.6vw + 1.2rem, 1.8rem);
}

.explore-section-heading p {
  margin: 0;
  color: rgba(204, 208, 220, 0.78);
  line-height: 1.6;
}

.explore-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.explore-chip {
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 27, 0.7);
  color: rgba(232, 236, 248, 0.86);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.explore-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.explore-chip--active {
  background: linear-gradient(135deg, rgba(237, 45, 52, 0.34), rgba(45, 156, 240, 0.28));
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 16px 36px rgba(237, 45, 52, 0.2);
}

.explore-chip--primary { border-color: rgba(45, 156, 240, 0.45); }
.explore-chip--accent { border-color: rgba(237, 45, 52, 0.45); }
.explore-chip--neutral { border-color: rgba(152, 160, 181, 0.4); }
.explore-chip--muted { border-color: rgba(214, 184, 255, 0.35); }
.explore-chip--warning { border-color: rgba(255, 184, 76, 0.45); }
.explore-chip--pro { border-color: rgba(120, 255, 214, 0.4); }

.explore-feed {
  display: grid;
  gap: 24px;
}

.explore-feed__header {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.explore-feed__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 0.6vw + 1.2rem, 1.9rem);
}

.explore-feed__header p {
  margin: 0;
  color: rgba(204, 208, 220, 0.78);
  line-height: 1.6;
}

.explore-feed__layout {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
}

.explore-feed__primary {
  display: grid;
  gap: 18px;
  align-content: start;
}

.explore-feed__grid {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.explore-card {
  display: grid;
  gap: 16px;
  background: rgba(15, 18, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.explore-card__media {
  position: relative;
  display: block;
  padding-top: 120%;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.explore-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 11, 0.7));
}

.explore-card__body {
  display: grid;
  gap: 12px;
  padding: 0 20px 22px;
}

.explore-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 224, 236, 0.82);
}

.explore-card__body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.explore-card__body p {
  margin: 0;
  color: rgba(204, 208, 220, 0.82);
  line-height: 1.6;
  font-size: 0.94rem;
}

.explore-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.explore-card__tags li {
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(45, 156, 240, 0.16);
  border: 1px solid rgba(45, 156, 240, 0.32);
  font-size: 0.78rem;
  color: rgba(210, 230, 255, 0.88);
}

.explore-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(125, 196, 255, 0.9);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.explore-card__cta:hover {
  color: #fff;
}

.explore-feed__primary .explore-loader,
.explore-feed__primary .explore-empty,
.explore-feed__primary .explore-end {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 18, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(204, 208, 220, 0.78);
}

.explore-feed__primary .explore-empty i {
  font-size: 1.6rem;
  color: rgba(237, 45, 52, 0.6);
}

.explore-feed__primary .explore-loader {
  grid-template-columns: auto;
}

.explore-feed__primary .explore-loader .spinner {
  width: 26px;
  height: 26px;
  border-width: 3px;
}

.explore-feed__primary .explore-sentinel {
  width: 100%;
  height: 1px;
}

.explore-sidebar {
  display: grid;
  gap: 18px;
}

.explore-widget {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 18, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 16px;
}

.explore-widget h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.explore-widget__card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.explore-widget__card h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #fff;
}

.explore-widget__card p {
  margin: 0;
  color: rgba(204, 208, 220, 0.82);
  line-height: 1.6;
  font-size: 0.9rem;
}

.explore-widget__card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(204, 208, 220, 0.78);
  font-size: 0.9rem;
  line-height: 1.6;
}

.explore-widget--cta {
  text-align: center;
  background: linear-gradient(145deg, rgba(45, 156, 240, 0.2), rgba(237, 45, 52, 0.2));
}

.explore-widget--cta p {
  margin: 0;
  color: rgba(232, 236, 248, 0.9);
  line-height: 1.6;
}

.explore-learning {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.explore-learning li {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
}

.explore-learning__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.explore-learning__duration {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(237, 45, 52, 0.2);
  border: 1px solid rgba(237, 45, 52, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.explore-learning__meta h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #fff;
}

.explore-learning p {
  margin: 0;
  color: rgba(204, 208, 220, 0.78);
  line-height: 1.6;
  font-size: 0.88rem;
}

.explore-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 12, 18, 0.92);
  padding: 24px clamp(20px, 4vw, 48px);
}

.explore-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: rgba(204, 208, 220, 0.72);
  font-size: 0.88rem;
}

.explore-footer__inner nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.explore-footer__inner a {
  color: inherit;
}

.explore-footer__inner a:hover {
  color: #fff;
}

@media (max-width: 1200px) {
  .explore-feed__layout {
    grid-template-columns: 1fr;
  }

  .explore-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 960px) {
  .explore-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .explore-topbar__branding {
    justify-content: space-between;
  }

  .explore-search input {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .explore-main {
    padding: 24px 16px 32px;
    gap: 28px;
  }

  .explore-hero {
    padding: 20px 18px 24px;
  }

  .explore-hero__media {
    padding-top: 56%;
  }

  .explore-feed__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .explore-tabs {
    gap: 6px;
  }

  .explore-tab {
    padding: 8px 14px;
  }

  .explore-topbar__cta {
    width: 100%;
    justify-content: center;
  }

  .explore-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}
