:root {
  /* Design Tokens Byosphere Harmonisation */
  --bg-page: var(--charcoal, #0a0a0a);
  --bg-container: rgba(22, 22, 22, 0.75);
  --bg-card: rgba(26, 26, 26, 0.9);
  --bg-surface: rgba(255, 255, 255, 0.04);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --text-light: #71717a;
  
  --electric-blue: #1997f0;
  --violet: #ad2bee;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  
  --radius-container: 32px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  
  --shadow-container: 0 20px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--glass-border);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border);
  --shadow-card-hover: 0 16px 40px -8px rgba(25, 151, 240, 0.25), 0 0 0 1.5px rgba(25, 151, 240, 0.5);

  /* Badges & Thèmes de Catégories adaptés au mode sombre */
  --cat-vibecoding-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(173, 43, 238, 0.08) 100%);
  --cat-vibecoding-border: rgba(173, 43, 238, 0.4);
  --cat-vibecoding-badge: #c084fc;
  --cat-vibecoding-text: #e9d5ff;

  --cat-agents-bg: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(25, 151, 240, 0.08) 100%);
  --cat-agents-border: rgba(25, 151, 240, 0.4);
  --cat-agents-badge: #38bdf8;
  --cat-agents-text: #bae6fd;

  --cat-infra-bg: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  --cat-infra-border: rgba(245, 158, 11, 0.4);
  --cat-infra-badge: #fbbf24;
  --cat-infra-text: #fef3c7;

  --cat-samourai-bg: linear-gradient(135deg, rgba(225, 29, 72, 0.18) 0%, rgba(159, 18, 57, 0.08) 100%);
  --cat-samourai-border: rgba(244, 63, 94, 0.45);
  --cat-samourai-badge: #fb7185;
  --cat-samourai-text: #ffe4e6;

  --cat-enterprise-bg: linear-gradient(135deg, rgba(22, 163, 74, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  --cat-enterprise-border: rgba(52, 211, 153, 0.4);
  --cat-enterprise-badge: #4ade80;
  --cat-enterprise-text: #dcfce7;

  --font-serif: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Base resets & wrapper */
.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.magazine-container {
  width: 100%;
  max-width: 1360px;
  background: var(--bg-container);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-container);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Barre de métriques supérieure */
.top-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-trend {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.metric-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.top-actions {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  width: 280px;
  transition: all 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--electric-blue);
  box-shadow: 0 0 16px rgba(25, 151, 240, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: inherit;
  color: #ffffff;
  width: 100%;
}

.search-box input::placeholder {
  color: #71717a;
}

/* Layout principal du magazine */
.magazine-main-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Dock de navigation vertical */
.left-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 18px 12px;
  border-radius: 22px;
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--glass-border);
}

.dock-btn.active {
  background: var(--electric-blue);
  color: #ffffff;
  border-color: var(--electric-blue);
  box-shadow: 0 4px 18px rgba(25, 151, 240, 0.4);
}

.dock-spacer {
  flex: 1;
  min-height: 40px;
}

/* Zone Centrale */
.central-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Header Éditorial interne */
.magazine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 16px;
}

.brand-area {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--electric-blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.brand-logo .logo-dot {
  -webkit-text-fill-color: #ffffff;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 2px solid var(--glass-border);
  padding-left: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.date-badge strong {
  color: #ffffff !important;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--electric-blue);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(25, 151, 240, 0.35);
}

.refresh-btn:hover {
  transform: translateY(-2px);
  background: #25a0f8;
  box-shadow: 0 0 30px rgba(25, 151, 240, 0.6);
}

.refresh-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease;
}

.refresh-btn:hover svg {
  transform: rotate(180deg);
}

/* Barre de Statut & Filtres */
.hero-status-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.edition-title-group h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.status-and-lang-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 14px;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--electric-blue);
  color: #ffffff;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--electric-blue), var(--violet));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(25, 151, 240, 0.35);
}

.feed-status-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.feed-status-pill span {
  color: #6ee7b7 !important;
}

/* Grille Bento & Cartes Vidéo */
.bento-section {
  padding-bottom: 16px;
}

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

.vibe-card {
  position: relative;
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.vibe-card:hover {
  transform: translateY(-5px);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-card-hover);
}

/* Variantes de catégories en dark mode */
.vibe-card[data-category="Samouraï Special"] {
  background: var(--cat-samourai-bg);
  border: 1.5px solid var(--cat-samourai-border);
}

.vibe-card[data-category="Tech & Dev"] {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(129, 140, 248, 0.35);
}

.vibe-card[data-category="Tech & IA"] {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
}

.vibe-card[data-category="NoCode & IA"] {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.35);
}

.vibe-card[data-category="IA & Actualités"] {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.35);
}

.vibe-card[data-category="Tech & Code"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.35);
}

.vibe-card[data-category="Design & Dev"] {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(244, 114, 182, 0.35);
}

.vibe-card[data-category="Web3 & Crypto"] {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.35);
}

.vibe-card[data-category="Vibecoding"] {
  background: var(--cat-vibecoding-bg);
  border: 1.5px solid var(--cat-vibecoding-border);
}

.vibe-card[data-category="Agentic Workflows"] {
  background: var(--cat-agents-bg);
  border: 1.5px solid var(--cat-agents-border);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vibe-card[data-category="Vibecoding"] .badge-tag {
  color: var(--cat-vibecoding-badge);
  border-color: var(--cat-vibecoding-border);
}

.vibe-card[data-category="Agentic Workflows"] .badge-tag {
  color: var(--cat-agents-badge);
  border-color: var(--cat-agents-border);
}

.vibe-card[data-category="Samouraï Special"] .badge-tag {
  color: var(--cat-samourai-badge);
  border-color: var(--cat-samourai-border);
  background: rgba(225, 29, 72, 0.2);
}

.duration-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.card-media {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vibe-card:hover .thumbnail-img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.75;
  transition: all 0.3s ease;
}

.vibe-card:hover .play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.play-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--violet));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 25px rgba(25, 151, 240, 0.6);
  transition: transform 0.25s ease;
}

.vibe-card:hover .play-icon-btn {
  transform: scale(1.1);
}

.play-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  margin-left: 2px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  max-height: 2.9em;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.creator-details {
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.view-stats {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.action-quick-play {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
}

.action-quick-play:hover {
  background: var(--electric-blue);
  box-shadow: 0 0 12px rgba(25, 151, 240, 0.5);
  border-color: var(--electric-blue);
}

/* Sidebar Recommandations Droite */
.right-recommendations {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
}

.rec-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-card {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.rec-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--electric-blue);
  box-shadow: 0 4px 18px rgba(25, 151, 240, 0.2);
}

.rec-card.samourai-highlight {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(26, 26, 26, 0.9));
  border-color: rgba(244, 63, 94, 0.4);
}

.rec-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--electric-blue);
}

.samourai-tag {
  color: #fb7185;
}

.rec-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.rec-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.social-dock {
  display: flex;
  justify-content: space-around;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: scale(1.1);
  border-color: var(--electric-blue);
  box-shadow: 0 0 12px rgba(25, 151, 240, 0.4);
}

.social-btn.yt {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.social-btn.yt:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Modale Vidéo */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  animation: fadeIn 0.3s forwards ease;
}

.modal-card {
  background: #141414;
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.8), 0 0 40px rgba(25, 151, 240, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #141414;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.modal-analysis-box {
  background: rgba(173, 43, 238, 0.08);
  border-left: 4px solid var(--violet);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.55;
}

.modal-analysis-box p {
  color: #cbd5e1 !important;
}

.modal-takeaways ul {
  color: #cbd5e1 !important;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.yt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.yt-link-btn:hover {
  background: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Pagination */
.editorial-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.editorial-pagination.top {
  margin-top: 0;
  margin-bottom: 20px;
  padding-top: 0;
  padding-bottom: 18px;
  border-top: none;
  border-bottom: 1px solid var(--glass-border);
}

.pagination-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-arrow-btn:hover:not(:disabled) {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(25, 151, 240, 0.4);
}

.pagination-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-num-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num-btn:hover {
  border-color: var(--electric-blue);
  color: #ffffff;
}

.page-num-btn.active {
  background: var(--electric-blue);
  color: #ffffff;
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(25, 151, 240, 0.4);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-notification.hide {
  animation: toastSlideOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateY(24px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(24px) scale(0.95); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  0% { transform: translateY(30px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Media Queries Responsive */
@media (max-width: 1280px) {
  .right-recommendations {
    display: none;
  }
  .left-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%);
    flex-direction: row;
    width: auto;
    max-width: 90vw;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--glass-border);
    z-index: 999;
    gap: 12px;
  }
  .left-dock .dock-spacer {
    display: none;
  }
  .left-dock .dock-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
}

@media (max-width: 1024px) {
  .magazine-container {
    padding: 24px 20px;
    border-radius: 24px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .magazine-container {
    padding: 16px 14px;
    border-radius: 20px;
  }
  .top-metrics-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
  }
  .metric-item {
    display: none;
  }
  .top-actions {
    width: 100%;
  }
  .search-box {
    width: 100%;
  }
  .magazine-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brand-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .brand-logo {
    font-size: 2rem;
  }
  .brand-tagline {
    border-left: none;
    padding-left: 0;
    font-size: 0.78rem;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    max-width: 100%;
  }
  .modal-body {
    padding: 18px;
  }
}
