:root {
  --brand: #8b4513;
  /* primary brown */
  --brand-dark: #5a2d0c;
  /* darker brown */
  --panel: #F7EFE6;
  /* warm panel */
  --card: #FFF6E9;
  /* option tiles */
  --ink: #2b2b2b;
  --best: #16a34a;
  /* badge green */
  --cta-bg: var(--brand);
  --cta-bg-hover: var(--brand-dark);
  --cta-border: #6f370f;
  /* deep brown stroke to match brand */
  --tile-bg: #F6E9D9;
  /* light warm tile background */
  --tile-bg-checked: #F0DCC7;
  --tile-height: 64px;
}

/* General layout */
html,
body {
  height: 100%;
}

body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 0.6px, transparent 0.7px) 0 0/8px 8px;
  opacity:.06;  /* 0.04–0.10 */
  mix-blend-mode:multiply;
}

/* Full-width light wrapper (removed dark gradient) */
.bg {
  width: 100%;
  padding: 24px 16px;
  background: transparent;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 400px;
  /* wider card for QR */
  width: 100%;
  margin: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Headings and fade-in animation */
.welcome-text {
  color: var(--brand-dark);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn,
.btn-success,
.back-button {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background-color: #8b4513 !important;
  color: #fff !important;
}

.btn-icon {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn-success:hover,
.back-button:hover {
  background-color: #5a2d0c !important;
  color: #fff !important;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.3rem;
  width: 100%;
}

.back-button {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* Toggle buttons and selection states */
.btn-outline-primary,
.btn-outline-secondary {
  background-color: #f2f2f2 !important;
  color: #5a2d0c !important;
  border: none !important;
  border-radius: 0 !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background-color: #5a2d0c !important;
  color: #fff !important;
}

.btn-check:checked+.btn-outline-primary,
.btn-check:checked+.btn-outline-secondary {
  background-color: #8b4513 !important;
  color: #fff !important;
}

.btn-toggle-group .btn {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  border-radius: 0 !important;
  background-color: #f2f2f2 !important;
  color: #5a2d0c !important;
}

/* Price */
.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8b4513;
  margin: 1rem 0;
}

/* QR Code display */
.qr {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  max-height: 300px;
}

/* Status text */
#statusMsg {
  font-weight: 600;
  margin-top: 1rem;
  font-size: 2rem;
  color: var(--brand-dark);
}

.qr-container {
  width: 280px;
  height: 280px;
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

/* QR image inside container */
.qr-container img.qr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ensures cropping */
  object-position: center;
  display: block;
  transform: scale(1.05);
  /* zoom slightly to cut BHIM/UPI extra design */
}

/* Camera Page Layout */
.video-wrapper {
  width: 100%;
  max-width: 475px;
  border-radius: 0;
  /*box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);*/
  overflow: hidden;
  margin-bottom: 1rem;
}

video {
  width: 100%;
  height: auto;
}

.countdown {
  font-size: 1.2rem;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 1rem;
  text-align: center;
}

#photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.photo {
  /*background: #fff;*/
  /*border: 1px solid #ccc;*/
  /*padding: 0.5rem;*/
  width: 100px;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
  /*text-align: center;*/
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
  /*margin-bottom: 0.4rem;*/
  /*border-radius: 3px;*/
}

.photo .btn-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.photo .btn {
  font-size: 0.7rem;
  padding: 4px 6px;
  border: none;
  color: white;
  background-color: #7b3603;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 3px;
}

.photo .btn:hover {
  background-color: #a14a09;
}

#countdown {
  font-size: 2rem;
  font-weight: bold;
  color: #8b4513;
  margin: 1rem 0;
  text-align: center;
}

.photo-modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.photo-modal img.modal-content {
  width: 100%;
  max-width: 500px;
  height: auto;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.photo-modal img.modal-content {
  transition: transform 0.3s ease;
}

.photo-modal.show img.modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  background: #fff;
  color: #000;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  z-index: 10001;
}

.d-none {
  display: none !important;
}

/* For 2x6 inch photo strip printing */
.strip-preview {
  width: 320px;
  height: 700px;
  margin: 20px auto;
  padding: 10px;
  border: 4px solid #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
}

.strip-preview img {
  width: 100%;
  height: calc((100% - 3 * 8px - 24px - 1rem) / 4);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.strip-preview img:hover {
  transform: scale(1.05);
}

.brand {
  font-size: 16px;
  font-weight: bold;
  color: #0d6efd;
  margin-top: 1rem;
  height: 24px;
  line-height: 24px;
}

.panel {
  max-width: 820px;
  width: 100%;
  margin-inline: auto;
  /*background: var(--panel);*/
  border-radius: 24px;
  padding: 24px;
  /*box-shadow: 0 12px 40px rgba(0,0,0,.18);*/
}

.text-start.mb-3 {
  margin-bottom: 1.25rem !important;
}

/* Title / steps */
.title {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px;
  text-align: center;
}

.steps {
  text-align: center;
  color: #8a6b4c;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.steps .sep {
  margin: 0 6px;
  opacity: .7;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.segmented-item,
.option-card {
  min-height: var(--tile-height);
  padding: 16px 18px;
  /* more breathing room */
  font-size: 1.25rem;
}

.segmented-item {
  min-height: var(--tile-height);
  border: 2px solid var(--cta-border);
  background: var(--tile-bg);
  color: var(--brand-dark);
  border-radius: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.segmented-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.btn-check:checked+.segmented-item {
  background: var(--cta-bg);
  color: #fff;
  border-color: var(--cta-border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.segmented-item i {
  font-size: 1.2rem;
}


.mode-icon.bw {
  background:
    linear-gradient(45deg, #000 25%, #fff 25%, #fff 50%, #000 50%, #000 75%, #fff 75%, #fff 100%);
  background-size: 12px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .6);
}


.btn-check:checked+.segmented-item .mode-icon {
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .6);
}

/* keep your dots */
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd59e 40%, #ff8b61 41%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .3) inset;
}

.dot.bw {
  background: radial-gradient(circle at 35% 35%, #ffffff 42%, #000 43%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5) inset;
}

.options-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.option-card {
  position: relative;
  /* enable the check badge */
}

.option-card {
  min-height: var(--tile-height);
  border: 2px solid var(--cta-border);
  background: var(--tile-bg);
  color: var(--ink);
  border-radius: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.option-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.btn-check:checked+.option-card {
  background: var(--cta-bg);
  /* brighter tile */
  color: #fff;
  border-color: var(--brand-dark);
  /* darker border */
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .12),
    inset 0 0 0 2px rgba(139, 69, 19, .15);
  /* subtle inner ring */
  transform: translateY(-2px);
}

.btn-check:checked+.option-card::after {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

/* Badge */
.badge-best {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--best);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
}

/* Price + button */
.price-group {
  text-align: center;
  margin: 16px 0 18px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-dark);
}

.subtext {
  font-size: 14px;
  color: #7a5a3a;
  font-weight: 600;
}

.btn,
.btn-success {
  border-radius: 999px !important;
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}

.btn:hover,
.btn-success:hover {
  background: var(--brand-dark) !important;
}

/* Logo */
.logo {
  max-width: 300px;
  height: auto;
  margin: 0px auto 50px auto;
  display: block;
}

.field-label {
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--brand-dark);
  margin: 6px 2px 10px;
  position: relative;
  display: inline-block;
}

.field-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9c7a4, var(--brand));
  opacity: .5;
}

/* Both big buttons (Start + Pay) */
.cta-btn {
  background: var(--cta-bg) !important;
  color: #fff !important;
  border: 2px solid var(--cta-border) !important;
  border-radius: 999px !important;
  padding: 16px 28px !important;
  /* same height */
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(255, 255, 255, .18) !important;
  width: 400px;
}

.cta-btn:hover,
.cta-btn:focus {
  background: var(--cta-bg-hover) !important;
}

/* Also normalize Bootstrap size helpers so heights match exactly */
.btn-xl,
.btn-lg {
  padding: 14px 28px !important;
}

.welcome-bg {
  display: block;
  margin: 20px auto 0;
  width: 100%;
  height: auto;
}

.mode-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
  border: 2px solid rgba(0, 0, 0, .15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .35);
}

/* Color: a small palette wheel (conic gradient) */
.mode-icon.color {
  background:
    conic-gradient(#ff6e6e 0 60deg,
      #ffd36e 60 120deg,
      #7fd67f 120 180deg,
      #6eb7ff 180 240deg,
      #b68dff 240 300deg,
      #ff6ecf 300 360deg);
}

/* Black & White: a clean half black/half white disc */
.mode-icon.bw {
  background:
    conic-gradient(#000 0 180deg, #fff 180deg 360deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .6);
}

.pay-panel {
  max-width: 520px;
  /* just a comfortable width */
  padding: 0;
  /* same airy feel as other screens */
  background: transparent;
  border: none;
  box-shadow: none;
  margin-inline: auto;
}

.pay-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  max-width: 520px;
  width: 100%;
  margin: auto;
  border: 2px solid rgba(139, 69, 19, .10);
  /* subtle brand stroke */
  box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
}

/* Reuse your headline style for consistency */
.pay-card .title {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 6px;
  text-align: center;
}

/* Price line already themed in your sheet; keep it consistent */
.pay-card .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-dark);
}

/* --- Pay Screen Enhancements --- */

/* Headline */
.pay-title {
  color: var(--brand-dark);
  font-weight: 900;
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 42px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

/* Sub-headline (price/strips) */
.pay-subtitle {
  display: inline-block;
  background: linear-gradient(90deg, #fff6e9, #f0dcc7);
  border: 2px solid var(--cta-border);
  border-radius: 999px;
  padding: 10px 22px;
  margin: 0 auto 18px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

/* QR Frame */
.qr-frame {
  width: min(72vw, 360px);
  height: min(72vw, 360px);
  margin: 0 auto 20px;
  border-radius: 24px;
  background: #fff;
  border: 3px solid var(--cta-border);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-frame .qr-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

/* Status (HUGE + clear) */
.pay-status {
  margin-top: 20px;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 25px);
  /* much larger now */
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

/* Status dot with pulse */
.pay-status .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d97706;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, .6);
  }

  70% {
    box-shadow: 0 0 0 24px rgba(217, 119, 6, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

/* Success/fail overrides */
.status-success {
  color: #0a7e07 !important;
}

.status-success .dot {
  background: #0a7e07;
}

.status-failed {
  color: #b91c1c !important;
}

.status-failed .dot {
  background: #b91c1c;
}

/* Container aligns like other screens */
.pay-panel {
  max-width: 600px;
  background: transparent;
  border: none;
  padding: 0;
  margin-inline: auto;
}

.option-title { font-weight: 900; margin-bottom: 4px; }
.price-line { display: inline-flex; gap: 8px; align-items: baseline; }
.price-old { text-decoration: line-through; opacity: .65; font-weight: 700; }
.price-now { font-weight: 900; }
.offer-tag {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #8fff2a;
    color: #000;
    font-size: 16px;
    padding: 2px 6px;
    border: 2px solid #000;
    border-radius: 20px;
}
.option-card.active {
  background: var(--cta-bg);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.option-card {
  display: flex;
  justify-content: space-between;  /* push text left & price right */
  align-items: center;
  gap: 12px; /* ensures some breathing room */
}

.label-text {
  font-weight: 800;
}

.label-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;                  /* space between old & new price */
  font-weight: 900;
  font-variant-numeric: tabular-nums;  /* even digit widths */
}

.label-price s {
  opacity: .65;
}
/*.option-card { padding-right: 84px; }*/


