:root {
  --ink: #16234c;
  --paper: #fdf6ea;
  --maroon: #16234c;      /* navy — primary brand */
  --maroon-dark: #0d1730;
  --gold: #c9a24a;
  --gold-soft: #f2e2b8;
  --orange: #c9962e;      /* gold CTA */
  --orange-dark: #a97d1f;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Dancing Script', cursive;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
  font-family: var(--font-display);
}

/* ============ Hero banner (logo lockup + headline + skyline) ============ */
.app-hero {
  position: relative;
  background: linear-gradient(90deg, #fffdf9 0%, var(--paper) 55%, #f6e8cd 100%);
  border-bottom: 1px solid rgba(22,35,76,.08);
  box-shadow: 0 6px 24px rgba(22,35,76,.06);
  overflow: hidden;
}
.app-hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,46,.14), transparent 70%);
  pointer-events: none;
}
.app-hero-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: inherit;
}
.app-hero-logo {
  height: 42px;
  width: auto;
  display: block;
}
.app-hero-divider {
  width: 1px;
  align-self: stretch;
  min-height: 40px;
  background: rgba(22,35,76,.18);
}
.app-hero-anniv {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.app-hero-anniv .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--ink);
}
.app-hero-anniv .word {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  margin-top: -.2rem;
}
.app-hero-copy h1 {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  color: var(--ink);
  margin-bottom: .3rem;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.app-hero-copy p {
  color: #6b6560;
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  margin: 0 0 .6rem;
}
.app-hero-copy p strong { color: var(--orange); font-weight: 700; }
.app-hero-copy .app-hero-rule {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--gold-soft));
  margin: 0 auto;
}
@media (min-width: 768px) {
  .app-hero-copy .app-hero-rule { margin: 0; }
}
.app-hero-illustration {
  position: relative;
  z-index: 1;
}
.skyline-illustration {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
}
@media (min-width: 1280px) {
  .skyline-illustration { height: 74px; }
}
@media (min-width: 1400px) {
  .skyline-illustration { height: 84px; }
}

/* Compact header used on inner step pages */
.app-hero-compact {
  background: #fff;
  border-bottom: 1px solid rgba(22,35,76,.08);
  transition: box-shadow .2s ease;
  z-index: 20;
}
.app-hero-compact.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.app-hero-compact .app-hero-logo { height: 30px; }
.app-hero-compact .app-hero-anniv .num { font-size: 1.3rem; }
.app-hero-compact .app-hero-anniv .word { font-size: .8rem; }
.app-hero-compact .app-hero-divider { min-height: 28px; }

/* ============ Hero slider ============ */
.hero-slider {
  position: relative;
  background: var(--ink);
}
.hero-slider .carousel-item {
  height: min(78vh, 620px);
  min-height: 380px;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: kenburns 9s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.08) translate(0,0); }
  to   { transform: scale(1.16) translate(-1.5%, -1%); }
}
.hero-slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,20,10,.15) 0%, rgba(28,14,8,.55) 55%, rgba(20,8,6,.88) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(231,111,36,.2);
  border: 1px solid rgba(231,111,36,.6);
  color: #ffcfa3;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1rem;
  animation: fadeUp .7s ease both;
}
.hero-slide-content h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  animation: fadeUp .7s ease .08s both;
}
.hero-slide-content p {
  color: #f1e6cf;
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 1.6rem;
  animation: fadeUp .7s ease .16s both;
}
.hero-slide-actions { animation: fadeUp .7s ease .24s both; display:flex; gap:.75rem; flex-wrap:wrap; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 4.5rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next { opacity: .85; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  background-color: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  padding: 1.4rem;
  backdrop-filter: blur(2px);
}
.hero-slider .carousel-indicators {
  margin-bottom: 1.5rem;
  z-index: 3;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  margin: 0 5px;
}
.hero-slider .carousel-indicators .active {
  background: var(--orange);
  width: 22px;
  border-radius: 5px;
}

.btn-lg-cta {
  padding: .75rem 1.6rem;
  font-weight: 700;
  border-radius: 999px;
  font-size: 1rem;
}
.btn-hero-primary {
  background: var(--orange);
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(231,111,36,.4);
}
.btn-hero-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-hero-secondary {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  backdrop-filter: blur(3px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ============ How it works ============ */
.steps-section { padding: 4rem 0 3.5rem; }
.step-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}
.step-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 18px rgba(43,28,99,.28);
}
.step-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.step-card p { color: #6b6560; font-size: .92rem; margin: 0; }

/* Section headings */
.section-eyebrow {
  color: var(--maroon);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-title { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }

/* Theme cards */
.theme-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(36,31,28,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(36,31,28,.14);
}
.theme-card .card-img-top {
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: #eee;
}
.theme-card .card-body { padding: 1.1rem 1.25rem 1.35rem; }
.theme-card .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.theme-card .card-text {
  color: #6b6560;
  font-size: .9rem;
}
.theme-card .card-img-wrap { position: relative; overflow: hidden; }
.theme-card .card-img-wrap img { transition: transform .35s ease; }
.theme-card:hover .card-img-wrap img { transform: scale(1.06); }
.theme-card .badge-count {
  position: absolute; top: .6rem; right: .6rem;
  background: rgba(36,31,28,.65);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .55rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* Navbar shadow appears on scroll (JS toggles .scrolled) */
.app-navbar { transition: box-shadow .2s ease; }
.app-navbar.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.18); }

/* Theme detail page — carousels for covers & frame designs */
.detail-hero {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  padding: 2.75rem 0 2.25rem;
}
.detail-hero h1 { font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.detail-hero p { color: var(--gold-soft); margin-bottom: 0; }

.picker-carousel .carousel-item { padding: .5rem 3rem; }
.picker-slide-card {
  background: #fff;
  border-radius: 18px;
  border: 2px dashed rgba(201,162,74,.5);
  box-shadow: 0 10px 30px rgba(22,35,76,.08);
  padding: 1.5rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.picker-slide-card img { border-radius: 12px; max-width: 100%; }
.picker-slide-card .frame-thumb {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.25rem;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--paper);
  border-radius: 12px;
}
.picker-carousel .carousel-control-prev,
.picker-carousel .carousel-control-next {
  width: 3rem;
}
.picker-carousel .carousel-control-prev-icon,
.picker-carousel .carousel-control-next-icon {
  background-color: var(--maroon);
  border-radius: 50%;
  padding: 1.1rem;
}
.picker-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
.picker-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ddd3c4;
}
.picker-dots span.active { background: var(--maroon); width: 20px; border-radius: 4px; }
@media (max-width: 575px) {
  .picker-carousel .carousel-item { padding: .5rem 2.5rem; }
  .picker-slide-card { padding: 1.1rem; }
  .picker-carousel .carousel-control-prev,
  .picker-carousel .carousel-control-next { width: 2.25rem; }
  .picker-carousel .carousel-control-prev-icon,
  .picker-carousel .carousel-control-next-icon { padding: .8rem; }
}
@media (max-width: 400px) {
  .picker-carousel .carousel-item { padding: .5rem 1.75rem; }
}

.btn-maroon {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  font-weight: 600;
}
.btn-maroon:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon-dark);
  font-weight: 600;
}
.btn-gold:hover { background: #b18f20; border-color: #b18f20; color: var(--maroon-dark); }

.btn-outline-maroon {
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  font-weight: 600;
  background: transparent;
}
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }

.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

/* ============ Homepage "Choose your frame" picker ============ */
.frame-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 575px) {
  .frame-pick-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .frame-pick-card { padding: 1.1rem .75rem 1rem; }
  .frame-pick-thumb-wrap { max-width: 140px; }
  .frame-pick-card h3 { font-size: .88rem; }
  .frame-pick-card p { font-size: .74rem; min-height: 2.6em; }
  .frame-pick-shape-badge { font-size: .62rem; padding: .25rem .55rem; }
}
@media (max-width: 360px) {
  .frame-pick-grid { grid-template-columns: 1fr; }
  .frame-pick-thumb-wrap { max-width: 200px; }
}
.frame-pick-input { position: absolute; opacity: 0; pointer-events: none; }
.frame-pick-card {
  display: block;
  cursor: pointer;
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1rem 1.25rem;
  height: 100%;
  text-align: center;
  position: relative;
  border: 2px dashed rgba(201,162,74,.55);
  box-shadow: 0 4px 16px rgba(22,35,76,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.frame-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(22,35,76,.12);
  border-color: var(--gold);
}
.frame-pick-shape-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--maroon);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .32rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 10px rgba(22,35,76,.18);
}
.frame-pick-thumb-wrap {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1rem;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame-pick-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(34,26,68,.14));
}
.frame-pick-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  color: var(--ink);
}
.frame-pick-card p {
  color: #837c6f;
  font-size: .82rem;
  margin-bottom: 1rem;
  min-height: 2.4em;
}

/* Cropper / editor page */
.editor-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(36,31,28,.08);
  padding: 1.5rem;
}
.crop-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(22,35,76,.14);
}
.crop-stage img { display: block; max-width: 100%; }
#cropImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crop-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* clicks/drags pass through to the interactive Cropper beneath */
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 5;
}
.crop-frame-overlay.is-visible { opacity: 1; }

.live-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.live-preview-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(201,150,46,.5);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,150,46,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(201,150,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,150,46,0); }
}

.zoom-slider-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 360px;
  margin: 0 auto;
}
.zoom-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  outline: none;
}
.zoom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: pointer;
}
.zoom-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: pointer;
  border: none;
}
.tool-btn-sm { width: 34px; height: 34px; font-size: .95rem; flex-shrink: 0; }
.link-tool-btn {
  background: none;
  border: none;
  color: var(--maroon);
  font-weight: 600;
  font-size: .85rem;
  padding: .25rem .6rem;
}
.link-tool-btn:hover { color: var(--orange); }

.frame-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.frame-preview-wrap canvas,
.frame-preview-wrap img { width: 100%; display: block; }

.tool-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  background: #fff;
}
.tool-btn:hover { background: var(--maroon); color: #fff; }

.upload-drop {
  border: 2px dashed var(--orange);
  border-radius: 18px;
  padding: 2.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff7f0 0%, #fdf1e6 100%);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.upload-drop:hover, .upload-drop.dragover {
  background: linear-gradient(180deg, #fff1e2 0%, #fbe6d2 100%);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
}
.upload-drop .upload-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(231,111,36,.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}
.upload-drop .upload-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.upload-hint { color: #948d80; font-size: .85rem; margin-top: .25rem; }

.upload-preview-card {
  display: none;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(34,26,68,.08);
  border-radius: 14px;
  padding: .85rem 1rem;
  box-shadow: 0 4px 14px rgba(34,26,68,.06);
}
.upload-preview-card.active { display: flex; }
.upload-preview-card img {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.upload-preview-info { flex: 1; min-width: 0; }
.upload-preview-info .fname {
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-preview-info .fsize { color: #948d80; font-size: .8rem; }
.upload-preview-change {
  background: none;
  border: none;
  color: var(--orange);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}
.upload-preview-change:hover { color: var(--orange-dark); }

.upload-target-strip {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--paper);
  border-radius: 14px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}
.upload-target-strip img {
  width: 52px; height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: .3rem;
  flex-shrink: 0;
}
.upload-target-strip .label { font-size: .78rem; color: #948d80; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.upload-target-strip .name { font-weight: 700; color: var(--ink); }

/* ============ Photo source picker (camera vs gallery) ============ */
.upload-source-row {
  display: flex;
  gap: .75rem;
}
.upload-source-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid rgba(22,35,76,.15);
  border-radius: 12px;
  padding: .8rem .5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.upload-source-btn .icon { font-size: 1.1rem; }
.upload-source-btn:hover {
  border-color: var(--orange);
  background: rgba(201,150,46,.06);
  transform: translateY(-1px);
}
@media (max-width: 400px) {
  .upload-source-row { flex-direction: column; }
}

/* ============ Live camera capture modal ============ */
.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(13,23,48,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.camera-modal-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}
.camera-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}
.camera-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror the front-camera preview */
  display: block;
}
.camera-close-btn {
  position: absolute;
  top: .75rem; right: .75rem;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.camera-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.1rem 1rem;
  background: #0d1730;
}
.camera-modal-actions .btn { color: #fff; border-color: rgba(255,255,255,.5); }
.camera-modal-actions .btn:hover { background: #fff; color: var(--ink); }
.camera-modal-actions .tool-btn { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.camera-modal-actions .tool-btn:hover { background: rgba(255,255,255,.15); }
.camera-shutter-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 2px #fff inset;
  cursor: pointer;
  transition: transform .12s ease;
}
.camera-shutter-btn:hover { transform: scale(1.06); }
.camera-shutter-btn:active { transform: scale(.92); }
#cameraError { border-radius: 10px; margin-top: .75rem; font-size: .85rem; }

.result-frame {
  max-width: 340px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 16px;
  padding: 1rem;
}
.result-frame img { width: 100%; border-radius: 8px; }

.resolution-badge {
  text-align: center;
  font-size: .78rem;
  color: #948d80;
  letter-spacing: .02em;
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  text-align: left;
  background: rgba(201,150,46,.08);
  border: 1px solid rgba(201,150,46,.3);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .82rem;
  color: #6b6560;
}
.notice-icon {
  width: 30px; height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(201,150,46,.16);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.notice-box strong { color: var(--ink); }

@media (max-width: 576px) {
  .hero { padding: 2.5rem 0 2rem; text-align: center; }
}

/* ============ Step flow (1 → 2 → 3 overview bar) ============ */
.step-flow-section {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(22,35,76,.06);
}
.step-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem 0;
}
.step-flow-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 0 1.25rem;
  flex-shrink: 0;
}
.step-flow-circle {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(201,150,46,.35);
  transition: background .2s ease, transform .2s ease;
  position: relative;
  z-index: 1;
}
.step-flow-item.is-active .step-flow-circle {
  background: var(--maroon);
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(22,35,76,.35);
}
.step-flow-item.is-done .step-flow-circle { background: var(--gold); }
.step-flow-item.is-upcoming .step-flow-circle { background: #d8d0bd; box-shadow: none; }
.step-flow-text .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--ink);
  text-transform: uppercase;
}
.step-flow-item.is-upcoming .step-flow-text .label { color: #a8a096; }
.step-flow-text .sub {
  font-size: .8rem;
  color: #837c6f;
}
.step-flow-connector {
  flex-shrink: 0;
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: #e4dbc7;
  margin: 0 .35rem;
  transition: background .2s ease;
}
.step-flow-connector.is-filled { background: var(--gold); }
@media (max-width: 767px) {
  .step-flow {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 45vw;
    scrollbar-width: none;
  }
  .step-flow::-webkit-scrollbar { display: none; }
  .step-flow-item {
    scroll-snap-align: center;
    padding: 0 1rem;
  }
  .step-flow-text .sub { display: none; }
  .step-flow-connector { display: none; }
}

/* ============ Stage card (STEP X OF 3 white card) ============ */
.stage-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(22,35,76,.1);
  border: 1px solid rgba(22,35,76,.06);
}
.stage-card-head {
  background: linear-gradient(90deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .65rem 1rem;
}
.stage-card-body {
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
}
.stage-card-body h2 {
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.stage-card-body .stage-sub {
  color: #837c6f;
  margin-bottom: 1.5rem;
}
.stage-card-body .btn-lg-cta { padding: .8rem 1.5rem; }
@media (max-width: 575px) {
  .stage-card-body { padding: 1.5rem 1.1rem 1.25rem; }
  .stage-card-body h2 { font-size: 1.3rem; }
  .step-flow-section { padding: 1.75rem 0 1.25rem; }
}

/* ============ Trust strip (bottom footer band) ============ */
.trust-strip {
  background: linear-gradient(180deg, #fdf6ea 0%, #f7ecd7 100%);
  border-top: 1px solid rgba(22,35,76,.08);
  padding: 2.5rem 0;
}
.trust-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.75rem 0;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  flex: 1 1 220px;
  padding: 0 1.5rem;
}
.trust-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(22,35,76,.12);
  display: block;
}
.trust-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(201,150,46,.14);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.trust-item h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .15rem;
}
.trust-item p {
  font-size: .82rem;
  color: #837c6f;
  margin: 0;
  line-height: 1.35;
}
.trust-thanks-block {
  flex: 1 1 220px;
  padding: 0 1.5rem;
  text-align: right;
}
.trust-thanks {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
}
.trust-thanks-block p {
  font-size: .82rem;
  color: var(--ink);
  font-weight: 600;
  margin-top: .2rem;
}
@media (max-width: 767px) {
  .trust-divider { display: none; }
  .trust-item, .trust-thanks-block { padding: 0; flex: 1 1 100%; text-align: left; }
  .trust-thanks-block { text-align: center; margin-top: .5rem; }
}

/* Minimal admin-panel footer (no public marketing content) */
.app-footer-minimal {
  background: var(--ink);
  color: #cfc8c0;
  padding: 1rem 0;
  font-size: .8rem;
  margin-top: 2rem;
}

/* ============ Frame pick card — selection state to match reference ============ */
.frame-pick-card.is-selected {
  border-style: solid;
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(201,150,46,.22);
}
.frame-pick-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(22,35,76,.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: .8rem;
}
.frame-pick-card.is-selected .frame-pick-check {
  background: var(--maroon);
  border-color: var(--maroon);
}

/* ============ Admin photo gallery ============ */
.gallery-filter-bar {
  background: #fff;
  border: 1px solid rgba(22,35,76,.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(22,35,76,.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.75rem 1.25rem;
  padding: .5rem 0 1rem;
}
@media (min-width: 576px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

.gallery-tile {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 18px rgba(22,35,76,.14);
  transform: rotate(var(--tile-rot, 0deg));
  transition: transform .2s ease, box-shadow .2s ease, z-index 0s;
  cursor: pointer;
}
.gallery-tile.lift { margin-top: 1.1rem; }
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 16px 34px rgba(22,35,76,.28);
  z-index: 2;
}
.gallery-tile-shape {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(13,23,48,.65);
  color: #fff;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
}

/* Fullscreen lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(9,14,28,.94);
  display: flex;
  flex-direction: column;
}
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  color: #fff;
  flex-wrap: wrap;
  gap: .5rem;
}
.lightbox-meta { font-size: .85rem; opacity: .85; }
.lightbox-meta-sep { margin: 0 .4rem; opacity: .5; }
.lightbox-actions { display: flex; gap: .5rem; }
.lightbox-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background .15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4rem;
  min-height: 0;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-nav-prev { left: 1rem; }
.lightbox-nav-next { right: 1rem; }

@media (max-width: 575px) {
  .lightbox-stage { padding: .5rem 3.25rem; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-nav-prev { left: .4rem; }
  .lightbox-nav-next { right: .4rem; }
  .lightbox-meta { font-size: .75rem; }
}
