/**
 * YouCTA — High-End Modern SaaS Stylesheet
 * Inspirado en la estética Adlytics & Finexy: Glassmorphism, Matte Charcoal, Crimson Glow & Proportional Balance
 */

/* ========================================================================= */
/* DESIGN TOKENS & PALETTES                                                  */
/* ========================================================================= */

:root {
  --accent-red: #FF0033;
  --accent-red-hover: #FF1A4B;
  --accent-red-grad: linear-gradient(135deg, #FF0033 0%, #D80027 100%);
  --accent-red-glow: 0 4px 18px rgba(255, 0, 51, 0.4);
  --accent-red-dim: rgba(255, 0, 51, 0.12);

  --color-green: #10B981;
  --color-green-dim: rgba(16, 185, 129, 0.12);
  --color-amber: #F59E0B;
  --color-amber-dim: rgba(245, 158, 11, 0.12);
  --color-blue: #3B82F6;
  --color-blue-dim: rgba(59, 130, 246, 0.12);
  --color-purple: #8B5CF6;
  --color-purple-grad: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  --color-purple-dim: rgba(139, 92, 246, 0.12);
  --color-rose: #EF4444;
  --color-rose-dim: rgba(239, 68, 68, 0.12);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --control-height: 42px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Oscuro (Matte Charcoal & Subtle Glass) */
body.dark-theme {
  --bg-app: #0F0F13;
  --bg-header: rgba(18, 18, 24, 0.88);
  --bg-card: rgba(24, 24, 32, 0.78);
  --bg-card-solid: #181820;
  --bg-card-alt: rgba(32, 32, 42, 0.65);
  --bg-input: #14141B;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --link-color: #3EA6FF;
  --link-hover: #70BAFF;
  
  --shadow-card: 0 10px 36px rgba(0, 0, 0, 0.4);
  --ambient-glow-color: radial-gradient(circle at 50% -10%, rgba(255, 0, 51, 0.16), transparent 60%);
}

/* Modo Claro (Finexy / Pristine Soft Light) */
body.light-theme {
  --bg-app: #F4F5F8;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-solid: #FFFFFF;
  --bg-card-alt: #F8FAFC;
  --bg-input: #F8FAFC;
  --bg-hover: #EDF2F7;
  --border-subtle: #E2E8F0;
  --border-hover: #CBD5E1;
  
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --link-color: #065FD4;
  --link-hover: #0448A0;
  
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.06);
  --ambient-glow-color: radial-gradient(circle at 50% -10%, rgba(255, 0, 51, 0.07), transparent 60%);
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

body {
  background-color: var(--bg-app);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow & Aurora Mesh */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background: var(--ambient-glow-color);
  pointer-events: none;
  z-index: 0;
}

.ambient-aurora-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: auroraFloat 20s ease-in-out infinite alternate;
  will-change: transform;
}

.orb-1 {
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, #FF0033 0%, rgba(255, 0, 51, 0) 70%);
  top: -120px;
  left: 20%;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #8B5CF6 0%, rgba(139, 92, 246, 0) 70%);
  top: 120px;
  right: 12%;
  animation-duration: 25s;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3B82F6 0%, rgba(59, 130, 246, 0) 70%);
  top: 450px;
  left: 8%;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 45px) scale(1.1); }
  100% { transform: translate(-45px, 80px) scale(0.92); }
}

.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 85%);
}

body.light-theme .bg-grid-pattern {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* ========================================================================= */
/* HEADER (GLASSMORPHIC & BALANCED)                                          */
/* ========================================================================= */

.app-header {
  background-color: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: border-color 0.25s ease;
}

.header-inner {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex-shrink: 0;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Vector SVG Master Logo with Direct Crimson Drop Shadow (No square frame) */
.app-logo-svg {
  width: 42px;
  height: 29px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(255, 0, 51, 0.45));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.app-logo-svg:hover {
  transform: translateY(-1.5px) scale(1.05);
  filter: drop-shadow(0 5px 18px rgba(255, 0, 51, 0.75));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.brand-badge-pro {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 0, 51, 0.2);
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.15);
  animation: badgeGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes badgeGlowPulse {
  0% { box-shadow: 0 0 6px rgba(255, 0, 51, 0.15); }
  100% { box-shadow: 0 0 14px rgba(255, 0, 51, 0.4); }
}

/* Nav Tabs (Adlytics & Finexy Pill Style with Gliding Indicator) */
.nav-tabs {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card-alt);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 2px;
  height: 40px;
  box-sizing: border-box;
}

.nav-indicator-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 76px;
  background: var(--accent-red-grad);
  border-radius: var(--radius-pill);
  box-shadow: var(--accent-red-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.nav-tab {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  user-select: none;
  box-shadow: none !important;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  transform: translateY(-0.5px);
}

.nav-tab.active {
  color: #FFFFFF !important;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

/* Language Switcher Pill in Header */
.btn-header-lang-pill {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  height: 40px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-header-lang-pill:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Theme Switcher Button with SVG Icons (Sun & Moon) */
.theme-toggle-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.theme-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

/* Dark mode shows Sun (to switch to light) */
body.dark-theme .theme-svg-icon.sun-icon {
  display: block;
}
body.dark-theme .theme-svg-icon.moon-icon {
  display: none;
}

/* Light mode shows Moon (to switch to dark) */
body.light-theme .theme-svg-icon.sun-icon {
  display: none;
}
body.light-theme .theme-svg-icon.moon-icon {
  display: block;
}

.creator-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-alt);
  padding: 0 10px 0 6px;
  height: 40px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  max-width: 200px;
  flex-shrink: 0;
}

.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.creator-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.creator-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-email {
  font-size: 10px;
  color: var(--text-muted);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-header-cta {
  position: relative;
  background: var(--accent-red-grad);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 15px;
  height: 40px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--accent-red-glow);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.btn-header-cta:hover {
  opacity: 0.96;
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 24px rgba(255, 0, 51, 0.55);
}

.btn-header-cta:active {
  transform: scale(0.97);
}

.btn-header-cta::after, .btn-execute-glow::after, .btn-purple-glow::after, .featured-ribbon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shimmerSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -80%; opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { left: 150%; opacity: 0; }
  100% { left: 150%; opacity: 0; }
}

.btn-header-cta-sparkle {
  font-size: 13px;
  display: inline-block;
  animation: sparkleTwinkle 2.5s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.3) rotate(20deg); opacity: 1; filter: drop-shadow(0 0 4px #FFF); }
  100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
}

.brand-badge-free {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* ========================================================================= */
/* MAIN APP WORKSPACE (PROPORTIONATE, AIRY & CENTERED)                        */
/* ========================================================================= */

.app-main {
  flex: 1;
  padding: 28px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabSmoothFade 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Glass Card Base with Dynamic Spotlight Illumination */
.glass-card {
  position: relative;
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible; /* Changed from hidden to allow dropdowns to escape */
}

/* Interactive Cursor Spotlight Glow on Cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit; /* Replaces need for parent overflow: hidden */
  background: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.055),
    transparent 45%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: var(--border-hover);
}

/* 3D Tilt Card Elevation */
[data-tilt] {
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================================================================= */
/* TAB 1: VIDEOS TABLE WORKSPACE (SPACIOUS & AIRY)                           */
/* ========================================================================= */

.videos-full-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toolbar-card {
  padding: 20px 24px;
  position: relative;
  z-index: 50;
}

.toolbar-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

@media (max-width: 1100px) {
  .toolbar-top-row {
    flex-wrap: wrap;
  }
}

/* 42px Format Filter Pills */
.pill-group {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  height: var(--control-height);
  align-items: center;
  flex-shrink: 0;
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  height: calc(var(--control-height) - 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* 42px Search Box with Flexible Full-Width Expansion */
.search-box {
  flex: 1 1 200px;
  min-width: 150px;
  position: relative;
  height: var(--control-height);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--text-dim);
}

.search-box input {
  width: 100%;
  height: var(--control-height);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 38px;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-dim);
}

.select-wrapper {
  height: var(--control-height);
  position: relative;
}

.select-wrapper.is-open,
.select-wrapper:has(.is-open) {
  z-index: 1000;
}

.select-wrapper-playlist {
  flex: 0 1 240px;
  min-width: 150px;
  max-width: 300px;
}

.select-wrapper-vis {
  flex: 0 0 180px;
  min-width: 160px;
}

.select-wrapper-sort {
  flex: 0 0 160px;
  min-width: 140px;
}

.select-wrapper-status {
  flex: 0 1 260px;
  min-width: 245px;
  max-width: 320px;
}

/* 42px Custom Selects */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: var(--control-height);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 34px 0 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px 13px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.custom-select:hover {
  border-color: var(--border-hover);
}

.custom-select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-dim);
}

.custom-select option {
  background-color: #14141B;
  color: #FFFFFF;
  padding: 8px 12px;
}

body.light-theme .custom-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.light-theme .custom-select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

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

.selection-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.selection-counter {
  font-size: 12.5px;
  color: var(--text-muted);
}

.selection-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Custom Checkbox */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-dim);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.custom-checkbox input:checked + .checkbox-box {
  background: var(--accent-red-grad);
  border-color: var(--accent-red);
}

.custom-checkbox input:checked + .checkbox-box::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.custom-checkbox input:indeterminate + .checkbox-box {
  background: var(--accent-red-grad);
  border-color: var(--accent-red);
}

.custom-checkbox input:indeterminate + .checkbox-box::after {
  content: '—';
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.checkbox-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Action Buttons (Unified Pill Style Matching YouTube) */
.btn-subtle {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0 18px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.btn-subtle:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-svg-icon {
  width: 15px;
  height: 15px;
}

.btn-cta-primary {
  background: var(--accent-red-grad);
  color: #FFFFFF;
  border: 1px solid transparent;
  padding: 0 22px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--accent-red-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-cta-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-red);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Demo Mode Notification Banner */
.demo-mode-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.demo-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
}

.demo-banner-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #FF6B6B;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.btn-demo-banner-connect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4285F4 0%, #1A73E8 100%);
  color: #FFFFFF;
  border: none;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
  transition: all var(--transition-fast);
}

.btn-demo-banner-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.5);
}

/* Cluster Active Filter Banner */
.cluster-active-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cluster-active-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.cluster-filter-icon {
  width: 18px;
  height: 18px;
  color: #A78BFA;
  flex-shrink: 0;
}

.btn-clear-cluster-filter {
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-clear-cluster-filter:hover {
  background: var(--color-amber-dim);
  color: var(--color-amber);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Table with Generous Breathing Room */
.table-container {
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.videos-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.videos-table th {
  background-color: var(--bg-card-alt);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.videos-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.video-row {
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.video-row:hover {
  background-color: var(--bg-hover);
}

.video-row:hover .action-icon-btn.btn-action-pin:not(.has-pin):not(:disabled) {
  border-color: rgba(255, 0, 51, 0.4);
  color: var(--accent-red);
  background-color: rgba(255, 0, 51, 0.09);
  transform: translateY(-1px);
}

.video-row:hover .action-icon-btn.btn-action-schedule:not(.is-scheduled):not(:disabled) {
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
  background-color: rgba(168, 85, 247, 0.09);
  transform: translateY(-1px);
}

.video-row.selected {
  background-color: var(--accent-red-dim);
}

.video-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.thumb-wrap {
  position: relative;
  width: 88px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 520px;
}

.video-title-link {
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-subinfo {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Badges (Unified 100% Pill Style) */
.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.type-badge::after {
  content: "⇄";
  font-size: 10px;
  opacity: 0;
  margin-left: -3px;
  width: 0;
  display: inline-block;
  overflow: hidden;
  transition: opacity 0.15s ease, margin 0.15s ease, width 0.15s ease;
  vertical-align: middle;
}

.type-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.18);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.type-badge:hover::after {
  opacity: 0.85;
  margin-left: 4px;
  width: auto;
}

.type-badge.short {
  background-color: var(--color-rose-dim);
  color: var(--color-rose);
}

.type-badge.live {
  background-color: var(--accent-red-dim);
  color: var(--accent-red);
}

/* Column Specific Alignments & Sizing */
.th-check, .td-check {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
  padding: 14px 8px 14px 16px;
}

.th-video, .td-video {
  text-align: left;
}

.th-status, .td-status {
  text-align: center;
  width: 145px;
  min-width: 135px;
  white-space: nowrap;
}

.th-views, .td-views {
  text-align: center;
  width: 90px;
  min-width: 80px;
  white-space: nowrap;
}

.th-type, .td-type {
  text-align: center;
  width: 90px;
  min-width: 85px;
  white-space: nowrap;
}

.th-vis, .td-vis {
  text-align: center;
  width: 115px;
  min-width: 105px;
  white-space: nowrap;
}

.th-date, .td-date {
  text-align: center;
  width: 110px;
  min-width: 100px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}

.date-text {
  display: inline-block;
  transition: all var(--transition-fast);
}

.date-text.is-recent {
  color: #38bdf8;
  font-weight: 600;
  background-color: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
  font-size: 11px;
}

[data-theme="light"] .date-text.is-recent {
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}

.th-actions, .td-actions {
  text-align: center;
  width: 145px;
  min-width: 135px;
  white-space: nowrap;
}

.vis-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  letter-spacing: 0.2px;
}

.vis-badge.public {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.vis-badge.unlisted {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.vis-badge.private {
  background-color: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Clean Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-pinned {
  background-color: var(--color-green-dim);
  color: var(--color-green);
}
.status-pinned .dot {
  background-color: var(--color-green);
}

.status-posted {
  background-color: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.status-posted .dot {
  background-color: #38bdf8;
}

[data-theme="light"] .status-posted {
  background-color: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}
[data-theme="light"] .status-posted .dot {
  background-color: #0284c7;
}

.status-unpinned {
  background-color: var(--color-amber-dim);
  color: var(--color-amber);
}
.status-unpinned .dot {
  background-color: var(--color-amber);
}

.status-missing {
  background-color: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}
.status-missing .dot {
  background-color: var(--text-dim);
}

.status-disabled {
  background-color: var(--color-rose-dim);
  color: var(--color-rose);
}
.status-disabled .dot {
  background-color: var(--color-rose);
}

/* Badge Dash compacto para videos sin comentarios posibles (ej. Privados) */
.badge-dash {
  display: inline-block;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 2px 8px;
  line-height: 1;
  user-select: none;
  opacity: 0.55;
  cursor: help;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.badge-dash:hover {
  opacity: 0.9;
  color: var(--text-muted);
}

.status-checking {
  background-color: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}
.status-checking .dot {
  background-color: #6366f1;
  animation: pulseChecking 1.4s ease-in-out infinite;
}

body.light-theme .status-checking {
  background-color: rgba(79, 70, 229, 0.10);
  color: #4f46e5;
}
body.light-theme .status-checking .dot {
  background-color: #4f46e5;
}

@keyframes pulseChecking {
  0% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.row-actions-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.action-icon-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.action-icon-btn:hover {
  transform: translateY(-1px);
}

.action-icon-btn.btn-action-pin:hover {
  background-color: var(--accent-red-dim);
  border-color: rgba(255, 0, 51, 0.4);
  color: var(--accent-red);
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.25);
}

.action-icon-btn.btn-action-pin.has-pin {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
  background-color: rgba(56, 189, 248, 0.08);
}

.action-icon-btn.btn-action-pin.has-pin:hover {
  background-color: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.action-icon-btn.btn-action-view:hover {
  background-color: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.action-icon-btn.btn-action-studio:hover {
  background-color: rgba(255, 68, 68, 0.12);
  border-color: rgba(255, 68, 68, 0.4);
  color: #FF4444;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

.action-icon-btn:disabled,
.action-icon-btn.is-disabled {
  opacity: 0.22 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  border-color: var(--border-subtle) !important;
  background-color: var(--bg-input) !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
  transform: none !important;
}

.action-icon-btn:disabled:hover,
.action-icon-btn.is-disabled:hover {
  background-color: var(--bg-input) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ========================================================================= */
/* EMPTY STATE & LOADING SKELETON STATES FOR VIDEOS TABLE                    */
/* ========================================================================= */

.empty-state-cell {
  padding: 56px 24px !important;
  text-align: center;
  border-bottom: none !important;
}

.table-loading-cell {
  padding: 42px 24px 32px 24px !important;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle) !important;
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.04) 0%, transparent 100%);
}

.table-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.table-loading-pin-box {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.12);
  border: 1.5px solid rgba(255, 0, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(255, 0, 51, 0.22);
}

.table-loading-pin-svg {
  width: 28px;
  height: 28px;
  color: var(--accent-red);
  filter: drop-shadow(0 2px 8px rgba(255, 0, 51, 0.5));
  animation: pinPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.table-loading-pin-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 51, 0.4);
  animation: pinRingPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  z-index: 1;
}

@keyframes pinRingPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.table-loading-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.table-loading-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 460px;
}

.table-loading-progress-track {
  width: 100%;
  max-width: 320px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin-bottom: 6px;
}

body.light-theme .table-loading-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.table-loading-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  background: var(--accent-red-grad);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.6);
  animation: loadingBarSweep 1.6s ease-in-out infinite alternate;
}

@keyframes loadingBarSweep {
  0% { left: 0%; width: 25%; }
  50% { width: 55%; }
  100% { left: 75%; width: 25%; }
}

/* Skeleton Rows in Table */
.table-skeleton-row {
  pointer-events: none;
  animation: skeletonShimmer 1.8s ease-in-out infinite alternate;
}

@keyframes skeletonShimmer {
  0% { opacity: 0.35; }
  50% { opacity: 0.75; }
  100% { opacity: 0.35; }
}

.skeleton-box,
.skeleton-thumb,
.skeleton-line,
.skeleton-badge,
.skeleton-circle {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 4px;
}

body.light-theme .skeleton-box,
body.light-theme .skeleton-thumb,
body.light-theme .skeleton-line,
body.light-theme .skeleton-badge,
body.light-theme .skeleton-circle {
  background: rgba(0, 0, 0, 0.08);
}

.skeleton-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin: 0 auto;
}

.skeleton-thumb {
  width: 88px;
  height: 50px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-title-1 {
  width: 85%;
  height: 13px;
  margin-bottom: 6px;
  border-radius: 3px;
}

.skeleton-title-2 {
  width: 48%;
  height: 10px;
  border-radius: 3px;
}

.skeleton-badge {
  width: 62px;
  height: 22px;
  border-radius: var(--radius-pill);
  margin: 0 auto;
}

.skeleton-badge.wide {
  width: 95px;
}

.skeleton-date {
  width: 68px;
  height: 12px;
  margin: 0 auto;
}

.skeleton-views {
  width: 46px;
  height: 12px;
  margin: 0 auto;
}

.skeleton-actions-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.sync-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  margin-right: 6px;
  animation: pulseChecking 1.4s ease-in-out infinite;
  vertical-align: middle;
}

/* Accordion Row */
.accordion-row td {
  background-color: var(--bg-card-alt);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.radiography-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rad-col {
  background-color: var(--bg-input);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.rad-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rad-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.rad-text::-webkit-scrollbar {
  width: 6px;
}

.rad-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.rad-text::-webkit-scrollbar-thumb {
  background: var(--border-medium, rgba(255, 255, 255, 0.15));
  border-radius: 3px;
}

.rad-text::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, rgba(255, 255, 255, 0.3));
}

/* Enlaces de Comentarios y Descripciones con Alto Contraste */
.yt-comment-link,
.rad-text a,
.yt-comment-text a,
.accordion-row a {
  color: #3EA6FF !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  word-break: break-all;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

body.light-theme .yt-comment-link,
body.light-theme .rad-text a,
body.light-theme .yt-comment-text a,
body.light-theme .accordion-row a {
  color: #065FD4 !important;
}

.yt-comment-link:hover,
.rad-text a:hover,
.yt-comment-text a:hover,
.accordion-row a:hover {
  color: #70BAFF !important;
  opacity: 0.95;
}

body.light-theme .yt-comment-link:hover,
body.light-theme .rad-text a:hover,
body.light-theme .yt-comment-text a:hover,
body.light-theme .accordion-row a:hover {
  color: #0448A0 !important;
}

/* Pill interactiva para Enlaces Detectados */
.rad-link-pill {
  color: #3EA6FF !important;
  background: rgba(62, 166, 255, 0.12);
  border: 1px solid rgba(62, 166, 255, 0.28);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-decoration: none !important;
  font-size: 11.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  word-break: break-all;
  display: inline-block;
  margin: 2px 0;
  transition: all var(--transition-fast);
}

.rad-link-pill:hover {
  background: rgba(62, 166, 255, 0.22);
  border-color: rgba(62, 166, 255, 0.5);
  color: #70BAFF !important;
  text-decoration: underline !important;
}

body.light-theme .rad-link-pill {
  color: #065FD4 !important;
  background: rgba(6, 95, 212, 0.08);
  border-color: rgba(6, 95, 212, 0.22);
}

body.light-theme .rad-link-pill:hover {
  background: rgba(6, 95, 212, 0.16);
  border-color: rgba(6, 95, 212, 0.38);
  color: #0448A0 !important;
}

.table-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: var(--bg-card-alt);
  border-top: 1px solid var(--border-subtle);
}

.btn-load-more {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================================= */
/* TAB 2 & 3: WIDE 2-COLUMN WORKSPACE (460px Sidebar + 1fr Editor)           */
/* ========================================================================= */

.dual-workspace-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1120px) {
  .dual-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.side-targets-card {
  max-height: calc(100vh - 120px);
  position: sticky;
  top: 88px;
  padding: 24px;
}

.selected-videos-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.selected-videos-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(480px, calc(100vh - 270px));
  min-height: 120px;
  overflow-y: scroll; /* Force visible scrollbar track on all platforms */
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.05);
}

/* Custom Sleek Scrollbar */
.selected-videos-compact-list::-webkit-scrollbar {
  width: 6px;
}

.selected-videos-compact-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-pill);
}

.selected-videos-compact-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-videos-compact-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

body.light-theme .selected-videos-compact-list {
  scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.05);
}

body.light-theme .selected-videos-compact-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

body.light-theme .selected-videos-compact-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .selected-videos-compact-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.45);
}

.selected-videos-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 12px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(24, 24, 32, 0) 0%, rgba(24, 24, 32, 0.92) 75%, var(--bg-card-solid) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  border-bottom-left-radius: var(--radius-md);
  z-index: 2;
}

body.light-theme .selected-videos-bottom-fade {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 75%, #FFFFFF 100%);
}

.selected-videos-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 4px;
}

.selected-videos-scroll-hint:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

body.light-theme .selected-videos-scroll-hint {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .selected-videos-scroll-hint:hover {
  background: rgba(0, 0, 0, 0.06);
}

.selected-videos-scroll-hint .scroll-hint-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-red);
  animation: bounceHint 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(3px);
  }
  60% {
    transform: translateY(1.5px);
  }
}

.selected-videos-scroll-hint.is-at-bottom {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
  color: var(--color-green);
}

.selected-videos-scroll-hint.is-at-bottom .scroll-hint-icon {
  animation: none;
  color: var(--color-green);
}

.compact-video-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-input);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.compact-video-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-hover);
}

.compact-thumb {
  width: 64px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.compact-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.compact-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compact-remove-btn svg {
  width: 14px;
  height: 14px;
}

.compact-remove-btn:hover {
  color: var(--color-rose);
  background-color: var(--color-rose-dim);
}

.main-editor-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section-card {
  gap: 16px;
  padding: 24px;
}

.btn-outline-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0 18px;
  height: 38px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: var(--bg-hover);
  transform: translateY(-1px);
}

.formatting-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-input);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 10px;
}

.format-btn-group {
  display: flex;
  gap: 4px;
}

.fmt-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.fmt-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

/* Micro-pills for CTA Quick Emojis */
.emoji-picker-row {
  display: flex;
  gap: 4px;
}

.emoji-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.emoji-btn:hover {
  transform: scale(1.15);
  background-color: var(--bg-hover);
}

.custom-select-sm {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 6px 28px 6px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
  transition: border-color var(--transition-fast);
}

.custom-select-sm:hover {
  border-color: var(--border-hover);
}

.custom-select-sm:focus {
  border-color: var(--accent-red);
}

.custom-select-sm option {
  background-color: #14141B;
  color: #FFFFFF;
}

body.light-theme .custom-select-sm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.light-theme .custom-select-sm option {
  background-color: #FFFFFF;
  color: #0F172A;
}

.textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

textarea#commentTextarea,
.custom-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea#commentTextarea:focus,
.custom-textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-dim);
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-count {
  font-size: 11.5px;
  color: var(--text-dim);
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11.5px;
  cursor: pointer;
}

.btn-text-action:hover {
  color: var(--accent-red);
}

.option-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-input);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* iOS Style Toggle Switch */
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-hover);
  border-radius: 20px;
  transition: 0.2s;
  border: 1px solid var(--border-subtle);
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-red-grad);
  border-color: var(--accent-red);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.toggle-text {
  display: flex;
  flex-direction: column;
}

.toggle-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
}

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

/* YouTube Mockup Section */
.mockup-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-header-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.yt-comment-box {
  background-color: #0F0F12;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 14px;
}

.yt-avatar-col {
  flex-shrink: 0;
}

.yt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.yt-content-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.yt-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #AAAAAA;
}

.yt-pin-icon {
  width: 13px;
  height: 13px;
  fill: #AAAAAA;
}

.yt-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-author-name {
  font-size: 12px;
  font-weight: 600;
  color: #F1F1F1;
  background-color: #272727;
  padding: 2px 7px;
  border-radius: 10px;
}

.yt-time-ago {
  font-size: 11.5px;
  color: #AAAAAA;
}

.yt-comment-text {
  font-size: 13px;
  color: #F1F1F1;
  line-height: 1.45;
  margin-top: 4px;
}

.yt-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: #AAAAAA;
}

.yt-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.yt-action-svg {
  width: 15px;
  height: 15px;
  fill: #AAAAAA;
}

.yt-reply-btn {
  font-weight: 600;
  cursor: pointer;
}

.yt-reply-btn:hover {
  color: #FFFFFF;
}

/* Primary Execution Glow Button */
.btn-execute-glow {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--accent-red-grad);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--accent-red-glow);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-execute-glow:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-execute-glow:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-execute-glow.batch-completed-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
  color: #FFFFFF !important;
  opacity: 0.95 !important;
  cursor: default !important;
}

.batch-progress-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.progress-status-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-percentage {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-red);
}

.progress-bar-track {
  width: 100%;
  height: 9px;
  background-color: var(--bg-input);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-red-grad);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.6);
  position: relative;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: laserScan 1.3s linear infinite;
}

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

.progress-controls {
  display: flex;
  gap: 10px;
}

/* ========================================================================= */
/* TAB 3: DESCRIPTIONS MODES TILES                                           */
/* ========================================================================= */

.desc-modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .desc-modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.desc-mode-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.desc-mode-card:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--border-hover);
}

.desc-mode-card.active {
  background-color: var(--accent-red-dim);
  border-color: var(--accent-red);
}

.mode-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.custom-input {
  width: 100%;
  height: var(--control-height);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.custom-input:focus {
  border-color: var(--accent-red);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.combo-360-banner {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* ========================================================================= */
/* TAB 4: AUDIT & IA                                                         */
/* ========================================================================= */

.audit-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audit-scope-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  transition: all var(--transition-fast);
}

.audit-scope-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  flex-shrink: 0;
  animation: scopePulse 2s infinite ease-in-out;
}

.audit-pulse-dot.green {
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: none;
}

@keyframes scopePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

.audit-scope-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.audit-scope-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-audit-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-audit-sync:hover {
  background: var(--color-purple-dim);
  border-color: rgba(139, 92, 246, 0.4);
  color: #DDD6FE;
  transform: translateY(-1px);
}

.audit-stats-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1350px) {
  .audit-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

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

.audit-card {
  padding: 20px 22px;
  justify-content: center;
  position: relative;
}

.audit-card.radial-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(24, 24, 34, 0.95) 0%, rgba(18, 18, 26, 0.95) 100%);
  border-color: rgba(16, 185, 129, 0.25);
}

.radial-progress-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.radial-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-bg {
  fill: none;
  stroke: var(--bg-input);
  stroke-width: 6.5;
}

.radial-bar {
  fill: none;
  stroke: var(--color-green);
  stroke-width: 6.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

.radial-center-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-center-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.radial-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.radial-card-info .audit-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.3;
}

.audit-stat-sub {
  font-size: 11.5px;
  color: var(--color-green);
  font-weight: 500;
  line-height: 1.35;
}

.radial-sub-breakdown {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
}

.clickable-audit-card {
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.clickable-audit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.audit-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.stat-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-badge-icon svg {
  width: 20px;
  height: 20px;
}

.badge-amber {
  background: var(--color-amber-dim);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-blue {
  background: var(--color-blue-dim);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.audit-stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

.trend-amber {
  background: var(--color-amber-dim);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.trend-blue {
  background: var(--color-blue-dim);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.audit-stat-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.text-green { color: var(--color-green); }
.text-amber { color: var(--color-amber); }
.text-blue { color: var(--color-blue); }
.text-red { color: var(--accent-red); }

.audit-stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ai-hub-card {
  border-color: rgba(139, 92, 246, 0.3);
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-badge {
  background: var(--color-purple-dim);
  color: #C4B5FD;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.ai-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-actions {
  display: flex;
  gap: 10px;
}

.btn-purple-glow {
  position: relative;
  overflow: hidden;
  background: var(--color-purple-grad);
  color: #FFFFFF;
  border: none;
  padding: 0 20px;
  height: 38px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-purple-glow:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ai-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* CLUSTERING SECTION ENHANCED */
.cluster-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 26px;
}

.cluster-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cluster-summary-badge {
  font-size: 12px;
  font-weight: 600;
  color: #DDD6FE;
  background: var(--color-purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.cluster-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cluster-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.cluster-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cluster-item.cluster-item-missing {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(20, 20, 28, 0.6) 100%);
}

.cluster-item.cluster-item-missing:hover {
  border-color: rgba(245, 158, 11, 0.55);
}

.cluster-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cluster-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cluster-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.cluster-type-badge.missing {
  color: var(--color-amber);
}

.cluster-type-badge.active {
  color: #A78BFA;
}

.cluster-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cluster-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cluster-count-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.cluster-count-badge.count-active {
  background: var(--color-purple-dim);
  color: #DDD6FE;
  border-color: rgba(139, 92, 246, 0.25);
}

.cluster-pct-badge {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.cluster-sample-badge {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dark-theme .cluster-sample-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.light-theme .cluster-sample-badge {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border-color: rgba(0, 0, 0, 0.08);
}

.cluster-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-cluster-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-amber-dim);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cluster-primary:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--color-amber);
  transform: translateY(-1px);
}

.btn-cluster-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cluster-subtle svg {
  width: 13px;
  height: 13px;
}

.btn-cluster-subtle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-cluster-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #DDD6FE;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cluster-accent svg {
  width: 13px;
  height: 13px;
}

.btn-cluster-accent:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--color-purple);
  color: #FFF;
  transform: translateY(-1px);
}

.cluster-missing-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cluster-message-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cluster-quote-bubble {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  position: relative;
}

.cluster-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-text-link {
  color: #38BDF8;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  transition: all var(--transition-fast);
}

.comment-text-link:hover {
  color: #7DD3FC;
  text-decoration-thickness: 2px;
}

.cluster-text.is-collapsed {
  max-height: 90px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.btn-expand-cluster {
  background: none;
  border: none;
  color: #A78BFA;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-expand-cluster:hover {
  text-decoration: underline;
}

.cluster-urls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cluster-urls-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cluster-urls-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cluster-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-url-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cluster-url-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* ========================================================================= */
/* TAB 5: SETTINGS & PRICING WORKSPACE                                       */
/* ========================================================================= */

.settings-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Account Summary Top Card (Strictly 1 Single Horizontal Row) */
.account-summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 14px 26px;
  gap: 20px;
}

.account-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.account-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.plan-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-red-dim);
  color: var(--accent-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-status-pill.free {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.plan-status-pill.annual {
  background: var(--color-blue-dim);
  color: var(--color-blue);
}

.plan-status-pill.lifetime {
  background: var(--accent-red-dim);
  color: var(--accent-red);
}

.account-email {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.account-summary-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-input);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.metric-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-subtle);
}

.account-metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.metric-num {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.account-summary-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-logout {
  color: var(--color-rose);
  border-color: rgba(244, 63, 94, 0.25);
  background-color: rgba(244, 63, 94, 0.06);
  white-space: nowrap;
}

.btn-logout:hover {
  background-color: rgba(244, 63, 94, 0.14);
  color: var(--color-rose);
  border-color: rgba(244, 63, 94, 0.45);
}

/* ========================================================================= */
/* PRICING COMPARISON SECTION (TAB 5)                                        */
/* ========================================================================= */

.pricing-section-card {
  padding: 28px 24px;
}

.pricing-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px auto;
}

.pricing-section-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pricing-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.pricing-section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.pricing-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 980px) {
  .pricing-grid-container {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.08) 0%, var(--bg-card-alt) 100%);
  border-color: rgba(255, 0, 51, 0.45);
  box-shadow: 0 8px 30px rgba(255, 0, 51, 0.12);
}

.featured-ribbon {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--accent-red-grad);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--accent-red-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.plan-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.plan-tag.tag-free {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.plan-tag.tag-annual {
  background: var(--color-blue-dim);
  color: var(--color-blue);
}

.plan-tag.tag-lifetime {
  background: var(--accent-red-dim);
  color: var(--accent-red);
}

.plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.plan-price-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.plan-currency {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

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

.plan-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 34px;
  margin-bottom: 16px;
}

.plan-feature-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.plan-feature-list li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

.feat-icon.check {
  color: var(--color-green);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.feat-icon.cross {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.btn-plan-action {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-plan-free {
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: default;
}

.btn-plan-annual {
  background: var(--color-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-plan-annual:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-plan-lifetime {
  background: var(--accent-red-grad);
  color: #FFFFFF;
  box-shadow: var(--accent-red-glow);
}

.btn-plan-lifetime:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 0, 51, 0.45);
}

.pricing-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

.secure-inline-icon {
  width: 15px;
  height: 15px;
  color: var(--color-green);
  flex-shrink: 0;
}

.settings-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.w-100 {
  width: 100%;
}

.settings-actions-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.settings-actions-row .btn-cta-primary {
  width: auto;
  min-width: 180px;
}

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

/* ========================================================================= */
/* MODALS (HIGH-END GLASSMORPHIC)                                            */
/* ========================================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  overflow-y: auto;
}

/* Auth Wall Blocking Overlay (Prevents interaction before login) */
body.auth-locked {
  overflow: hidden !important;
}

body.auth-locked .app-header,
body.auth-locked .app-main {
  filter: blur(10px) brightness(0.65);
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.3s ease;
}

.auth-wall-overlay {
  z-index: 10000 !important;
  background: radial-gradient(circle at 50% 36%, rgba(255, 0, 51, 0.18) 0%, rgba(139, 92, 246, 0.10) 30%, rgba(6, 9, 15, 0.94) 75%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  cursor: default;
}

#helpCenterModal,
#contactFeedbackModal {
  z-index: 10020 !important;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  padding: 24px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.btn-delete-template {
  transition: all 0.2s ease;
}

.btn-delete-template:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #f87171 !important;
}

.btn-cta-danger {
  transition: all 0.2s ease;
}

.btn-cta-danger:hover {
  background: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* ========================================================================= */
/* TEMPLATE MODAL ACTIONS (UNIFIED SHAPES & HORIZONTAL ROW)                  */
/* ========================================================================= */
.template-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  flex-wrap: nowrap;
}

.template-modal-btn {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-md, 8px);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  text-decoration: none;
  line-height: 1;
}

.template-modal-btn.btn-ghost-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #94a3b8);
}

.template-modal-btn.btn-ghost-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.template-modal-btn.btn-save-as-new {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.template-modal-btn.btn-save-as-new:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.template-modal-btn.btn-overwrite-primary {
  background: var(--accent-red-grad, linear-gradient(135deg, #ff0033 0%, #cc0029 100%));
  border: 1px solid rgba(255, 0, 51, 0.4);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.3);
}

.template-modal-btn.btn-overwrite-primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.45);
}

.template-modal-btn.btn-danger-action {
  background: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.template-modal-btn.btn-danger-action:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* ========================================================================= */
/* CHROME WEB STORE 5-STAR REVIEW PROMPT MODAL                               */
/* ========================================================================= */

.review-modal-card {
  width: 100%;
  max-width: 500px;
  padding: 38px 32px 30px 32px;
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-stars-visual {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.star-icon-svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.star-icon-svg.glow {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.65));
}

.star-icon-svg:hover {
  transform: scale(1.18);
}

.review-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.review-modal-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 14px;
}

.review-modal-body-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.review-modal-body-text strong {
  color: var(--text-primary);
}

.review-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-review {
  height: 44px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF !important;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary-review:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary-review {
  height: 38px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-secondary-review:hover {
  color: var(--text-primary);
}

/* ========================================================================= */
/* MODAL DE LÍMITE FREE & UPGRADE PRO (1 CLIC)                               */
/* ========================================================================= */

.limit-modal-card {
  width: 100%;
  max-width: 520px;
  padding: 36px 30px 28px 30px;
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid rgba(255, 0, 51, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 0, 51, 0.12);
  text-align: center;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.limit-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.limit-badge-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.12);
  border: 1.5px solid rgba(255, 0, 51, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(255, 0, 51, 0.25);
}

.limit-icon-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.3) 0%, transparent 70%);
  animation: pulseGlow 2.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.limit-bolt-svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.5));
}

.limit-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.limit-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 10px;
  text-wrap: balance;
}

.limit-modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 460px;
  text-wrap: balance;
}

.limit-modal-desc strong {
  color: var(--text-primary);
}

.limit-features-pill-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 22px;
  width: 100%;
}

.limit-feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.limit-feature-item .l-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-green-dim);
  color: var(--color-green);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.limit-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-primary-limit-upgrade {
  height: 48px;
  background: linear-gradient(135deg, #FF0033 0%, #E6002E 50%, #8B5CF6 100%);
  color: #FFFFFF !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 0, 51, 0.42);
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-primary-limit-upgrade:hover {
  filter: brightness(1.1);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 28px rgba(255, 0, 51, 0.55);
}

.btn-primary-limit-upgrade .btn-price-tag {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn-secondary-limit-slice {
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-secondary-limit-slice:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.limit-modal-footer-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ========================================================================= */
/* PROGRAMADOR DE COMENTARIOS FIJADOS EN ESTRENOS & PREVIEWS                 */
/* ========================================================================= */

.schedule-video-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  text-align: left;
}

.schedule-video-thumb {
  width: 64px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.schedule-video-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.schedule-video-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-video-time {
  font-size: 11px;
  color: #818cf8;
  font-weight: 500;
}

/* Badge de comentario programado en la tabla de videos */
.status-scheduled {
  background-color: rgba(99, 102, 241, 0.14) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

.status-scheduled .dot {
  background-color: #818cf8 !important;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.8) !important;
}

/* Botón interactivo de programación en fila de video */
.action-icon-btn.btn-action-schedule {
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.25);
  background-color: rgba(99, 102, 241, 0.08);
}

.action-icon-btn.btn-action-schedule:hover {
  background-color: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.action-icon-btn.btn-action-schedule.is-scheduled {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background-color: rgba(52, 211, 153, 0.1);
}

.action-icon-btn.btn-action-schedule.is-scheduled:hover {
  background-color: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.6);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(52, 211, 153, 0.4);
}

.pricing-modal-card {
  width: 100%;
  max-width: 980px;
  padding: 32px 28px 24px 28px;
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.pricing-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pricing-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  letter-spacing: -0.3px;
}

.pricing-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.pricing-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .pricing-modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-tier-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-fast);
}

.modal-tier-card:hover {
  border-color: var(--border-hover);
}

.modal-tier-card.featured {
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.09) 0%, var(--bg-card-alt) 100%);
  border-color: rgba(255, 0, 51, 0.45);
  box-shadow: 0 8px 28px rgba(255, 0, 51, 0.15);
}

.modal-featured-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent-red-grad);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--accent-red-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.modal-tier-header {
  margin-bottom: 12px;
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0;
}

.tier-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.tier-currency {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

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

.tier-description {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  min-height: 32px;
}

.modal-tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.modal-tier-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.modal-tier-features li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

.f-check {
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
}

.f-cross {
  color: var(--text-dim);
  font-weight: 700;
  flex-shrink: 0;
}

.btn-tier-action {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-tier-free {
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: default;
}

.btn-tier-annual {
  background: var(--color-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-tier-annual:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-tier-lifetime {
  background: var(--accent-red-grad);
  color: #FFFFFF;
  box-shadow: var(--accent-red-glow);
}

.btn-tier-lifetime:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 0, 51, 0.45);
}

.pricing-modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.security-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.secure-icon {
  width: 14px;
  height: 14px;
  color: var(--color-green);
  flex-shrink: 0;
}

/* ========================================================================= */
/* TOAST NOTIFICATION SYSTEM (GLASSMORPHIC & FLUID)                          */
/* ========================================================================= */

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: rgba(24, 24, 32, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

body.light-theme .toast-item {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.toast-item.toast-leave {
  opacity: 0;
  transform: translateX(60px) scale(0.95);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-icon.toast-success { color: var(--color-green); }
.toast-icon.toast-info { color: var(--color-blue); }
.toast-icon.toast-warning { color: var(--color-amber); }
.toast-icon.toast-error { color: var(--accent-red); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-red-grad);
  width: 100%;
}

/* ========================================================================= */
/* CONFETTI CANVAS OVERLAY                                                   */
/* ========================================================================= */

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ========================================================================= */
/* STAGGERED CASCADE ANIMATIONS & INTERACTIVE ACCENTS                        */
/* ========================================================================= */

.stagger-in {
  animation: staggerFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--stagger-idx, 0) * 30ms);
}

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

/* Interactive Like & Actions on YouTube Mockup */
.yt-action-item {
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease;
  user-select: none;
}

.yt-action-item:hover {
  transform: scale(1.1);
  color: var(--accent-red);
}

.yt-action-item:active {
  transform: scale(0.92);
}

.yt-action-item.liked {
  color: var(--accent-red);
}

.yt-action-item.liked svg {
  fill: var(--accent-red);
  animation: likePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes likePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(-10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Pulse radar on pinned status */
.yt-pin-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.yt-pin-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-red);
  animation: pinPulse 2.5s ease-in-out infinite;
}

@keyframes pinPulse {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(15deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(5deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* ========================================================================= */
/* COMMAND PALETTE (⌘K / CTRL+K)                                             */
/* ========================================================================= */

.btn-command-palette {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0 10px;
  height: 40px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-command-palette:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.cmd-icon {
  width: 16px;
  height: 16px;
}

.cmd-kbd {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.command-palette-card {
  width: 100%;
  max-width: 620px;
  background: rgba(20, 20, 28, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: modalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.light-theme .command-palette-card {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.command-search-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 14px;
}

.command-search-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-red);
  flex-shrink: 0;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}

.command-input::placeholder {
  color: var(--text-dim);
  font-size: 13.5px;
}

.command-close-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.command-results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
}

.command-item:hover, .command-item.selected {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.command-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-item-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.command-item:hover .command-item-icon, .command-item.selected .command-item-icon {
  color: var(--accent-red);
}

.command-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.command-item-cat {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.cmd-shortcut-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cmd-shortcut-tag kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  padding: 2px 7px;
  border-radius: 5px;
  min-width: 14px;
  text-align: center;
  line-height: 1.2;
}

.command-item:hover .cmd-shortcut-tag kbd,
.command-item.selected .cmd-shortcut-tag kbd {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.4);
}

.command-palette-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

.footer-shortcut {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kbd-key {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================================================= */
/* DIFF COMPARATOR MODAL                                                     */
/* ========================================================================= */

.diff-modal-card {
  max-width: 920px;
  width: 100%;
  padding: 28px;
}

.diff-modal-header {
  margin-bottom: 6px;
}

.diff-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-red);
}

.diff-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0;
}

.diff-modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.diff-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.diff-pane {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diff-pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.diff-dot.red { background: var(--accent-red); box-shadow: 0 0 8px rgba(255, 0, 51, 0.5); }
.diff-dot.green { background: var(--color-green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

.diff-content-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 180px;
  max-height: 380px;
  overflow-y: auto;
}

.diff-highlight-add {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border-left: 3px solid #10B981;
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
  box-sizing: border-box;
}

.diff-highlight-del {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  text-decoration: line-through;
  padding: 2px 6px;
  border-radius: 3px;
}

.diff-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* ========================================================================= */
/* LINK HEALTH & PROTOCOL AUDIT                                              */
/* ========================================================================= */

.link-health-card {
  padding: 22px 26px;
  border-color: rgba(59, 130, 246, 0.25);
}

.link-health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.link-health-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.health-shield-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-blue-dim);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.health-shield-icon svg {
  width: 22px;
  height: 22px;
}

.health-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-hover);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.health-score-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-green);
}

.health-score-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.health-metrics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.health-metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.health-dot.green { background: var(--color-green); }
.health-dot.blue { background: var(--color-blue); }
.health-dot.purple { background: var(--color-purple); }
.health-dot.amber { background: var(--color-amber); }

.health-metric-pill.warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--color-amber-dim);
  color: var(--color-amber);
}

.shorts-bridge-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(20, 20, 28, 0.6) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  margin-bottom: 16px;
}

.shorts-badge-chip {
  background: #EF4444;
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================================= */
/* KEYBOARD SHORTCUTS CHEAT SHEET MODAL                                      */
/* ========================================================================= */

.shortcuts-modal-card {
  max-width: 680px;
  width: 100%;
  padding: 28px;
}

.shortcuts-modal-header {
  margin-bottom: 18px;
}

.shortcuts-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.shortcuts-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.shortcuts-group {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcuts-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-red);
  margin: 0 0 4px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.shortcuts-modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortcut-tip-icon {
  width: 16px;
  height: 16px;
  color: #F59E0B;
  flex-shrink: 0;
}

/* ========================================================================= */
/* HEADER BUTTONS & AUTH TOGGLE                                              */
/* ========================================================================= */

.btn-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-header-icon:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-header-icon svg {
  width: 18px;
  height: 18px;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4285F4 0%, #2B6CB0 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.35);
  transition: all var(--transition-fast);
}

.btn-header-login:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.55);
}

/* ========================================================================= */
/* LOGIN & WELCOME MODAL (v2.10.4 Spacious & Symmetric UI)                  */
/* ========================================================================= */

.login-modal-card {
  max-width: 520px;
  width: 92%;
  padding: 40px 36px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(13, 17, 26, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px -15px rgba(0, 0, 0, 0.85), 0 0 60px rgba(255, 0, 51, 0.12);
}

.login-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.login-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

body.auth-locked .login-modal-close-btn {
  display: none !important;
}

/* Resplandores Ambientales */
.login-glow-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.login-glow-red {
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 0, 51, 0.35) 0%, transparent 70%);
}

.login-glow-purple {
  bottom: -90px;
  right: -50px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
}

/* Barra Superior: Kicker & Selector de Idioma */
.login-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.login-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF4D6D;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.28);
  padding: 4px 11px;
  border-radius: 9999px;
}

.kicker-sparkle {
  color: #FFD166;
  font-size: 11px;
}

.login-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3px 8px;
  border-radius: 8px;
}

.login-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.login-lang-btn:hover {
  color: var(--text-primary);
}

.login-lang-btn.active {
  color: #FFFFFF;
  background: rgba(255, 0, 51, 0.32);
}

.lang-divider {
  color: var(--border-subtle);
  font-size: 10px;
}

.login-brand-logo-wrap {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.login-logo-svg {
  width: 64px;
  height: 44px;
  filter: drop-shadow(0 8px 24px rgba(255, 0, 51, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo-svg:hover {
  transform: scale(1.08) rotate(-2deg);
}

.login-modal-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.login-modal-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

.login-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.login-buttons-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.16), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.btn-google-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.5);
  background: #F9FAFB;
}

.btn-google-login:active {
  transform: translateY(0);
}

.btn-login-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.btn-login-demo:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-login-demo:active {
  transform: translateY(0);
}

.demo-btn-svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.btn-login-demo:hover .demo-btn-svg {
  color: #FFFFFF;
}

.google-svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Sello Único Oficial de Confianza con Tooltip Flotante */
.login-trust-single-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.login-trust-single-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-trust-single-badge:hover,
.login-trust-single-badge:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.trust-badge-shield-svg {
  width: 14.5px;
  height: 14.5px;
  color: #10B981;
  flex-shrink: 0;
}

.trust-badge-info-svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-trust-single-badge:hover .trust-badge-info-svg {
  opacity: 1;
  color: #FF4D6D;
}

/* Tooltip Flotante de Seguridad */
.login-trust-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  background: rgba(18, 24, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.1);
  color: var(--text-primary);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.login-trust-tooltip p {
  margin: 0;
  color: var(--text-secondary);
}

.login-trust-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(18, 24, 38, 0.98);
}

.login-trust-single-wrap:hover .login-trust-tooltip,
.login-trust-single-wrap.active-tooltip .login-trust-tooltip,
.login-trust-single-badge:focus .login-trust-tooltip,
.login-trust-single-badge:focus-visible .login-trust-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.login-modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.login-footer-link, .login-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.login-footer-link:hover, .login-footer-btn:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.footer-icon-svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.login-footer-link:hover .footer-icon-svg,
.login-footer-btn:hover .footer-icon-svg {
  color: var(--accent-red);
}

/* ========================================================================= */
/* HELP CENTER & ACCORDION MODAL                                             */
/* ========================================================================= */

.help-modal-card {
  max-width: 740px;
  width: 100%;
  padding: 32px;
}

.help-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-red);
}

.help-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0 6px;
}

.help-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.help-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(480px, 60vh);
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

.help-accordion::-webkit-scrollbar {
  width: 6px;
}

.help-accordion::-webkit-scrollbar-track {
  background: transparent;
}

.help-accordion::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

.help-accordion::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.help-item {
  flex-shrink: 0;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.help-item:hover {
  border-color: var(--border-hover);
}

.help-item.active {
  border-color: rgba(255, 0, 51, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.help-item-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-item-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-guide-icon {
  width: 17px;
  height: 17px;
  color: var(--accent-red);
  flex-shrink: 0;
}

.help-arrow-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.help-item.active .help-arrow-chevron {
  transform: rotate(180deg);
  color: var(--accent-red);
}

.help-item-content {
  display: none;
  padding: 12px 18px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.help-item.active .help-item-content {
  display: block;
}

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

.help-modal-footer .btn-subtle,
.help-modal-footer .btn-cta-primary {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  line-height: 1;
  flex-shrink: 0;
}

.help-modal-footer .btn-subtle {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}

.help-modal-footer .btn-subtle:hover {
  background: var(--bg-card-alt);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ========================================================================= */
/* CONTACT / FEEDBACK MODAL                                                  */
/* ========================================================================= */

.contact-modal-card {
  max-width: 540px;
  width: 100%;
  padding: 30px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-red);
}

.contact-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.contact-modal-actions .btn-subtle,
.contact-modal-actions .btn-cta-primary {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1;
}



/* Custom Dropdown Styling (replaces native select) */
.youcta-dropdown-wrapper {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  height: var(--control-height);
  position: relative;
}

.youcta-dropdown-wrapper:hover {
  border-color: var(--border-hover);
}

.youcta-dropdown-wrapper.is-open {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-dim);
  z-index: 10000;
}

.youcta-dropdown-wrapper.is-open .youcta-dropdown-chevron {
  transform: rotate(180deg);
}

.youcta-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 14px;
}

.youcta-dropdown-label {
  flex: 1;
}

.youcta-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 360px;
  background-color: #181822; /* 100% Opaque Solid Matte Charcoal */
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.88), 0 6px 16px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.18s;
  padding: 6px;
}

body.light-theme .youcta-dropdown-menu {
  background-color: #FFFFFF; /* 100% Opaque Solid Pure White */
  border: 1px solid #CBD5E1;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.youcta-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.youcta-dropdown-item {
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12.5px;
  transition: background-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.youcta-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

body.light-theme .youcta-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #0F172A;
}

.youcta-dropdown-item.selected {
  background-color: var(--accent-red-dim);
  color: var(--accent-red);
  font-weight: 600;
}

/* Scrollbar for custom dropdown menu */
.youcta-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.youcta-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.youcta-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
}
.youcta-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.youcta-dropdown-wrapper.is-sm {
  height: auto;
  font-size: 11.5px;
}
.youcta-dropdown-wrapper.is-sm .youcta-dropdown-trigger {
  padding: 6px 10px;
}

/* ========================================================================= */
/* CHANGELOG PILL IN HEADER & CHANGELOG MODAL                                */
/* ========================================================================= */
.btn-changelog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  box-sizing: border-box;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.btn-changelog-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.changelog-modal-card {
  max-width: 780px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.changelog-modal-header {
  margin-bottom: 20px;
}

.changelog-badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.changelog-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.changelog-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.changelog-timeline {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.changelog-timeline::-webkit-scrollbar {
  width: 5px;
}
.changelog-timeline::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.changelog-entry {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border-subtle);
}

.changelog-entry.current {
  border-left-color: var(--accent-red);
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
}

.changelog-entry.current::before {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.6);
}

.changelog-version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.changelog-tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--text-secondary);
}

.changelog-tag.tag-latest {
  background: var(--accent-red-dim);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.changelog-date {
  font-size: 11px;
  color: var(--text-dim);
}

.changelog-entry-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cl-row {
  display: grid;
  grid-template-columns: 92px 210px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.cl-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cl-col-chip {
  display: flex;
  align-items: center;
}

.cl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 22px;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  text-align: center;
  flex-shrink: 0;
}

.cl-badge.feature {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cl-badge.fix {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cl-badge.improvement,
.cl-badge.mejora {
  background: rgba(139, 92, 246, 0.12);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.cl-badge.perf {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cl-col-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.cl-col-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Backward compatibility for list bullets */
.changelog-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-bullets li {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

@media (max-width: 680px) {
  .changelog-modal-card {
    padding: 20px 16px;
  }
  .cl-row {
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .cl-badge {
    width: auto;
    padding: 0 8px;
  }
  .cl-col-desc {
    grid-column: 1 / -1;
    color: var(--text-muted);
  }
}

.changelog-modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ========================================================================= */
/* 2-COLUMN PRICING GRID STYLES                                              */
/* ========================================================================= */
.pricing-grid-2cols {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 820px;
  margin: 0 auto 20px auto;
}

@media (max-width: 760px) {
  .pricing-grid-2cols {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================================= */
/* FEEDBACK / SUPPORT AS-IS NOTICE & USER STATUS                             */
/* ========================================================================= */
.contact-support-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.support-badge-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.support-notice-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.support-notice-text strong {
  color: var(--text-primary);
}

.contact-user-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}

.contact-status-label {
  color: var(--text-muted);
}

.contact-channel-tag {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.contact-version-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
  font-family: monospace;
}

/* Opción destacada de Upgrade Pro en Custom Dropdowns */
.youcta-dropdown-item.item-pro-upgrade {
  color: #ff3366 !important;
  font-weight: 700 !important;
  border-top: 1px dashed rgba(255, 0, 51, 0.35);
  background: rgba(255, 0, 51, 0.06) !important;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.youcta-dropdown-item.item-pro-upgrade:hover {
  background: rgba(255, 0, 51, 0.18) !important;
  color: #ffffff !important;
}

/* ========================================================================= */
/* HEADER RESPONSIVE ADAPTATION & ANTI-COLLISION                             */
/* ========================================================================= */
@media (max-width: 1280px) {
  .creator-email {
    display: none;
  }
  .creator-profile {
    max-width: 150px;
  }
}

@media (max-width: 1140px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .header-left {
    gap: 14px;
  }
  .header-right {
    gap: 8px;
  }
  .nav-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .btn-changelog-pill {
    display: none;
  }
}

/* ========================================================================= */
/* MODAL DE BIENVENIDA & ONBOARDING PRO                                      */
/* ========================================================================= */

.welcome-modal-card {
  width: 100%;
  max-width: 580px;
  padding: 38px 32px 30px 32px;
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.15);
  text-align: center;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-badge-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.welcome-crown-emoji {
  font-size: 36px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
}

.welcome-icon-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(255, 0, 51, 0.2) 60%, transparent 100%);
  animation: pulseGlow 2.4s ease-in-out infinite alternate;
  z-index: 1;
}

.welcome-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.welcome-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.welcome-modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 480px;
}

.welcome-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
  width: 100%;
  text-align: left;
}

@media (max-width: 520px) {
  .welcome-features-grid {
    grid-template-columns: 1fr;
  }
}

.welcome-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.welcome-feat-icon-wrap {
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-feat-info {
  display: flex;
  flex-direction: column;
}

.welcome-feat-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.welcome-feat-info span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.welcome-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-primary-welcome {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff0033 0%, #8b5cf6 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 0, 51, 0.35);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-welcome:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 0, 51, 0.5);
}

.btn-secondary-welcome {
  width: 100%;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-welcome:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Acciones en Tab 3 Descripciones (Simulador + Ejecutar) */
.desc-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.btn-desc-simulate {
  height: 44px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-desc-simulate:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.btn-desc-execute {
  flex: 1;
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  .desc-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========================================================================= */
/* COMMAND PALETTE RECENT COMMANDS / HISTORY                                 */
/* ========================================================================= */
.command-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.btn-clear-recents {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-clear-recents:hover {
  color: var(--accent-red);
  background: rgba(255, 0, 51, 0.1);
}

.cmd-recent-tag {
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================================================= */
/* SHORTS MOBILE VIEW SIMULATOR MODAL                                        */
/* ========================================================================= */
.shorts-mobile-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: rgba(18, 18, 24, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 28px 32px;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.light-theme .shorts-mobile-modal-card {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.16);
}

.shorts-modal-top-bar {
  margin-bottom: 20px;
}

.shorts-modal-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent-red);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
}

.shorts-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.shorts-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.shorts-modal-body-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 760px) {
  .shorts-modal-body-grid {
    grid-template-columns: 1fr;
  }
}

/* Smartphone Device Mockup Bezel */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-device-bezel {
  width: 290px;
  height: 520px;
  background: #000000;
  border-radius: 36px;
  border: 7px solid #2d2d38;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-status-bar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  z-index: 10;
}

.phone-notch {
  width: 60px;
  height: 12px;
  background: #000000;
  border-radius: 0 0 10px 10px;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-screen-content {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #181822 0%, #0d0d14 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.phone-shorts-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  z-index: 5;
}

.phone-shorts-tab {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.phone-shorts-top-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.phone-shorts-actions {
  position: absolute;
  right: 8px;
  bottom: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.phone-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.phone-action-btn .action-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.phone-action-btn .action-count {
  font-size: 8.5px;
  font-weight: 600;
  color: #ffffff;
}

/* Bottom Sheet Drawer for Comments */
.phone-shorts-comment-sheet {
  background: rgba(26, 26, 36, 0.97);
  backdrop-filter: blur(16px);
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px 14px 12px;
  z-index: 6;
}

.sheet-handle {
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 0 auto 8px auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 500;
}

.sheet-close {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.sheet-pinned-comment-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

.sheet-pin-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 6px;
}

.sheet-comment-row {
  display: flex;
  gap: 8px;
}

.sheet-comment-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sheet-comment-body {
  flex: 1;
  min-width: 0;
}

.sheet-author-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.sheet-author-name {
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
}

.sheet-author-badge {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 3px;
  border-radius: 3px;
}

.sheet-comment-time {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.4);
}

.sheet-comment-text {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 52px;
  overflow: hidden;
  position: relative;
}

.sheet-comment-text a, .sheet-comment-text .mockup-link {
  color: #3ea6ff;
  text-decoration: none;
}

.sheet-comment-text .read-more-cut {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* Diagnostics Column */
.shorts-diagnostics-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shorts-diag-card, .shorts-tips-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.diag-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.diag-status-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.diag-status-box.status-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.diag-status-box.status-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.diag-explanation {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.shorts-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shorts-tips-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.shorts-tips-list strong {
  color: var(--text-primary);
}

.shorts-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ========================================================================= */
/* FLOATING BATCH PROGRESS PILL                                              */
/* ========================================================================= */
.floating-batch-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 320px;
  background: rgba(20, 20, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 0, 51, 0.15);
  padding: 12px 14px;
  animation: floatPillSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

body.light-theme .floating-batch-pill {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 0, 51, 0.1);
}

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

.floating-batch-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-batch-spinner-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-batch-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 0, 51, 0.2);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.floating-batch-done-icon {
  width: 20px;
  height: 20px;
  color: #22c55e;
}

.floating-batch-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.floating-batch-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-batch-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-batch-pct {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-red);
}

.floating-batch-sub {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-batch-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}

.floating-batch-progress-fill {
  height: 100%;
  background: var(--accent-red-grad);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.floating-batch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.floating-batch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 11px;
}

.floating-batch-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}


