/* ==========================================================================
   ListerCraft AI — Modern Artisan Dark Theme & Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0a0c10;
  --bg-surface: #12151c;
  --bg-card: rgba(22, 27, 36, 0.75);
  --bg-card-hover: rgba(30, 37, 49, 0.85);
  --bg-glass: rgba(18, 22, 31, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(245, 158, 11, 0.35);

  /* Artisan Amber & Copper Accents */
  --amber-primary: #f59e0b;
  --amber-glow: #fbbf24;
  --amber-deep: #b45309;
  --copper-accent: #ea580c;
  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --cyan-accent: #06b6d4;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-highlight: #fef3c7;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient dynamic background glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.05) 70%, transparent 100%);
  top: -100px;
  left: 10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.04) 70%, transparent 100%);
  top: 30%;
  right: -100px;
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
  bottom: 0;
  left: 25%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.header-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.25));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

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

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-title .highlight {
  color: var(--amber-glow);
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-ai {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #000;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.system-status-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-pill strong {
  color: var(--text-main);
}

.active-pill {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.active-pill strong {
  color: #34d399;
}

.dot-indicator {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
}

.pulsing {
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 8px 3px rgba(16, 185, 129, 0.4); }
}

.privacy-pill {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.cost-pill {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
  color: #67e8f9;
}

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

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.github-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15));
  border-color: var(--border-glow);
  color: #fde68a;
}

.github-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(234, 88, 12, 0.3));
  border-color: var(--amber-glow);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Preset Showcase Strip
   ========================================================================== */
.preset-section {
  position: relative;
  z-index: 10;
  max-width: 1560px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.preset-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

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

.preset-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.preset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.preset-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.preset-card.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 88, 12, 0.08));
  border-color: var(--amber-primary);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.preset-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.preset-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preset-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber-glow);
  letter-spacing: 0.5px;
}

.preset-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ==========================================================================
   Main Workspace Layout
   ========================================================================== */
.main-workspace {
  position: relative;
  z-index: 10;
  max-width: 1560px;
  margin: 16px auto 30px;
  padding: 0 24px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 360px 1.4fr 390px;
  gap: 16px;
  align-items: stretch;
}

/* Base Panel Styles */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-icon {
  font-size: 18px;
}

.panel-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.btn-text-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.btn-text-sm:hover {
  color: var(--amber-glow);
}

/* ==========================================================================
   Left Panel: Product Studio & Specs
   ========================================================================== */
.studio-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.media-preview-box {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.media-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-action-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.toolbar-action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.toolbar-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  color: #fff;
}

.toolbar-action-btn.upload-photo-btn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--amber-glow);
}

.toolbar-action-btn.upload-photo-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--amber-primary);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
  color: #fff;
}

.toolbar-action-btn.loupe-action-btn.active {
  background: var(--amber-primary);
  color: #000;
  border-color: var(--amber-glow);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.spec-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-row {
  display: flex;
  gap: 10px;
}

.col-6 {
  flex: 1;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.form-group select option {
  background: #161b24;
  color: #fff;
}

.btn-primary-generate {
  margin-top: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #000;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  filter: brightness(1.08);
}

.btn-primary-generate:active {
  transform: translateY(0);
}

.btn-primary-generate .btn-icon {
  font-size: 16px;
}

.btn-primary-generate .btn-subtext {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
}

/* Inventory & Provenance Telemetry Card */
.inventory-telemetry-card {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.telemetry-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-icon {
  font-size: 14px;
}

.telemetry-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-glow);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.telem-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.telem-val {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.telem-val.in-stock {
  color: #34d399;
}

.telem-val.verified {
  color: #38bdf8;
}

.provenance-checklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.provenance-checklist .check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.provenance-checklist .check-icon {
  color: #34d399;
  font-weight: 800;
  font-size: 11px;
}

/* ==========================================================================
   Center Panel: Multi-Platform Listing Studio
   ========================================================================== */
.listing-panel .panel-header {
  padding: 10px 16px;
}

.platform-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.platform-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.platform-tab.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--amber-glow);
}

.panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-light);
}

/* Audio Waveform Bar */
.audio-waveform-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.waveform-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--amber-glow);
  border-radius: 50%;
  animation: pulse-dot 1s infinite alternate;
}

.waveform-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-glow);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.equalizer-bars .bar {
  width: 3px;
  background-color: var(--amber-glow);
  border-radius: 2px;
  animation: bounce-equalizer 0.8s infinite ease-in-out alternate;
}

.equalizer-bars .bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.equalizer-bars .bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.equalizer-bars .bar:nth-child(3) { height: 18px; animation-delay: 0.15s; }
.equalizer-bars .bar:nth-child(4) { height: 10px; animation-delay: 0.4s; }
.equalizer-bars .bar:nth-child(5) { height: 16px; animation-delay: 0.2s; }
.equalizer-bars .bar:nth-child(6) { height: 8px; animation-delay: 0.35s; }
.equalizer-bars .bar:nth-child(7) { height: 17px; animation-delay: 0.25s; }
.equalizer-bars .bar:nth-child(8) { height: 12px; animation-delay: 0.45s; }
.equalizer-bars .bar:nth-child(9) { height: 7px; animation-delay: 0.18s; }

@keyframes bounce-equalizer {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.btn-stop-audio {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-stop-audio:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
}

.listing-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.platform-meta-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.meta-title-preview {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.meta-char-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.meta-char-badge.safe {
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.editor-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 250px;
}

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

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

.word-counter {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
}

.listing-textarea {
  width: 100%;
  flex: 1;
  min-height: 220px;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  line-height: 1.6;
  color: #e2e8f0;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.listing-textarea:focus {
  outline: none;
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

/* Etsy 13 Tags Section */
.etsy-tags-section {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.tags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tags-badge {
  background: var(--amber-primary);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.tags-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.btn-copy-tags {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-glow);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-tags:hover {
  background: var(--amber-primary);
  color: #000;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  border-color: var(--amber-glow);
  background: rgba(245, 158, 11, 0.1);
}

.tag-chars {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--amber-glow);
}

/* SEO Scorecard */
.seo-scorecard {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

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

.scorecard-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-pill {
  background: #10b981;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.score-meta {
  font-size: 11px;
  color: #6ee7b7;
  font-weight: 600;
}

.score-status {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}

.score-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.score-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.score-badge-item .badge-icon {
  color: #34d399;
  font-weight: 800;
}

/* ==========================================================================
   Right Panel: Profit Margin & Fee Calculator
   ========================================================================== */
.calc-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 4px;
}

.calculator-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.calc-inputs-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.input-label-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-val-badge {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--amber-glow);
}

.custom-slider {
  width: 100%;
  accent-color: var(--amber-primary);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.direct-number-input {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px 8px;
  width: 100px;
  align-self: flex-end;
}

.currency-symbol {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.direct-number-input input {
  background: none;
  border: none;
  color: #fff;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  width: 100%;
  outline: none;
}

/* Fee Comparison Grid */
.fee-comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fee-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.fee-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.etsy-fee-card {
  border-left: 3px solid #f97316;
}

.ebay-fee-card {
  border-left: 3px solid #0284c7;
}

.shopify-fee-card {
  border-left: 3px solid #10b981;
}

.fee-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fee-platform {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.fee-cut-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.fee-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.fee-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}

.fee-stat-row strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.fee-deduct strong {
  color: #f87171;
}

.fee-stat-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.net-row {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.profit-highlight {
  font-size: 15px;
  color: #34d399 !important;
  font-family: var(--font-mono);
}

.fee-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.margin-pill, .roi-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.margin-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.roi-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Advisor Card */
.advisor-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.advisor-icon {
  font-size: 18px;
  line-height: 1;
}

.advisor-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-glow);
  margin-bottom: 2px;
}

.advisor-text p {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Export Hub */
.export-hub {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-export {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-export:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--amber-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 20px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

/* Case Study Content */
.case-study-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.case-study-img {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-study-img img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.img-caption {
  font-size: 11px;
  color: var(--text-subtle);
  font-style: italic;
  text-align: center;
}

.quote-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--amber-primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
}

.quote-box p {
  font-size: 13px;
  font-style: italic;
  color: #fef3c7;
  line-height: 1.5;
  margin-bottom: 6px;
}

.quote-box cite {
  font-size: 12px;
  color: var(--amber-glow);
  font-style: normal;
}

.metric-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric-tiles .tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.metric-tiles .tile-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #34d399;
  font-family: var(--font-mono);
}

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

.case-study-details h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.case-study-details p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Architecture Modal Points */
.arch-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-primary), var(--copper-accent));
  color: #000;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-point strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.arch-point p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(8px);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 12, 16, 0.9);
  padding: 18px 24px;
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-container strong {
  color: var(--text-muted);
}

.sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.15);
}

.footer-container a {
  color: var(--amber-glow);
  text-decoration: none;
}

.footer-container a:hover {
  text-decoration: underline;
}

/* Header Accent Buttons */
.batch-nav-btn {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--amber-glow) !important;
}
.batch-nav-btn:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.social-nav-btn {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}
.social-nav-btn:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Advanced Feature: Flaw Loupe & Return-Shield Pinning
   ========================================================================== */
.media-preview-box {
  position: relative;
  overflow: hidden;
}

.loupe-toggle-btn {
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.loupe-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--amber-glow);
}
.loupe-toggle-btn.active {
  background: var(--amber-primary);
  color: #000;
  border-color: var(--amber-glow);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.loupe-lens {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--amber-primary);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.85), inset 0 0 12px rgba(245, 158, 11, 0.4);
  pointer-events: none;
  display: none;
  z-index: 25;
  background-repeat: no-repeat;
  background-color: #000;
}

.flaw-pins-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.flaw-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: pulse-pin 1.8s infinite;
}

@keyframes pulse-pin {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.flaw-pin-tooltip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 30;
}
.flaw-pin:hover .flaw-pin-tooltip {
  opacity: 1;
}

/* Flaw & Condition Shield Bar */
.flaw-shield-bar {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.flaw-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flaw-shield-icon {
  font-size: 13px;
}

.flaw-title {
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-text-xs {
  background: transparent;
  border: none;
  color: var(--amber-glow);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.btn-text-xs:hover {
  background: rgba(245, 158, 11, 0.12);
}

.flaw-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flaw-tag-chip {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.flaw-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  margin-left: 2px;
}

/* ==========================================================================
   Advanced Feature: Tone / Persona Selector Bar
   ========================================================================== */
.tone-selector-bar {
  background: rgba(18, 22, 28, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tone-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tone-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tone-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tone-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-light);
}

.tone-chip.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--amber-glow);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Advanced Feature: Multi-Currency & Volume Bundling Tiering
   ========================================================================== */
.currency-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.curr-pill {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
}

.curr-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.curr-pill.active {
  background: var(--amber-primary);
  color: #000;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Bundle Elasticity Card */
.bundle-calculator-card {
  background: rgba(18, 22, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.bundle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bundle-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bundle-icon {
  font-size: 14px;
}

.bundle-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.bundle-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.bundle-table-wrapper {
  overflow-x: auto;
}

.bundle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.bundle-table th {
  color: var(--text-muted);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bundle-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
}

.bundle-table tr:last-child td {
  border-bottom: none;
}

.bundle-savings-tag {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-glow);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
}

/* ==========================================================================
   Advanced Feature Modals: Batch Studio & Social Story Card
   ========================================================================== */
.batch-modal-window {
  max-width: 900px;
}

.batch-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.batch-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
}

.batch-metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.batch-metric-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.batch-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.batch-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 700;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.batch-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
}

.batch-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.batch-note {
  font-size: 12px;
  color: #34d399;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--amber-primary), var(--copper-accent));
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* Social Card Modal */
.social-modal-window {
  max-width: 820px;
}

.social-preview-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
}

.social-canvas-wrapper {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  display: block;
}

.social-controls h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.social-theme-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.theme-choice-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.theme-choice-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dark-dot { background: #f59e0b; }
.terracotta-dot { background: #ea580c; }
.teal-dot { background: #06b6d4; }

.social-specs-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.social-specs-summary h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-glow);
  margin-bottom: 8px;
}

.social-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.btn-download-card {
  width: 100%;
  justify-content: center;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .workspace-grid {
    grid-template-columns: 320px 1fr 340px;
  }
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .system-status-pills {
    flex-wrap: wrap;
  }
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}
