/* fontgen.studio - Clean Monochrome Design */
/* CSS Variables - Light Mode (default) */
:root {
  /* Core palette */
  --white: #f8f8f8;
  --black: #222222;
  /* Semantic colors */
  --bg-primary: #f8f8f8;
  --bg-secondary: #f8f8f8;
  --bg-card: #f8f8f8;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: var(--gray-300);
  /* Gray scale */
  --gray-100: #f8f8f8;
  --gray-200: #eeeeee;
  --gray-300: #dddddd;
  --gray-400: #aaaaaa;
  --gray-500: #888888;
  --gray-600: #666666;
  --gray-700: #444444;
  --gray-800: #222222;
  /* Primary - monochrome */
  --primary: #222222;
  --primary-dark: #000000;
  --primary-light: #444444;
  /* Legacy - kept for compatibility */
  --accent: #222222;
  --accent-dark: #000000;
  --dark: #222222;
  --dark-soft: #333333;
  --light: #f8f8f8;
  /* Status colors */
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  /* Flat - no shadows */
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --shadow-xl: none;
  /* Gradients removed - flat design */
  --gradient-primary: #222222;
  --gradient-accent: #222222;
  --gradient-dark: #222222;
  /* Radii - slightly smaller */
  --radius: 0;
  --radius-lg: 0;
  --radius-xl: 0;
}
/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #222222;
  --bg-secondary: #222222;
  --bg-card: #222222;
  --text-primary: #f8f8f8;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
  --border-color: var(--gray-300);
  --light: #222222;
  --gray-100: #222222;
  --gray-200: #333333;
  --gray-300: #444444;
  --gray-400: #666666;
  --gray-500: #888888;
  --gray-600: #aaaaaa;
  --gray-700: #cccccc;
  --gray-800: #f8f8f8;
  --primary: #f8f8f8;
  --primary-dark: #dddddd;
  --primary-light: #f8f8f8;
  --accent: #f8f8f8;
  --dark: #f8f8f8;
}
/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Theme Toggle Button */
.theme-toggle {
  background: var(--gray-200);
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.theme-toggle:hover {
  background: var(--gray-300);
}
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Header */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
header .header-right {
  justify-self: end;
}
header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
header h1 .highlight {
  color: var(--text-muted);
}
header nav {
  display: flex;
  gap: 4px;
  background: var(--gray-200);
  padding: 6px;
  border-radius: 999px;
}
header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
header nav a:hover {
  color: var(--text-primary);
}
header nav a.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}
/* Main Content */
main {
  padding: 32px 0;
}
/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  width: 100%;
}
.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 16px;
}
/* Font Type Selector - Big Choice Cards */
.font-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.font-type-card {
  background: var(--bg-secondary);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.font-type-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card);
  transform: translateY(-2px);
}
.font-type-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}
.font-type-card .icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.font-type-card .title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.font-type-card .description {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}
.font-type-card input[type="radio"] {
  display: none;
}
/* Form Elements */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-700);
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--bg-card);
  color: var(--text-primary);
}
/* Ensure all inputs have proper dark mode colors */
input, select, textarea {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray-500);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
/* Reference Areas - Side by Side */
.reference-areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .reference-areas {
    grid-template-columns: 1fr;
  }
  .font-type-selector {
    grid-template-columns: 1fr;
  }
  /* Mobile header */
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  header h1 {
    font-size: 1.25rem;
  }
  header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  header nav a {
    padding: 6px 10px;
    font-size: 13px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .btn-login, .btn-logout {
    padding: 6px 12px;
    font-size: 12px;
  }
  .user-name {
    display: none;
  }
}
/* Drop Zones */
.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}
.drop-zone .icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.drop-zone p {
  color: var(--gray-500);
  font-size: 14px;
  margin: 4px 0;
}
.drop-zone p.hint {
  font-size: 12px;
  color: var(--gray-400);
}
.drop-zone input {
  display: none;
}
/* Drop Zone Preview */
.drop-zone .preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  width: 100%;
}
.drop-zone .preview-item {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 8px;
}
.drop-zone .preview-item img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
}
.drop-zone .preview-item .remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}
.btn-secondary:hover {
  background: var(--gray-300);
}
.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #059669;
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-accent {
  background: var(--gradient-accent);
  color: white;
}
.btn-accent:hover {
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 999px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
/* Progress Modal */
.progress-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.progress-modal.active {
  opacity: 1;
  visibility: visible;
}
.progress-modal .modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.progress-modal.active .modal-content {
  transform: scale(1);
}
.progress-modal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.progress-modal .status-text {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}
.progress-modal .progress-bar-container {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-modal .progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}
.progress-modal .progress-percent {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
/* Sheet Preview */
.sheet-preview {
  background: #808080;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}
.sheet-preview img {
  max-width: 100%;
  border-radius: var(--radius);
}
.sheet-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}
/* Preview Box */
.preview-box {
  background: var(--bg-card);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 120px;
}
/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
  gap: 4px;
}
.tab {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 500;
  color: var(--gray-500);
  transition: all 0.2s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
.tab:hover {
  color: var(--gray-700);
  background: var(--bg-secondary);
}
.tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
/* Font Grid (My Fonts page) */
.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.font-card {
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.font-card:hover {
  /* no hover effect */
}
.font-card .preview {
  height: 140px;
  background: var(--bg-secondary);
}
.font-card .info {
  padding: 16px;
}
.font-card .info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.font-card .info p {
  font-size: 13px;
  color: var(--gray-500);
}
.font-card .actions {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
}
/* Status Badges */
.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.status-processing {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.status-failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}
.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}
/* Prompt Suggestions (separate page) */
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s ease;
}
.suggestion-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}
.suggestion-text {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  font-style: italic;
}
.category-title {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  margin: 20px 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.use-prompt-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.use-prompt-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
/* Hidden utility */
.hidden {
  display: none !important;
}
/* Kerning & Glyph Grid */
#kerningList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.kern-card {
  background: var(--bg-secondary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.kern-card:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary-light);
}
#glyphGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.glyph-cell {
  background: var(--bg-secondary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.glyph-cell:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary-light);
}
/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 90%;
}
/* Link to prompts */
.prompts-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.prompts-link:hover {
  background: rgba(99, 102, 241, 0.2);
}
/* Tool buttons for editor */
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}
.tool-btn .icon {
  font-size: 14px;
}
/* Progress bar standard */
.progress {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
/* Range inputs */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
/* Animation for loading */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.loading {
  animation: pulse 2s ease-in-out infinite;
}
/* Radio group styling */
.radio-group {
  display: flex;
  gap: 20px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}
/* Generation method toggle */
.method-toggle {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}
.method-toggle label {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
.method-toggle input[type="radio"] {
  display: none;
}
.method-toggle input[type="radio"]:checked + span {
  background: var(--bg-card);
}
.method-toggle label span {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
/* Auth Pages */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--gray-200);
}
.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}
.auth-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: 15px;
}
.auth-form .form-group {
  margin-bottom: 18px;
}
.auth-form .form-group label {
  font-size: 13px;
  margin-bottom: 6px;
}
.auth-form .form-group label .optional {
  color: var(--gray-400);
  font-weight: 400;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--bg-card);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider span {
  padding: 0 16px;
  color: var(--gray-400);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-google {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-google:hover {
  background: var(--bg-secondary);
  border-color: var(--gray-300);
}
.btn-google svg {
  flex-shrink: 0;
}
.btn-apple {
  width: 100%;
  background: #000;
  border: 2px solid #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-apple:hover {
  background: #333;
  border-color: #333;
}
.btn-apple svg {
  flex-shrink: 0;
}
[data-theme="dark"] .btn-apple {
  background: #fff;
  border-color: #fff;
  color: #000;
}
[data-theme="dark"] .btn-apple:hover {
  background: #eee;
  border-color: #eee;
}
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-block {
  width: 100%;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-500);
}
.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.auth-note strong {
  color: var(--text-primary);
}
/* Header right side group */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Credits display in header */
.credits-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-200);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.credits-display:hover {
  background: var(--gray-300);
}
.credits-display svg {
  opacity: 0.7;
}
.credits-count {
  font-weight: 700;
  color: var(--text-primary);
}
.credits-label {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Credits animation */
@keyframes credits-pop {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes credits-glow {
  0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
  50% { box-shadow: 0 0 20px 5px rgba(102, 126, 234, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.credits-display.credits-added {
  animation: credits-glow 1s ease-out;
}

.credits-display.credits-added .credits-count {
  animation: credits-pop 0.6s ease-out;
  color: #667eea;
}

/* User menu in header */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}
.btn-logout {
  padding: 6px 14px;
  background: var(--gray-200);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-logout:hover {
  background: var(--gray-300);
}
.btn-login {
  padding: 8px 16px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-login:hover {
  opacity: 0.8;
}
/* Install to Server button */
.btn-install {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.btn-install:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
/* Wide install button - full width under actions */
.btn-install-wide {
  width: calc(100% - 32px);
  margin: 8px 16px 16px 16px;
  padding: 12px 16px;
  background: #f5f5f7;
  border: 1px solid #e0e0e4;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-install-wide:hover {
  background: #ebebef;
  border-color: #d0d0d4;
}
.btn-install-wide:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Footer */
footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary, #f9fafb);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-content p {
  margin: 0;
  color: var(--text-secondary, #6b7280);
  font-size: 14px;
}
.footer-content a {
  color: var(--primary);
  text-decoration: none;
}
.footer-content a:hover {
  text-decoration: underline;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary, #6b7280);
  font-size: 14px;
}
/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2937;
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-content p {
  margin: 0;
  font-size: 14px;
}
.cookie-content a {
  color: #60a5fa;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
}
.btn-cookie-accept {
  background: var(--primary, #6366f1);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
.btn-cookie-accept:hover {
  background: var(--primary-dark, #4f46e5);
}
.btn-cookie-decline {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4b5563;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-cookie-decline:hover {
  background: #374151;
  color: white;
}
/* Legal pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.legal-page h1 {
  margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--text-secondary, #6b7280);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}
.legal-page p, .legal-page li {
  line-height: 1.7;
  color: var(--text-secondary, #374151);
}
.legal-page ul {
  padding-left: 24px;
}
.legal-page li {
  margin-bottom: 8px;
}
/* Ensure body is flex for sticky footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
/* Style Describe Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  animation: modalSlideIn 0.2s ease-out;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Tagify customization */
.tagify {
  --tags-border-color: var(--gray-300);
  --tags-hover-border-color: var(--primary);
  --tags-focus-border-color: var(--primary);
  --tag-bg: var(--primary-light);
  --tag-hover: var(--primary);
  --tag-text-color: var(--primary-dark);
  --tag-text-color--edit: var(--dark);
  --tag-remove-btn-color: var(--gray-500);
  --tag-remove-btn-bg: transparent;
  --tag-remove-btn-bg--hover: var(--danger);
  border-radius: var(--radius);
  padding: 6px;
  min-height: 42px;
}
.tagify__tag {
  border-radius: 4px;
}
.tagify__input {
  min-width: 80px;
}
/* =================================
   Utility Classes (extracted from inline)
   ================================= */
/* Widths */
.w-full { width: 100%; }
.w-100 { width: 100px; }
.w-70 { width: 70px; }
.w-40 { width: 40px; }
.w-120 { width: 120px; }
/* Flex utilities */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
/* Margins */
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-15 { margin-bottom: 15px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.ml-8 { margin-left: 8px; }
/* Padding */
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.px-10 { padding-left: 10px; padding-right: 10px; }
.py-4 { padding-top: 4px; padding-bottom: 4px; }
/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 12px; }
.text-13 { font-size: 13px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 28px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--gray-500); }
.text-muted-dark { color: var(--gray-600); }
.text-light { color: #888; }
.text-lighter { color: #999; }
/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
/* Borders */
.border { border: 1px solid var(--gray-200); }
.border-2 { border: 2px solid var(--gray-200); }
.border-dashed { border-style: dashed; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }
/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-move { cursor: move; }
.user-select-none { user-select: none; }
/* Editor-specific components */
.pricing-option {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.pricing-option:hover {
  border-color: var(--primary);
}
.pricing-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.pricing-option .price {
  font-size: 28px;
  font-weight: bold;
}
.pricing-option .price.public { color: var(--primary); }
.pricing-option .price.private { color: #764ba2; }
.pricing-option .label {
  font-weight: 600;
  margin: 8px 0;
}
.pricing-option .desc {
  font-size: 13px;
  color: var(--gray-600);
}
.btn-checkout {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Glyph cell */
/* .glyph-cell styles moved to inline in editor.hbs */
.glyph-cell.missing {
  border-color: #f00;
  color: #f00;
}
.glyph-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Metric labels */
.metric-label {
  position: absolute;
  right: 5px;
  color: white;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 2px;
  z-index: 7;
  pointer-events: none;
  display: none;
}
.metric-label.cap { background: #673ab7; }
.metric-label.x-height { background: #27ae60; }
.metric-label.baseline { background: #3498db; }
.metric-label.descender { background: #ff9800; }
/* Metric lines */
.metric-line {
  position: absolute;
  width: 100%;
  height: 1px;
  z-index: 3;
  pointer-events: none;
}
.metric-line.cap { border-top: 1px dashed #673ab7; }
.metric-line.x-height { border-top: 1px dashed #4caf50; }
.metric-line.baseline { border-top: 2px solid #3498db; }
.metric-line.descender { border-top: 1px dashed #ff9800; }
/* Kerning input */
.kern-value-input {
  width: 70px;
  text-align: right;
  padding: 2px 5px;
}
/* Preview buttons */
.preview-quick {
  padding: 4px 10px;
  font-size: 12px;
}
/* Form utilities */
.form-text-sm {
  font-size: 13px;
  color: var(--gray-600);
}
.form-text-xs {
  font-size: 10px;
  color: var(--gray-500);
}
.form-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
}
.form-flex-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gray-500);
}
/* Glyph preview box */
.glyph-preview-box {
  position: relative;
  background: #808080;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  margin-bottom: 15px;
  min-height: 220px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Modal drag header */
.modal-drag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -20px 15px -20px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  cursor: move;
  user-select: none;
}
.btn-link {
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 14px;
}
.btn-link:hover {
  color: var(--gray-800);
}
/* Regenerate bar */
.regenerate-bar {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}
.regenerate-hint {
  margin: 5px 0 0 0;
  font-size: 13px;
  color: var(--gray-600);
}
.btn-regenerate {
  padding: 10px 25px;
  font-size: 14px;
}
.regenerate-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
/* Preview section */
.preview-editable {
  font-size: 48px;
  line-height: 1.4;
  padding: 20px;
  word-wrap: break-word;
  background: var(--gray-50);
  border-radius: 4px;
  min-height: 80px;
  outline: none;
  cursor: text;
}
.preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.preview-size-control {
  margin-left: auto;
}
.preview-size-slider {
  width: 120px;
  margin-left: 8px;
  vertical-align: middle;
}
/* Glyph grid */
.glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
/* Glyph modal */
.glyph-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 100px;
  left: 50px;
}
.glyph-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 420px;
  border: 1px solid var(--gray-300);
}
.glyph-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -20px 15px -20px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  cursor: move;
  user-select: none;
}
.glyph-modal-header h3 {
  margin: 0;
  font-size: 16px;
}
.glyph-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
/* Stave lines (glyph editor reference lines) */
.stave-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 4;
  display: none;
}
.stave-line.ascender { background: #e91e63; }
.stave-line.cap { background: #673ab7; }
.stave-line.x-height { background: #4caf50; }
.stave-line.baseline { background: #3498db; height: 2px; z-index: 6; display: block; }
.stave-line.descender { background: #ff9800; }
.stave-label {
  position: absolute;
  right: 5px;
  color: white;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 2px;
  z-index: 7;
  pointer-events: none;
  display: none;
}
.stave-label.ascender { background: #e91e63; }
.stave-label.cap { background: #673ab7; }
.stave-label.x-height { background: #4caf50; }
.stave-label.baseline { background: #3498db; }
.stave-label.descender { background: #ff9800; }
/* Margin guides */
.margin-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 5;
}
.margin-guide.left { background: #27ae60; }
.margin-guide.right { background: #8e44ad; }
/* Character toggle buttons (create page) */
.char-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
.char-toggle:hover {
  background: var(--gray-200);
}
.char-toggle input {
  margin: 0;
}
/* Matte toggle */
.matte-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}
/* Color input */
.color-input {
  width: 50px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
}
/* Apply button */
.btn-apply {
  padding: 12px 20px;
  background: var(--gray-600);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}
.btn-apply:hover {
  background: var(--gray-700);
}
/* Required marker */
.required {
  color: #ef4444;
}
/* Small text colors */
.text-gray-400 { color: var(--gray-400); }
.text-gray-600 { color: var(--gray-600); }
/* Max width */
.max-w-400 { max-width: 400px; }
/* Margin utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.m-0 { margin: 0; }
/* Kern value input */
.kern-input {
  width: 70px;
  text-align: right;
  padding: 2px 5px;
}
/* Flex stats row */
.flex-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #999;
}
/* Flex between row with label */
.flex-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
}
/* Grid span full */
.col-span-full {
  grid-column: 1/-1;
}
/* Form hint text */
.form-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.h-40 { height: 40px; }
.mt-12 { margin-top: 12px; }
/* Comparison preview box */
.comparison-box {
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 4px;
  padding: 15px 20px;
}
.comparison-row {
  display: flex;
  align-items: baseline;
  gap: 30px;
  font-size: 36px;
  margin-bottom: 8px;
}
.comparison-row span {
  border-bottom: 1px solid #3498db;
  padding-bottom: 2px;
}
.comparison-label {
  font-size: 11px;
  color: #666;
  text-align: center;
}
/* Read-only metric fields */
.readonly-field {
  background: #f5f5f5 !important;
  cursor: not-allowed;
  color: #666;
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE - fontgen.studio
   ═══════════════════════════════════════════════════════════ */

.landing-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  text-align: center;
}

.landing-hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
  min-height: 1.2em;
  width: 620px;
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.landing-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.landing-search {
  display: flex;
  gap: 0;
  max-width: 600px;
  width: 100%;
  margin-bottom: 16px;
}

.landing-search-input {
  flex: 1;
  padding: 20px 24px;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
}

.landing-search-input:focus {
  border-color: var(--text-primary);
}

.landing-search-btn {
  padding: 20px 32px;
  font-size: 1.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.landing-search-btn:hover {
  opacity: 0.8;
}

.landing-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.landing-footnote {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 32px;
  font-style: italic;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
}

.landing-features {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.landing-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sections */
.landing-section {
  padding: 100px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.landing-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.landing-section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 64px;
}

/* Steps */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.landing-step {
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.landing-step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.landing-step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.landing-step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing */
.landing-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.landing-price-card {
  padding: 40px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: left;
}

.landing-price-card.featured {
  border-color: var(--text-primary);
  border-width: 2px;
}

.landing-price-tier {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.landing-price-amount {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.landing-price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.landing-price-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.landing-price-features {
  list-style: none;
  margin-bottom: 32px;
}

.landing-price-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.landing-price-features li:last-child {
  border-bottom: none;
}

.landing-price-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.landing-price-btn:hover {
  border-color: var(--text-primary);
}

.landing-price-btn.primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.landing-price-btn.primary:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .landing-hero {
    min-height: 60vh;
    padding: 60px 20px;
  }

  .landing-features {
    gap: 24px;
  }

  .landing-section {
    padding: 60px 20px;
  }
}

/* ============================
   Search Page Styles
   ============================ */
.search-header { margin-bottom: 32px; }
.search-box-container { display: flex; gap: 12px; max-width: 600px; margin-top: 24px; }
.search-input { flex: 1; padding: 14px 20px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); color: var(--text-primary); font-size: 16px; }
.search-input:focus { outline: none; border-color: var(--text-primary); }
.search-btn { padding: 14px 24px; background: var(--text-primary); color: var(--bg-primary); border: none; border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; }
.search-btn:hover { opacity: 0.8; }

/* Filters */
.filter-groups { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { color: var(--text-muted); font-size: 13px; min-width: 60px; }
.tag-pill { padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.tag-pill:hover { border-color: var(--text-primary); color: var(--text-primary); }
.tag-pill.active { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-primary); }
.clear-filters { padding: 6px 14px; background: transparent; border: 1px dashed var(--border-color); border-radius: 20px; color: var(--text-muted); font-size: 13px; cursor: pointer; }

/* Results */
.results-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: var(--text-muted); font-size: 14px; gap: 16px; flex-wrap: wrap; }
.create-link { color: var(--text-primary); text-decoration: none; font-weight: 500; }

/* Search Font Grid */
.search-font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.search-font-grid.list-view { display: flex; flex-direction: column; gap: 12px; }
.search-font-grid.list-view .font-card { display: flex; align-items: center; }
.search-font-grid.list-view .font-card .preview { width: 280px; flex-shrink: 0; }
.search-font-grid.list-view .font-card .info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.search-font-grid.list-view .font-card .actions { padding: 16px; flex-direction: row; align-items: center; }

.search-font-grid .font-card { background: var(--bg-card); border: 1px solid var(--border-color); overflow: hidden; }
.search-font-grid .preview { cursor: pointer; }
.search-font-grid .preview img { width: 100%; display: block; }
.search-font-grid .info { padding: 4px 12px 8px; }
.search-font-grid .font-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.search-font-grid .font-tag { padding: 3px 8px; background: var(--gray-200); border-radius: 4px; color: var(--gray-600); font-size: 11px; }
.search-font-grid .actions { display: flex; gap: 8px; padding: 8px 12px 12px; }
.search-font-grid .actions a, .search-font-grid .actions button { padding: 8px 14px; text-align: center; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity 0.2s; }
.search-font-grid .btn-edit { background: var(--gray-200); border: 1px solid var(--border-color); color: var(--text-primary); }
.search-font-grid .btn-cart { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--text-primary); color: var(--bg-primary); border: none; }
.search-font-grid .btn-share { display: flex; align-items: center; justify-content: center; padding: 8px 10px; background: var(--gray-200); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 6px; }
.search-font-grid .btn-share:hover { border-color: var(--text-primary); color: var(--text-primary); }

.search-empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.search-empty-state h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 12px; }
.search-empty-state .btn-create { display: inline-block; padding: 14px 28px; background: var(--text-primary); color: var(--bg-primary); text-decoration: none; border-radius: 12px; font-weight: 500; }
.search-loading { text-align: center; padding: 60px; color: var(--text-muted); }

@media (max-width: 640px) { 
  .search-box-container { flex-direction: column; } 
}
