:root {
  --brand-action: #2563eb;
  --brand-action-hover: #1d4ed8;
  --brand-success: #16a34a;
}

.bg-orange-500,
.hover\:bg-orange-600:hover {
  background-color: var(--brand-action) !important;
}

.shadow-orange-500\/20,
.shadow-orange-500\/25 {
  --tw-shadow-color: rgba(37, 99, 235, 0.22) !important;
}

.bg-amber-500 {
  background-color: var(--brand-success) !important;
}

.shadow-amber-500\/20 {
  --tw-shadow-color: rgba(22, 163, 74, 0.22) !important;
}

.min-h-\[360px\] {
  min-height: 250px !important;
}

.min-h-\[230px\] {
  min-height: 120px !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 {
  padding: 1.25rem !important;
  background: linear-gradient(180deg, #f8fbff, #e8f2ff) !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 .py-8 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 .bottom-5.left-5 {
  display: none !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 .bottom-4.right-5 {
  bottom: 1rem !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 + .mt-5 {
  margin-top: 0.75rem !important;
  padding: 0.9rem !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 + .mt-5 .mt-4 {
  margin-top: 0.75rem !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 + .mt-5 .w-44 {
  width: 10rem !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 + .mt-5 .w-16.h-16 {
  width: 3.25rem !important;
  height: 3.25rem !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 + .mt-5 .p-3 {
  padding: 0.65rem !important;
}

/* Passport/tool workspace professional layout polish */
@media (min-width: 1024px) {
  .lg\:grid-cols-12 > .lg\:col-span-7 {
    grid-column: span 5 / span 5 !important;
  }

  .lg\:grid-cols-12 > .lg\:col-span-5 {
    grid-column: span 7 / span 7 !important;
  }
}

.lg\:col-span-5 > .space-y-6 > .p-6.bg-white.rounded-2xl.border.shadow-sm,
.lg\:col-span-5 > .space-y-8 > .p-6.bg-white.rounded-2xl.border.shadow-sm,
.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 {
  border-color: #d8e8f8 !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  box-shadow: 0 20px 45px rgba(15, 81, 132, 0.10) !important;
}

.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 > h3,
.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-4 > h3 {
  margin: -1.5rem -1.5rem 1.25rem !important;
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid #dbeafe !important;
  background: linear-gradient(90deg, #eff6ff, #ffffff) !important;
  color: #075985 !important;
  letter-spacing: .14em !important;
}

.lg\:col-span-5 .space-y-3.rounded-2xl,
.lg\:col-span-5 .space-y-4.rounded-2xl,
.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl {
  border: 1px solid #e2edf8 !important;
  border-radius: 18px !important;
  background: #f8fbff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.lg\:col-span-5 label,
.lg\:col-span-5 h4,
.lg\:col-span-5 .text-\[10px\].font-black.uppercase {
  color: #52627a !important;
  letter-spacing: .11em !important;
}

.lg\:col-span-5 input[type="text"],
.lg\:col-span-5 input[type="number"],
.lg\:col-span-5 select {
  border: 1px solid #dbe7f3 !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
}

.lg\:col-span-5 button.rounded-xl,
.lg\:col-span-5 button.rounded-2xl {
  border-radius: 14px !important;
}

.lg\:col-span-5 button.bg-primary,
.lg\:col-span-5 .bg-primary.text-white,
.lg\:col-span-5 .border-primary.bg-primary {
  background: linear-gradient(180deg, #1687d9, #0b72bd) !important;
  border-color: #0b72bd !important;
  box-shadow: 0 8px 18px rgba(11, 123, 211, .18) !important;
}

.lg\:col-span-5 input[type="range"] {
  height: 6px !important;
  accent-color: #0b7bd3 !important;
}

.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl.border.border-gray-100.space-y-4 {
  min-height: 100% !important;
  background: linear-gradient(180deg, #f8fbff, #f1f6fb) !important;
}

.lg\:col-span-5 .aspect-\[1\.6\/1\],
.lg\:col-span-5 .bg-white.rounded-xl.border-2.border-dashed {
  border-color: #bfdcf7 !important;
  background: #ffffff !important;
}

.lg\:col-span-5 + * .pro-panel,
.lg\:col-span-5 .pro-panel {
  border-color: #d8e8f8 !important;
}

.lg\:col-span-5 .sticky.top-24.rounded-3xl,
.lg\:col-span-5 > .pro-panel.rounded-3xl {
  border-color: #d8e8f8 !important;
  box-shadow: 0 18px 38px rgba(15, 81, 132, 0.09) !important;
}

/* Ultra pro passport/photo studio surface */
body {
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef4f9 48%, #f8fafc 100%),
    linear-gradient(90deg, rgba(14, 116, 144, .055) 1px, transparent 1px),
    linear-gradient(rgba(14, 116, 144, .055) 1px, transparent 1px) !important;
  background-size: auto, 40px 40px, 40px 40px !important;
}

header.sticky {
  border-bottom: 1px solid rgba(191, 219, 254, .9) !important;
  box-shadow: 0 10px 30px rgba(15, 81, 132, .08) !important;
}

main > div > .mb-10.premium-hero {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(125, 211, 252, .72) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(224,242,254,.78)),
    linear-gradient(90deg, rgba(14, 116, 144, .08) 1px, transparent 1px),
    linear-gradient(rgba(14, 116, 144, .08) 1px, transparent 1px) !important;
  background-size: auto, 42px 42px, 42px 42px !important;
  box-shadow: 0 24px 55px rgba(14, 116, 144, .12) !important;
}

main > div > .mb-10.premium-hero:after {
  content: "PHOTO STUDIO";
  position: absolute;
  right: 2rem;
  top: 1.25rem;
  color: rgba(11, 123, 211, .08);
  font-size: 4.25rem;
  font-weight: 900;
  letter-spacing: .08em;
  pointer-events: none;
}

.lg\:grid-cols-12 {
  align-items: start !important;
  gap: 1.5rem !important;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 > .lg\:col-span-7 {
    grid-column: span 4 / span 4 !important;
  }

  .lg\:grid-cols-12 > .lg\:col-span-5 {
    grid-column: span 8 / span 8 !important;
  }
}

.lg\:grid-cols-12 > .lg\:col-span-7 > [role="presentation"],
.lg\:grid-cols-12 > .lg\:col-span-7 > .rounded-3xl.border.bg-white {
  position: sticky !important;
  top: 6rem !important;
  border: 1px solid rgba(191, 219, 254, .9) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 22px 48px rgba(15, 81, 132, .12) !important;
  backdrop-filter: blur(16px) !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 {
  min-height: 235px !important;
  border-width: 1.5px !important;
  border-color: rgba(11,123,211,.45) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,255,.92)) !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 button.bg-orange-500,
.rounded-2xl.border-2.border-dashed.border-primary\/65 button.bg-primary {
  min-width: 190px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #3b82f6, #0b7bd3) !important;
  box-shadow: 0 18px 32px rgba(37,99,235,.22) !important;
}

.lg\:col-span-5 > .space-y-8,
.lg\:col-span-5 > .space-y-6 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1.25rem !important;
}

.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(191, 219, 254, .95) !important;
  border-radius: 30px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 30px 70px rgba(15, 81, 132, .14) !important;
  backdrop-filter: blur(18px) !important;
}

.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 > h3 {
  margin: 0 !important;
  padding: 1.05rem 1.35rem !important;
  border-bottom: 1px solid #dbeafe !important;
  background: linear-gradient(90deg, #0b7bd3, #39a8f3) !important;
  color: #ffffff !important;
  font-size: .86rem !important;
  letter-spacing: .18em !important;
}

.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 > .grid {
  padding: 1.35rem !important;
  gap: 1.25rem !important;
  grid-template-columns: minmax(320px, .95fr) minmax(300px, 1.05fr) !important;
}

@media (max-width: 1180px) {
  .lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 > .grid {
    grid-template-columns: 1fr !important;
  }
}

.lg\:col-span-5 .space-y-3.rounded-2xl,
.lg\:col-span-5 .space-y-4.rounded-2xl,
.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl {
  border: 1px solid #dbeafe !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  box-shadow: 0 12px 30px rgba(15, 81, 132, .07), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl.border.border-gray-100.space-y-4 {
  padding: 1.1rem !important;
  min-height: 620px !important;
  background: linear-gradient(180deg, #f8fbff, #eef6ff) !important;
}

.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl.border.border-gray-100.space-y-4:after {
  content: "LIVE PREVIEW";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  margin-top: 1rem;
  border: 1px dashed #b9d9f7;
  border-radius: 20px;
  color: #8aa4bd;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .18em;
  background: rgba(255,255,255,.62);
}

.lg\:col-span-5 input[type="range"] {
  height: 7px !important;
  border-radius: 999px !important;
  accent-color: #0b7bd3 !important;
}

.lg\:col-span-5 input[type="text"],
.lg\:col-span-5 input[type="number"],
.lg\:col-span-5 select {
  border: 1px solid #cfe0f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
}

.lg\:col-span-5 button {
  font-weight: 900 !important;
}

.lg\:col-span-5 button.bg-primary,
.lg\:col-span-5 .bg-primary.text-white,
.lg\:col-span-5 .border-primary.bg-primary,
.lg\:col-span-5 .border-primary.bg-primary\/10 {
  background: linear-gradient(180deg, #158de2, #0871bd) !important;
  border-color: #0871bd !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(11,123,211,.22) !important;
}

.lg\:col-span-5 > .pro-panel.rounded-3xl,
.lg\:col-span-5 .sticky.top-24.rounded-3xl {
  position: sticky !important;
  bottom: 1rem !important;
  z-index: 20 !important;
  border: 1px solid rgba(191, 219, 254, .95) !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 24px 52px rgba(15, 81, 132, .16) !important;
  backdrop-filter: blur(18px) !important;
}

.lg\:col-span-5 > .pro-panel.rounded-3xl button,
.lg\:col-span-5 .sticky.top-24.rounded-3xl button {
  border-radius: 18px !important;
  background: linear-gradient(180deg, #3b82f6, #0b7bd3) !important;
  box-shadow: 0 16px 30px rgba(37,99,235,.25) !important;
}

footer {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

/* Passport crop directly on preview */
.passport-live-preview-card {
  position: relative !important;
  min-height: 720px !important;
  padding: 1.25rem !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%) !important;
}

.passport-live-preview-card > .flex,
.passport-live-preview-card > .grid,
.passport-live-preview-card > .space-y-2:first-child {
  position: relative !important;
  z-index: 3 !important;
}

.passport-photo-stage {
  position: relative !important;
  min-height: 430px !important;
  padding: .65rem !important;
  border: 1px dashed #93c5fd !important;
  border-radius: 22px !important;
  background:
    linear-gradient(45deg, rgba(219,234,254,.42) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(219,234,254,.42) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(219,234,254,.42) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(219,234,254,.42) 75%),
    #ffffff !important;
  background-size: 26px 26px !important;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 16px 34px rgba(15,81,132,.08) !important;
}

.passport-photo-stage img,
.passport-photo-stage canvas,
.passport-photo-stage .bg-black,
.passport-photo-stage .aspect-square,
.passport-photo-stage > div:last-child {
  width: 100% !important;
  min-height: 360px !important;
  border-radius: 18px !important;
  object-fit: contain !important;
}

.passport-photo-stage:after {
  content: 'Live crop preview';
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 4;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  padding: .35rem .7rem;
  color: #0b7bd3;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15,81,132,.10);
}

.passport-crop-overlay {
  position: absolute !important;
  left: 1.25rem !important;
  right: 1.25rem !important;
  bottom: 1.25rem !important;
  z-index: 8 !important;
  margin: 0 !important;
  padding: 1rem !important;
  border: 1px solid rgba(147,197,253,.75) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.90) !important;
  box-shadow: 0 18px 45px rgba(15,81,132,.16) !important;
  backdrop-filter: blur(18px) !important;
}

.passport-crop-overlay h4,
.passport-crop-overlay .text-\[10px\].font-black.uppercase {
  color: #075985 !important;
}

.passport-crop-overlay input[type='range'] {
  height: 7px !important;
  accent-color: #0b7bd3 !important;
}

.passport-crop-overlay .flex.rounded-xl,
.passport-crop-overlay .flex.rounded-2xl {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
}

@media (max-width: 1180px) {
  .passport-crop-overlay {
    position: static !important;
    margin-top: 1rem !important;
  }

  .passport-live-preview-card {
    min-height: auto !important;
  }
}

/* Step-wise passport workflow + direct crop */
.passport-step-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid #dbeafe;
  background: linear-gradient(90deg, #f8fbff, #eef6ff);
}

.passport-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid #cfe6fb;
  border-radius: 999px;
  background: #ffffff;
  padding: .55rem .7rem;
  color: #52627a;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15,81,132,.06);
}

.passport-step b {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0b7bd3;
}

.passport-step.active {
  border-color: #0b7bd3;
  background: linear-gradient(180deg, #0b7bd3, #0871bd);
  color: #ffffff;
}

.passport-step.active b {
  background: #ffffff;
  color: #0b7bd3;
}

.lg\:col-span-5 .p-6.bg-white.rounded-2xl.border.shadow-sm.space-y-6 > .grid {
  padding-top: 1rem !important;
}

.passport-live-preview-card {
  min-height: 620px !important;
}

.passport-photo-stage {
  cursor: grab !important;
  user-select: none !important;
  touch-action: none !important;
}

.passport-photo-stage.is-dragging-crop {
  cursor: grabbing !important;
  outline: 3px solid rgba(11,123,211,.18) !important;
}

.passport-photo-stage:before {
  content: '';
  position: absolute;
  inset: 18px;
  z-index: 5;
  pointer-events: none;
  border: 2px solid rgba(11,123,211,.52);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(15,23,42,.10);
}

.passport-drag-hint {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 7;
  border-radius: 999px;
  background: rgba(11,123,211,.92);
  color: #ffffff;
  padding: .38rem .7rem;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(11,123,211,.22);
}

.passport-crop-overlay {
  bottom: 1rem !important;
  padding: .85rem !important;
}

.passport-crop-overlay .space-y-1,
.passport-crop-overlay .space-y-2 {
  margin-top: .45rem !important;
}

.passport-crop-overlay h4 {
  font-size: .68rem !important;
}

.passport-crop-overlay input[type='range'] {
  margin-top: .15rem !important;
}

.lg\:col-span-5 .space-y-3.rounded-2xl:not(.passport-crop-overlay),
.lg\:col-span-5 .space-y-4.rounded-2xl:not(.passport-live-preview-card) {
  padding: .85rem !important;
}

.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl.border.border-gray-100.space-y-4 {
  min-height: 560px !important;
}

.lg\:col-span-5 > .pro-panel.rounded-3xl,
.lg\:col-span-5 .sticky.top-24.rounded-3xl {
  position: static !important;
  margin-top: .25rem !important;
}

@media (max-width: 900px) {
  .passport-step-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fix crop preview overlay placement */
.passport-live-preview-card {
  min-height: auto !important;
  background: #ffffff !important;
  overflow: visible !important;
}

.passport-photo-stage {
  min-height: 390px !important;
  padding: .55rem !important;
  overflow: hidden !important;
  background:
    linear-gradient(45deg, rgba(226, 240, 255, .8) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(226, 240, 255, .8) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(226, 240, 255, .8) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(226, 240, 255, .8) 75%),
    #ffffff !important;
  background-size: 22px 22px !important;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0 !important;
}

.passport-photo-stage img,
.passport-photo-stage canvas,
.passport-photo-stage .bg-black,
.passport-photo-stage .aspect-square,
.passport-photo-stage > div:last-child {
  min-height: 335px !important;
  max-height: 380px !important;
  object-fit: contain !important;
}

.passport-photo-stage:before {
  inset: 12px !important;
  border: 1.5px dashed rgba(11,123,211,.45) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75) !important;
}

.passport-photo-stage:after {
  display: none !important;
}

.passport-drag-hint {
  left: 50% !important;
  right: auto !important;
  top: .75rem !important;
  transform: translateX(-50%) !important;
  max-width: calc(100% - 2rem) !important;
  white-space: nowrap !important;
  background: rgba(11, 123, 211, .88) !important;
  padding: .32rem .65rem !important;
  font-size: .56rem !important;
  letter-spacing: .08em !important;
  box-shadow: 0 8px 18px rgba(11,123,211,.18) !important;
  pointer-events: none !important;
}

.passport-crop-overlay {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: .9rem !important;
  padding: .8rem !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 10px 24px rgba(15,81,132,.08) !important;
  backdrop-filter: none !important;
}

.passport-crop-overlay .flex.items-center.justify-between,
.passport-crop-overlay > .flex:first-child {
  margin-bottom: .35rem !important;
}

.passport-crop-overlay .space-y-1,
.passport-crop-overlay .space-y-2 {
  margin-top: .35rem !important;
}

.passport-crop-overlay label,
.passport-crop-overlay span {
  font-size: .64rem !important;
}

.passport-crop-overlay input[type='range'] {
  height: 5px !important;
}

.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl.border.border-gray-100.space-y-4 {
  min-height: 520px !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
}

.lg\:col-span-5 .p-6.bg-gray-50.rounded-2xl.border.border-gray-100.space-y-4:after {
  display: none !important;
}

.passport-step-flow {
  padding: .75rem 1rem !important;
}

.passport-step {
  padding: .45rem .6rem !important;
  font-size: .62rem !important;
}

/* MSPaint style selection crop fix */
.passport-photo-stage {
  cursor: crosshair !important;
  position: relative !important;
  overflow: hidden !important;
}

.passport-photo-stage:before,
.passport-photo-stage:after {
  display: none !important;
  content: none !important;
}

.passport-photo-stage .passport-drag-hint {
  left: .75rem !important;
  top: .75rem !important;
  right: auto !important;
  transform: none !important;
  z-index: 12 !important;
  background: rgba(255,255,255,.94) !important;
  color: #0b7bd3 !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 8px 18px rgba(15,81,132,.12) !important;
}

.passport-photo-stage.is-paint-cropping {
  cursor: crosshair !important;
}

.paint-crop-box {
  position: absolute;
  z-index: 11;
  border: 2px dashed #111827;
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .20), inset 0 0 0 1px rgba(255,255,255,.85);
  cursor: move;
  min-width: 24px;
  min-height: 32px;
  pointer-events: none;
}

.paint-crop-box span {
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111827;
  color: white;
  padding: .25rem .55rem;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.paint-crop-box span:before {
  content: 'Selected crop';
}

.paint-crop-box i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #111827;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15,23,42,.25);
}

.paint-crop-box i:nth-of-type(1) { left: -6px; top: -6px; }
.paint-crop-box i:nth-of-type(2) { right: -6px; top: -6px; }
.paint-crop-box i:nth-of-type(3) { left: -6px; bottom: -6px; }
.paint-crop-box i:nth-of-type(4) { right: -6px; bottom: -6px; }

.passport-crop-overlay {
  padding: .7rem !important;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
}

.passport-crop-overlay:before {
  content: 'Tip: image par rectangle draw karo, box ko drag karo, mouse wheel se zoom.';
  display: block;
  margin-bottom: .55rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.passport-live-preview-card {
  overflow: hidden !important;
}

/* Crop selection interaction hard fix */
.paint-crop-box {
  pointer-events: auto !important;
  cursor: move !important;
  background: transparent !important;
  touch-action: none !important;
}

.paint-crop-box * {
  pointer-events: none !important;
}

.passport-photo-stage {
  cursor: crosshair !important;
  touch-action: none !important;
}

.passport-photo-stage .bg-black,
.passport-photo-stage img,
.passport-photo-stage canvas,
.passport-photo-stage .aspect-square,
.passport-photo-stage > div:not(.passport-drag-hint):not(.paint-crop-box) {
  pointer-events: none !important;
}

.passport-drag-hint {
  pointer-events: none !important;
}

.paint-crop-box span {
  top: .45rem !important;
  background: rgba(17,24,39,.92) !important;
}

/* Final reliable MSPaint crop layer */
.mspaint-crop-stage {
  position: relative !important;
  cursor: crosshair !important;
  user-select: none !important;
  touch-action: none !important;
}

.mspaint-crop-stage:before,
.mspaint-crop-stage:after,
.mspaint-crop-stage .passport-drag-hint,
.mspaint-crop-stage .paint-crop-box {
  display: none !important;
}

.mspaint-crop-stage img,
.mspaint-crop-stage canvas,
.mspaint-crop-stage .bg-black,
.mspaint-crop-stage .aspect-square,
.mspaint-crop-stage > div:not(.mspaint-crop-layer) {
  pointer-events: none !important;
}

.mspaint-crop-layer {
  position: absolute;
  inset: .55rem;
  z-index: 50;
  cursor: crosshair;
  border-radius: 18px;
  touch-action: none;
}

.mspaint-crop-instruction {
  position: absolute;
  left: 50%;
  top: .7rem;
  transform: translateX(-50%);
  z-index: 52;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #0b7bd3;
  padding: .34rem .7rem;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15,81,132,.12);
  pointer-events: none;
}

.mspaint-crop-box {
  display: block !important;
  position: absolute;
  z-index: 51;
  min-width: 24px;
  min-height: 32px;
  border: 2px dashed #111827;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .18), inset 0 0 0 1px rgba(255,255,255,.9);
  cursor: move;
  touch-action: none;
}

.mspaint-crop-box span {
  position: absolute;
  left: 50%;
  top: .45rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17,24,39,.92);
  color: #ffffff;
  padding: .25rem .55rem;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.mspaint-crop-box i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #111827;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15,23,42,.25);
  pointer-events: none;
}

.mspaint-crop-box i:nth-of-type(1) { left: -6px; top: -6px; }
.mspaint-crop-box i:nth-of-type(2) { right: -6px; top: -6px; }
.mspaint-crop-box i:nth-of-type(3) { left: -6px; bottom: -6px; }
.mspaint-crop-box i:nth-of-type(4) { right: -6px; bottom: -6px; }

.mspaint-crop-layer.is-cropping .mspaint-crop-box {
  border-color: #0b7bd3;
}

.passport-crop-overlay:before {
  content: 'MSPaint style: preview par rectangle draw karo. Selection ke andar drag karo to move. Mouse wheel se zoom.' !important;
}

/* Final dedicated crop workspace: left-side preview controls crop, right preview stays clean */
.passport-photo-stage .mspaint-crop-layer,
.passport-photo-stage .paint-crop-box,
.passport-photo-stage .passport-drag-hint {
  display: none !important;
}

.passport-crop-overlay {
  display: none !important;
}

.external-crop-panel {
  margin-top: 1.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 26px 60px rgba(15, 81, 132, .16);
  padding: 1rem;
}

.external-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.external-crop-head strong {
  display: block;
  color: #075985;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.external-crop-head span {
  display: block;
  margin-top: .2rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
}

.external-crop-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: stretch;
  margin-top: .85rem;
}

.external-crop-apply {
  flex: 1 1 170px !important;
  border: 1px solid #0b7bd3 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #2697ee 0%, #0875c8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(11, 123, 211, .24) !important;
  padding: .72rem 1rem !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.external-crop-reset {
  flex: 0 0 auto !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #0b7bd3 !important;
  box-shadow: 0 8px 18px rgba(15, 81, 132, .1) !important;
  padding: .72rem .95rem !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.external-crop-stage {
  position: relative;
  min-height: 430px;
  border: 1.5px dashed #93c5fd;
  border-radius: 22px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  background-color: #f8fbff;
  background-image:
    linear-gradient(45deg, #e2edf8 25%, transparent 25%),
    linear-gradient(-45deg, #e2edf8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2edf8 75%),
    linear-gradient(-45deg, transparent 75%, #e2edf8 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.external-crop-stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.external-crop-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.external-crop-panel.has-image .external-crop-empty {
  display: none !important;
}

.external-crop-box {
  position: absolute;
  z-index: 5;
  min-width: 28px;
  min-height: 36px;
  border: 2px dashed #111827;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .18), inset 0 0 0 1px rgba(255,255,255,.9);
  cursor: move;
  touch-action: none;
}

.external-crop-box span {
  position: absolute;
  left: 50%;
  top: .5rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17, 24, 39, .92);
  color: #ffffff;
  padding: .28rem .65rem;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.external-crop-box i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #111827;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .24);
  pointer-events: none;
}

.external-crop-box i:nth-of-type(1) { left: -7px; top: -7px; }
.external-crop-box i:nth-of-type(2) { right: -7px; top: -7px; }
.external-crop-box i:nth-of-type(3) { left: -7px; bottom: -7px; }
.external-crop-box i:nth-of-type(4) { right: -7px; bottom: -7px; }

.external-crop-panel.crop-applied .external-crop-box {
  border-color: #16a34a;
  box-shadow: 0 0 0 9999px rgba(22, 163, 74, .16), inset 0 0 0 2px rgba(255,255,255,.95);
}

.external-crop-panel.crop-applied .external-crop-box span {
  background: #16a34a;
}

.external-crop-help {
  margin-top: .75rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.45;
}

.custom-passport-result {
  margin-top: 1.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 81, 132, .14);
  padding: 1rem;
}

.custom-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .35rem 1rem;
}

.custom-result-head strong {
  display: block;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.custom-result-head span {
  display: block;
  margin-top: .2rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
}

.custom-result-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.custom-result-actions button {
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  padding: .65rem .95rem !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 20px rgba(15, 81, 132, .16) !important;
}

.custom-print,
.custom-download {
  background: linear-gradient(180deg, #2697ee 0%, #0875c8 100%) !important;
}

.custom-clear {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%) !important;
}

.custom-result-preview {
  max-height: 760px;
  overflow: auto;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #f8fafc;
  padding: 1.25rem;
}

.custom-result-preview img {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

@media (max-width: 1024px) {
  .external-crop-stage {
    min-height: 360px;
  }
}

.photo-index-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: -2rem 0 2.5rem;
}

.photo-index-links a {
  display: block;
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 81, 132, .1);
  color: #0f172a;
  padding: 1.15rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.photo-index-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(15, 81, 132, .15);
}

.ai-privacy-note {
  margin: -0.25rem 0 1rem;
  border: 1px solid #bae6fd;
  border-radius: 0.9rem;
  background: #f0f9ff;
  padding: 0.75rem 0.9rem;
  color: #075985;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.photo-index-links b {
  display: block;
  color: #075985;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo-index-links span {
  display: block;
  margin-top: .35rem;
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .photo-index-links {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   SevaSetu product UI — final cohesive shell and responsive layer
   ========================================================================== */

:root {
  --ui-ink: #102033;
  --ui-ink-soft: #42566d;
  --ui-muted: #66788d;
  --ui-line: #dbe6f0;
  --ui-line-strong: #c8d9e8;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f6f9fc;
  --ui-brand: #1167d8;
  --ui-brand-dark: #0b55ba;
  --ui-brand-soft: #eaf4ff;
  --ui-trust: #087e6b;
  --ui-trust-soft: #ecfdf7;
  --ui-shadow-sm: 0 8px 24px rgba(26, 56, 88, .06);
  --ui-shadow-md: 0 18px 48px rgba(26, 56, 88, .1);
  --ui-shadow-lg: 0 28px 72px rgba(26, 56, 88, .13);
}

html {
  width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: #f5f8fb;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  color: var(--ui-ink) !important;
  font-family: "Segoe UI Variable Text", "Aptos", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  font-synthesis: none;
  background:
    radial-gradient(circle at 8% -8%, rgba(186, 230, 253, .45), transparent 31rem),
    radial-gradient(circle at 95% 12%, rgba(219, 234, 254, .48), transparent 28rem),
    linear-gradient(180deg, #f8fbfd 0%, #f3f7fb 58%, #f8fafc 100%) !important;
  background-attachment: fixed !important;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

#root,
#root > div,
main,
main > div {
  min-width: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(17, 103, 216, .28) !important;
  outline-offset: 3px !important;
}

header.sticky {
  border-bottom: 1px solid rgba(206, 221, 234, .88) !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 8px 30px rgba(25, 55, 85, .07) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
}

header.sticky > div {
  height: 4.5rem !important;
  max-width: 1440px !important;
}

header.sticky > div > div:first-child {
  min-width: 0;
}

header.sticky > div > div:first-child > div:first-child {
  width: 2.65rem !important;
  height: 2.65rem !important;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: .9rem !important;
  background: linear-gradient(145deg, #1888ea 0%, #0e5fc7 100%) !important;
  box-shadow: 0 10px 24px rgba(17, 103, 216, .24) !important;
}

header.sticky > div > div:first-child span.block {
  color: var(--ui-ink) !important;
  font-size: 1.08rem !important;
  font-weight: 780 !important;
  letter-spacing: -.025em !important;
}

header.sticky > div > div:first-child span.text-\[10px\] {
  color: var(--ui-brand) !important;
  font-size: .56rem !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
}

header.sticky > div > .hidden.md\:flex {
  gap: .15rem !important;
  border-color: #dbe8f3 !important;
  border-radius: .85rem !important;
  background: #f5f8fb !important;
  padding: .22rem !important;
  color: #64748b !important;
  box-shadow: inset 0 1px 2px rgba(20, 52, 82, .04);
}

header.sticky > div > .hidden.md\:flex span {
  border-radius: .65rem !important;
  padding: .4rem .8rem !important;
  font-size: .64rem !important;
  font-weight: 760 !important;
  letter-spacing: .11em !important;
}

header.sticky > div > .hidden.md\:flex span.bg-primary {
  background: linear-gradient(180deg, #1979de, #105fc9) !important;
  box-shadow: 0 7px 16px rgba(17, 103, 216, .22) !important;
}

header.sticky > div > div:last-child {
  gap: .55rem !important;
}

header.sticky > div > div:last-child button {
  min-height: 2.5rem;
  border-radius: .8rem !important;
  font-size: .76rem !important;
  font-weight: 740 !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

header.sticky > div > div:last-child button:hover {
  transform: translateY(-1px);
}

header.sticky > div > div:last-child button:first-child {
  border-color: #a9e7d3 !important;
  background: var(--ui-trust-soft) !important;
  color: #08735f !important;
  box-shadow: 0 6px 16px rgba(8, 126, 107, .06);
}

header.sticky > div > div:last-child button:nth-child(2) {
  border-color: var(--ui-line) !important;
  color: #5f7187 !important;
}

header.sticky > div > div:last-child button:last-child {
  border: 1px solid #165fc6 !important;
  background: linear-gradient(180deg, #2b78e7 0%, #1b5fd2 100%) !important;
  box-shadow: 0 9px 20px rgba(30, 94, 207, .22) !important;
}

main.mx-auto {
  max-width: 1440px !important;
  padding-top: 2.25rem !important;
  padding-bottom: 3rem !important;
}

.premium-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(170, 209, 239, .9) !important;
  border-radius: 2rem !important;
  color: var(--ui-ink) !important;
  background:
    radial-gradient(circle at 88% 4%, rgba(17, 103, 216, .14), transparent 19rem),
    radial-gradient(circle at 3% 100%, rgba(14, 165, 233, .13), transparent 20rem),
    linear-gradient(128deg, rgba(239, 249, 255, .97), rgba(255, 255, 255, .98) 58%, rgba(240, 247, 255, .98)) !important;
  box-shadow: var(--ui-shadow-lg) !important;
}

.premium-hero::before {
  position: absolute;
  right: -4.5rem;
  bottom: -7rem;
  z-index: -1;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(125, 181, 230, .28);
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 50%, rgba(255, 255, 255, .72) 51%),
    repeating-radial-gradient(circle, rgba(17, 103, 216, .08) 0 1px, transparent 1px 18px);
  content: "";
  pointer-events: none;
}

.premium-hero > .grid {
  gap: clamp(2rem, 5vw, 5rem) !important;
}

.premium-chip {
  border-color: #b9dff3 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: #075f89 !important;
  box-shadow: 0 7px 18px rgba(23, 88, 122, .08) !important;
}

.premium-chip svg {
  color: var(--ui-trust);
}

.premium-hero h2 {
  max-width: 48rem !important;
  color: var(--ui-ink) !important;
  font-size: clamp(2.55rem, 4.6vw, 4.35rem) !important;
  font-weight: 790 !important;
  line-height: 1.01 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance;
}

.premium-hero h2 .text-primary {
  color: var(--ui-brand) !important;
}

.premium-hero p {
  max-width: 43rem !important;
  color: #51667c !important;
  font-size: clamp(.98rem, 1.4vw, 1.12rem) !important;
  line-height: 1.75 !important;
}

.premium-hero button {
  min-height: 2.9rem;
  border-radius: .9rem !important;
  padding: .75rem 1.2rem !important;
  font-size: .78rem !important;
  font-weight: 760 !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.premium-hero button:hover {
  transform: translateY(-2px);
}

.premium-hero button.bg-orange-500 {
  border: 1px solid #0f60c9 !important;
  background: linear-gradient(180deg, #227ce2, #105fc9) !important;
  box-shadow: 0 13px 27px rgba(17, 103, 216, .24) !important;
}

.premium-hero button.border-sky-200 {
  border-color: #b9d4e9 !important;
  background: rgba(255, 255, 255, .84) !important;
  box-shadow: 0 8px 18px rgba(20, 52, 82, .06) !important;
}

.premium-stat {
  position: relative;
  overflow: hidden;
  min-height: 5.45rem;
  border-color: rgba(190, 216, 236, .95) !important;
  border-radius: 1.15rem !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 12px 28px rgba(27, 65, 100, .07), inset 0 1px 0 #fff !important;
}

.premium-stat::after {
  position: absolute;
  right: -.9rem;
  bottom: -.95rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: rgba(17, 103, 216, .06);
  content: "";
}

.premium-stat .text-2xl {
  color: var(--ui-ink) !important;
  font-size: 1.4rem !important;
  font-weight: 780 !important;
  letter-spacing: -.025em;
}

.premium-stat .text-\[10px\] {
  margin-top: .15rem;
  color: #64758a !important;
  font-size: .58rem !important;
  font-weight: 780 !important;
  letter-spacing: .13em !important;
}

.photo-index-links {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .85rem !important;
  margin: -1.5rem 0 0 !important;
}

.photo-index-links::before {
  grid-column: 1 / -1;
  color: #51677f;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  content: "Photo desk / quick workflows";
}

.photo-index-links a {
  position: relative;
  min-height: 5.75rem;
  overflow: hidden;
  border-color: var(--ui-line) !important;
  border-radius: 1.15rem !important;
  background: rgba(255, 255, 255, .9) !important;
  padding: 1.05rem 3rem 1.05rem 1.1rem !important;
  box-shadow: var(--ui-shadow-sm) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.photo-index-links a::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid #cfe0ee;
  border-radius: .6rem;
  background: #f4f8fc;
  color: var(--ui-brand);
  font-size: 1rem;
  font-weight: 600;
  content: "›";
  transform: translateY(-50%);
}

.photo-index-links a:hover {
  border-color: #9fc8ec !important;
  box-shadow: var(--ui-shadow-md) !important;
  transform: translateY(-2px);
}

.photo-index-links a:hover::after {
  border-color: var(--ui-brand);
  background: var(--ui-brand);
  color: #fff;
}

.photo-index-links b {
  color: #17446d !important;
  font-size: .76rem !important;
  font-weight: 780 !important;
  letter-spacing: .1em !important;
}

.photo-index-links span {
  margin-top: .42rem !important;
  color: #66788d !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  line-height: 1.35;
}

.section-kicker {
  color: #3f5770 !important;
  font-size: .65rem !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  white-space: nowrap;
}

section.space-y-6 > div.flex:first-child > .h-px {
  background: linear-gradient(90deg, #d5e1ec, transparent) !important;
}

.pro-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: var(--ui-shadow-sm) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.pro-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ui-brand), #3bb5e8);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity .2s ease, transform .2s ease;
}

.pro-card:hover {
  border-color: #aaccec !important;
  box-shadow: 0 20px 42px rgba(26, 56, 88, .11) !important;
  transform: translateY(-3px) !important;
}

.pro-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.pro-card h4 {
  color: var(--ui-ink) !important;
  font-weight: 730 !important;
  letter-spacing: -.01em;
}

.pro-card p {
  color: #63758a !important;
}

.pro-card > div:first-child > div:first-child {
  border: 1px solid #d7e8f3;
  background: #eef8f7 !important;
  color: #087f75 !important;
}

.pro-card:hover > div:first-child > div:first-child {
  border-color: var(--ui-brand);
  background: var(--ui-brand) !important;
  color: #fff !important;
}

.pro-panel {
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: var(--ui-shadow-md) !important;
}

aside .pro-panel {
  border-radius: 1.25rem !important;
}

aside .pro-panel > div:first-child {
  border-bottom-color: #dce9f3 !important;
  background: linear-gradient(90deg, #edf7ff, #f7fbff) !important;
}

aside .pro-panel > div:first-child p,
aside .pro-panel h4 {
  color: #0b659a !important;
  font-weight: 780 !important;
}

aside .pro-panel .bg-primary\/5 {
  border-color: #cce1f3 !important;
  background: #f0f8ff !important;
}

/* Consistent tool workspace surfaces */
main .rounded-3xl.border.bg-white,
main .p-6.bg-white.rounded-2xl.border.shadow-sm,
main .p-8.bg-white.rounded-3xl.border {
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: var(--ui-shadow-sm) !important;
}

main input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
main select,
main textarea {
  min-height: 2.6rem;
  border: 1px solid #d5e2ed !important;
  background: #f9fbfd !important;
  color: var(--ui-ink) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

main input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):focus,
main select:focus,
main textarea:focus {
  border-color: #80b6e7 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(17, 103, 216, .1) !important;
}

main input[type="range"] {
  accent-color: var(--ui-brand) !important;
}

main button.bg-primary,
main .bg-orange-500,
main a.bg-primary {
  background: linear-gradient(180deg, #227ce2 0%, #105fc9 100%) !important;
}

main button.bg-primary,
main .bg-orange-500 {
  box-shadow: 0 10px 22px rgba(17, 103, 216, .2) !important;
}

.rounded-2xl.border-2.border-dashed.border-primary\/65 {
  border-color: #8abbe5 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(241, 248, 255, .96)) !important;
  box-shadow: inset 0 0 0 4px rgba(234, 244, 255, .75);
}

.ai-privacy-note {
  position: relative;
  border-color: #b7e6da !important;
  background: var(--ui-trust-soft) !important;
  color: #0b685a !important;
  font-weight: 650 !important;
}

.ai-privacy-note::before {
  margin-right: .45rem;
  content: "✓";
  font-weight: 900;
}

footer {
  position: relative;
  margin-top: 4rem !important;
  border-top: 1px solid var(--ui-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), #f5f9fc) !important;
}

footer::before {
  display: block;
  width: min(calc(100% - 3rem), 80rem);
  margin: -2rem auto 0;
  border: 1px solid #bfe5da;
  border-radius: 1rem;
  background: linear-gradient(90deg, #edfff9, #f7fffc);
  color: #0a6d5c;
  padding: .95rem 1.25rem;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(8, 126, 107, .08);
  content: "Private by default  /  Local processing  /  Your files stay on this device";
}

footer > div:first-of-type {
  padding-top: .5rem;
}

footer h4 {
  color: #2f465e;
  font-weight: 780 !important;
}

footer p,
footer li,
footer a {
  color: #697a8d !important;
}

footer a:hover {
  color: var(--ui-brand) !important;
}

@media (min-width: 1280px) {
  main.mx-auto {
    padding-inline: 2.25rem !important;
  }

  .premium-hero {
    padding: 3.25rem !important;
  }
}

@media (max-width: 1023px) {
  main.mx-auto {
    padding-top: 1.75rem !important;
  }

  .premium-hero > .grid {
    gap: 2rem !important;
  }

  .premium-hero h2 {
    max-width: 42rem !important;
  }

  .lg\:grid-cols-12 {
    gap: 1.15rem !important;
  }

  .lg\:grid-cols-12 > .lg\:col-span-7 > [role="presentation"],
  .lg\:grid-cols-12 > .lg\:col-span-7 > .rounded-3xl.border.bg-white {
    position: static !important;
  }

  footer::before {
    width: calc(100% - 2rem);
  }
}

@media (max-width: 767px) {
  header.sticky > div {
    height: 4rem !important;
    gap: .5rem;
    padding-inline: .85rem !important;
  }

  header.sticky > div > div:first-child {
    gap: .55rem !important;
  }

  header.sticky > div > div:first-child > div:first-child {
    width: 2.25rem !important;
    height: 2.25rem !important;
    flex: 0 0 auto;
    border-radius: .78rem !important;
  }

  header.sticky > div > div:first-child > div:first-child svg {
    width: 1.22rem !important;
    height: 1.22rem !important;
  }

  header.sticky > div > div:first-child span.block {
    font-size: .96rem !important;
  }

  header.sticky > div > div:first-child span.text-\[10px\] {
    font-size: .48rem !important;
    letter-spacing: .12em !important;
    white-space: nowrap;
  }

  header.sticky > div > div:last-child {
    gap: .38rem !important;
    margin-left: auto;
  }

  header.sticky > div > div:last-child button {
    min-height: 2.25rem;
  }

  header.sticky > div > div:last-child button:first-child {
    padding: .48rem .72rem !important;
    font-size: .7rem !important;
  }

  header.sticky > div > div:last-child button:nth-child(2) {
    padding: .48rem !important;
  }

  header.sticky > div > div:last-child button:last-child {
    display: none !important;
  }

  main.mx-auto {
    width: 100%;
    padding: 1.4rem .9rem 2.5rem !important;
  }

  main > div > .space-y-12,
  main > .space-y-12 {
    min-width: 0;
  }

  .premium-hero {
    border-radius: 1.5rem !important;
    padding: 1.4rem !important;
    box-shadow: 0 18px 44px rgba(26, 56, 88, .1) !important;
  }

  .premium-hero::before {
    right: -8rem;
    bottom: -9rem;
  }

  .premium-hero > .grid {
    gap: 1.45rem !important;
  }

  .premium-chip {
    max-width: 100%;
    margin-bottom: 1rem !important;
    padding: .45rem .72rem !important;
    font-size: .56rem !important;
    letter-spacing: .11em !important;
    white-space: normal;
  }

  .premium-hero h2 {
    max-width: 20rem !important;
    font-size: clamp(2.05rem, 10vw, 2.55rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
    text-wrap: wrap;
  }

  .premium-hero p {
    margin-top: .9rem !important;
    font-size: .91rem !important;
    line-height: 1.65 !important;
  }

  .premium-hero .mt-7 {
    margin-top: 1.2rem !important;
    gap: .6rem !important;
  }

  .premium-hero button {
    min-height: 2.65rem;
    padding: .65rem .95rem !important;
    font-size: .72rem !important;
  }

  .premium-hero .grid.grid-cols-2 {
    gap: .65rem !important;
  }

  .premium-stat {
    min-height: 4.8rem;
    padding: .85rem .9rem !important;
    border-radius: 1rem !important;
  }

  .premium-stat .text-2xl {
    font-size: 1.24rem !important;
  }

  .premium-stat .text-\[10px\] {
    font-size: .52rem !important;
  }

  .photo-index-links {
    grid-template-columns: 1fr !important;
    gap: .65rem !important;
    margin-top: 1.25rem !important;
  }

  .photo-index-links::before {
    margin-bottom: -.1rem;
    font-size: .58rem;
  }

  .photo-index-links a {
    min-height: 4.85rem;
    padding: .9rem 3rem .9rem 1rem !important;
  }

  .photo-index-links b {
    font-size: .7rem !important;
  }

  .photo-index-links span {
    font-size: .68rem !important;
  }

  .section-kicker {
    font-size: .6rem !important;
    letter-spacing: .14em !important;
    white-space: normal;
  }

  section.space-y-6 > div.flex:first-child {
    gap: .35rem;
  }

  section.space-y-6 > div.flex:first-child > .mx-4 {
    margin-inline: .55rem !important;
  }

  .photo-index-links + section > div.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
  }

  .photo-index-links + section .pro-card {
    min-height: 8.45rem !important;
    border-radius: 1rem !important;
    padding: .85rem !important;
  }

  .photo-index-links + section .pro-card > div:first-child > div:first-child {
    width: 2.45rem !important;
    height: 2.45rem !important;
    border-radius: .8rem !important;
  }

  .photo-index-links + section .pro-card > div:first-child > div:first-child svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
  }

  .photo-index-links + section .pro-card h4 {
    font-size: .76rem !important;
    line-height: 1.25;
  }

  .photo-index-links + section .pro-card p {
    display: -webkit-box;
    margin-top: .22rem !important;
    overflow: hidden;
    font-size: .63rem !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pro-card {
    border-radius: 1rem !important;
  }

  .lg\:grid-cols-4 {
    gap: 2.25rem !important;
  }

  aside .pro-panel {
    position: static !important;
  }

  main .p-6.bg-white.rounded-2xl.border.shadow-sm,
  main .p-8.bg-white.rounded-3xl.border {
    padding: 1rem !important;
  }

  .passport-step-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .5rem !important;
    padding: .7rem !important;
  }

  .passport-step {
    min-width: 0;
    padding: .4rem .48rem !important;
    font-size: .56rem !important;
    letter-spacing: .07em !important;
  }

  .external-crop-panel,
  .custom-passport-result {
    border-radius: 1.25rem !important;
    padding: .8rem !important;
  }

  .external-crop-head,
  .custom-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .external-crop-stage {
    min-height: 280px !important;
    border-radius: 1rem !important;
  }

  .custom-result-actions {
    width: 100%;
  }

  .custom-result-actions button {
    flex: 1 1 auto;
  }

  .custom-result-preview {
    padding: .65rem !important;
  }

  footer {
    margin-top: 2.5rem !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  footer::before {
    width: calc(100% - 1.8rem);
    margin-top: -4.25rem;
    padding: .8rem;
    font-size: .56rem;
    line-height: 1.55;
    letter-spacing: .08em;
  }

  footer > div:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem 1.25rem !important;
    padding-inline: 1.1rem !important;
  }

  footer > div:first-of-type > div:first-child {
    grid-column: 1 / -1;
  }

  footer > div:last-of-type {
    align-items: flex-start !important;
    padding-inline: 1.1rem !important;
  }
}

@media (max-width: 374px) {
  header.sticky > div > div:first-child span.text-\[10px\] {
    display: none;
  }

  header.sticky > div > div:last-child button:nth-child(2) {
    display: none !important;
  }

  .premium-hero {
    padding: 1.15rem !important;
  }

  .premium-hero button {
    width: 100%;
  }

  .photo-index-links + section > div.grid {
    grid-template-columns: 1fr !important;
  }

  footer > div:first-of-type {
    grid-template-columns: 1fr !important;
  }

  footer > div:first-of-type > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pro-card,
  .photo-index-links a,
  .premium-hero button,
  header.sticky button {
    transition: none !important;
  }
}
