/* Void Studio Planner v4.0 (dark) — style.css */
:root{
  --bg:#000;
  --text:#EAF4FF;
  --muted:#9fb3c8;
  --glass: rgba(255,255,255,0.06);
  --glass-2: rgba(255,255,255,0.12);
  --brd: rgba(255,255,255,0.15);
  --violet:#9b5cff;
  --cyan:#00e5ff;
  --magenta:#ff4ecd;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(155,92,255,0.15), transparent 60%),
    radial-gradient(1000px 700px at 90% 30%, rgba(0,229,255,0.16), transparent 60%),
    radial-gradient(900px 900px at 50% 90%, rgba(255,78,205,0.12), transparent 60%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%;border-radius:18px}

/* Header */
.vs-header{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 20px;background:rgba(10,15,26,0.6);
  backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid var(--glass-2);
}
.vs-logo{display:flex;gap:10px;align-items:center;font-weight:700;letter-spacing:.2px}
.vs-logo .dot{width:10px;height:10px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, #9b5cff 40%, transparent 60%), #9b5cff;
  box-shadow:0 0 18px rgba(155,92,255,.8);
}
.vs-logo small{opacity:.7;font-weight:600}
.vs-nav{display:flex;gap:14px}
.vs-nav a{padding:8px 12px;border-radius:12px;border:1px solid transparent}
.vs-nav a:hover{border-color:var(--brd);background:var(--glass)}

.vs-main{padding:24px;max-width:1200px;margin:0 auto}
.vs-footer{position:relative;padding:24px;color:var(--muted);text-align:center}
.orb-bg{position:absolute;inset:-200px -100px;pointer-events:none;background:
  radial-gradient(400px 300px at 20% 30%, rgba(155,92,255,.1),transparent 60%),
  radial-gradient(400px 300px at 80% 60%, rgba(0,229,255,.12),transparent 60%)
}

/* Cards & glass */
.card-glass{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid var(--brd);
  border-radius:22px;
  padding:18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,.3);
  backdrop-filter: blur(24px);
  margin-bottom:18px;
}

.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.form-grid label{display:flex;flex-direction:column;font-size:14px;color:var(--muted);gap:6px}
.form-grid input, .form-grid select, .form-grid textarea{
  padding:10px 12px;border-radius:12px;border:1px solid var(--brd);
  background:rgba(255,255,255,0.03);color:var(--text);outline:none;
}
.form-actions{display:flex;gap:10px;margin-top:8px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;padding:10px 14px;border-radius:14px;border:1px solid var(--brd);
  background:rgba(255,255,255,0.04);color:var(--text);cursor:pointer
}
.btn:hover{background:rgba(255,255,255,0.07)}
.btn-ghost{background:transparent}
.btn-accent{background:linear-gradient(135deg, var(--violet), var(--cyan));border-color:transparent;box-shadow:0 8px 30px rgba(155,92,255,.25)}
.btn-accent:hover{filter:saturate(120%)}
.btn-liquid{
  background:
   radial-gradient(120% 150% at 10% 10%, rgba(155,92,255,.35), transparent 50%),
   radial-gradient(120% 150% at 90% 20%, rgba(0,229,255,.35), transparent 50%),
   linear-gradient(135deg, rgba(255,78,205,.65), rgba(155,92,255,.7));
  border-color:transparent;
  box-shadow: 0 10px 40px rgba(255,78,205,.25);
}

/* Grid posts */
.grid-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.post-card{
  position:relative;
  border-radius:22px;border:1px solid var(--brd);
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  overflow:hidden;box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 60px rgba(0,0,0,.35);
}
.post-card__top{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;color:var(--muted)}
.badge{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--brd);background:rgba(255,255,255,0.04)}
.status{font-size:12px;opacity:.8}
.post-card__media{position:relative;aspect-ratio:1/1;background:transparent}
.post-card__media.large{aspect-ratio:16/9}
.post-card__media .liquid-bg{
  position:absolute;inset:0;
  background:
   radial-gradient(400px 300px at 20% 30%, rgba(155,92,255,.35), transparent 60%),
   radial-gradient(500px 350px at 80% 60%, rgba(0,229,255,.35), transparent 60%),
   radial-gradient(600px 400px at 50% 90%, rgba(255,78,205,.35), transparent 60%);
  filter: blur(8px) saturate(120%);
}
.post-card__body{padding:14px}
.post-card__body h3{margin:0 0 6px 0}
.meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:8px}
.actions{display:flex;gap:8px;margin-top:10px}

.theme-violet .post-card__media{background: radial-gradient(120% 120% at 20% 20%, rgba(155,92,255,.25), transparent 60%)}
.theme-cyan .post-card__media{background: radial-gradient(120% 120% at 20% 20%, rgba(0,229,255,.25), transparent 60%)}
.theme-magenta .post-card__media{background: radial-gradient(120% 120% at 20% 20%, rgba(255,78,205,.25), transparent 60%)}

/* Floating action button */
.fab{
  position:fixed;right:22px;bottom:22px;
  width:58px;height:58px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--violet),var(--magenta));border:1px solid rgba(255,255,255,.2);
  box-shadow:0 15px 40px rgba(255,78,205,.3), inset 0 1px 0 rgba(255,255,255,.35);
}
.fab:hover{transform:translateY(-1px);}

/* Share page */
.share-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.share-head input{width:360px;max-width:100%}

/* Clients */
.clients .client-head{display:flex;gap:12px;align-items:center}
.client-logo{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.1);display:grid;place-items:center;font-weight:700}
.client-logo.placeholder{color:#fff}

/* Alerts */
.alert{padding:10px 12px;border-radius:12px;margin-bottom:10px}
.alert.ok{background:rgba(0,255,127,.1);border:1px solid rgba(0,255,127,.25)}
.alert.warn{background:rgba(255,78,205,.08);border:1px solid rgba(255,78,205,.25)}

/* Responsive */
@media (max-width: 960px){
  .grid-posts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .grid-posts{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .vs-main{padding:16px}
}


/* Forms: ensure dropdown text is legible on dark themes */
select{color:var(--text); background:var(--glass); border:1px solid var(--brd); border-radius:12px; padding:10px 12px;}
select:focus{outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(155,92,255,0.2);}
select option{color:#0a0f1a; background:#fff;} /* open list uses light bg with dark text for clarity */
label>small{color:var(--muted); display:block; margin-top:4px;}
/* Align filter action buttons */
.form-grid .btn + .btn{margin-left:8px;}
.filters .btn{margin-top:auto}


/* Layout shell to avoid footer cutoff */
html, body { min-height: 100%; }
body { min-height: 100vh; display:flex; flex-direction:column; background:#000; }
.page-shell { flex:1; display:flex; flex-direction:column; }
main { flex:1; display:block; }

/* Single fluid background */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(155,92,255,0.25), transparent 60%),
    radial-gradient(50% 50% at 80% 30%, rgba(0,229,255,0.2), transparent 60%),
    radial-gradient(40% 40% at 30% 80%, rgba(255,78,205,0.18), transparent 60%);
  opacity:0.9;
  z-index:-1;
}

/* Post card tidy text */
.post-card__body{display:grid; grid-template-columns: 1fr; gap:8px;}
.post-card__body .meta{display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:12px}
.post-card__head{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.post-card__title{font-size:16px; font-weight:600}

/* === Mejorar visibilidad de selects === */
select {
  background-color: rgba(20, 25, 35, 0.9); /* fondo más sólido */
  color: #EAF4FF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Flecha personalizada (más visible sobre fondo oscuro) */
select::-ms-expand {
  display: none;
}

/* Cuando el menú se abre */
select:focus {
  outline: none;
  border-color: #9b5cff;
  box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.4);
}

/* Opciones dentro del dropdown */
option {
  background-color: #121826; /* color sólido oscuro */
  color: #EAF4FF;
  font-size: 0.95rem;
}

/* Hover en las opciones (solo visible en algunos navegadores) */
option:hover,
option:checked {
  background-color: #1b2435;
  color: #00e5ff;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}
.form-row.half {
  flex: 1 1 calc(50% - 10px);
}
.form-row.full {
  flex: 1 1 100%;
}
.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9fb3c8;
  margin-bottom: 6px;
}
.client-select-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.client-logo-preview {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.form-row.actions {
  justify-content: flex-end;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
/* === Void Studio Planner v4 — Formulario fluido y elegante === */
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-start;
}

/* Cada campo */
.form-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 220px;
  max-width: 320px;
}

/* Campos que deben ocupar toda la fila */
.form-row.full {
  flex: 1 1 100%;
}

/* Etiquetas */
.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #aebed3;
  margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #EAF4FF;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #9b5cff;
  box-shadow: 0 0 0 2px rgba(155,92,255,0.3);
}

/* Cliente con logo */
.client-select-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.client-logo-preview {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease;
}
.client-logo-preview:not([style*="url"]) { opacity: 0; }

/* Caption ancho completo */
textarea[name="caption"] {
  min-height: 120px;
  resize: vertical;
}

/* Espaciado para texto auxiliar */
small {
  font-size: 0.8rem;
  color: #6b7a8a;
  margin-top: -2px;
}

/* Botones */
.form-row.actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 100%;
  margin-top: 10px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .form-row {
    min-width: 100%;
  }
  .form-row.actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* === Void Studio — Ajustes de Nueva Publicación === */

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-start;
}

.form-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.3% - 28px);
  min-width: 220px;
}

.form-row.full {
  flex: 1 1 100%;
}

textarea[name="caption"] {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}

/* === Cliente con logo === */
.client-select-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-select-wrapper select {
  flex: 1;
}

.client-logo-preview {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3) inset;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.client-logo-preview.active {
  box-shadow: 0 0 10px rgba(155,92,255,0.5);
  border-color: rgba(155,92,255,0.6);
}

/* === Acciones === */
.form-row.actions {
  flex: 1 1 100%;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

/* === Responsividad === */
@media (max-width: 768px) {
  .form-row {
    flex: 1 1 100%;
  }
}
/* === Ajustes Nueva Publicación === */
.client-select-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-logo-preview {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.client-logo-preview.active {
  box-shadow: 0 0 10px rgba(155,92,255,0.5);
}
.reel-extra {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === Modal Guion Reel === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px);
  background: rgba(10,15,26,0.75);
  z-index: 999;
  animation: fadeIn 0.4s ease;
}

.modal-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px;
  width: min(600px, 90%);
  color: #EAF4FF;
  box-shadow: 0 0 35px rgba(0,0,0,0.5);
}

.modal-card h3 {
  margin-top: 0;
  color: #9b5cff;
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-card pre {
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: 10px;
  white-space: pre-wrap;
  line-height: 1.5;
  font-family: "Inter", monospace;
  max-height: 300px;
  overflow-y: auto;
  margin: 20px 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* === Modal Guion Reel === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.modal-card {
  background: var(--glass);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 520px;
  color: var(--text);
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.modal-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--text);
}

.modal-card pre {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Inter', monospace;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 8px;
}
/* === Navegación responsive (2 filas en móvil) === */
@media (max-width: 768px) {
  .vs-header{
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    overflow-x: hidden !important;
  }

  .vs-logo{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
  }

  /* Cambiamos la nav a grid: 2 columnas -> 2 filas: 
     Dashboard | Agencia
     Diseño    | Clientes */
  .vs-nav{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .vs-nav a{
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid var(--brd) !important;
    background: rgba(255,255,255,0.06) !important;
  }
}



/* === FIX FINAL: videos limpios y botón central estilo iOS === */

/* 1️⃣ Anula el aspect-ratio y fondo del contenedor */
.post-card__media {
  position: relative;
  aspect-ratio: unset !important;
  background: transparent !important;
  border: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2️⃣ Neutraliza cualquier pseudo-elemento o gradiente residual */
.post-card__media::before,
.post-card__media::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 3️⃣ Quita gradientes de temas en zonas de video */
.theme-violet .post-card__media,
.theme-cyan .post-card__media,
.theme-magenta .post-card__media {
  background: none !important;
}

/* 4️⃣ Asegura video totalmente ajustado */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: transparent !important;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}

/* 5️⃣ Botón central translúcido con blur */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 2;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.video-play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 3px;
}

.video-play-btn:hover {
  background: rgba(255,255,255,.25);
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 24px rgba(255,255,255,.3);
}

/* 6️⃣ Animación de estado “playing” */
.video-play-btn.playing::before {
  width: 6px;
  height: 24px;
  background: #fff;
  box-shadow: 10px 0 0 #fff;
  border: none;
  content: "";
}

/* 7️⃣ Asegura que nunca haya líneas, bordes ni artefactos */
.post-card__media,
.post-card__media * {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* === Ajustes adicionales Void Studio === */

/* === Placeholder moderno con ícono animado === */
.placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(155,92,255,.25), rgba(0,229,255,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 40px rgba(0,0,0,0.2);
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 60%),
              radial-gradient(circle at bottom right, rgba(255,78,205,0.1), transparent 70%);
  animation: shimmer 8s linear infinite alternate;
  z-index: 1;
}

.placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.4s ease;
  z-index: 2;
}

.placeholder:hover svg {
  opacity: 0.45;
  transform: scale(1.08);
}

@keyframes shimmer {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(45deg); }
}

}

/* Cards uniformes en altura */
.post-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 22px;
  min-height: 620px; /* altura uniforme en todas las filas */
  overflow: hidden;
}

/* Medios (imágenes o videos) consistentes */
.post-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #101522;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__media img,
.post-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Botón central translúcido de video */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 2;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.video-play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 3px;
}

.video-play-btn.playing::before {
  width: 6px;
  height: 24px;
  background: #fff;
  box-shadow: 10px 0 0 #fff;
  border: none;
  content: "";
}


/* === Caption tipo Instagram (real y estable) === */
.caption {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5em;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.25s ease;
}

.caption.expanded {
  -webkit-line-clamp: unset !important;
  overflow: visible;
  max-height: none;
}

.caption-toggle {
  color: #9b5cff;
  cursor: pointer;
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
  font-size: 14px;
  transition: color 0.2s ease;
}

.caption-toggle:hover {
  color: #ff4ecd;
}
/* === Alinear perfectamente los botones de acciones === */
.post-card__body .actions {
  display: flex;
  align-items: center; /* 🔥 alinea verticalmente */
  gap: 8px;
  margin-top: 10px;
}

.post-card__body .actions .btn,
.post-card__body .actions a {
  margin-top: 0 !important; /* 🔧 elimina diferencias entre botones */
  line-height: 1.2;          /* asegura alturas uniformes */
  padding-top: 10px;
  padding-bottom: 10px;
}

/* === Rediseño Void Studio — Barra de filtros (ajustada y refinada) === */
.filters.card-glass {
  display: flex;
  flex-direction: column;
  padding: 20px 28px;
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 20px rgba(0,0,0,0.25),
    inset 0 -2px 8px rgba(155,92,255,0.15); /* 💫 borde inferior violeta */
}

/* === Estructura general de la grilla === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 20px;
  align-items: end;
}

/* Campos */
.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  gap: 6px;
}

.form-grid select,
.form-grid input {
  appearance: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.25s ease;
}

.form-grid select:hover,
.form-grid input:hover {
  border-color: rgba(155,92,255,0.3);
}

.form-grid select:focus,
.form-grid input:focus {
  outline: none;
  border-color: rgba(155,92,255,0.5);
  background: rgba(155,92,255,0.08);
}

/* === Botones (alineados a la izquierda) === */
.filter-actions {
  display: flex;
  justify-content: flex-start; /* ✅ ahora a la izquierda */
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Botones base */
.filter-actions .btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.3s ease;
}

/* Filtrar — versión Void elegante */
.filter-actions .btn.btn-liquid {
  background: rgba(155,92,255,0.18);
  color: #fff;
  border: 1px solid rgba(155,92,255,0.25);
  box-shadow: 0 0 10px rgba(155,92,255,0.15);
}

.filter-actions .btn.btn-liquid:hover {
  background: rgba(155,92,255,0.32);
  border-color: rgba(155,92,255,0.45);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(155,92,255,0.25);
}

/* Limpiar — estilo ghost refinado */
.filter-actions .btn.btn-ghost {
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.03);
}

.filter-actions .btn.btn-ghost:hover {
  color: #fff;
  border-color: rgba(155,92,255,0.4);
  background: rgba(155,92,255,0.1);
}

/* === Responsive === */
@media (max-width: 640px) {
  .filter-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* === Fondo del modal (más transparente y atmosférico) === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 50% 50%,
      rgba(10, 10, 20, 0.55) 0%,
      rgba(5, 5, 10, 0.75) 100%
  ); /* 🔮 más translúcido y con profundidad */
  backdrop-filter: blur(18px) saturate(160%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.upload-modal {
  background: rgba(30, 30, 35, 0.9);
  border-radius: 18px;
  width: 90%;
  max-width: 600px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(155,92,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.97);}
  to {opacity: 1; transform: scale(1);}
}

.modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.preview-zone {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.design-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  object-fit: cover;
}

.placeholder {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.dropzone {
  margin-top: 10px;
  padding: 30px;
  border: 2px dashed rgba(155,92,255,0.25);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
}

.dropzone:hover {
  border-color: rgba(155,92,255,0.5);
  background: rgba(155,92,255,0.05);
}

.dropzone.dragover {
  border-color: rgba(155,92,255,0.7);
  background: rgba(155,92,255,0.1);
}

.dropzone-label {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* Botones coherentes con el resto */
.modal-actions .btn.btn-liquid {
  background: rgba(155,92,255,0.2);
  color: #fff;
  border: 1px solid rgba(155,92,255,0.3);
}

.modal-actions .btn.btn-liquid:hover {
  background: rgba(155,92,255,0.35);
  border-color: rgba(155,92,255,0.5);
}

.modal-actions .btn.btn-ghost {
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.03);
}

.modal-actions .btn.btn-ghost:hover {
  color: #fff;
  border-color: rgba(155,92,255,0.4);
  background: rgba(155,92,255,0.1);
}
/* === Barra de acciones en filtros === */
.filter-actions {
  display: flex;
  justify-content: space-between; /* 👉 Filtrar a la izq, Crear a la der */
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
}

.create-post-btn {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.create-post-btn:hover {
  color: #fff;
  border-color: rgba(155,92,255,0.4);
  background: rgba(155,92,255,0.1);
}

/* === Modal Crear Publicación === */
.modal-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 20px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  gap: 6px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
}

.modal-form textarea {
  resize: vertical;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: rgba(155,92,255,0.4);
  background: rgba(155,92,255,0.1);
}

/* Reel extra dentro del modal de creación */
.modal-form .reel-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

@media (max-width: 700px) {
  .modal-form .reel-extra {
    grid-template-columns: 1fr;
  }
}
/* === FIX ligero: eliminar scroll lateral sin alterar layout === */
html, body {
  overflow-x: hidden !important;
}

.btn-script-float {
  position: absolute;
  top: 10px;          /* mismo nivel vertical que el badge */
  left: 65px;         /* desplazado justo al lado derecho del badge */
  background: rgba(155,92,255,0.25);
  border: 1px solid rgba(155,92,255,0.45);
  color: #fff;
  font-size: 17px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .25s ease;
  z-index: 5;
}
.btn-script-float:hover {
  background: rgba(155,92,255,0.45);
  transform: scale(1.05);
}
