/* fastecom App (Clonar) - Mismo diseño que landing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  z-index: 100;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.app-nav .logo-img {
  height: 88px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(82, 113, 255, 0.5));
}

.app-nav a[href="/dashboard"],
.app-nav a[href="/pricing"] {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.app-nav a[href="/dashboard"]:hover,
.app-nav a[href="/pricing"]:hover {
  color: #3b82f6;
}

.app-nav #logoutBtn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s;
}

.app-nav #logoutBtn:hover {
  background: #dc2626;
}

.clone-container {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 0;
}

.clone-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.clone-page-desc {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.app-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.app-tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.app-tab:hover {
  color: #1e293b;
}

.app-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.app-tab-panel {
  display: block;
}

.clone-header {
  margin-bottom: 1.5rem;
}

.clone-header .clone-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clone-header h1,
.clone-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.clone-header p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0;
}

.clone-header p {
  color: #64748b;
  font-size: 1rem;
}

.clone-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-group-inline .input-icon {
  color: #64748b;
  font-size: 1.125rem;
}

.form-group-inline input {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  color: #1e293b;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.btn-clone {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-clone:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-clone:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.loading.active {
  display: block;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.75rem;
}

.loading-text {
  color: #64748b;
  font-size: 0.9375rem;
}

.result {
  display: none;
}

.result.active {
  display: block;
}

.result.success {
  border-left: 4px solid #16a34a;
}

.result.error {
  border-left: 4px solid #ef4444;
}

.result h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.result.success h3 {
  color: #16a34a;
}

.result.error h3 {
  color: #ef4444;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.info-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.info-item strong {
  display: block;
  color: #64748b;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item span {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
}

.preview-section {
  margin: 1.5rem 0;
}

.preview-section h4 {
  margin-bottom: 0.75rem;
  color: #64748b;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clone-card pre {
  background: #f8fafc;
  color: #1e293b;
  padding: 1.25rem;
  border-radius: 1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  max-height: 400px;
  overflow-y: auto;
}

.btn-download {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  margin-top: 1rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.app-footer,
.footer {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.5rem;
  color: #64748b;
  font-size: 0.9375rem;
}

/* Review edit items (inline styles in JS) - override to light */
.review-edit-item,
[data-review-index] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

.review-edit-item input,
.review-edit-item select,
.review-edit-item textarea {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

#htmlPreviewContainer {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

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

@media (max-width: 768px) {
  .app-nav .logo-img {
    height: 64px;
  }

  .clone-container {
    padding-top: 0;
  }

  .clone-header h1 {
    font-size: 1.5rem;
  }

  .clone-card {
    padding: 1.25rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
