/* LIGHT MODE THEME */
:root {
  --bg-page: #f3f4f6;       /* Light Gray Background */
  --bg-card: #ffffff;       /* White Cards */
  --text-main: #111827;     /* Almost Black Text */
  --text-muted: #6b7280;    /* Gray Text */
  --border-light: #e5e7eb;  /* Light Borders */
  --primary: #59c9a5;       /* Brand Teal */
  --primary-hover: #46b08e;
  --error: #ef4444;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 20px 12px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 550px; 
}

/* --- LOGO UPDATES --- */
.main-logo {
  display: block;
  margin: 0 auto 4px;
  width: 100%;        
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-main);
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text-main);
}

/* INPUTS */
input[type="email"],
input[type="tel"],
input[type="text"],
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db; 
  background: #fff;
  color: var(--text-main);
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(89, 201, 165, 0.2);
}

input.input-error {
  border-color: var(--error);
  background: #fef2f2;
}

.error-text {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 4px;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

/* PACK SELECTION */
.packs label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9fafb;
}

.packs label:hover {
  background: #f3f4f6;
}

.packs input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* --- SOCIAL MEDIA BUTTONS --- */
.social-options {
  display: flex;
  gap: 12px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  background: #f9fafb;
  transition: all 0.2s;
  font-size: 0.9rem;
  text-align: center;
}
.social-btn:hover {
  background: #f3f4f6;
}
/* When selected */
.social-btn:has(input:checked) {
  background: rgba(89, 201, 165, 0.1);
  border-color: var(--primary);
  color: #064e3b;
  font-weight: 600;
}
.social-btn input {
  accent-color: var(--primary);
  width: 16px; height: 16px;
}

/* UPLOAD AREA MAIN CONTAINER */
.dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  min-height: 120px;
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 16px;
  color: var(--text-muted);
  padding: 16px;
}

.dropzone:hover {
  background: #f3f4f6;
  border-color: var(--primary);
  color: var(--primary);
}

/* BUTTONS */
.cta {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  box-shadow: 0 4px 6px rgba(89, 201, 165, 0.3);
}

.cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

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

.cta.disabled-look {
  background: #d1d5db;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* HELPERS */
.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.upload-meta {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.count-help {
  font-weight: 600;
  margin-top: 4px;
}
.count-help.ok { color: var(--primary); }
.count-help.warn { color: #f59e0b; }
.count-help.error { color: var(--error); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-bottom: 3px solid var(--primary); }
.toast.error { border-bottom: 3px solid var(--error); }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.2s;
}
.modal.hidden { opacity: 0; pointer-events: none; }

.modal-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.progress { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-top: 10px; display: none; }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.2s; }

/* CROPPER OVERRIDES */
.cropper-modal { background-color: #fff; opacity: 0.8; }
.cropper-bg { background-image: none; background: #f3f4f6; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.shake { animation: shake 0.3s ease-in-out; }

@media (max-width: 480px) {
  body { padding: 12px; }
  .card { padding: 16px; }
}

footer { text-align: center; margin-top: 40px; padding-bottom: 40px; }
.tiny { font-size: 0.75rem; color: #9ca3af; }


/* --- DROPZONE OVERRIDES (Light Mode Fixes) --- */
.dropzone .dz-preview {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 0; 
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropzone .dz-image {
  border-radius: 8px;
  width: 100px;
  height: 100px;
}
.dropzone .dz-image img {
   object-fit: cover;
   width: 100%;
   height: 100%;
}

.dropzone .dz-remove {
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  display: block;
  text-align: center;
  transition: color 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.dropzone .dz-remove:hover {
  color: #dc2626;
  text-decoration: underline;
}

.dz-crop-btn {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
  transition: all 0.2s;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.dz-crop-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.dropzone .dz-preview .dz-progress {
  display: none !important;
}

.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark {
  display: none;
}