/* === AD CREATIVE GENERATOR === */
.ac-header {
  padding: 64px 48px 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.ac-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.ac-title-accent { color: var(--ember); }

.ac-subtitle {
  font-size: 15px;
  color: var(--fg-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.ac-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 200px);
}

.ac-sidebar {
  border-right: 1px solid rgba(245, 240, 232, 0.06);
  padding: 32px 28px;
  position: sticky;
  top: 0;
  height: calc(100vh - 200px);
  overflow-y: auto;
}

.ac-sidebar-section {
  margin-bottom: 32px;
}

.ac-sidebar-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.product-select-card {
  background: var(--surface);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 2px;
  padding: 16px 18px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.product-select-card:hover {
  border-color: rgba(245, 240, 232, 0.16);
}

.product-select-card.selected {
  border-color: var(--ember);
  background: var(--ember-dim);
}

.product-select-card .psc-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-select-card .psc-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

.product-select-card .psc-meta span {
  color: var(--ember);
  font-weight: 600;
}

.ac-generate-btn {
  width: 100%;
  background: var(--ember);
  color: #fff;
  border: none;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 24px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.ac-generate-btn:hover { background: #e64a19; }
.ac-generate-btn:active { transform: scale(0.98); }
.ac-generate-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Main content area */
.ac-main {
  padding: 32px 48px 80px;
  overflow-y: auto;
}

/* Empty state */
.ac-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
}

.ac-empty-icon {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(245, 240, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--fg-muted);
  font-size: 20px;
}

.ac-empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ac-empty-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* Loading state */
.ac-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
}

.ac-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(245, 240, 232, 0.1);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 20px;
}

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

.ac-loading-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Creative pack sections */
.ac-section {
  margin-bottom: 48px;
}

.ac-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.ac-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-section-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

.platform-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(245, 240, 232, 0.05);
  color: var(--fg-muted);
  border: 1px solid rgba(245, 240, 232, 0.08);
}

/* Hooks grid */
.hooks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hook-card {
  background: var(--surface);
  border: 1px solid rgba(245, 240, 232, 0.05);
  border-radius: 2px;
  padding: 20px;
  transition: border-color 0.2s;
}

.hook-card:hover { border-color: rgba(245, 240, 232, 0.12); }

.hook-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
}

.hook-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.hook-angle {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Script cards */
.scripts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.script-card {
  background: var(--surface);
  border: 1px solid rgba(245, 240, 232, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.script-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.script-title {
  font-size: 14px;
  font-weight: 700;
}

.script-duration {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.script-body {
  padding: 18px 22px;
}

.script-structure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.struct-block {
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.04);
  padding: 12px;
  border-radius: 2px;
}

.struct-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 6px;
}

.struct-val {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.script-narration {
  background: rgba(255, 87, 34, 0.06);
  border: 1px solid rgba(255, 87, 34, 0.1);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 12px;
  font-style: italic;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 12px;
}

.script-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.script-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.script-meta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.script-meta-val {
  font-size: 11px;
  color: var(--fg-muted);
}

/* Facebook/Instagram ads */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ad-card {
  background: var(--surface);
  border: 1px solid rgba(245, 240, 232, 0.05);
  border-radius: 2px;
  padding: 20px;
}

.ad-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--fg);
}

.ad-primary-text {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.ad-description {
  font-size: 11px;
  color: rgba(154, 149, 144, 0.6);
  margin-bottom: 14px;
  font-style: italic;
}

.ad-cta {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}

/* Pinterest pins */
.pins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pin-card {
  background: var(--surface);
  border: 1px solid rgba(245, 240, 232, 0.05);
  border-radius: 2px;
  padding: 20px;
}

.pin-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pin-desc {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.pin-concept {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  padding: 10px 12px;
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.04);
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Visual themes */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.theme-card {
  background: var(--surface);
  border: 1px solid rgba(245, 240, 232, 0.05);
  border-radius: 2px;
  padding: 20px;
}

.theme-adtype {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}

.theme-aesthetic {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.theme-colors {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(245, 240, 232, 0.1);
}

.theme-mood {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}

/* Copy export panel */
.ac-export {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.export-btn {
  background: var(--surface2);
  border: 1px solid rgba(245, 240, 232, 0.12);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn:hover {
  background: var(--ember);
  border-color: var(--ember);
}

/* Hashtag style */
.hashtags {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ember);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ac-layout { grid-template-columns: 1fr; }
  .ac-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid rgba(245, 240, 232, 0.06); }
  .hooks-grid, .ads-grid, .themes-grid { grid-template-columns: 1fr; }
  .script-structure { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ac-header, .ac-main { padding-left: 24px; padding-right: 24px; }
  .ac-title { font-size: 26px; }
}