@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #37474F;
  --secondary: #546E7A;
  --accent: #78909C;
  --light: #B0BEC5;
  --bg: #ECEFF1;
  --white: #FFFFFF;
  --text: #3E2723;
  --text-light: #6D4C41;
  --text-muted: #8D6E63;
  --border: #FFCCBC;
  --border-light: #FFE0B2;
  --card-bg: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(191, 54, 12, 0.06);
  --shadow-md: 0 4px 12px rgba(191, 54, 12, 0.08);
  --shadow-lg: 0 8px 30px rgba(191, 54, 12, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Loading Screen */
.loading-screen {
  max-width: 600px;
  margin: 80px auto;
  padding: 24px;
}

.skeleton-block {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--white) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.sk-title {
  height: 32px;
  width: 60%;
}

.sk-body {
  height: 18px;
  width: 100%;
}

.sk-body.short {
  width: 40%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* App Layout */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.app-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  font-size: 1rem;
}

.app-main {
  flex: 1;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Editor Panel */
.editor-panel {
  animation: fadeIn 0.3s ease;
}

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

.editor-section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
}

.editor-section:nth-child(1) { animation-delay: 0s; }
.editor-section:nth-child(2) { animation-delay: 0.05s; }
.editor-section:nth-child(3) { animation-delay: 0.1s; }
.editor-section:nth-child(4) { animation-delay: 0.15s; }
.editor-section:nth-child(5) { animation-delay: 0.2s; }
.editor-section:nth-child(6) { animation-delay: 0.25s; }

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

.editor-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 10px;
}

.editor-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
}

.editor-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.15);
  background: var(--white);
}

.editor-input::placeholder {
  color: var(--text-muted);
}

/* Image Upload */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s ease;
  text-align: center;
}

.upload-area:hover {
  border-color: var(--accent);
  background: rgba(255, 143, 0, 0.05);
}

.file-input-hidden {
  display: none;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.upload-text {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.image-preview-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.image-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.remove-image-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(63, 39, 35, 0.75);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  transition: background 0.2s ease;
}

.remove-image-btn:hover {
  background: var(--primary);
}

/* Rich Text Editor */
.rich-editor-container {
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.rich-editor-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.15);
}

.rich-editor-container [contenteditable] {
  min-height: 100px;
  padding: 14px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  line-height: 1.6;
}

/* CTA Fields */
.cta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* Feature Editor */
.feature-editor {
  /* wrapper */
}

.feature-list-edit {
  list-style: none;
  margin-bottom: 12px;
}

.feature-item-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  animation: fadeInUp 0.3s ease both;
}

.feature-item-edit:nth-child(1) { animation-delay: 0s; }
.feature-item-edit:nth-child(2) { animation-delay: 0.04s; }
.feature-item-edit:nth-child(3) { animation-delay: 0.08s; }
.feature-item-edit:nth-child(4) { animation-delay: 0.12s; }
.feature-item-edit:nth-child(5) { animation-delay: 0.16s; }

.feature-item-edit:last-child {
  border-bottom: none;
}

.icon-select {
  font-size: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  outline: none;
}

.icon-select:focus {
  border-color: var(--accent);
}

.feature-text-input {
  flex: 1;
  padding: 8px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.feature-text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 143, 0, 0.12);
}

.feature-remove-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.feature-remove-btn:hover {
  color: var(--primary);
  background: rgba(191, 54, 12, 0.08);
}

.empty-features {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 16px 0;
  font-style: italic;
}

.add-feature-row {
  display: flex;
  gap: 8px;
}

.add-feature-input {
  flex: 1;
}

.add-feature-btn {
  padding: 12px 20px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.add-feature-btn:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-1px);
}

.add-feature-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Preview Panel */
.preview-panel {
  animation: fadeIn 0.3s ease;
}

.preview-toolbar {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--white);
  padding: 4px;
  border-radius: 10px;
  display: inline-flex;
  margin-left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-sm);
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.view-mode-btn.active {
  background: var(--bg);
  color: var(--primary);
}

.preview-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.preview-frame.desktop {
  max-width: 100%;
}

.preview-frame.mobile {
  max-width: 375px;
}

/* Preview Empty */
.preview-empty {
  text-align: center;
  padding: 80px 24px;
  animation: fadeIn 0.4s ease;
}

.empty-illustration {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Landing Page Preview Styles */
.landing-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.lp-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  overflow: hidden;
}

.lp-hero-image-wrap {
  position: absolute;
  inset: 0;
}

.lp-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(191, 54, 12, 0.7), rgba(230, 74, 25, 0.5));
}

.lp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
  max-width: 640px;
}

.lp-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lp-subheadline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.5;
}

.lp-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(255, 143, 0, 0.4);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.lp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 143, 0, 0.5);
}

.lp-cta-btn.lg {
  padding: 16px 44px;
  font-size: 1.1rem;
}

.lp-description {
  padding: 48px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.lp-description-inner {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.lp-description-inner h1,
.lp-description-inner h2,
.lp-description-inner h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--text);
  margin-bottom: 12px;
}

.lp-description-inner p {
  margin-bottom: 16px;
}

.lp-description-inner strong {
  color: var(--text);
}

.lp-features {
  padding: 48px 32px;
  background: var(--bg);
}

.lp-features-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  text-align: center;
  color: var(--text);
  margin-bottom: 32px;
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.lp-feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  animation: featureCardIn 0.4s ease both;
}

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

.lp-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lp-feature-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.lp-feature-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.lp-footer-cta {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(to bottom, var(--white), var(--bg));
}

.lp-footer-cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .app-main {
    padding: 16px;
  }

  .editor-section {
    padding: 16px;
  }

  .cta-fields {
    grid-template-columns: 1fr;
  }

  .lp-headline {
    font-size: 1.7rem;
  }

  .lp-subheadline {
    font-size: 0.95rem;
  }

  .lp-hero-content {
    padding: 32px 20px;
  }

  .lp-description {
    padding: 32px 20px;
  }

  .lp-features {
    padding: 32px 16px;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .preview-frame.mobile {
    max-width: 100%;
  }

  .add-feature-row {
    flex-direction: column;
  }

  .add-feature-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .tab-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .app-logo {
    font-size: 1.2rem;
  }
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Landing Forge! This tool lets you create a beautiful landing page for your product. You start in the Editor tab where you can build your page section by section.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "First, add your product's headline — the big, bold statement that grabs attention.", "view": "user", "highlight_selector": ".editor-section:nth-child(1)", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Next, add a subheadline to provide more context about what your product does.", "view": "user", "highlight_selector": ".editor-section:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Upload a hero image to make your landing page visually striking. Click the upload area to choose a photo.", "view": "user", "highlight_selector": ".upload-area", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Use the rich text editor to write a compelling description. You can bold, italicize, and format your text.", "view": "user", "highlight_selector": ".rich-editor-container", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Add your product's key features one by one. Pick an icon and describe each feature.", "view": "user", "highlight_selector": ".feature-editor", "wait_for": "user_interaction"},
  {"step": 7, "narration": "Customize your call-to-action button text and link to drive conversions.", "view": "user", "highlight_selector": ".cta-fields", "wait_for": "user_interaction"},
  {"step": 8, "narration": "Switch to the Preview tab to see your landing page come to life! Toggle between desktop and mobile views.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 9, "narration": "Your landing page is saved automatically and syncs across your devices. Keep refining until it's perfect!", "view": "user", "highlight_selector": ".preview-frame", "wait_for": "tap_to_continue"}
]
-->

.email-signup-form {
  margin-top: 1.5rem;
}

.email-signup-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.email-signup-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.email-signup-input {
  flex: 1 1 240px;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.email-signup-button {
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
}

.email-signup-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.email-signup-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.email-signup-message.success {
  color: #1a7f37;
}

.email-signup-message.error {
  color: #b42318;
}

.email-signup-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.signup-dashboard-section {
  padding: 48px 32px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.signup-dashboard-chart {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.signup-dashboard-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.signup-dashboard-chart-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 4px;
}

.signup-dashboard-chart-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.signup-dashboard-chart-metric {
  min-width: 120px;
  text-align: right;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.signup-dashboard-chart-metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.signup-dashboard-chart-metric-label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.signup-dashboard-chart-body {
  position: relative;
  min-height: 280px;
}

.signup-dashboard-chart-canvas {
  width: 100% !important;
  height: 280px !important;
  display: block;
}

.signup-dashboard-chart-loading {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .signup-dashboard-section {
    padding: 32px 16px;
  }

  .signup-dashboard-chart {
    padding: 16px;
  }

  .signup-dashboard-chart-header {
    flex-direction: column;
  }

  .signup-dashboard-chart-metric {
    text-align: left;
    width: 100%;
  }

  .signup-dashboard-chart-canvas,
  .signup-dashboard-chart-loading {
    height: 240px !important;
    min-height: 240px;
  }
}

.theme-section {
  margin-bottom: 20px;
}

.theme-helper {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-picker-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.theme-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-swatch {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  background: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-swatch:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.theme-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.16), var(--shadow-sm);
}

.theme-swatch-bars {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
}

.theme-swatch-bar {
  flex: 1;
}

.theme-custom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-color-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-color-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 4px;
  cursor: pointer;
}

.theme-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.admin-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.admin-chart-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-chart-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .theme-custom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-share-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.preview-share-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.preview-share-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-share-url {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  outline: none;
}

.preview-share-btn {
  border: none;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preview-share-btn.primary {
  background: var(--secondary);
  color: var(--white);
}

.preview-share-btn.primary:hover {
  background: var(--primary);
}

.preview-share-btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
}

.preview-share-btn.secondary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.preview-share-message {
  margin-top: 8px;
  font-size: 0.86rem;
}

.preview-share-message.success {
  color: #1a7f37;
}

.preview-share-message.error {
  color: #b42318;
}

@media (max-width: 640px) {
  .preview-share-panel {
    padding: 14px 16px;
  }

  .preview-share-url-row {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-share-btn {
    width: 100%;
  }
}

.signup-dashboard-chart-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.signup-dashboard-export-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--secondary);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.signup-dashboard-export-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .signup-dashboard-chart-actions {
    width: 100%;
    flex-direction: column;
  }

  .signup-dashboard-export-btn {
    width: 100%;
  }
}
