/* Mark My Merchant - Professional PDF Watermarking Solution */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  min-height: 100vh;
  padding: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  min-height: 100vh;
  animation: slideUp 0.8s ease-out;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #581c87 100%);
  color: white;
  padding: 40px 40px 30px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.logo-icon {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-info h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.security-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Features Bar */
.features-bar {
  background: #f8fafc;
  padding: 25px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature span {
  font-weight: 600;
  color: #374151;
}

/* Upload Section */
.upload-section {
  padding: 50px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 400;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.upload-group {
  position: relative;
}

.upload-label {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.upload-label:hover {
  transform: translateY(-3px);
}

.upload-box {
  border: 3px dashed #d1d5db;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.pdf-upload:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.logo-upload:hover {
  border-color: #8b5cf6;
  background: #f3f4f6;
}

.upload-box:hover::before {
  left: 100%;
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.upload-text {
  margin-bottom: 15px;
}

.upload-text strong {
  display: block;
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 8px;
  font-weight: 600;
}

.upload-text span {
  display: block;
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 5px;
}

.upload-text small {
  color: #9ca3af;
  font-size: 0.85rem;
  font-style: italic;
}

.upload-specs {
  font-size: 0.8rem;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Hidden file inputs */
input[type="file"] {
  display: none;
}

/* File Lists */
.file-list {
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  border-left: 4px solid #3b82f6;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: #e5e7eb;
  transform: translateX(5px);
}

.file-item::before {
  content: "📄";
  margin-right: 12px;
  font-size: 1.2rem;
}

/* Logo Preview */
.logo-preview {
  margin-top: 20px;
  text-align: center;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.logo-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

/* Watermark Options */
.watermark-options {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 35px;
  border-radius: 20px;
  margin: 40px 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.options-header {
  text-align: center;
  margin-bottom: 30px;
}

.options-header h3 {
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

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

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.option-group {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.option-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.option-group label {
  display: block;
  margin-bottom: 15px;
}

.option-label {
  display: block;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
  margin-bottom: 4px;
}

.option-description {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 400;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.option-group input[type="range"] {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.option-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.slider-value {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
  min-width: 45px;
  text-align: center;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
}

.option-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  font-size: 1rem;
  color: #374151;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

/* Process Button */
.process-btn {
  width: 100%;
  padding: 20px 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.process-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.process-btn:active {
  transform: translateY(-1px);
}

.process-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.3rem;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Progress Section */
.progress-section {
  padding: 50px 40px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
}

.progress-container {
  max-width: 600px;
  margin: 0 auto;
}

.progress-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: rotate 2s linear infinite;
}

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

.progress-container h3 {
  color: #1f2937;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #8b5cf6);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 6px;
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

.progress-text {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.security-icon {
  font-size: 1.2rem;
}

/* Download Section */
.download-section {
  padding: 50px 40px;
  text-align: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-top: 1px solid #bbf7d0;
}

.success-message {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 25px;
  animation: bounce 0.8s ease-out;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

.success-message h3 {
  color: #166534;
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.success-message p {
  color: #15803d;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 35px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
  margin-bottom: 25px;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.4);
}

.download-icon {
  font-size: 1.3rem;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 0.9rem;
  font-weight: 500;
}

.info-icon {
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 50px 40px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #f9fafb;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-section p {
  line-height: 1.6;
  color: #9ca3af;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  padding: 5px 0;
  color: #9ca3af;
  position: relative;
  padding-left: 20px;
}

.footer-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 0;
    border-radius: 0;
  }

  .header {
    padding: 30px 20px;
  }

  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .brand-info h1 {
    font-size: 2.2rem;
  }

  .security-badges {
    justify-content: center;
  }

  .features-bar {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .upload-section {
    padding: 30px 20px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .watermark-options {
    padding: 25px 20px;
  }

  .download-info {
    flex-direction: column;
    gap: 15px;
  }

  .footer {
    padding: 30px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .brand-info h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .upload-box {
    padding: 25px 20px;
    min-height: 160px;
  }

  .upload-icon {
    font-size: 2.8rem;
  }

  .process-btn {
    padding: 16px 25px;
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Email Collection Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.close-modal {
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.close-modal:hover {
  color: #374151;
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  color: #374151;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.email-input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.email-input-group input[type="email"] {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  color: #374151;
  transition: all 0.2s ease;
}

.email-input-group input[type="email"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-submit-btn {
  padding: 15px 25px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.email-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.privacy-note {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.privacy-note small {
  color: #1e40af;
  font-weight: 500;
}

/* Modal Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 20px 25px 15px;
  }

  .modal-body {
    padding: 25px;
  }

  .email-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .email-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Top-right Upgrade pill === */
.header-cta {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2; /* above grid overlay */
}

.cta-pro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffd166; /* warm yellow */
  color: #111827; /* dark text */
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.cta-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  background: #ffca5c;
}

.cta-pro:active {
  transform: translateY(0);
}

.cta-pro:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45);
  border-color: rgba(17, 24, 39, 0.25);
}

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

/* keep it accessible on small screens */
@media (max-width: 480px) {
  .header-cta {
    top: 12px;
    right: 12px;
  }
  .cta-pro {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

/* Form layout inside upgrade modal */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 600;
}
.form-field input {
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* ═══════════════════════════════════════════════════════════════════
   Usage Tracking + Pro Subscription Styles
   ═══════════════════════════════════════════════════════════════════ */

/* Email field in form */
.email-field-group {
  margin-bottom: 24px;
  max-width: 480px;
}

.email-field-group label {
  display: block;
  margin-bottom: 8px;
}

.email-field-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f9fafb;
}

.email-field-group input[type="email"]:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

.email-field-group input[type="email"].highlight-pulse {
  animation: pulse-highlight 0.6s ease-in-out 3;
}

@keyframes pulse-highlight {
  0%, 100% { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
  50% { border-color: #7c3aed; box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.2); }
}

/* Usage status badge */
.usage-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #166534;
  margin-right: 8px;
}

.usage-status.usage-exhausted {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* Pro badge */
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1px solid #fde047;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #854d0e;
}

.pro-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.manage-link {
  color: #92400e;
  text-decoration: underline;
  font-size: 0.8rem;
  margin-left: 4px;
}

.manage-link:hover {
  color: #78350f;
}

/* Paywall modal */
.paywall-modal-content {
  max-width: 440px;
}

.paywall-body {
  text-align: center;
}

.paywall-body > p {
  margin-bottom: 12px;
  color: #374151;
}

.pricing-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 20px 0;
}

.pricing-header {
  margin-bottom: 20px;
}

.pricing-header h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #111827;
}

.pricing-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4f46e5;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pricing-features li {
  padding: 6px 0;
  color: #374151;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 700;
}

.paywall-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.paywall-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.paywall-dismiss {
  margin-top: 12px;
}

.paywall-dismiss a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
}

.paywall-dismiss a:hover {
  color: #6b7280;
  text-decoration: underline;
}

/* Upgrade toast */
.upgrade-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #065f46;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  font-weight: 500;
  animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.toast-dismiss {
  background: none;
  border: none;
  color: #a7f3d0;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

.toast-dismiss:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   3-Tier Pricing Modal + Embedded Stripe Checkout
   ═══════════════════════════════════════════════════════════════════ */

/* Pricing modal is wider to fit 3 cards */
.pricing-modal-content {
  max-width: 760px;
  width: 95%;
}

.pricing-subtitle {
  text-align: center;
  color: #6b7280;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* Plans grid: 3 columns */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* Individual plan card */
.plan-card {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.plan-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

/* Popular card highlight */
.plan-popular {
  border-color: #4f46e5;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.18);
  transform: scale(1.03);
}

.plan-popular:hover {
  border-color: #4338ca;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.25);
  transform: scale(1.03) translateY(-2px);
}

/* Badge (Most Popular / Best Value) */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.plan-badge-lifetime {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Plan name */
.plan-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  margin-top: 4px;
}

/* Price */
.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.plan-popular .plan-price {
  color: #4f46e5;
}

/* Period */
.plan-period {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Savings */
.plan-savings {
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 8px;
}

/* Plan features list */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  text-align: left;
}

.plan-features li {
  padding: 4px 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.plan-features li::before {
  content: "\2713  ";
  color: #16a34a;
  font-weight: 700;
}

/* Select button */
.plan-select-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.plan-select-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #f5f3ff;
}

/* Popular plan button - filled */
.plan-select-popular {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
}

.plan-select-popular:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

/* Dismiss link */
.pricing-dismiss {
  text-align: center;
  margin-top: 4px;
}

.pricing-dismiss a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
}

.pricing-dismiss a:hover {
  color: #6b7280;
  text-decoration: underline;
}

/* ── Embedded Checkout Step ──────────────────────────────────────── */

.checkout-step {
  min-height: 400px;
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.checkout-back-btn::before {
  content: "\2190";
}

.checkout-back-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.checkout-container {
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
}

.checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 1rem;
}

/* ── Mobile responsive ───────────────────────────────────────────── */

@media (max-width: 640px) {
  .pricing-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .plan-popular {
    transform: none;
    order: -1;
  }

  .plan-popular:hover {
    transform: none;
  }

  .plan-card {
    padding: 24px 18px 20px;
  }

  .plan-price {
    font-size: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Email Collection Step (inside pricing modal)
   ═══════════════════════════════════════════════════════════════════ */

.email-step {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-step-content {
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
}

.email-step-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.email-step-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.email-step-content > p {
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 1rem;
}

#freeTrialForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#freeTrialEmail {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f9fafb;
  box-sizing: border-box;
}

#freeTrialEmail:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

.free-trial-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.free-trial-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.email-step-error {
  color: #991b1b;
  font-size: 0.9rem;
  margin-top: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}


/* ═══════════════════════════════════════════════════════════════════
   Watermark Comparison Demo (Modal Popup)
   ═══════════════════════════════════════════════════════════════════ */

.demo-modal-content {
  max-width: 920px;
  width: 95%;
  padding: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.demo-modal-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.14), transparent 40%);
  pointer-events: none;
  border-radius: 20px;
}

.demo-close {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #cbd5e1;
  font-size: 1.8rem;
  z-index: 10;
  cursor: pointer;
  transition: color 0.2s;
  background: rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.demo-header {
  text-align: center;
  padding: 36px 24px 20px;
  position: relative;
  z-index: 1;
}

.demo-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.demo-header p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 32px 24px;
  position: relative;
  z-index: 1;
}

/* Individual panel */
.demo-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.demo-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.demo-label-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.demo-label-good {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Simulated PDF document */
.demo-doc {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 22px 18px;
  height: 220px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.demo-doc-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-doc-content .line {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  width: 100%;
}

.demo-doc-content .line.short { width: 55%; }
.demo-doc-content .line.medium { width: 78%; }

/* Standard watermark (single center) */
.demo-watermark-standard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(239, 68, 68, 0.45);
  letter-spacing: 3px;
  pointer-events: none;
  animation: standardFade 6s infinite;
}

/* Tiled watermark grid */
.demo-watermark-tiled {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 1fr);
  pointer-events: none;
  padding: 8px;
}

.demo-watermark-tiled span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(79, 70, 229, 0.42);
  transform: rotate(-18deg);
  letter-spacing: 1px;
  animation: tiledResist 6s infinite;
}

.demo-watermark-tiled span:nth-child(6n + 4),
.demo-watermark-tiled span:nth-child(6n + 5),
.demo-watermark-tiled span:nth-child(6n + 6) {
  transform: rotate(-18deg) translateX(15px);
}

/* Animated cursor */
.demo-cursor {
  position: absolute;
  font-size: 1.8rem;
  top: 50%;
  left: 0;
  opacity: 0;
  animation: cursorAttack 6s infinite;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Flash effects */
.demo-delete-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  opacity: 0;
  animation: deleteFlash 6s infinite;
  z-index: 11;
}

.demo-shield-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3.5rem;
  opacity: 0;
  animation: shieldFlash 6s infinite;
  z-index: 11;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
}

/* Result badge */
.demo-result {
  margin-top: 14px;
  text-align: center;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: resultReveal 6s infinite;
}

.demo-result-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.demo-result-good {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-icon {
  font-size: 1.05rem;
}

/* CTA button */
.demo-cta {
  text-align: center;
  padding: 0 24px 32px;
  position: relative;
  z-index: 1;
}

.demo-cta-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.demo-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* ── Keyframes ──────────────────────────────────────────────────── */

@keyframes cursorAttack {
  0%, 10%           { opacity: 0; left: 10%; top: 80%; }
  15%               { opacity: 1; }
  35%               { opacity: 1; left: 50%; top: 45%; }
  42%               { opacity: 1; left: 50%; top: 45%; transform: scale(0.8); }
  45%               { opacity: 1; left: 50%; top: 45%; transform: scale(1); }
  55%, 100%         { opacity: 0; left: 50%; top: 45%; }
}

@keyframes standardFade {
  0%, 44%           { opacity: 1; transform: translate(-50%, -50%) rotate(-15deg) scale(1); }
  45%               { opacity: 0; transform: translate(-50%, -50%) rotate(-15deg) scale(1.3); filter: blur(3px); }
  100%              { opacity: 0; transform: translate(-50%, -50%) rotate(-15deg) scale(1.3); filter: blur(3px); }
}

@keyframes tiledResist {
  0%, 44%           { opacity: 0.42; }
  47%               { opacity: 0.72; }
  50%               { opacity: 0.42; }
  100%              { opacity: 0.42; }
}

@keyframes deleteFlash {
  0%, 44%           { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  45%               { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  55%               { opacity: 0; transform: translate(-50%, -50%) scale(2); }
  100%              { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

@keyframes shieldFlash {
  0%, 44%           { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  45%               { opacity: 0.85; transform: translate(-50%, -50%) scale(1.2); }
  55%               { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
  65%               { opacity: 0; transform: translate(-50%, -50%) scale(1); }
  100%              { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

@keyframes resultReveal {
  0%, 54%           { opacity: 0; transform: translateY(8px); }
  65%               { opacity: 1; transform: translateY(0); }
  95%               { opacity: 1; transform: translateY(0); }
  100%              { opacity: 0; transform: translateY(0); }
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .demo-modal-content {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
  .demo-header {
    padding: 28px 20px 16px;
  }
  .demo-header h2 {
    font-size: 1.4rem;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 16px 18px;
  }
  .demo-doc {
    height: 170px;
    padding: 16px 14px;
  }
  .demo-watermark-standard {
    font-size: 1.6rem;
  }
  .demo-watermark-tiled span {
    font-size: 0.7rem;
  }
  .demo-cta {
    padding: 0 16px 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Demo Modal - Explanation Cards
   ═══════════════════════════════════════════════════════════════════ */

.demo-explanation {
  padding: 8px 32px 20px;
  position: relative;
  z-index: 1;
}

.demo-explanation h3 {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-feature-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  align-items: flex-start;
}

.demo-feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.demo-feature-item strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}

.demo-feature-item p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .demo-features {
    grid-template-columns: 1fr;
  }
  .demo-explanation {
    padding: 8px 16px 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Expandable Differentiator Bar
   ═══════════════════════════════════════════════════════════════════ */

.diff-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 24px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.diff-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.diff-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.diff-card-featured {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.12);
}

.diff-card-featured:hover {
  border-color: #4338ca;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.2);
}

.diff-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.diff-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.diff-icon-purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.diff-icon-indigo {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}

.diff-icon-green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.diff-titles {
  flex: 1;
  min-width: 0;
}

.diff-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.diff-badge {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.diff-sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 3px;
  font-weight: 500;
}

.diff-arrow {
  font-size: 0.8rem;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.diff-open .diff-arrow {
  transform: rotate(180deg);
  color: #4f46e5;
}

/* Body expands when open */
.diff-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.diff-card.diff-open .diff-body {
  max-height: 300px;
  padding: 0 20px 18px;
}

.diff-body p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

.diff-card-featured .diff-body p {
  border-top-color: #ddd6fe;
}

/* ═══════════════════════════════════════════════════════════════════
   Stats Banner
   ═══════════════════════════════════════════════════════════════════ */

.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-left: 40px;
  margin-right: 40px;
}

.stats-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.2), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.15), transparent 50%);
  pointer-events: none;
}

.stats-stat {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stats-number {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .diff-bar {
    grid-template-columns: 1fr;
    padding: 16px 20px 0;
    gap: 10px;
  }
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 18px;
    margin-left: 20px;
    margin-right: 20px;
  }
  .stats-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 500px) {
  .diff-title {
    font-size: 0.95rem;
  }
  .diff-sub {
    font-size: 0.78rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Mobile Responsive Overrides (comprehensive)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Header: stack vertically, header-cta becomes inline ───────── */
  .header {
    padding: 24px 18px 20px;
  }

  .header-cta {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  .usage-status,
  .pro-badge,
  .cta-pro {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .brand-info h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .logo-icon {
    font-size: 2.2rem;
    padding: 10px;
    border-radius: 12px;
  }

  .badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* ── Differentiator cards: full width stack ───────────────────── */
  .diff-bar {
    grid-template-columns: 1fr;
    padding: 16px 16px 0;
    gap: 10px;
  }

  .diff-header {
    padding: 14px 16px;
  }

  .diff-title {
    font-size: 0.95rem;
  }

  .diff-sub {
    font-size: 0.78rem;
  }

  .diff-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .diff-body p {
    font-size: 0.88rem;
  }

  .diff-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  /* ── Upload section ──────────────────────────────────────────── */
  .upload-section {
    padding: 24px 16px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .upload-box {
    padding: 22px 16px;
    min-height: 140px;
  }

  .upload-icon {
    font-size: 2.5rem;
  }

  .upload-text strong {
    font-size: 1rem;
  }

  .watermark-options {
    padding: 22px 16px;
  }

  .process-btn {
    padding: 16px 20px;
    font-size: 1.05rem;
    width: 100%;
  }

  /* ── Pricing Modal: full-width stack ──────────────────────────── */
  .pricing-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin: auto 0 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plan-popular {
    transform: none;
    order: -1;
  }

  .plan-popular:hover {
    transform: none;
  }

  .plan-card {
    padding: 22px 18px 18px;
  }

  .plan-price {
    font-size: 1.9rem;
  }

  .plan-features {
    font-size: 0.85rem;
  }

  /* ── Demo Modal: tighten for mobile ───────────────────────────── */
  .demo-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin: auto 0 0;
    overflow-y: auto;
  }

  .demo-header {
    padding: 26px 18px 14px;
  }

  .demo-header h2 {
    font-size: 1.3rem;
  }

  .demo-header p {
    font-size: 0.85rem;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 16px;
  }

  .demo-panel {
    padding: 14px;
  }

  .demo-doc {
    height: 160px;
    padding: 14px 12px;
  }

  .demo-watermark-standard {
    font-size: 1.5rem;
  }

  .demo-watermark-tiled span {
    font-size: 0.7rem;
  }

  .demo-result {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .demo-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-explanation {
    padding: 8px 16px 14px;
  }

  .demo-explanation h3 {
    font-size: 1rem;
  }

  .demo-cta {
    padding: 0 16px 22px;
  }

  .demo-cta-btn {
    width: 100%;
    padding: 14px;
  }

  .demo-close {
    top: 10px;
    right: 12px;
  }

  /* ── Modal generic (email step, etc.) ─────────────────────────── */
  .modal-content {
    max-width: 100%;
    width: 95%;
  }

  .modal-body {
    padding: 22px 18px;
  }

  .modal-header {
    padding: 20px 22px 16px;
  }

  .modal-header h3 {
    font-size: 1.15rem;
  }

  #freeTrialEmail {
    font-size: 1rem;
    padding: 12px 14px;
  }

  /* ── Toast: smaller on mobile ─────────────────────────────────── */
  .upgrade-toast {
    left: 12px;
    right: 12px;
    transform: none;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  @keyframes slide-down {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* ── Slider labels: prevent overflow ──────────────────────────── */
  .option-label {
    font-size: 0.9rem;
  }

  .option-description {
    font-size: 0.78rem;
  }

  /* ── File list items ──────────────────────────────────────────── */
  .file-item {
    font-size: 0.82rem;
    padding: 10px 12px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .brand-info h1 {
    font-size: 1.55rem;
  }

  .tagline {
    font-size: 0.82rem;
  }

  .header-cta {
    flex-direction: column;
    width: 100%;
  }

  .usage-status,
  .pro-badge,
  .cta-pro {
    width: 100%;
    justify-content: center;
  }

  .diff-title {
    font-size: 0.88rem;
  }

  .plan-price {
    font-size: 1.7rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Auth Pages (Login, Set Password, Forgot Password)
   ═══════════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #581c87 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  margin-bottom: 18px;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.auth-header p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.auth-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

.auth-submit {
  padding: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 4px;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.auth-error {
  color: #991b1b;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.auth-success {
  color: #065f46;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
}

.auth-links a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-divider {
  color: #d1d5db;
  margin: 0 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   Dashboard
   ═══════════════════════════════════════════════════════════════════ */

.dash-page {
  min-height: 100vh;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
}

.dash-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-logo {
  color: #111827;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-pro-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dash-user-email {
  color: #6b7280;
  font-size: 0.88rem;
}

.dash-nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.dash-nav-link:hover {
  background: #f3f4f6;
}

.dash-logout {
  color: #6b7280;
}

/* Main */
.dash-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

.dash-header {
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.dash-header p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 60px 30px;
  background: #fff;
  border: 2px dashed #e5e7eb;
  border-radius: 16px;
}

.dash-empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.dash-empty h3 {
  font-size: 1.2rem;
  color: #111827;
  margin: 0 0 6px;
}

.dash-empty p {
  color: #6b7280;
  margin: 0 0 24px;
}

.dash-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dash-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* Session cards */
.dash-sessions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-session-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.dash-session-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.08);
}

.dash-session-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.dash-session-info {
  flex: 1;
  min-width: 0;
}

.dash-session-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-session-more {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 6px;
}

.dash-session-deleted {
  color: #9ca3af;
  font-style: italic;
  font-weight: 400;
}

.dash-session-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.dash-session-arrow {
  font-size: 1.3rem;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Session detail page */
.dash-session-header {
  margin-bottom: 28px;
}

.dash-back {
  display: inline-block;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.dash-back:hover {
  text-decoration: underline;
}

.dash-session-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.dash-session-header p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

.dash-bulk-actions {
  margin-bottom: 20px;
}

.dash-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.dash-file-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dash-file-info {
  flex: 1;
  min-width: 0;
}

.dash-file-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-file-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

.dash-file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dash-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.dash-btn-view {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.dash-btn-view:hover {
  background: #e5e7eb;
  color: #111827;
}

.dash-btn-download {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
}

.dash-btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* Mobile */
@media (max-width: 640px) {
  .auth-card {
    padding: 32px 24px;
  }
  .dash-nav {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dash-nav-right {
    width: 100%;
    gap: 10px;
    font-size: 0.85rem;
  }
  .dash-user-email {
    font-size: 0.82rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dash-main {
    padding: 28px 16px 40px;
  }
  .dash-header h1 {
    font-size: 1.5rem;
  }
  .dash-session-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .dash-file-card {
    flex-wrap: wrap;
  }
  .dash-file-info {
    min-width: 60%;
  }
  .dash-file-actions {
    width: 100%;
    gap: 8px;
  }
  .dash-btn {
    flex: 1;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Header Auth Buttons (Login / Dashboard)
   ═══════════════════════════════════════════════════════════════════ */

.cta-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.15s;
}

.cta-login:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.cta-dash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.cta-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
}

@media (max-width: 768px) {
  .cta-login,
  .cta-dash {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Watermark Modal (dashboard → "Watermark New Files")
   ═══════════════════════════════════════════════════════════════════ */

.watermark-modal-content {
  max-width: 880px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
}

.watermark-modal-body {
  padding: 24px 28px 28px;
}

.watermark-modal-content .upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.watermark-modal-content .upload-box {
  padding: 28px 20px;
  min-height: 170px;
}

.watermark-modal-content .upload-icon {
  font-size: 2.6rem;
}

.watermark-modal-content .watermark-options {
  padding: 22px 20px;
  margin-top: 4px;
}

.watermark-modal-content .process-btn {
  width: 100%;
  margin-top: 20px;
}

/* "View in Dashboard" button after success */
.wm-done-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  background: transparent;
  color: #4f46e5;
  border: 2px solid #4f46e5;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.wm-done-btn:hover {
  background: #4f46e5;
  color: #fff;
}

/* Dashboard CTA button (in nav + as primary action in modal context) */
.dash-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.dash-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

@media (max-width: 720px) {
  .watermark-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin: auto 0 0;
  }

  .watermark-modal-body {
    padding: 18px 18px 22px;
  }

  .watermark-modal-content .upload-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .watermark-modal-content .options-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Batch Name Modal
   ═══════════════════════════════════════════════════════════════════ */

.batch-name-modal-content {
  max-width: 440px;
  width: 95%;
}

.batch-name-modal-content .modal-body p {
  color: #6b7280;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

#batchNameForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#batchNameInput {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#batchNameInput:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}

.batch-name-btn {
  padding: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
}

.batch-name-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════
   Welcome Page (post-Stripe) + Dashboard Welcome Banner
   ═══════════════════════════════════════════════════════════════════ */

.welcome-card {
  max-width: 480px;
  text-align: center;
}

.welcome-celebration {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 8px;
  animation: celebrateBounce 1s ease;
}

@keyframes celebrateBounce {
  0%   { transform: scale(0.2); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.welcome-email {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 10px;
  border: 1px solid #bbf7d0;
}

.welcome-note {
  text-align: center;
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Dashboard welcome banner */
.dash-welcome-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  border: 1px solid #86efac;
  border-radius: 12px;
  margin-bottom: 24px;
  color: #065f46;
}

.welcome-banner-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.dash-welcome-banner > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-welcome-banner strong {
  font-size: 1rem;
  font-weight: 700;
}

.dash-welcome-banner span {
  font-size: 0.88rem;
  color: #047857;
}

.dash-welcome-dismiss {
  background: transparent;
  border: none;
  color: #065f46;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 8px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.dash-welcome-dismiss:hover {
  opacity: 1;
}

/* Batch name modal on top of watermark modal */
#batchNameModal { z-index: 1100; }

/* ═══════════════════════════════════════════════════════════════════
   Admin Dashboard
   ═══════════════════════════════════════════════════════════════════ */

.admin-page .dash-nav {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-bottom: 1px solid #334155;
}

.admin-page .dash-logo,
.admin-page .dash-user-email,
.admin-page .dash-nav-link {
  color: #e2e8f0;
}

.admin-page .dash-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-tag {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.dash-admin-link {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Stats row */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.admin-stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}

/* Search */
.admin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.admin-search input[type="search"] {
  flex: 1;
  padding: 11px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
}

.admin-search input[type="search"]:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-search button {
  padding: 11px 22px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.admin-clear {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.88rem;
}

.admin-clear:hover {
  color: #111827;
}

/* Table */
.admin-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: #f9fafb;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

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

.admin-table tr:hover {
  background: #fafafa;
}

.admin-nowrap {
  white-space: nowrap;
}

.admin-email {
  font-weight: 600;
  color: #111827;
}

.admin-email-tag {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* Pills */
.admin-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-pill-pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.admin-pill-free {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-pill-status {
  background: #eef2ff;
  color: #4f46e5;
  text-transform: none;
}

.admin-pill-admin {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
}

.admin-status {
  font-size: 0.82rem;
  color: #6b7280;
  text-transform: capitalize;
}

.admin-status-active { color: #059669; font-weight: 600; }
.admin-status-past_due { color: #d97706; font-weight: 600; }
.admin-status-canceled { color: #dc2626; }
.admin-status-none { color: #9ca3af; }

/* Button */
.admin-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.admin-btn:hover {
  background: #f9fafb;
  border-color: #c7d2fe;
  color: #4f46e5;
}

.admin-btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
}

.admin-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
  border-color: transparent;
}

/* User detail page */
.admin-user-header {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.admin-user-meta h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
}

.admin-user-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-quick {
  display: flex;
  gap: 28px;
}

.admin-qlabel {
  font-size: 0.78rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.admin-qvalue {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.admin-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px;
}

/* Session cards (admin) */
.admin-session {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.admin-session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  gap: 16px;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  border-bottom: 1px solid #f3f4f6;
}

.admin-session-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}

.admin-session-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

.admin-session-deleted {
  padding: 16px 22px;
  color: #9ca3af;
  font-style: italic;
  margin: 0;
}

.admin-file-list {
  padding: 6px 0;
}

.admin-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.admin-file-item:last-child {
  border-bottom: none;
}

.admin-file-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-file-name {
  flex: 1;
  font-weight: 500;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-file-size {
  font-size: 0.78rem;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-table {
    font-size: 0.82rem;
  }
  .admin-table th, .admin-table td {
    padding: 9px 10px;
  }
  .admin-user-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-user-quick {
    gap: 20px;
    width: 100%;
  }
  .admin-file-item {
    flex-wrap: wrap;
    padding: 12px 18px;
  }
  .admin-file-name {
    flex: 1 1 100%;
    order: -1;
  }
}

/* Wider admin dashboard container */
.admin-page .dash-main {
  max-width: 1400px;
}

