/* ===== 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); }

/* ===== 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: start;
}
@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* ===== 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;
}
.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; }
}

/* ============================================================
   PASSPORT PHOTO MAKER — NEW 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;
}

/* Passport 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;
}

/* Passport Card */
.passport-card {
  display: grid;
  grid-template-columns: 380px 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;
}

/* Photo Type Tabs */
.pp-type-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.pp-type-tab {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.pp-type-tab:hover { border-color: #7C3AED; color: #7C3AED; background: #FAF5FF; }
.pp-type-tab.active {
  border-color: #7C3AED;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: white;
}

/* 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: 100px;
}
.pp-spec-label { font-size: 0.68rem; font-weight: 700; color: #7C3AED; text-transform: uppercase; letter-spacing: 0.06em; }
.pp-spec-val { font-size: 0.82rem; font-weight: 600; color: var(--gray-800); }

/* Background color swatches */
.bg-color-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.bg-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  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.9rem; opacity: 0; transition: opacity 0.15s; color: #7C3AED; font-weight: 900; }
.bg-swatch.active .bg-check { opacity: 1; }
/* Dark check for light swatches */
.bg-swatch[data-color="#FFFFFF"] .bg-check { color: #7C3AED; }

.bg-custom-swatch {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
  font-size: 1rem;
}
.bg-custom-swatch input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* 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.5rem;
}
.pp-tips li { font-size: 0.82rem; color: var(--gray-500); }

/* Single Result */
.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.4s ease;
}
.pp-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.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);
}
.pp-result-img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.pp-result-info {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
  text-align: center;
}

/* 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.4s 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.25rem;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  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.15); }
.sheet-icon { font-size: 1.5rem; }
.sheet-name { font-size: 0.78rem; font-weight: 700; color: var(--gray-800); }
.sheet-count { font-size: 0.7rem; color: #7C3AED; font-weight: 600; }

/* Sheet canvas preview */
.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: 280px;
  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.78rem;
  color: var(--gray-400);
  font-weight: 500;
}


/* ============================================================
   RAZORPAY SUPPORT / DONATE STYLES
   ============================================================ */

/* Nav support button */
.btn-pay-nav {
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(249,115,22,0.3);
  flex-shrink: 0;
}
.btn-pay-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.45);
}

/* Donate modal box */
.payment-modal-box {
  max-width: 440px;
  padding: 2rem 2rem 1.5rem;
}
.payment-modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}
.payment-modal-logo { font-size: 2.5rem; margin-bottom: 0.4rem; }
.payment-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
}
.payment-modal-sub { font-size: 0.82rem; color: var(--gray-400); }

/* Description text */
.donate-desc {
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

/* Quick amount chips */
.donate-amounts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}
.donate-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s ease;
}
.donate-chip:hover { border-color: #F97316; color: #F97316; background: #FFF7ED; }
.donate-chip.active {
  border-color: #F97316;
  background: #F97316;
  color: white;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

/* Custom amount row */
.donate-custom-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}
.donate-custom-row:focus-within { border-color: #F97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.donate-rupee { font-size: 1.1rem; font-weight: 700; color: var(--gray-600); }
.donate-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  background: transparent;
  -moz-appearance: textfield;
}
.donate-input::-webkit-inner-spin-button { opacity: 0; }

/* Pay button */
.btn-pay-modal {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
  margin-bottom: 1rem;
  width: 100%;
}
.btn-pay-modal:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.45);
}
.btn-pay-modal:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Status messages */
.payment-status-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.payment-status-success { background: #F0FDF4; border: 1px solid #86EFAC; color: #15803D; }
.payment-status-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
.payment-status-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.payment-status-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }

/* Secure note */
.payment-secure-note {
  text-align: center;
  font-size: 0.73rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .btn-pay-nav { display: none; }
  .payment-modal-box { padding: 1.5rem; }
}
