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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      line-height: 1.6;
      color: #1f2937;
      background: #ffffff;
      min-height: 100vh;
    }

    /* ── HEADER ── */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.9);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid #e2e8f0;
    }
    .header-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .logo-img { height: 55px; transition: all 0.3s ease; }
    .nav-buttons { display: flex; align-items: center; gap: 32px; }
    .nav-button {
      font-family: 'Outfit', sans-serif;
      font-size: 15px; font-weight: 600;
      color: #475569; text-decoration: none;
      position: relative; padding: 8px 0;
      transition: color 0.3s ease;
    }
    .nav-button::after {
      content: '';
      position: absolute; bottom: 0; left: 0;
      width: 0; height: 2px;
      background: #007cb5;
      transition: width 0.3s ease;
    }
    .nav-button:hover { color: #007cb5; }
    .nav-button:hover::after { width: 100%; }
    .nav-button.active { color: #007cb5; }
    .nav-button.active::after { width: 100%; }
    .burger-menu {
      display: none;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      background: transparent;
      border: none;
      z-index: 101;
    }
    .burger-menu span {
      width: 28px; height: 3px;
      background: #007cb5;
      border-radius: 2px;
      transition: all 0.3s ease;
    }
    .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }
    .mobile-menu {
      position: fixed; inset: 0; z-index: 99;
      background: #fff;
      display: flex; flex-direction: column;
      transform: translateX(100%);
      transition: transform .4s cubic-bezier(.76,0,.24,1);
      overflow-y: auto;
    }
    .mobile-menu.active { transform: translateX(0); }
    .mobile-menu-content {
      display: flex; flex-direction: column;
      justify-content: center; align-items: center;
      gap: 4px; flex: 1; padding: 40px;
    }
    .mobile-menu .nav-button {
      font-size: 24px; font-weight: 700;
      padding: 14px 32px; border-radius: 12px;
      width: 100%; text-align: center;
    }
    .mobile-menu .nav-button:hover { color: #007cb5; background: #f0f9ff; }
    @media (max-width: 768px) {
      .burger-menu { display: flex; }
      .nav-buttons { display: none; }
      .logo-img { height: 40px; }
      .header-container { padding: 12px 20px; }
    }

    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 60px 20px 40px;
    }

    .page-title {
      font-size: 56px;
      font-weight: 300;
      color: #1f2937;
      margin-bottom: 16px;
      letter-spacing: 0.5px;
      text-align: center;
    }

    .page-subtitle {
      font-size: 20px;
      color: #6b7280;
      margin-bottom: 48px;
      text-align: center;
    }

    .create-card {
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      padding: 48px;
      max-width: 800px;
      margin: 0 auto;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .form-group {
      margin-bottom: 32px;
    }

    .form-label {
      display: block;
      font-size: 18px;
      font-weight: 400;
      margin-bottom: 12px;
      color: #007cb5;
    }

    .upload-area {
      border: 1px dashed #007cb5;
      border-radius: 8px;
      padding: 32px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
      background: #f9fafb;
    }

    .upload-area.has-file {
      background: #f0f9ff;
      border-color: #007cb5;
    }

    .upload-area:hover {
      background: #f0f9ff;
    }

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

    .upload-text {
      font-size: 16px;
      color: #007cb5;
      margin-bottom: 8px;
    }

    .upload-hint {
      font-size: 14px;
      color: #6b7280;
    }

    .form-input, .form-textarea, .form-select {
      width: 100%;
      padding: 16px;
      font-size: 16px;
      border-radius: 8px;
      border: 1px solid #e5e7eb;
      font-family: inherit;
      background: white;
      color: #1f2937;
    }

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    .char-counter {
      margin-top: 8px;
      text-align: right;
      color: #6b7280;
      font-size: 14px;
      font-weight: 400;
    }

    .char-counter.limit {
      color: #ef4444;
    }

    .color-picker-group {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .color-picker {
      width: 60px;
      height: 50px;
      border-radius: 8px;
      border: 1px solid #e5e7eb;
      cursor: pointer;
      background: transparent;
    }

.color-value {
  flex: 1;
  padding: 12px 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #007cb5;
  font-family: monospace;
  /* ADD these: */
  cursor: text;
  transition: border-color 0.2s, background 0.2s;
}

.color-value:focus {
  outline: none;
  border-color: #007cb5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 124, 181, 0.15);
}

    .style-buttons {
      display: flex;
      gap: 12px;
    }

    .style-button {
      flex: 1;
      padding: 16px;
      font-size: 16px;
      font-weight: 500;
      border-radius: 8px;
      border: 1px solid #e5e7eb;
      cursor: pointer;
      background: #f9fafb;
      color: #007cb5;
      transition: all 0.3s;
    }

    .style-button.active {
      border: 2px solid #007cb5;
      background: #f0f9ff;
    }

    .btn-primary {
      width: 100%;
      background: #007cb5;
      color: white;
      border: none;
      padding: 16px 32px;
      border-radius: 8px;
      font-size: 18px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 2px 4px rgba(0, 124, 181, 0.2);
    }

    .btn-primary:hover:not(:disabled) {
      background: #006a9a;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(0, 124, 181, 0.3);
    }

    .btn-primary:disabled {
      background: #d1d5db;
      cursor: not-allowed;
      box-shadow: none;
    }

    .preview-section {
      margin-top: 32px;
    }

    .preview-title {
      font-size: 20px;
      font-weight: 400;
      margin-bottom: 16px;
      color: #007cb5;
    }

    .preview-warning {
      background: #f3f4f6;
      padding: 12px 20px;
      border-radius: 8px;
      margin-bottom: 16px;
      text-align: center;
      color: #007cb5;
      font-size: 14px;
    }

    .preview-image {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
      overflow-y: auto;
    }

    .modal {
      background: #f9fafb;
      border: 2px solid #007cb5;
      border-radius: 16px;
      padding: 48px;
      max-width: 500px;
      width: 100%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      margin: auto;
    }

    .modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: transparent;
      border: none;
      color: #007cb5;
      font-size: 32px;
      cursor: pointer;
      padding: 4px 12px;
      line-height: 1;
    }

    .modal-title {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 16px;
      color: #007cb5;
      text-align: center;
    }

    .modal-price {
      text-align: center;
      margin-bottom: 32px;
    }

    .modal-price-amount {
      font-size: 48px;
      font-weight: 700;
      color: #007cb5;
      margin-bottom: 8px;
    }

    .modal-price-desc {
      font-size: 16px;
      color: #374151;
    }

    .modal-features {
      margin-bottom: 32px;
      border-top: 1px solid #e5e7eb;
      padding-top: 24px;
    }

    .modal-feature {
      display: flex;
      align-items: center;
      padding: 12px 0;
      color: #374151;
    }

    .modal-feature-icon {
      color: #007cb5;
      margin-right: 12px;
      font-size: 20px;
    }

    .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    .spinner {
      width: 80px;
      height: 80px;
      border: 8px solid #f3f4f6;
      border-top: 8px solid #007cb5;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .loading-text {
      color: white;
      font-size: 20px;
      margin-top: 24px;
      font-weight: 500;
    }

    .loading-subtext {
      color: #9ca3af;
      font-size: 14px;
      margin-top: 8px;
    }

    .footer {
      margin-top: 80px;
      padding-top: 40px;
      border-top: 1px solid #e5e7eb;
      text-align: center;
      color: #6b7280;
      background: #ffffff;
      padding-bottom: 40px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .footer-links {
      display: flex;
      gap: 32px;
      justify-content: center;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .footer-link {
      background: transparent;
      border: none;
      color: #007cb5;
      cursor: pointer;
      font-size: 14px;
      text-decoration: underline;
    }

    .footer-link:hover {
      color: #006a9a;
    }

    /* Hide footer links on create page */
    .footer-links {
      display: none !important;
    }

    .font-preview {
      margin-top: 12px;
      padding: 16px;
      background: #f3f4f6;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      text-align: center;
      font-size: 24px;
      color: #007cb5;
    }

    
    /* Mobile Responsive */
    @media (max-width: 768px) {
      .nav-buttons { display: none; }
      .burger-menu { display: flex; }
      .mobile-menu { display: flex; }
      .logo-img { height: 40px; }
      h1 { font-size: 36px; }
      .card { padding: 32px 24px; }
      
      /* Footer mobile */
      footer, .footer {
        margin-top: 60px;
        padding: 32px 20px;
      }
      .footer-links {
        gap: 16px;
        flex-direction: column;
        align-items: center;
      }
      .footer-link {
        font-size: 15px;
        padding: 8px 0;
      }
      footer p, .footer p {
        font-size: 13px;
        margin-top: 8px;
      }
    }

    @media (max-width: 480px) {
      h1 { font-size: 28px; }
      h2 { font-size: 22px; }
      .card { padding: 24px 20px; }
      p { font-size: 15px; }
      .footer-link { font-size: 14px; }
    }
