/* VETA - CSS Design System */

:root {
  /* Dark Theme Variables (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #121826;
  --bg-tertiary: #192235;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-purple: #7f5af0;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(18, 24, 38, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(0, 242, 254, 0.03);
  
  --shadow-main: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.15);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

/* Light Theme Variables overrides */
body.light-theme {
  --bg-primary: #f3f4f6;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f9fafb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --accent-primary: #0ea5e9;
  --accent-secondary: #2563eb;
  --accent-purple: #4f46e5;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.06);
  --glass-highlight: rgba(14, 165, 233, 0.02);
  
  --shadow-main: 0 10px 40px -10px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.08);
}

/* General Resets & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Animated Background Shapes */
.bg-gradient-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: float 20s infinite alternate ease-in-out;
}

body.light-theme .shape {
  mix-blend-mode: multiply;
  opacity: 0.12;
  filter: blur(100px);
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -150px;
  right: -50px;
  animation-duration: 25s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: 40%;
  left: -100px;
  animation-duration: 30s;
  animation-delay: -5s;
}

.shape-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-secondary);
  bottom: -100px;
  right: 15%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* Glassmorphism Styles */
.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  transition: var(--transition-smooth);
}

.glass-container:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--glass-highlight);
}

body.light-theme .glass-container:hover {
  border-color: rgba(15, 23, 42, 0.12);
}

/* Header & Nav */
header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto 0;
  max-width: calc(100% - 32px);
  width: 1200px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0b0f19;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--accent-primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-smooth);
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

body.light-theme .nav-link:hover, body.light-theme .nav-link.active {
  background: rgba(15, 23, 42, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0b0f19;
  box-shadow: 0 4px 15px -3px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

body.light-theme .btn-icon:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* Theme Toggle icons behavior */
.sun-icon { display: none; }
.moon-icon { display: block; }

body.light-theme .sun-icon { display: block; }
body.light-theme .moon-icon { display: none; }

/* Hero Section */
.hero {
  padding: 80px 0 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* Dashboard Layout */
.dashboard-wrapper {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* Tabs Control */
.tabs-control {
  display: flex;
  padding: 6px;
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Glow Border effect on active KPI */
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.kpi-card:hover::after {
  opacity: 1;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kpi-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-trend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.kpi-trend.trend-up {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.kpi-trend.trend-down {
  background: rgba(239, 68, 68, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.kpi-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.kpi-footer {
  color: var(--text-muted);
  font-size: 12px;
}

/* Shimmer Loading Skeleton */
.kpi-card.loading .kpi-label,
.kpi-card.loading .kpi-value,
.kpi-card.loading .kpi-footer {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Analytics Row (Chart + Context) */
.analytics-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .analytics-row {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-primary {
  background: var(--accent-primary);
}

.legend-secondary {
  background: var(--accent-purple);
}

.chart-body {
  flex-grow: 1;
  min-height: 250px;
  position: relative;
}

/* SVG Chart styling */
svg text {
  fill: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
}

.chart-bar {
  fill: url(#barGradient);
  rx: 4;
  transition: height 0.6s ease, y 0.6s ease, opacity 0.3s;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-line {
  stroke: var(--accent-purple);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.6s ease;
}

.chart-dot {
  fill: var(--bg-secondary);
  stroke: var(--accent-purple);
  stroke-width: 3;
  r: 5;
  transition: cx 0.6s ease, cy 0.6s ease;
}

/* Editorial Context Block */
.editorial-context {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.context-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(127, 90, 240, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border-color);
}

.author-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

.editorial-context h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.context-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.context-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

/* Podcast Section */
.podcast-wrapper {
  margin-bottom: 80px;
}

.podcast-inner {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .podcast-inner {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 32px;
  }
}

.badge-accent {
  background: rgba(127, 90, 240, 0.08);
  border: 1px solid rgba(127, 90, 240, 0.2);
  color: var(--accent-purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 16px;
}

.podcast-info h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 16px;
}

.podcast-info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.podcast-platforms {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.platform {
  background: var(--bg-tertiary);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Audio Player */
.podcast-player-card {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
  .podcast-player-card {
    flex-direction: column;
    text-align: center;
  }
}

.player-cover {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-secondary));
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #0b0f19;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid var(--accent-purple);
  animation: pulse 2s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}

.player-controls {
  flex-grow: 1;
  width: 100%;
}

.player-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.player-date {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 12px;
}

.progress-bar-container {
  background: var(--border-color);
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 6px;
  position: relative;
}

.progress-bar {
  background: var(--accent-primary);
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.control-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.play-btn {
  background: var(--text-main);
  color: var(--bg-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.play-btn:hover {
  background: var(--accent-primary);
  color: #0b0f19;
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* Articles Feed Section */
.articles-wrapper {
  margin-bottom: 80px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.article-tag {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Newsletter Section */
.newsletter-wrapper {
  margin-bottom: 80px;
}

.newsletter-card {
  padding: 56px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.newsletter-card h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 16px;
}

.newsletter-text {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Subscription Form with loaders */
.subscribe-form {
  max-width: 500px;
  margin: 0 auto 16px;
}

.form-group {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px;
  transition: var(--transition-smooth);
}

.form-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.subscribe-form input[type="email"] {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  flex-grow: 1;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  position: relative;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  color: #0b0f19;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-feedback {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-green);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.privacy-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* Footer styling */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-main);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Admin Curation Panel Styles */
.admin-wrapper {
  margin-top: 40px;
  margin-bottom: 80px;
  animation: fadeIn 0.4s ease;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.drafts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.draft-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 4px solid var(--accent-purple);
  position: relative;
}

.draft-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.draft-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.draft-source-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
}

.draft-source-link:hover {
  text-decoration: underline;
}

.draft-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft-field-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* Form Controls for Editor */
.draft-card input[type="text"],
.draft-card textarea,
.draft-card select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: var(--transition-smooth);
}

.draft-card input[type="text"]:focus,
.draft-card textarea:focus,
.draft-card select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(127, 90, 240, 0.15);
}

.draft-card textarea {
  resize: vertical;
  min-height: 80px;
}

.draft-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .draft-grid-fields {
    grid-template-columns: 1fr;
  }
}

.draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 10px;
}

.btn-danger {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--accent-red);
}

.no-drafts {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}

/* Modal Overlay Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  max-width: 500px;
  width: calc(100% - 32px);
  padding: 32px;
  text-align: center;
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.simulation-log {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line.success {
  color: var(--accent-green);
}

/* Floating Chart Tooltip */
.chart-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.15s ease, transform 0.1s ease;
  transform: translate(-50%, -100%);
  margin-top: -10px;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--glass-bg) transparent;
  display: block;
  width: 0;
}

body.light-theme .chart-tooltip {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Royalty Simulator styles */
.simulator-card {
  margin-top: 40px;
  padding: 32px;
  border-top: 4px solid var(--accent-primary);
  animation: fadeIn 0.4s ease;
}

.simulator-header {
  margin-bottom: 24px;
}

.simulator-header h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 4px;
}

.simulator-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .simulator-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label-row label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}

.slider-label-row span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-primary);
  background: rgba(0, 242, 254, 0.08);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.15);
}

body.light-theme .slider-label-row span {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.15);
}

/* Custom range inputs */
.simulator-controls input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.simulator-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
  transition: transform 0.1s ease;
}

.simulator-controls input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.simulator-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 480px) {
  .simulator-results {
    grid-template-columns: 1fr;
  }
}

.result-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-smooth);
}

.result-box.glow-purple {
  border-color: rgba(127, 90, 240, 0.3);
  box-shadow: 0 0 15px rgba(127, 90, 240, 0.08);
}

.result-box.glow-purple:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(127, 90, 240, 0.15);
}

.result-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.result-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
}

.result-box.glow-purple .result-value {
  color: var(--accent-purple);
}

body.light-theme .result-box.glow-purple .result-value {
  color: var(--accent-purple);
}

.result-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Manual CMS Form styles */
.manual-draft-form {
  padding: 32px;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-primary);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.manual-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* Article Share Actions in feed */
.article-card {
  position: relative;
}

.article-share-bar {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 12px;
}

.share-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.share-link:hover {
  color: #0b0f19;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.share-link.share-linkedin:hover {
  color: #ffffff;
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 0 10px rgba(0, 119, 181, 0.3);
}

.share-icon {
  flex-shrink: 0;
}

/* --- ESTILOS DE CURACIÓN A REDES SOCIALES VETA --- */
.draft-grid-fields.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .draft-grid-fields.three-cols {
    grid-template-columns: 1fr;
  }
}

.draft-social-select {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  align-items: center;
}

body.light-theme .draft-social-select {
  background: rgba(15, 23, 42, 0.02);
}

.draft-social-select-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 8px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  user-select: none;
  transition: var(--transition-smooth);
}

.checkbox-container:hover {
  opacity: 0.85;
}

.checkbox-container input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.log-line {
  margin-bottom: 8px;
  font-size: 13px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  border-left: 3px solid var(--text-muted);
}

.log-line.info {
  border-left-color: var(--accent-secondary);
  color: var(--text-muted);
}

.log-line.success {
  border-left-color: var(--accent-green);
  color: var(--text-main);
  background: rgba(16, 185, 129, 0.03);
}

.log-line.error {
  border-left-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.03);
}

.log-line .spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  border-left-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

/* ==========================================
   ESTILOS RESPONSIVOS Y OPTIMIZACIÓN MÓVIL
   ========================================== */

/* Botón de Menú Móvil (Hamburguesa) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  z-index: 101;
  transition: var(--transition-smooth);
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Animación a cruz cuando el menú está abierto */
.mobile-menu-btn.mobile-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-btn.mobile-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.mobile-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

body.light-theme .mobile-menu-btn {
  background: rgba(15, 23, 42, 0.05);
}

/* Media Query General (Móviles y Tablets < 768px) */
@media (max-width: 768px) {
  header {
    top: 8px;
    margin: 8px auto 0;
    max-width: calc(100% - 16px);
  }

  .header-content {
    height: 60px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-badge {
    font-size: 8px;
    padding: 1px 4px;
  }

  /* Ocultar botón "Suscribirse" en la cabecera en móviles */
  #cta-subscribe-header {
    display: none !important;
  }

  /* Mostrar botón de hamburguesa */
  .mobile-menu-btn {
    display: flex;
  }

  /* Menú de navegación desplegable glassmorphism */
  #nav-menu {
    position: fixed;
    top: 76px;
    left: 8px;
    right: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px 16px;
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 99;
    box-shadow: var(--shadow-main);
  }

  #nav-menu.mobile-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    width: 100%;
  }

  /* Hero Section */
  .hero {
    padding: 48px 16px 24px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.8px;
  }

  .hero-sub {
    font-size: 14px;
    margin-top: 12px;
  }

  /* Category Selector (Monitor) - Habilitar Scroll Horizontal Táctil */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tabs-control {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    gap: 6px;
  }

  .tabs-control::-webkit-scrollbar {
    display: none; /* Oculta scrollbar */
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
    display: inline-block;
  }

  /* KPI Grid */
  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }

  .kpi-card {
    padding: 20px;
  }

  /* Podcast Player */
  .podcast-inner {
    padding: 24px 16px;
    gap: 24px;
  }

  .podcast-info h2 {
    font-size: 26px;
  }

  /* Newsletter */
  .newsletter-card {
    padding: 36px 20px;
  }

  .newsletter-card h2 {
    font-size: 26px;
  }

  .newsletter-text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  /* Admin Curation Form */
  .manual-draft-form, .draft-card {
    padding: 20px 16px;
  }
}

/* Media Query para teléfonos pequeños (< 480px) */
@media (max-width: 480px) {
  /* Suscribirse Form apilado */
  .subscribe-form .form-group {
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
    gap: 10px;
    width: 100%;
  }

  .subscribe-form input[type="email"] {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    padding: 12px 16px;
  }

  .subscribe-form input[type="email"]:focus {
    border-color: var(--accent-primary);
  }

  .btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
  }

  /* Reducir aún más títulos de secciones */
  .section-title {
    font-size: 22px;
  }

  /* Podcast Player horizontal */
  .podcast-player-card {
    padding: 16px;
  }

  .player-cover {
    width: 80px;
    height: 80px;
  }

  .player-title {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.3;
  }

  /* Admin Actions */
  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-actions-group {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions-group button {
    width: 100%;
  }

  .draft-actions {
    flex-direction: column;
    gap: 10px;
  }

  .draft-actions button {
    width: 100%;
  }
}


