/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: #F8FAFC;
  color: #1E293B;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --green: #16A34A;
  --green-dark: #15803D;
  --green-light: #F0FDF4;
  --bg: #F8FAFC;
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
  --transition: 0.2s ease;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
  text-decoration: none;
}
.logo-icon { font-size: 1.2rem; }
.logo-dot { color: var(--blue); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

/* Hamburger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-burger:hover { background: var(--gray-100); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 50%, #FFF7ED 100%);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(22,163,74,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
}
.highlight {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
}
.stat-label { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--gray-300); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  justify-content: center;
  line-height: 1.4;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.btn-green {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}
.btn-green:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.4);
}
.btn-green:disabled {
  background: var(--gray-300);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}
.btn-outline:hover { background: var(--blue-light); }
.btn-full { width: 100%; }

/* ===== PRESETS ===== */
.presets-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 1.5rem;
}
.presets-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.preset-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.preset-btn:hover, .preset-btn.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TOOL SECTION ===== */
.tool-section { padding: 2.5rem 1.5rem; }
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ===== TOOL CARD ===== */
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Upload area stretches to fill extra space when cards are equal height */
.tool-card .upload-area {
  flex: 1;
  min-height: 160px;
}
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.tool-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.tool-title { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.tool-desc { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }

/* ===== UPLOAD AREA ===== */
.upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-area:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-area.drag-over { border-color: var(--blue); background: var(--blue-light); border-style: solid; }

.upload-placeholder {
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
/* Allow only the button to receive pointer events */
.upload-placeholder .btn-outline { pointer-events: auto; }

.upload-icon { font-size: 2rem; }
.upload-text { font-size: 0.88rem; font-weight: 600; color: var(--gray-700); }
.upload-hint { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.4rem; }

.preview-wrap {
  width: 100%;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.preview-img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: block;
}
.sig-preview-img { max-height: 90px; }
.remove-btn {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all var(--transition);
  pointer-events: auto;
}
.remove-btn:hover { background: #DC2626; color: white; }

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.half { flex: 1; min-width: 120px; }
.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-select, .form-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: auto;
}
.form-select:focus, .form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.settings-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.options-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  transition: all var(--transition);
  user-select: none;
}
.checkbox-label:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== PROGRESS ===== */
.progress-wrap { text-align: center; }
.progress-bar {
  background: var(--gray-100);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }

/* ===== RESULT ===== */
.result-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeIn 0.4s ease;
  border: 1px solid #BBF7D0;
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 1rem;
}
.result-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.result-badge.success { background: var(--green-light); color: var(--green); border: 1px solid #86EFAC; }
.result-info { font-size: 0.82rem; color: var(--gray-600); font-weight: 500; }
.result-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
  background: white;
}
.sig-result-img { max-height: 90px; }

/* ===== ERROR ===== */
.error-area {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}
.error-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.error-msg { font-size: 0.83rem; color: #DC2626; font-weight: 500; line-height: 1.4; }

/* ===== TABLE SECTION ===== */
.table-section {
  background: var(--white);
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.section-title {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 0.4rem;
}
.section-desc {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.req-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.req-table th {
  background: var(--gray-50);
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.req-table td {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.req-table tr:last-child td { border-bottom: none; }
.req-table tr:hover td { background: var(--gray-50); }
.req-table td:nth-child(2), .req-table td:nth-child(4) { color: var(--green); font-weight: 700; }

/* ===== FEATURES ===== */
.features-section { padding: 3rem 1.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.5; }

/* ===== FAQ ===== */
.faq-section {
  background: var(--white);
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question.open { color: var(--blue); background: var(--blue-light); }
.faq-arrow {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--gray-400);
}
.faq-question.open .faq-arrow { transform: rotate(180deg); color: var(--blue); }
.faq-answer {
  display: none;
  padding: 1rem 1.25rem;
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.65;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.faq-answer.open { display: block; animation: fadeIn 0.2s ease; }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 1.5rem 1.5rem;
}
.footer .logo-text { color: var(--white); }
.footer .logo-dot { color: #60A5FA; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-tagline { font-size: 0.82rem; color: var(--gray-400); margin-top: 0.6rem; line-height: 1.5; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--gray-500);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.2s ease;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
#modal-content h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--gray-900); }
#modal-content p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.75rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gray-900);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 99999;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 320px; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.82rem; }
}
@media (max-width: 500px) {
  .tool-section { padding: 1.5rem 1rem; }
  .tool-card { padding: 1.25rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .settings-row .half { min-width: calc(50% - 0.375rem); }
  .logo-text { font-size: 1rem; }
}
@media (max-width: 360px) {
  .features-grid { grid-template-columns: 1fr; }
  .options-row { flex-direction: column; }
}

/* ============================================================
   AI PASSPORT PHOTO MAKER — Production Styles
   ============================================================ */

/* Hero passport button */
.btn-passport-hero {
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}
.btn-passport-hero:hover {
  background: linear-gradient(135deg, #6D28D9, #4338CA);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
}
.btn-passport {
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}
.btn-passport:hover:not(:disabled) {
  background: linear-gradient(135deg, #6D28D9, #4338CA);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.btn-passport:disabled {
  background: var(--gray-300);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Section */
.passport-section {
  background: linear-gradient(180deg, #FAF5FF 0%, #F8FAFC 100%);
  padding: 3.5rem 1.5rem;
  border-top: 1px solid #E9D5FF;
  border-bottom: 1px solid var(--gray-200);
}
.passport-section-header { text-align: center; margin-bottom: 2rem; }
.passport-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: white;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* Card layout */
.passport-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .passport-card { grid-template-columns: 1fr; } }

/* Left panel */
.passport-left {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Upload dropzone */
.pp-upload-dropzone { cursor: pointer; }
.pp-upload-icon { font-size: 2.2rem; margin-bottom: 0.25rem; }

/* Validation box */
.pp-validation-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  animation: fadeIn 0.25s ease;
}
.pp-val-error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
.pp-val-warn  { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.pp-val-icon  { flex-shrink: 0; font-size: 0.9rem; }
.pp-val-msg   { flex: 1; }

/* Type tabs (removed — now using select) */

/* Specs box */
.pp-specs-box {
  display: flex;
  gap: 0.5rem;
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}
.pp-spec { display:flex; flex-direction:column; gap:2px; flex:1; min-width:70px; }
.pp-spec-label { font-size:0.65rem; font-weight:700; color:#7C3AED; text-transform:uppercase; letter-spacing:0.07em; }
.pp-spec-val   { font-size:0.82rem; font-weight:600; color:var(--gray-800); }

/* BG swatches */
.bg-color-row { display:flex; gap:0.5rem; flex-wrap:wrap; align-items:center; }
.bg-swatch {
  width:36px; height:36px; border-radius:8px;
  border:2px solid var(--gray-200); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.15s ease; position:relative; flex-shrink:0;
}
.bg-swatch:hover { border-color:#7C3AED; transform:scale(1.1); }
.bg-swatch.active { border-color:#7C3AED; box-shadow:0 0 0 3px rgba(124,58,237,0.2); }
.bg-check { font-size:0.85rem; opacity:0; transition:opacity 0.15s; color:#7C3AED; font-weight:900; }
.bg-swatch.active .bg-check { opacity:1; }
.bg-custom-swatch {
  background: conic-gradient(red,yellow,lime,cyan,blue,magenta,red);
  cursor:pointer; font-size:0.9rem;
}
.bg-custom-swatch input[type="color"] {
  position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; border:none; padding:0;
}

/* AI notice */
.pp-ai-notice {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.4;
  padding-top: 0.25rem;
}

/* Right panel */
.passport-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 300px;
}

/* Empty state */
.pp-empty-state {
  background: var(--white);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pp-empty-icon { font-size: 3.5rem; opacity: 0.4; }
.pp-empty-text { font-size:0.95rem; color:var(--gray-500); line-height:1.5; }
.pp-tips { list-style:none; text-align:left; display:flex; flex-direction:column; gap:0.35rem; margin-top:0.25rem; }
.pp-tips li { font-size:0.82rem; color:var(--gray-500); }

/* Result section */
.pp-result-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.35s ease;
}
.pp-result-title { font-size:1rem; font-weight:700; color:var(--gray-900); }

/* Compare toggle */
.pp-compare-row { display:flex; gap:0.4rem; }
.pp-compare-btn {
  flex:1; padding:0.4rem 0.75rem; border-radius:8px;
  border:1.5px solid var(--gray-200); background:var(--white);
  font-family:'Poppins',sans-serif; font-size:0.8rem; font-weight:600;
  color:var(--gray-600); cursor:pointer; transition:all 0.15s;
}
.pp-compare-btn.active { border-color:#7C3AED; background:#FAF5FF; color:#7C3AED; }

/* Photo preview box */
.pp-preview-box {
  display:flex; justify-content:center;
  background: repeating-conic-gradient(#e0e0e0 0% 25%, white 0% 50%) 0 0 / 16px 16px;
  border-radius:10px; padding:1rem; border:1px solid var(--gray-200);
  min-height: 160px; align-items: center;
}
.pp-result-img {
  max-height:220px; max-width:100%;
  object-fit:contain; display:block;
  box-shadow: 0 2px 16px rgba(0,0,0,0.14);
}

/* Face metrics */
.pp-metrics {
  display:flex; gap:0.5rem; flex-wrap:wrap;
  background:#FAF5FF; border:1px solid #E9D5FF;
  border-radius:10px; padding:0.75rem 1rem;
}
.pp-metric { display:flex; flex-direction:column; align-items:center; gap:2px; flex:1; min-width:70px; }
.pp-metric-icon { font-size:1.1rem; }
.pp-metric-val   { font-size:0.85rem; font-weight:700; color:#7C3AED; }
.pp-metric-label { font-size:0.65rem; color:var(--gray-400); font-weight:500; text-transform:uppercase; }

/* Sheet section */
.pp-sheet-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.35s ease;
}

.sheet-selector {
  display:grid; grid-template-columns:repeat(4,1fr); gap:0.5rem;
}
@media (max-width:600px) { .sheet-selector { grid-template-columns:1fr 1fr; } }

.sheet-btn {
  display:flex; flex-direction:column; align-items:center; gap:0.2rem;
  padding:0.65rem 0.4rem; border:1.5px solid var(--gray-200);
  border-radius:10px; background:var(--white); cursor:pointer;
  transition:all 0.15s; font-family:'Poppins',sans-serif;
}
.sheet-btn:hover { border-color:#7C3AED; background:#FAF5FF; }
.sheet-btn.active { border-color:#7C3AED; background:#FAF5FF; box-shadow:0 0 0 3px rgba(124,58,237,0.12); }
.sheet-icon { font-size:1.4rem; }
.sheet-name { font-size:0.75rem; font-weight:700; color:var(--gray-800); }
.sheet-count { font-size:0.68rem; color:#7C3AED; font-weight:600; }

.sheet-preview-wrap {
  display:flex; justify-content:center;
  background:#f0f0f0; border-radius:10px;
  padding:0.75rem; border:1px solid var(--gray-200); overflow:hidden;
}
.sheet-canvas {
  max-width:100%; max-height:260px;
  object-fit:contain; box-shadow:0 2px 16px rgba(0,0,0,0.15); display:block;
}
.sheet-download-row { display:flex; flex-direction:column; gap:0.5rem; }
.sheet-hint { text-align:center; font-size:0.75rem; color:var(--gray-400); font-weight:500; }

@media (max-width:600px) {
  .passport-section { padding:2rem 1rem; }
  .passport-left { padding:1.25rem; }
}
