/* =============================================
   STATIC ADS LAB — User Styles v3
   Clean, professional UI with dropdown filters
   ============================================= */

/* ========== TOOLBAR (Search + Filters) ========== */
.al-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.al-search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.al-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  pointer-events: none;
}
.al-search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 10px;
  color: #374151;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.al-search:focus {
  border-color: rgba(124,92,252,0.4);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.08);
}
.al-search::placeholder { color: #4b5563; }

.al-filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.al-filter-select {
  padding: 9px 32px 9px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 10px;
  color: #374151;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.al-filter-select:focus {
  border-color: rgba(124,92,252,0.4);
}
.al-filter-select option {
  background: #f1f3f9;
  color: #374151;
}
.al-filter-count {
  font-size: 0.76rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(148,163,184,0.06);
  border-radius: 20px;
}

/* ========== GALLERY ========== */
.al-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding-bottom: 2rem;
}
.al-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: #475569;
}
.al-empty svg { margin-bottom: 12px; }
.al-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  color: #4b5563;
}
.al-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(124,92,252,0.15);
  border-top-color: #7c5cfc;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: al-spin 0.7s linear infinite;
}
@keyframes al-spin { to { transform: rotate(360deg); } }

/* ========== CARDS ========== */
.al-card {
  background: rgba(244,245,251,0.5);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s;
  animation: al-up 0.3s ease-out both;
}
@keyframes al-up { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
.al-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  border-color: rgba(124,92,252,0.2);
}
.al-card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f1f3f9;
}
.al-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.al-card:hover .al-card-img img { transform: scale(1.05); }
.al-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.al-card:hover .al-card-hover { opacity: 1; }
.al-card-hover span {
  padding: 8px 18px;
  background: rgba(124,92,252,0.9);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.al-card-formato {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 6px;
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.al-card-info {
  padding: 12px 14px 8px;
}
.al-card-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2b3040;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-card-cat {
  font-size: 0.7rem;
  color: #7c5cfc;
  font-weight: 500;
}
.al-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px 14px 12px;
}
.al-card-tag {
  padding: 2px 8px;
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.12);
  border-radius: 12px;
  color: #a78bfa;
  font-size: 0.64rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ========== OVERLAY & WIZARD ========== */
.al-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.al-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}
.al-wizard {
  position: relative;
  background: linear-gradient(180deg, #f1f3f9 0%, #1a2232 100%);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  padding: 28px;
}
.al-wizard::-webkit-scrollbar { width: 5px; }
.al-wizard::-webkit-scrollbar-track { background: transparent; }
.al-wizard::-webkit-scrollbar-thumb { background: rgba(124,92,252,0.2); border-radius: 3px; }
.al-wiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148,163,184,0.08);
  border: none;
  border-radius: 10px;
  color: #4b5563;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s;
}
.al-wiz-close:hover { background: rgba(148,163,184,0.18); }

/* Wizard Progress */
.al-wiz-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; gap: 0; }
.al-wiz-step { display: flex; align-items: center; gap: 7px; }
.al-wiz-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(148,163,184,0.08); color: #4b5563; font-size: 0.75rem; font-weight: 700; border: 2px solid rgba(148,163,184,0.12); transition: all 0.25s; }
.al-wiz-step.active .al-wiz-num { background: rgba(124,92,252,0.12); color: #a78bfa; border-color: #7c5cfc; }
.al-wiz-label { font-size: 0.75rem; color: #4b5563; font-weight: 500; }
.al-wiz-step.active .al-wiz-label { color: #374151; }
.al-wiz-line { width: 40px; height: 2px; background: rgba(148,163,184,0.1); margin: 0 8px; transition: background 0.25s; }
.al-wiz-line.active { background: #7c5cfc; }

/* Step 1 */
.al-wiz-chosen { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(124,92,252,0.04); border: 1px solid rgba(124,92,252,0.1); border-radius: 12px; margin-bottom: 16px; }
.al-wiz-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(148,163,184,0.08); }
.al-wiz-chosen-label { display: block; font-size: 0.66rem; color: #475569; text-transform: uppercase; letter-spacing: 0.4px; }
.al-wiz-chosen-name { display: block; font-size: 0.88rem; color: #2b3040; font-weight: 600; margin-top: 2px; }
.al-wiz-chosen-cat { display: block; font-size: 0.72rem; color: #4b5563; margin-top: 2px; }
.al-wiz-divider { text-align: center; margin: 18px 0; position: relative; }
.al-wiz-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(148,163,184,0.08); }
.al-wiz-divider span { position: relative; background: #f1f3f9; padding: 0 14px; font-size: 0.76rem; color: #475569; }
.al-wiz-section-title { font-size: 0.92rem; font-weight: 600; color: #2b3040; margin: 0 0 18px; }

/* Upload */
.al-upload-zone { margin-bottom: 16px; }
.al-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 2px dashed rgba(148,163,184,0.15); border-radius: 14px; cursor: pointer; transition: all 0.2s; color: #4b5563; }
.al-dropzone:hover, .al-dropzone.dragover { border-color: #7c5cfc; background: rgba(124,92,252,0.03); }
.al-upload-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.al-upload-preview img { max-width: 100%; max-height: 200px; border-radius: 12px; border: 1px solid rgba(148,163,184,0.08); }

/* Forms */
.al-form-group { margin-bottom: 16px; }
.al-label { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.al-req { color: #ef4444; }
.al-opt { font-weight: 400; color: #475569; font-size: 0.76rem; }
.al-input, .al-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 10px;
  color: #374151;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.al-input:focus, .al-select:focus {
  border-color: rgba(124,92,252,0.4);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.08);
}
.al-input::placeholder { color: #4b5563; }
.al-select option { background: #f1f3f9; color: #374151; }
.al-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 10px;
  color: #374151;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.al-textarea:focus {
  border-color: rgba(124,92,252,0.4);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.08);
}
.al-textarea::placeholder { color: #4b5563; }

/* Wizard actions */
.al-wiz-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(148,163,184,0.06); }
.al-btn-primary { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; background: linear-gradient(135deg, #7c5cfc, #6d4aed); color: #fff; border: none; border-radius: 10px; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.al-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,92,252,0.3); }
.al-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.al-btn-ghost { padding: 10px 18px; background: transparent; color: #4b5563; border: 1px solid rgba(148,163,184,0.12); border-radius: 10px; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; }
.al-btn-ghost:hover { background: rgba(148,163,184,0.06); color: #374151; border-color: rgba(148,163,184,0.2); }
.al-btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.al-btn-go { padding: 12px 26px; font-size: 0.88rem; }
.al-spinner-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.212); border-top-color: #fff; border-radius: 50%; animation: al-spin 0.6s linear infinite; }

/* ========== STEP 3: COPY OPTIONS ========== */
.al-copy-option { padding: 16px; background: rgba(255,255,255,0.3); border: 2px solid rgba(148,163,184,0.08); border-radius: 14px; margin-bottom: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.al-copy-option:hover { border-color: rgba(124,92,252,0.18); background: rgba(255,255,255,0.5); }
.al-copy-option.selected { border-color: #7c5cfc; background: rgba(124,92,252,0.04); }
.al-copy-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: rgba(124,92,252,0.1); color: #7c5cfc; border-radius: 7px; font-size: 0.72rem; font-weight: 700; margin-bottom: 10px; }
.al-copy-fields { display: flex; flex-direction: column; gap: 10px; }
.al-copy-field label { display: block; font-size: 0.68rem; color: #475569; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; font-weight: 600; }
.al-copy-input { width: 100%; padding: 9px 12px; background: rgba(244,245,251,0.5); border: 1px solid rgba(148,163,184,0.08); border-radius: 8px; color: #374151; font-size: 0.82rem; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.al-copy-input:focus { border-color: rgba(124,92,252,0.3); }
.al-copy-textarea { resize: vertical; min-height: 40px; max-height: 120px; line-height: 1.45; font-family: inherit; padding: 10px 12px; }
.al-section-divider { height: 1px; background: rgba(148,163,184,0.06); margin: 20px 0; }

/* Format selector */
.al-formats { display: flex; gap: 10px; }
.al-format { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px; background: rgba(255,255,255,0.3); border: 2px solid rgba(148,163,184,0.08); border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.al-format:hover { border-color: rgba(124,92,252,0.2); }
.al-format.active { border-color: #7c5cfc; background: rgba(124,92,252,0.04); }
.al-format span { font-size: 0.72rem; color: #4b5563; font-weight: 500; }
.al-format.active span { color: #a78bfa; }
.al-fmt-box { background: rgba(124,92,252,0.2); border-radius: 3px; }
.al-fmt-box.sq { width: 28px; height: 28px; }
.al-fmt-box.vt { width: 20px; height: 34px; }
.al-fmt-box.hz { width: 34px; height: 20px; }

/* Model selector */
.al-models { display: flex; gap: 10px; }
.al-model { flex: 1; padding: 14px; background: rgba(255,255,255,0.3); border: 2px solid rgba(148,163,184,0.08); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; }
.al-model:hover { border-color: rgba(124,92,252,0.2); }
.al-model.active { border-color: #7c5cfc; background: rgba(124,92,252,0.04); }
.al-model-top { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.al-model-name { font-size: 0.82rem; font-weight: 600; color: #374151; }
.al-model-quality { font-size: 0.66rem; padding: 2px 8px; background: rgba(124,92,252,0.08); color: #a78bfa; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.al-model-cost { font-size: 0.78rem; color: #fbbf24; }
.al-model-cost strong { font-weight: 700; }

/* Result */
.al-result { text-align: center; }
.al-result-img { margin-bottom: 20px; }
.al-result-img img { max-width: 100%; max-height: 400px; border-radius: 14px; border: 1px solid rgba(148,163,184,0.08); box-shadow: 0 12px 36px rgba(0,0,0,0.35); }
.al-result-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ========== DETAIL MODAL ========== */
.al-detail-modal {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 85vh;
  background: linear-gradient(180deg, #f1f3f9 0%, #141c2b 100%);
  border-radius: 20px;
  border: 1px solid rgba(124,92,252,0.15);
  overflow-y: auto;
  padding: 32px;
  z-index: 1001;
  animation: alSlideUp 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
@keyframes alSlideUp { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
.al-detail-layout { display: flex; gap: 28px; }
.al-detail-left { flex: 0 0 320px; display: flex; flex-direction: column; gap: 16px; }
.al-detail-img { width: 100%; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.4); }
.al-btn-choose { width: 100%; padding: 14px 20px !important; font-size: 0.95rem !important; font-weight: 600; gap: 8px; justify-content: center; display: flex; align-items: center; }
.al-detail-right { flex: 1; min-width: 0; }
.al-detail-title { font-size: 1.25rem; font-weight: 700; color: #2b3040; margin: 0 0 8px; }
.al-detail-badges { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.al-tag-nicho { background: rgba(124,92,252,0.12); color: #a78bfa; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.al-tag-formato { background: rgba(56,189,248,0.1); color: #38bdf8; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.al-detail-section { margin-bottom: 20px; }
.al-detail-section h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #7c5cfc; margin: 0 0 10px; }
.al-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.al-detail-grid > div { display: flex; flex-direction: column; gap: 2px; }
.al-detail-label { font-size: 0.68rem; text-transform: uppercase; color: #4b5563; letter-spacing: 0.5px; font-weight: 500; }
.al-detail-grid > div > span:last-child { font-size: 0.84rem; color: #374151; }
.al-detail-text { font-size: 0.84rem; color: #4b5563; line-height: 1.5; margin: 0; }
.al-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.al-detail-modal::-webkit-scrollbar { width: 5px; }
.al-detail-modal::-webkit-scrollbar-track { background: transparent; }
.al-detail-modal::-webkit-scrollbar-thumb { background: rgba(124,92,252,0.25); border-radius: 3px; }

/* ========== FW TYPE BADGE ========== */
.al-fw-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124,92,252,0.05);
  border: 1px solid rgba(124,92,252,0.12);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.al-fw-type-badge strong { color: #374151; }

/* ========== PHOTO PICKER ========== */
.al-photo-picker { margin-top: 6px; }
.al-photo-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; min-height: 20px; }
.al-photo-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; border: 2px solid rgba(0,0,0,0.06); transition: all 0.2s; flex-shrink: 0; }
.al-photo-thumb:hover { border-color: rgba(124,92,252,0.4); transform: scale(1.05); }
.al-photo-thumb.selected { border-color: #7c5cfc; box-shadow: 0 0 0 2px rgba(124,92,252,0.25); }
.al-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.al-photo-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.58rem; text-align: center; padding: 2px 3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-photo-upload-row { display: flex; align-items: center; gap: 10px; }
.al-photo-upload-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 8px; background: rgba(124,92,252,0.1); color: #a78bfa; font-size: 0.78rem; font-weight: 500; cursor: pointer; border: 1px dashed rgba(124,92,252,0.25); transition: background 0.2s; }
.al-photo-upload-btn:hover { background: rgba(124,92,252,0.18); }
.al-photo-hint { font-size: 0.72rem; color: #475569; }
.al-photo-empty { font-size: 0.75rem; color: #475569; font-style: italic; }

/* ========== COLOR PICKER ========== */
.al-color-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.al-color-pick { display: flex; align-items: center; gap: 8px; }
.al-color-input { -webkit-appearance: none; appearance: none; width: 40px; height: 40px; border: 2px solid rgba(0,0,0,0.08); border-radius: 10px; cursor: pointer; background: none; padding: 2px; transition: border-color 0.2s; }
.al-color-input:hover { border-color: rgba(124,92,252,0.4); }
.al-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.al-color-input::-webkit-color-swatch { border: none; border-radius: 7px; }
.al-color-input::-moz-color-swatch { border: none; border-radius: 7px; }
.al-color-label { font-size: 0.74rem; color: #4b5563; }
.al-color-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #4b5563; cursor: pointer; margin-left: auto; }
.al-color-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: #7c5cfc; cursor: pointer; }

/* ========== SAVE BUTTON ========== */
.al-btn-save { display: flex; align-items: center; gap: 6px; padding: 10px 18px; background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.25); color: #a78bfa; border-radius: 10px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.al-btn-save:hover { background: rgba(167,139,250,0.18); border-color: rgba(167,139,250,0.4); }
.al-btn-save.saved { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: #22c55e; cursor: default; }
.al-btn-save:disabled { opacity: 0.7; cursor: wait; }

/* ========== CONTAINER PADDING ========== */
#adslab-user-container { padding: 0 50px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #adslab-user-container { padding: 0 16px; }
  .al-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .al-search-box { max-width: none; }
  .al-filter-selects { width: 100%; }
  .al-filter-select { flex: 1; min-width: 0; }
  .al-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .al-wizard { padding: 20px; max-height: 92vh; }
  .al-models { flex-direction: column; }
  .al-wiz-line { width: 24px; }
  .al-detail-modal { padding: 20px; width: 95vw; }
  .al-detail-layout { flex-direction: column; }
  .al-detail-left { flex: none; }
  .al-detail-img { max-height: 300px; object-fit: contain; }
}

/* Card meta tags - nicho + formato */
.al-card-meta { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.al-meta-tag {
  display:inline-flex; align-items:center;
  font-size:0.68rem; font-weight:600; letter-spacing:0.02em;
  padding:3px 8px; border-radius:6px;
  line-height:1.2;
}
.al-meta-nicho {
  background:rgba(148,163,184,0.1); color:#4b5563;
  border:1px solid rgba(148,163,184,0.2);
}
/* Formato colors by type */
.al-meta-formato { border-width:1px; border-style:solid; }
.al-meta-formato[data-fmt="Antes/Después"]   { background:rgba(251,146,60,0.1);  color:#fb923c; border-color:rgba(251,146,60,0.3); }
.al-meta-formato[data-fmt="Beneficios"]       { background:rgba(52,211,153,0.1);  color:#34d399; border-color:rgba(52,211,153,0.3); }
.al-meta-formato[data-fmt="Comparativa"]      { background:rgba(96,165,250,0.1);  color:#60a5fa; border-color:rgba(96,165,250,0.3); }
.al-meta-formato[data-fmt="Educativo"]        { background:rgba(167,139,250,0.1); color:#a78bfa; border-color:rgba(167,139,250,0.3); }
.al-meta-formato[data-fmt="Lifestyle"]        { background:rgba(244,114,182,0.1); color:#f472b6; border-color:rgba(244,114,182,0.3); }
.al-meta-formato[data-fmt="Oferta"]           { background:rgba(250,204,21,0.1);  color:#facc15; border-color:rgba(250,204,21,0.3); }
.al-meta-formato[data-fmt="Problema/Solución"]{ background:rgba(248,113,113,0.1); color:#f87171; border-color:rgba(248,113,113,0.3); }
.al-meta-formato[data-fmt="Testimonio/UGC"]   { background:rgba(45,212,191,0.1);  color:#2dd4bf; border-color:rgba(45,212,191,0.3); }


/* ─── Creative Studio Slide Panel ─── */
.al-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
}
.al-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.al-chat-panel {
  position: relative;
  width: 720px;
  max-width: 90vw;
  height: 100vh;
  background: #f8f9fc;
  border-left: 1px solid rgba(168,85,247,0.15);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.al-chat-panel.open {
  transform: translateX(0);
}
.al-panel-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(255,255,255,0.9);
  color: #4b5563;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.al-panel-close:hover {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.3);
  color: #374151;
}

/* Panel mode overrides for Creative Studio */
.cs-panel-mode #cs-header {
  border-bottom: 1px solid rgba(148,163,184,0.08);
  padding: 12px 16px !important;
}
.cs-panel-mode #cs-brand-bar {
  padding: 8px 12px;
}
.cs-panel-mode #csMessages {
  padding: 12px 14px !important;
}
.cs-panel-mode #cs-input-area {
  padding: 8px 12px 12px;
}
.cs-panel-mode .cs-msg-bubble {
  max-width: 95%;
}
.cs-panel-mode .cs-ref-chip img {
  width: 36px;
  height: 36px;
}

/* Responsive: full width on mobile */
@media (max-width: 640px) {
  .al-chat-panel {
    width: 100vw;
    max-width: 100vw;
  }
}
