/* ============================================
   QR Se Print / Print Store — Modern 4-Step UI
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary-purple: #8b5cf6;
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  --purple-glow: 0 8px 25px -4px rgba(139, 92, 246, 0.45);
  --green-btn: #16a34a;
  --green-btn-hover: #15803d;
  --green-glow: 0 8px 20px -4px rgba(22, 163, 74, 0.35);
  --bg-soft: #f4f6fc;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

/* --- Base --- */
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; padding:0; padding-bottom:30px;
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:#f4f6fc;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(236,72,153,0.05) 0%, transparent 50%);
  background-attachment:fixed;
  min-height:100vh;
  color:#0f172a;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* --- Utilities --- */
.hidden { display:none !important; }
.step { display:none !important; }
.step.active { display:block !important; }
.fade-in { animation:fadeIn .35s ease-out both; }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.6; } }
@keyframes spin { to { transform:rotate(360deg); } }

/* --- New Header --- */
.nx-header {
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid rgba(37,99,235,0.08);
  padding:10px 16px;
}
.nx-header-inner {
  max-width:560px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
}
.nx-header-right { display:flex; align-items:center; gap:8px; }
.nx-phone-btn {
  display:inline-flex; align-items:center; gap:3px;
  background:#eff6ff; color:#2563eb; border:none; border-radius:6px;
  padding:4px 8px; font-size:0.7em; font-weight:700;
  text-decoration:none; cursor:pointer; font-family:inherit;
}
.nx-logo { display:flex; align-items:center; gap:10px; }
.nx-logo-icon {
  width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff; font-weight:800; font-size:0.82em;
  display:flex; align-items:center; justify-content:center;
}
.nx-logo-icon span { opacity:0.7; }
.nx-logo-name { font-size:0.88em; font-weight:800; color:#1e40af; letter-spacing:0.5px; }
.nx-logo-sub { font-size:0.55em; color:#6b7280; letter-spacing:1px; font-weight:600; }
.nx-hamburger {
  background:#fff; border:1px solid #e2e8f0; border-radius:12px;
  padding:8px; color:#475569; cursor:pointer; font-family:inherit;
  display:flex; align-items:center; justify-content:center;
}

/* --- Steps --- */
.step { display:none; animation:fadeIn .35s ease-out both; }
.step.active { display:block; }

/* --- Hero Section --- */
.nx-hero {
  background:#e8f0fe;
  padding:28px 20px 24px; color:#1e293b; position:relative; overflow:hidden;
  min-height:220px; background-size:cover; background-position:center;
}
.nx-hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0) 65%);
}
.nx-hero-content { position:relative; z-index:1; }
.nx-hero-left { z-index:1; max-width:55%; }
.nx-hero-title {
  font-size:2.2em; font-weight:900; line-height:1.1;
  letter-spacing:-1px; margin-bottom:8px; color:#1e293b;
}
.nx-hero-accent { color:#2563eb; }
.nx-hero-desc { font-size:0.82em; color:#475569; margin:0 0 16px; max-width:280px; }
.nx-hero-badges { display:flex; gap:16px; }
.nx-badge {
  display:flex; align-items:center; gap:6px; font-size:0.7em; font-weight:600;
  color:#1e293b;
}
.nx-badge i { opacity:0.9; color:#2563eb; }
.nx-badge small { font-weight:400; opacity:0.6; display:block; font-size:0.85em; }

/* --- Action Cards Section --- */
.nx-actions-section { padding:14px 10px 12px; max-width:560px; margin:0 auto; box-sizing:border-box; }
.nx-section-title {
  text-align:center; font-size:0.85em; font-weight:700; color:#1e40af;
  margin:0 0 14px; display:flex; align-items:center; justify-content:center; gap:8px;
}
.nx-dot {
  width:6px; height:6px; border-radius:50%; background:#2563eb; display:inline-block;
}
.nx-action-cards { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; width:100%; box-sizing:border-box; }
.nx-action-card {
  border-radius:14px; padding:12px 3px 10px; text-align:center;
  background:#fff; border:1.5px solid #e2e8f0; cursor:pointer;
  transition:all .2s cubic-bezier(0.16, 1, 0.3, 1); display:flex; flex-direction:column; align-items:center; gap:4px;
  height:100%; box-sizing:border-box; overflow:hidden; min-width:0;
}
.nx-action-card:active { transform:scale(0.97); }
.nx-action-card.blue { border-color:#bfdbfe; }
.nx-action-card.green { border-color:#bbf7d0; }
.nx-action-card.purple { border-color:#ddd6fe; }
.nx-ac-icon {
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.nx-ac-icon svg { width:20px; height:20px; flex-shrink:0; }
.nx-action-card.blue .nx-ac-icon { background:#dbeafe; color:#2563eb; }
.nx-action-card.green .nx-ac-icon { background:#dcfce7; color:#16a34a; }
.nx-action-card.purple .nx-ac-icon { background:#ede9fe; color:#7c3aed; }
.nx-ac-title { font-size:0.72em; font-weight:700; color:#1e293b; letter-spacing:0.2px; white-space:nowrap; }
.nx-ac-desc { font-size:0.62em; color:#475569; font-weight:500; }
.nx-ac-detail { font-size:0.54em; color:#94a3b8; line-height:1.2; margin-bottom:2px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; max-width:100%; }
.nx-ac-chip {
  background:#dcfce7; color:#15803d; font-size:0.52em; font-weight:700;
  padding:1px 5px; border-radius:6px; white-space:nowrap;
  border:1px solid #bbf7d0; display:inline-block; margin:1px 0;
}
.nx-ac-btn {
  margin-top:auto; width:100%; height:40px; min-height:40px; max-height:40px;
  padding:0 2px; border-radius:10px;
  font-size:0.68em; font-weight:600; color:#fff; display:inline-flex;
  align-items:center; justify-content:center; gap:3px; border:none; cursor:pointer;
  white-space:nowrap; box-shadow:0 2px 6px rgba(0,0,0,0.08);
  transition:all 0.2s cubic-bezier(0.16, 1, 0.3, 1); box-sizing:border-box;
  font-family:inherit; overflow:hidden;
}
.nx-ac-btn:active { transform:scale(0.97); }
.nx-ac-btn svg { width:13px; height:13px; flex-shrink:0; }
.nx-ac-btn.blue { background:#2563eb; }
.nx-ac-btn.green { background:#16a34a; }
.nx-ac-btn.purple { background:#7c3aed; }

/* --- Security Banner --- */
.nx-security-banner {
  max-width:560px; margin:0 auto 12px; padding:12px 16px;
  background:#fff; border-radius:12px; display:flex; align-items:center; gap:12px;
  border:1px solid #e2e8f0; margin-left:16px; margin-right:16px;
}
.nx-sb-text { flex:1; font-size:0.78em; color:#374151; line-height:1.4; }
.nx-sb-text small { color:#6b7280; }

/* --- How It Works --- */

/* --- Features Row --- */
.nx-features-row {
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
  padding:12px 16px 24px; max-width:560px; margin:0 auto;
}
.nx-feature {
  background:#fff; border-radius:10px; padding:10px 12px;
  font-size:0.68em; font-weight:600; color:#1e293b;
  display:flex; align-items:flex-start; gap:6px;
  border:1px solid #e2e8f0;
}
.nx-feature i { color:#2563eb; flex-shrink:0; margin-top:2px; }
.nx-feature small { font-weight:400; color:#6b7280; display:block; font-size:0.85em; }

/* --- Bottom Navigation --- */
.nx-bottom-nav {
  position:fixed; bottom:0; left:0; right:0; z-index:100;
  background:#fff; border-top:1px solid #e2e8f0;
  display:flex; align-items:stretch; justify-content:space-around;
  padding:6px 0 env(safe-area-inset-bottom, 4px);
  box-shadow:0 -2px 12px rgba(0,0,0,0.06);
}
.nx-nav-item {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; padding:6px 0; border:none; background:none;
  color:#94a3b8; font-size:0.6em; font-weight:600; cursor:pointer;
  font-family:inherit; transition:color .15s;
}
.nx-nav-item i { width:20px; height:20px; }
.nx-nav-item.active { color:#2563eb; }

/* --- Pages (Prices, Contact, Orders) --- */
.nx-page {
  position:fixed; top:0; left:0; right:0; bottom:0;
  z-index:90; background:#f0f4ff;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.nx-page-header {
  position:sticky; top:0; z-index:2; background:rgba(255,255,255,0.92);
  backdrop-filter:blur(20px); padding:12px 16px;
  display:flex; align-items:center; gap:12px;
  border-bottom:1px solid #e2e8f0;
}
.nx-page-header h2 { font-size:1.05em; font-weight:700; color:#1e293b; margin:0; }
.nx-page-back {
  background:none; border:none; color:#475569; cursor:pointer;
  padding:4px; border-radius:8px;
}
.nx-page-body { padding:16px; max-width:560px; margin:0 auto; }

/* --- Price Cards --- */
.nx-price-card {
  display:flex; align-items:center; gap:12px;
  background:#fff; border-radius:14px; padding:16px;
  margin-bottom:10px; border:1px solid #e2e8f0;
}
.nx-price-bw { background:linear-gradient(135deg, #e8eaf6 0%, #f5f5f5 100%); border-color:#c5cae9; }
.nx-price-color { background:linear-gradient(135deg, #fff3e0 0%, #fff8e1 100%); border-color:#ffe0b2; }
.nx-price-id { background:linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); border-color:#c8e6c9; }
.nx-price-photocopy { background:linear-gradient(135deg, #fce4ec 0%, #fce4ec 100%); border-color:#f8bbd0; }
.nx-price-icon {
  width:50px; height:50px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.nx-price-icon svg { width:28px; height:28px; }
.nx-price-icon.bw { background:#3f51b5; color:#fff; }
.nx-price-icon.color { background:#ff9800; color:#fff; }
.nx-price-icon.copy { background:#4caf50; color:#fff; }
.nx-price-icon.photocopy { background:#e91e63; color:#fff; }
.nx-price-info { flex:1; }
.nx-price-title { font-size:0.88em; font-weight:700; color:#1e293b; }
.nx-price-desc { font-size:0.72em; color:#6b7280; }
.nx-price-amount { font-size:1.4em; font-weight:800; color:#2563eb; }
.nx-price-bw .nx-price-amount { color:#3f51b5; }
.nx-price-color .nx-price-amount { color:#ff9800; }
.nx-price-id .nx-price-amount { color:#4caf50; }
.nx-price-photocopy .nx-price-amount { color:#e91e63; }
.nx-price-unit { font-size:0.7em; color:#94a3b8; }
.nx-note-card {
  display:flex; align-items:flex-start; gap:10px;
  background:#eff6ff; border-radius:12px; padding:14px;
  font-size:0.75em; color:#475569; line-height:1.4;
}

/* --- Contact Cards --- */
.nx-contact-card {
  display:flex; align-items:center; gap:14px;
  background:#fff; border-radius:14px; padding:16px;
  margin-bottom:10px; border:1px solid #e2e8f0;
}
.nx-cc-icon {
  width:44px; height:44px; border-radius:12px; background:#dbeafe;
  color:#2563eb; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.nx-cc-title { font-size:0.78em; font-weight:700; color:#1e293b; }
.nx-cc-text { font-size:0.75em; color:#6b7280; }

/* --- Empty State --- */
.nx-empty-state {
  text-align:center; padding:48px 16px; color:#94a3b8;
}
.nx-empty-state p { margin:8px 0 0; }
/* --- Format Badges --- */
.format-row {
  display:flex; justify-content:center; gap:8px; flex-wrap:wrap;
  max-width:560px; margin:16px auto 0; padding:0 12px;
}
.format-badge {
  padding:6px 14px; border-radius:20px; font-size:0.75em; font-weight:600;
  background:#fff; border:1.5px solid #e5e7eb; color:#374151;
}

/* --- Bottom Sheet --- */
.bottom-sheet {
  position:fixed; bottom:0; left:0; right:0; z-index:200;
  display:none; flex-direction:column;
}
.bottom-sheet.open { display:flex; }
.sheet-backdrop {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.4); z-index:-1;
  animation:fadeIn .2s ease-out;
}
.sheet-content {
  background:#fff; border-radius:24px 24px 0 0; padding:12px 20px 28px;
  animation:sheetUp .3s cubic-bezier(.22,1,.36,1);
}
@keyframes sheetUp {
  from { transform:translateY(100%); opacity:0; }
  to { transform:translateY(0); opacity:1; }
  box-shadow:0 -8px 32px rgba(0,0,0,0.1);
}
.sheet-handle {
  width:40px; height:4px; border-radius:2px; background:#d1d5db;
  margin:0 auto 16px;
}
.sheet-option {
  display:flex; align-items:center; gap:16px;
  padding:18px 16px; border-radius:16px;
  cursor:pointer; transition:background .15s;
  margin-bottom:8px;
}
.sheet-option:hover { background:#f9fafb; }
.sheet-option:active { background:#f3f4f6; }
.sheet-option .sheet-icon {
  width:52px; height:52px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
}
.sheet-icon.files { background:#d1fae5; color:#059669; }
.sheet-icon.camera { background:#dbeafe; color:#2563eb; }
.sheet-option .sheet-label { font-size:1em; font-weight:600; color:#1f2937; }
.sheet-option .sheet-sublabel { font-size:0.78em; color:#9ca3af; }

/* --- Upload Progress --- */
.progress-overlay {
  position:fixed; top:0; left:0; right:0; bottom:0; z-index:300;
  background:rgba(0,0,0,0.5); display:flex;
  align-items:center; justify-content:center;
  backdrop-filter:blur(4px);
}
.progress-overlay.hidden { display:none; }
.progress-card {
  background:#fff; border-radius:24px; padding:40px 32px;
  text-align:center; max-width:320px; width:88%;
  box-shadow:0 16px 48px rgba(0,0,0,0.15);
}
.progress-spinner {
  width:56px; height:56px; border:4px solid #e5e7eb;
  border-top-color:#16A34A; border-radius:50%;
  animation:spin .8s linear infinite; margin:0 auto 16px;
}
.progress-text { font-size:1em; font-weight:600; color:#1f2937; margin-bottom:8px; }
.progress-bar {
  width:100%; height:6px; background:#e5e7eb; border-radius:3px;
  overflow:hidden; margin:12px 0 6px;
}
.progress-fill {
  width:0%; height:100%; background:linear-gradient(90deg,#22c55e,#16A34A);
  border-radius:3px; transition:width .3s;
}
.progress-percent { font-size:0.78em; color:#9ca3af; }

/* --- File Cards --- */
.file-cards { margin-bottom:16px; }
.file-card {
  display:flex; gap:12px; background:#fff; border-radius:18px;
  padding:14px; border:1.5px solid #f3f4f6;
  margin-bottom:10px; transition:all .2s;
  align-items:center;
}
.file-card:active { border-color:#16A34A; background:#f0fdf4; }
.file-thumb {
  width:56px; height:56px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5em; font-weight:700; color:#fff;
}
.file-thumb.pdf { background:#ef4444; }
.file-thumb.doc { background:#3b82f6; }
.file-thumb.image { background:#8b5cf6; }
.file-info { flex:1; min-width:0; }
.file-info .fi-name { font-size:0.82em; font-weight:600; color:#1f2937; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-info .fi-meta { font-size:0.72em; color:#9ca3af; margin-top:2px; }
.file-actions { display:flex; gap:4px; }
.file-btn {
  width:36px; height:36px; border-radius:10px; border:none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .15s;
  background:transparent; color:#9ca3af;
}
.file-btn:hover { background:#f3f4f6; }
.file-btn.danger:hover { background:#fee2e2; color:#ef4444; }
.file-btn.preview:hover { background:#d1fae5; color:#059669; }

/* --- QwikPrint-Style Print Settings --- */
.qp-wrap {
  max-width:480px; margin:0 auto; padding:0 16px 110px;
  background:linear-gradient(180deg, #EDFFE8 0%, #f7faf5 120px, #f9fafb 100%);
  min-height:100vh;
}

/* --- Document Preview Card --- */
.qp-doc-card {
  position:relative; background:#fff; border-radius:20px;
  box-shadow:0 2px 16px rgba(0,0,0,0.06);
  margin:16px 0 20px; overflow:hidden;
}
.qp-doc-preview {
  display:flex; align-items:center; justify-content:center;
  padding:24px; background:#f0fdf4; border-radius:20px;
  min-height:200px; position:relative;
}
.qp-doc-preview img {
  max-width:85%; max-height:260px; border-radius:8px;
  object-fit:contain; box-shadow:0 4px 20px rgba(0,0,0,0.12);
  border:1px solid #e5e7eb; background:#fff;
}
.qp-doc-delete {
  position:absolute; top:10px; right:10px; z-index:2;
  width:40px; height:40px; border-radius:14px;
  background:#fff; border:1.5px solid #fecaca;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#ef4444; transition:all .2s;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.qp-doc-delete:active { transform:scale(0.9); background:#fef2f2; }
.qp-doc-add-more {
  position:absolute; top:10px; right:58px; z-index:2;
  padding:0 12px; height:40px; border-radius:14px;
  background:#2563eb; color:#ffffff; border:none;
  display:flex; align-items:center; justify-content:center; gap:6px;
  cursor:pointer; font-size:0.78em; font-weight:700; transition:all .2s;
  box-shadow:0 2px 8px rgba(37,99,235,0.3); font-family:inherit;
  -webkit-tap-highlight-color:transparent;
}
.qp-doc-add-more:hover { background:#1d4ed8; transform:translateY(-1px); }
.qp-doc-add-more:active { transform:scale(0.95); background:#1e40af; }

/* --- Live Wave Offer Ticker Styles --- */
.live-wave-ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf0 0%, #fef3c7 40%, #fde68a 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 8px 12px;
  margin: 10px 16px 4px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-wave-ticker::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: waveShimmer 2.8s infinite ease-in-out;
  pointer-events: none;
}
@keyframes waveShimmer {
  0% { left: -150%; }
  50%, 100% { left: 150%; }
}
/* --- Continuous Seamless Non-Stop Scrolling Marquee Text --- */
.marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 6px;
}
.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 32px;
  width: max-content;
  animation: marqueeSeamless 14s linear infinite;
  will-change: transform;
}
@keyframes marqueeSeamless {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 0.76em;
  color: #78350f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 16px;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.62em;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  flex-shrink: 0;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.live-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  animation: pulseRipple 1.2s infinite ease-out;
}
@keyframes pulseRipple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.wave-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-right: 4px;
}
.wave-bar {
  width: 2.5px;
  background: #dc2626;
  border-radius: 2px;
  animation: waveEqualizer 0.8s ease-in-out infinite alternate;
}
.wave-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }
@keyframes waveEqualizer {
  0% { height: 25%; }
  100% { height: 100%; }
}
.qp-doc-label {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:16px; border-top:1px solid #f0f0f0;
  font-size:0.82em; font-weight:700; color:#374151;
  letter-spacing:1.5px; cursor:pointer; transition:background .2s;
}
.qp-doc-label:active { background:#f9fafb; }

/* --- Fullscreen Preview Modal --- */
.qp-fullscreen {
  position:fixed; inset:0; z-index:200; background:rgba(0,0,0,0.92);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  animation:qpFadeIn .2s ease;
}
.qp-fullscreen img {
  max-width:92vw; max-height:80vh; object-fit:contain;
  border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,0.4);
}
.qp-fullscreen-close {
  position:absolute; top:16px; right:16px;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,0.15); border:none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#fff; transition:background .2s;
}
.qp-fullscreen-close:active { background:rgba(255,255,255,0.3); }
.qp-fullscreen-name {
  color:rgba(255,255,255,0.7); font-size:0.78em; margin-top:12px;
  text-align:center; max-width:90vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* --- Card Base --- */
.qp-card {
  background:#fff; border-radius:16px; padding:18px;
  margin-bottom:14px; box-shadow:0 1px 8px rgba(0,0,0,0.04);
}
.qp-card-title {
  font-size:0.88em; font-weight:700; color:#111827; margin-bottom:14px;
}
.qp-card-row {
  display:flex; align-items:center; justify-content:space-between;
}

/* --- Copies --- */
.qp-copies {
  display:flex; align-items:center; gap:4px;
  background:#16A34A; border-radius:30px; padding:4px;
}
.qp-copies-btn {
  width:34px; height:34px; border-radius:50%;
  border:none; background:rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#fff; transition:all .15s;
}
.qp-copies-btn:active { background:rgba(255,255,255,0.35); transform:scale(0.9); }
.qp-copies-val {
  font-size:1em; font-weight:700; color:#fff;
  min-width:32px; text-align:center;
}

/* --- Option Pair Cards --- */
.qp-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.qp-opt {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px; border-radius:14px;
  border:2px solid #e5e7eb; background:#fff;
  cursor:pointer; transition:all .2s; font-family:inherit;
}
.qp-opt:active { transform:scale(0.97); }
.qp-opt.selected {
  border-color:#16A34A; background:#f0fdf4;
}
.qp-opt.selected .qp-opt-label { color:#16A34A; font-weight:700; }
.qp-opt-text { display:flex; flex-direction:column; gap:2px; }
.qp-opt-label { font-size:0.88em; font-weight:600; color:#111827; }
.qp-opt-sub { font-size:0.7em; color:#9ca3af; font-weight:500; }
.qp-opt-icon { display:flex; align-items:center; flex-shrink:0; }

/* --- Hide / More Options --- */
.qp-hide-card { padding:0; overflow:hidden; }
.qp-hide-btn {
  width:100%; display:flex; align-items:center; justify-content:center;
  gap:8px; padding:16px; border:none; background:#fff;
  font-size:0.85em; font-weight:600; color:#6b7280;
  cursor:pointer; font-family:inherit; transition:background .2s;
}
.qp-hide-btn:active { background:#f9fafb; }
.qp-hide-body {
  max-height:0; overflow:hidden; transition:max-height .3s ease, opacity .2s ease;
  opacity:0; padding:0 18px;
}
.qp-hide-card.open .qp-hide-body { max-height:200px; opacity:1; padding:0 18px 16px; }
.qp-hide-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid #f3f4f6;
  font-size:0.82em; color:#374151;
}
.qp-hide-row:last-child { border-bottom:none; }
.qp-hide-row span:last-child { font-weight:700; color:#111827; }

/* --- Page Range Input --- */
#prangeInputRow {
  max-height:0; overflow:hidden; opacity:0; padding:0;
  transition:max-height .3s ease, opacity .2s ease, padding .3s ease;
}
#prangeInputRow:not(.hidden) {
  max-height:120px; opacity:1; padding:12px 0 0;
}
#prangeInputRow input {
  width:100%; padding:12px 14px; border:1.5px solid #e5e7eb;
  border-radius:12px; font-size:0.85em; font-family:inherit;
  outline:none; box-sizing:border-box; transition:border-color .2s;
}
#prangeInputRow input:focus { border-color:#16A34A; box-shadow:0 0 0 3px rgba(22,163,74,0.08); }
.prange-hint { font-size:0.68em; color:#9ca3af; margin-top:6px; }

/* --- Sticky Bottom Bar --- */
.qp-bottom {
  position:fixed; bottom:0; left:0; right:0; z-index:90;
  background:#fff; border-top:1px solid #f0f0f0;
  padding:14px 20px; max-width:480px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 -4px 20px rgba(0,0,0,0.06);
}
.qp-bottom-info { display:flex; flex-direction:column; gap:2px; }
.qp-bottom-pages { font-size:0.72em; color:#6b7280; font-weight:500; }
.qp-bottom-price { font-size:1.3em; font-weight:800; color:#111827; }
.qp-bottom-pay {
  padding:0 24px; height:48px; min-height:48px; max-height:48px; border-radius:14px;
  background:#16A34A; color:#fff;
  font-size:0.88em; font-weight:600; border:none;
  cursor:pointer; transition:all 0.2s cubic-bezier(0.16, 1, 0.3, 1); font-family:inherit;
  box-shadow:0 2px 10px rgba(22,163,74,0.25);
  display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap;
}
.qp-bottom-pay:active { transform:scale(0.97); }
.qp-bottom-pay:hover { background:#15803d; }

/* --- Review Items --- */
.review-items { margin-bottom:16px; }
.review-item {
  display:flex; align-items:center; gap:12px;
  background:#f9fafb; border-radius:14px; padding:12px 14px;
  margin-bottom:8px;
}
.review-item .ri-thumb {
  width:40px; height:40px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:0.85em; font-weight:700; color:#fff;
}
.review-item .ri-info { flex:1; }
.review-item .ri-name { font-size:0.78em; font-weight:600; color:#1f2937; }
.review-item .ri-meta { font-size:0.7em; color:#9ca3af; }
.review-item .ri-price { font-size:0.85em; font-weight:700; color:#16A34A; }

/* --- Settings Summary --- */
.summary-card {
  background:#f9fafb; border-radius:18px; padding:16px; margin-bottom:16px;
}
.summary-row {
  display:flex; justify-content:space-between; padding:8px 0;
  border-bottom:1px solid #f3f4f6;
}
.summary-row:last-child { border-bottom:none; }
.summary-row .sr-label { font-size:0.78em; color:#6b7280; display:flex; align-items:center; gap:6px; }
.summary-row .sr-value { font-size:0.82em; font-weight:600; color:#1f2937; }
.summary-total {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 0 0; margin-top:6px;
  border-top:2px solid #d1fae5;
}
.summary-total .st-label { font-size:0.9em; font-weight:600; color:#1f2937; }
.summary-total .st-value { font-size:1.3em; font-weight:800; color:#16A34A; }

/* --- Contact Form --- */
.contact-form { margin-bottom:16px; }
.contact-form input, .contact-form textarea {
  width:100%; padding:14px 16px; border:1.5px solid #e5e7eb;
  border-radius:14px; font-size:0.85em; font-family:inherit;
  margin-bottom:10px; outline:none; transition:border .2s;
  box-sizing:border-box;
  background:#fff; color:#1f2937;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color:#16A34A; box-shadow:0 0 0 3px rgba(22,163,74,0.1);
}
.contact-form textarea { resize:none; min-height:72px; }

/* --- Payment Options --- */
.payment-option {
  display:flex; align-items:center; gap:12px;
  padding:16px; border:1.5px solid #e5e7eb;
  border-radius:16px; margin-bottom:10px;
  cursor:pointer; transition:all .15s;
}
.payment-option:active { transform:scale(0.98); }
.payment-option.selected { border-color:#16A34A; background:#f0fdf4; }
.payment-option .po-icon {
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.payment-option .po-label { font-size:0.9em; font-weight:600; color:#1f2937; flex:1; }
.payment-option .po-radio {
  width:20px; height:20px; border-radius:50%;
  border:2px solid #d1d5db; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  transition:all .15s;
}
.payment-option.selected .po-radio { border-color:#16A34A; }
.payment-option.selected .po-radio::after {
  content:''; width:10px; height:10px; border-radius:50%;
  background:#16A34A;
}
.po-icon.cash { background:#fef3c7; color:#d97706; }
.po-icon.razorpay { background:#ede9fe; color:#7c3aed; }

/* --- Razorpay Payment Card (on Review page) --- */
/* --- Premium Self-Service Kiosk Payment Card --- */
.kiosk-payment-card {
  margin: 24px 0 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  animation: kioskFadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes kioskFadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1. Hero Amount Card */
.kiosk-amount-card {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  padding: 24px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.kiosk-amount-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #c7d2fe;
  margin-bottom: 6px;
}

.kiosk-amount-hero {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
}

.kiosk-currency {
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 2px;
  vertical-align: super;
}

.kiosk-price-badge {
  margin-top: 10px;
  display: inline-block;
}

.kiosk-price-badge .badge-standard,
.kiosk-price-badge .badge-bulk {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Body Padding */
.kiosk-body {
  padding: 22px 20px;
  background: #ffffff;
}

/* 3. Payment Method Chips */
.kiosk-chips-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 12px;
}

.kiosk-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.kiosk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.kiosk-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.chip-dot.gpay { background: #4285f4; }
.chip-dot.phonepe { background: #5f259f; }
.chip-dot.paytm { background: #00baf2; }
.chip-dot.card { background: #6366f1; }
.chip-dot.net { background: #10b981; }

/* 2. Large Primary CTA Payment Button */
.kiosk-btn-wrapper {
  margin-bottom: 0;
}

.kiosk-cta-btn {
  width: 100%;
  min-height: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  font-family: inherit;
}

.kiosk-cta-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(79, 70, 229, 0.5);
}

.kiosk-cta-btn:active {
  transform: scale(0.98);
}

.kiosk-cta-subtext {
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* 5. Outlined Secondary Cash Button */
.kiosk-cash-wrapper {
  margin-top: 14px;
}

.kiosk-cash-btn {
  width: 100%;
  min-height: 48px;
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  color: #1e293b !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.kiosk-cash-btn:hover {
  border-color: #64748b !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* 6. Security Features Guarantee Footer */
.kiosk-features-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kiosk-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.kiosk-feat-icon {
  font-size: 0.9rem;
}

.rpc-spinner {
  display:inline-block; width:16px; height:16px;
  border:2px solid rgba(255,255,255,0.3);
  border-top-color:#fff; border-radius:50%;
  animation:rpc-spin .6s linear infinite;
}
@keyframes rpc-spin { to { transform:rotate(360deg); } }

/* --- QR Modal (reuse existing) --- */
.qr-modal .modal-body { text-align:center; }

/* --- Back Button --- */
.back-btn {
  display:inline-flex; align-items:center; gap:4px;
  padding:8px 0; font-size:0.82em; color:#6b7280; cursor:pointer;
  background:none; border:none; font-family:inherit;
  margin-bottom:12px; transition:color .15s;
}
.back-btn:hover { color:#2563eb; }

/* --- Animations --- */
/* --- Main Container --- */
.app-main {
  max-width:560px; margin:0 auto; padding:0 0 20px;
}

/* --- Floating Cards --- */
.card {
  background:#fff;
  border-radius:22px;
  box-shadow:0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  padding:22px 20px;
  margin-bottom:16px;
  border:1px solid rgba(0,0,0,0.03);
  transition:box-shadow .25s, transform .25s;
}
.card:active { transform:scale(0.995); }
.card h2 {
  font-size:1.05em; font-weight:700; margin:0 0 18px;
  color:#111827;
}
.card h3 {
  font-size:0.92em; font-weight:600; margin:0 0 10px;
  color:#1f2937;
}

/* --- Form Groups --- */
.form-group { margin-bottom:18px; }
.form-group label {
  display:block; font-size:0.82em; font-weight:600;
  color:#374151; margin-bottom:6px;
}
.form-group input[type="text"],
.form-group input[type="file"] {
  width:100%;
  padding:12px 14px;
  border:1.5px solid #e5e7eb;
  border-radius:14px;
  font-size:0.92em;
  font-family:inherit;
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
  outline:none;
}
.form-group input[type="text"]:focus {
  border-color:#16A34A;
  box-shadow:0 0 0 3px rgba(22,163,74,0.1);
}
.form-group input[type="file"] { padding:10px 14px; cursor:pointer; }
.form-group input[type="file"]::file-selector-button {
  padding:8px 14px; border:none; border-radius:10px;
  background:#16A34A; color:#fff; font-weight:600;
  font-size:0.82em; cursor:pointer; margin-right:10px;
  font-family:inherit; transition:background .2s;
}
.form-group input[type="file"]::file-selector-button:hover { background:#15803d; }
.form-group small {
  display:block; font-size:0.75em; color:#9ca3af; margin-top:5px;
}

/* --- Radio Group --- */
.radio-group {
  display:flex; gap:10px;
}
.radio-label {
  flex:1; cursor:pointer;
}
.radio-label input { position:absolute; opacity:0; pointer-events:none; }
.radio-box {
  display:block;
  padding:12px 10px;
  border:1.5px solid #e5e7eb;
  border-radius:14px;
  text-align:center;
  font-size:0.82em;
  font-weight:600;
  transition:all .2s;
  background:#fff;
}
.radio-label input:checked + .radio-box {
  border-color:#16A34A;
  background:rgba(22,163,74,0.06);
  color:#16A34A;
  box-shadow:0 0 0 1px rgba(22,163,74,0.15);
}
.radio-box.bw { color:#374151; }
.radio-box.color { color:#374151; }
.radio-label input:checked + .radio-box.bw,
.radio-label input:checked + .radio-box.color { color:#16A34A; }

/* --- Buttons --- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; height:50px; min-height:50px; max-height:50px;
  padding:0 18px; border:none; border-radius:14px;
  font-size:0.9em; font-weight:600;
  cursor:pointer; transition:all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family:inherit; text-align:center; white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  -webkit-tap-highlight-color:transparent;
  user-select:none; position:relative; overflow:hidden;
  box-sizing:border-box;
}
.btn:active { transform:scale(0.98); }
.btn:disabled { opacity:0.5; cursor:default; transform:none; box-shadow:none; }
.btn svg, .btn i { width:18px; height:18px; flex-shrink:0; }
.btn-primary {
  background:#2563eb; color:#fff;
  box-shadow:0 2px 10px rgba(37,99,235,0.22);
}
.btn-primary:hover { background:#1d4ed8; box-shadow:0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:active { box-shadow:0 2px 6px rgba(37,99,235,0.2); }
.btn-secondary {
  background:#f3f4f6; color:#374151;
  border:1.5px solid #e5e7eb;
}
.btn-secondary:hover { background:#e5e7eb; }
.btn-success {
  background:#16a34a; color:#fff;
  box-shadow:0 2px 10px rgba(22,163,74,0.22);
}
.btn-danger {
  background:#ef4444; color:#fff;
  box-shadow:0 2px 10px rgba(239,68,68,0.2);
}
.btn-sm {
  display:inline-flex; width:auto; height:38px; min-height:38px;
  padding:0 14px; font-size:0.8em; border-radius:12px;
}
.btn-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px;
  padding:0; font-size:1.1em;
}

/* --- Sticky Bottom Action Bar --- */
.sticky-bottom {
  position:fixed; bottom:0; left:0; right:0; z-index:40;
  padding:12px 16px 16px;
  background:linear-gradient(to top, rgba(255,255,255,0.98) 60%, transparent);
  pointer-events:none;
}
.sticky-bottom > * { pointer-events:auto; }
.sticky-bottom .btn {
  max-width:560px; margin:0 auto;
  box-shadow:0 -4px 20px rgba(0,0,0,0.06), 0 4px 14px rgba(22,163,74,0.25);
}

/* --- Language Toggle --- */
.lang-toggle {
  padding:6px 14px; border:1.5px solid #16A34A; border-radius:20px;
  background:rgba(22,163,74,0.06); color:#16A34A;
  font-weight:600; cursor:pointer; font-size:0.78em;
  font-family:inherit; transition:all .2s;
}
.lang-toggle:hover { background:#16A34A; color:#fff; }

/* --- Mode Toggle --- */
.mode-group {
  display:flex; gap:8px; margin-bottom:18px;
  background:#f3f4f6; border-radius:14px; padding:4px;
}
.mode-btn {
  flex:1; padding:10px 12px;
  border:none; border-radius:12px;
  font-size:0.82em; font-weight:600;
  cursor:pointer; transition:all .25s;
  font-family:inherit;
  background:transparent; color:#6b7280;
}
.mode-btn.active {
  background:#fff; color:#16A34A;
  box-shadow:0 1px 4px rgba(0,0,0,0.08);
}

/* --- File List --- */
.file-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; margin-bottom:8px;
  background:#f9fafb; border-radius:14px;
  border:1px solid #f3f4f6;
  transition:background .2s;
}
.file-item:last-child { margin-bottom:0; }
.file-icon { font-size:1.3em; flex-shrink:0; }
.file-info { flex:1; min-width:0; }
.file-name { font-size:0.82em; font-weight:600; color:#1f2937; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-meta { font-size:0.72em; color:#9ca3af; margin-top:1px; }
.file-badge {
  display:inline-block; padding:2px 8px; border-radius:8px;
  font-size:0.68em; font-weight:600;
}
.file-badge-pdf { background:#fef3c7; color:#b45309; }
.file-badge-image { background:#dbeafe; color:#2563eb; }
.file-badge-doc { background:#ede9fe; color:#7c3aed; }
.file-badge-cropped {
  display:inline-block; padding:1px 7px; border-radius:6px;
  font-size:0.62em; font-weight:600; background:#d1fae5; color:#059669; margin-left:4px;
}

/* --- Summary --- */
.summary-box {
  background:#f9fafb; border-radius:16px; padding:16px;
}
.summary-row {
  display:flex; justify-content:space-between;
  padding:8px 0; font-size:0.85em;
  border-bottom:1px solid #f3f4f6;
}
.summary-row:last-child { border-bottom:none; }
.summary-row.total {
  font-weight:700; font-size:0.95em; color:#16A34A;
  border-top:1.5px solid #e5e7eb; margin-top:4px; padding-top:10px;
}

/* --- Status --- */


/* --- Status --- */
.status-badge {
  display:inline-block; padding:6px 14px; border-radius:20px;
  font-size:0.82em; font-weight:600;
}
.status-badge.pending { background:#fef3c7; color:#b45309; }
.status-badge.paid { background:#dbeafe; color:#2563eb; }
.status-badge.accepted { background:#d1fae5; color:#059669; }
.status-badge.rejected { background:#fee2e2; color:#dc2626; }

/* Status Page Redesign */
.status-card-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  margin-bottom: 20px;
}

.token-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 18px;
}
.token-badge {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  font-family: monospace, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.btn-copy-token {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-token:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Stepper Progress Bar */
.stepper-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 24px 0 30px;
  padding: 0 10px;
}
.stepper-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}
.stepper-line-active {
  position: absolute;
  top: 18px;
  left: 30px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  z-index: 2;
  transition: width 0.4s ease;
  width: 33%;
}
.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.step-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.step-item.completed .step-icon-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}
.step-item.active .step-icon-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.step-title {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}
.step-item.completed .step-title { color: #15803d; }
.step-item.active .step-title { color: #1d4ed8; font-weight: 700; }

/* Cash & Online Notice Boxes */
.notice-box {
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
  position: relative;
}
.notice-box.cash {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.notice-box.online {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.notice-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.notice-box-body {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4b5563;
}
.notice-amount-pill {
  display: inline-block;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 6px;
}

.live-sync-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.pulse-dot-green {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 1.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.success-message {
  background:#d1fae5; color:#065f46;
  padding:14px 16px; border-radius:14px;
  font-size:0.88em; font-weight:600; text-align:center;
  border:1px solid #a7f3d0;
}
.error {
  color:#dc2626; font-size:0.82em; text-align:center; padding:8px;
}

/* --- Order ID --- */
.order-id {
  font-size:0.82em; color:#6b7280; margin-bottom:10px;
  word-break:break-all;
}

/* --- QR --- */
.qr-container {
  display:flex; justify-content:center; margin:12px 0;
}
.qr-container img {
  max-width:220px; border-radius:14px;
  box-shadow:0 2px 12px rgba(0,0,0,0.08);
}

/* --- ID Copy Cards --- */
.idc-card {
  flex:1; border:2px dashed #d1d5db; border-radius:16px;
  padding:16px 8px; text-align:center; cursor:pointer;
  transition:all .2s; min-height:110px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.idc-card:hover { border-color:#16A34A; background:rgba(22,163,74,0.03); }
.idc-card.has-img { border-style:solid; border-color:#16A34A; background:rgba(22,163,74,0.04); }
.idc-card-img { max-width:100%; max-height:90px; border-radius:8px; }
.idc-card-empty { font-size:0.82em; color:#9ca3af; }
.idc-card-empty .icon { font-size:2em; display:block; margin-bottom:4px; }

/* --- ID Copy Auto Banner Prompt --- */
.idc-banner {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  animation: idcBannerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes idcBannerSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.idc-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.idc-banner-icon {
  font-size: 1.6em;
  line-height: 1;
}
.idc-banner-title {
  font-size: 0.95em;
  font-weight: 700;
  color: #1e40af;
}
.idc-banner-sub {
  font-size: 0.8em;
  color: #3b82f6;
  margin-top: 2px;
  line-height: 1.3;
}
.idc-banner-close {
  background: none;
  border: none;
  font-size: 1.2em;
  color: #93c5fd;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s;
}
.idc-banner-close:hover {
  color: #1e40af;
}
.idc-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.idc-banner-btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.idc-banner-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.idc-banner-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.idc-banner-btn-secondary:hover {
  background: #f3f4f6;
}

/* --- 3D ID Card Flip & Bounce Animations --- */
.animate-bounce-in {
  animation: idcBounceIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes idcBounceIn {
  0% { opacity: 0; transform: scale(0.7) translateY(20px); }
  70% { opacity: 1; transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.idc-3d-scene {
  perspective: 1000px;
  width: 100%;
  margin-bottom: 14px;
}
.idc-3d-card-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.idc-3d-card-wrapper.flipped {
  transform: rotateY(180deg);
}
.idc-3d-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 2px dashed #cbd5e1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.idc-3d-side:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.02);
  box-shadow: 0 12px 28px rgba(37,99,235,0.12);
}
.idc-3d-side.has-img {
  border-style: solid;
  border-color: #16a34a;
  background: rgba(22,163,74,0.03);
}
.idc-3d-side-back {
  transform: rotateY(180deg);
}

.idc-flip-toggle-btn {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.82em;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.idc-flip-toggle-btn:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* --- ID Copy Queue --- */
.queue-item {
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; background:#f9fafb;
  border-radius:12px; margin-bottom:6px;
  border:1px solid #f3f4f6;
}
.queue-remove {
  background:transparent; border:none; color:#ef4444;
  cursor:pointer; font-size:1em; padding:4px;
  line-height:1; border-radius:6px;
}
.queue-remove:hover { background:#fee2e2; }

/* --- ID Copy Modal --- */
.idc-crop-btn {
  background:#1f2937; border:none; color:white; padding:10px 16px;
  border-radius:10px; font-size:0.82em; cursor:pointer;
  font-family:inherit; transition:all .15s;
}
.idc-crop-btn:active { transform:scale(0.96); }

/* --- A4 Preview --- */
.preview-btn {
  padding:7px 12px; border:1.5px solid #e5e7eb;
  border-radius:10px; background:#fff; color:#374151;
  font-size:0.75em; font-weight:600; cursor:pointer;
  font-family:inherit; transition:all .15s;
}
.preview-btn:hover { border-color:#16A34A; color:#16A34A; }
.idc-preview-img {
  position:absolute; cursor:grab; user-select:none;
  border-radius:3px; box-shadow:0 1px 8px rgba(0,0,0,0.1);
}

/* --- ID Copy 4-Step Wizard Styles --- */
.idc-slot-card {
  position: relative;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.idc-slot-card:hover {
  border-color: #2563eb;
  background: rgba(37,99,235,0.02);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.1);
}
.idc-slot-card.has-img {
  border-style: solid;
  border-color: #16a34a;
  background: rgba(22,163,74,0.03);
}
.idc-slot-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.68em;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.idc-slot-card.has-img .idc-slot-badge {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.idc-slot-empty .icon {
  font-size: 1.8em;
  display: block;
  margin-bottom: 2px;
}
.idc-slot-img {
  max-width: 100%;
  max-height: 100px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.idc-slot-pill {
  font-size: 0.72em;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 6px;
}
.idc-slot-card.has-img .idc-slot-pill {
  color: #16a34a;
}


/* --- Crop Modal Shared --- */
.crop-overlay {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.65); z-index:100;
  display:none; align-items:center; justify-content:center;
  backdrop-filter:blur(4px);
  animation:fadeIn .2s ease-out;
}
.crop-card {
  background:#1a1a2e; border-radius:16px; padding:16px;
  max-width:540px; width:94%; color:white;
  max-height:98vh; overflow-y:auto;
  animation:slideUp .25s ease-out;
}
.crop-card h3 { margin:0 0 8px; font-size:1em; color:white; }

/* --- Printer Status --- */
.printer-status {
  padding:10px 14px; border-radius:12px;
  font-size:0.85em; margin-bottom:6px;
  background:#d1fae5; color:#065f46;
  border:1px solid #a7f3d0;
}

/* --- Table --- */
.table-responsive { overflow-x:auto; -webkit-overflow-scrolling:touch; }
table {
  width:100%; border-collapse:collapse; font-size:0.78em;
}
thead th {
  text-align:left; padding:8px 6px; font-size:0.72em;
  font-weight:600; color:#6b7280; text-transform:uppercase;
  letter-spacing:0.03em; border-bottom:1px solid #f3f4f6;
}
tbody td { padding:8px 6px; border-bottom:1px solid #f3f4f6; color:#374151; }
.cash-row { background:#fffbeb; }

/* --- Badges --- */
.cash-badge {
  display:inline-block; padding:2px 8px; border-radius:10px;
  font-size:0.7em; font-weight:600; background:#fef3c7; color:#b45309;
}
.razorpay-badge {
  display:inline-block; padding:2px 8px; border-radius:10px;
  font-size:0.7em; font-weight:600; background:#ede9fe; color:#7c3aed;
}
.no-action { color:#d1d5db; }

/* --- Admin --- */
.admin-bar {
  display:flex; gap:8px; margin-bottom:14px;
}
.admin-bar .btn { flex:1; }
.public-url-group { margin-bottom:14px; }
.url-input-row { display:flex; gap:8px; }
.url-input-row input {
  flex:1; padding:10px 14px; border:1.5px solid #e5e7eb;
  border-radius:12px; font-size:0.85em; font-family:inherit; outline:none;
}
.url-input-row input:focus { border-color:#16A34A; box-shadow:0 0 0 3px rgba(22,163,74,0.1); }

.qr-display { text-align:center; padding:16px; }
.qr-display img { max-width:240px; border-radius:12px; }
.qr-display h3 { font-size:1em; margin:0 0 12px; }

/* --- Responsive --- */
@media (max-width:480px) {
  .app-main { padding:12px 10px 90px; }
  .card { padding:18px 16px; border-radius:18px; }
  .btn { padding:13px 16px; font-size:0.9em; border-radius:14px; }
  .radio-box { padding:10px 8px; font-size:0.78em; }
  .form-group input[type="text"],
  .form-group input[type="file"] { padding:11px 12px; }
  .app-header { padding:10px 12px; }
  .app-header h1 { font-size:1.05em; }
  .sticky-bottom { padding:10px 12px 14px; }
}

/* --- Notification Toast --- */
.toast-container {
  position:fixed; top:16px; right:16px; z-index:9999;
  display:flex; flex-direction:column; gap:8px;
  max-width:360px; width:calc(100% - 32px);
  pointer-events:none;
}
.toast {
  background:#fff; border-radius:14px; padding:14px 16px;
  box-shadow:0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  display:flex; align-items:flex-start; gap:12px;
  transform:translateX(120%); opacity:0;
  transition:transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease-out;
  pointer-events:auto;
  border-left:3px solid #16A34A;
}
.toast.show { transform:translateX(0); opacity:1; }
.toast-icon { font-size:1.4em; flex-shrink:0; margin-top:1px; }
.toast-body { flex:1; min-width:0; }
.toast-title { font-size:0.85em; font-weight:700; color:#111827; margin-bottom:3px; }
.toast-detail { font-size:0.82em; color:#374151; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.toast-time { font-size:0.7em; color:#9ca3af; margin-top:3px; }

/* --- Notification Badge --- */
.notif-badge {
  position:absolute; top:-4px; right:-6px;
  min-width:16px; height:16px; padding:0 4px;
  background:#ef4444; color:#fff; border-radius:8px;
  font-size:0.6em; font-weight:700; line-height:16px;
  text-align:center; pointer-events:none;
  animation:notifPop .3s cubic-bezier(.22,1,.36,1);
}
@keyframes notifPop {
  0% { transform:scale(0); opacity:0; }
  60% { transform:scale(1.25); }
  100% { transform:scale(1); opacity:1; }
}

/* --- Settings Toggle --- */
.settings-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0 0; border-top:1px solid #f3f4f6; margin-top:14px;
}
.toggle-label {
  display:flex; align-items:center; gap:8px;
  font-size:0.85em; font-weight:600; color:#374151;
}
.toggle-switch { cursor:pointer; user-select:none; }
.toggle-track {
  display:block; width:44px; height:24px;
  background:#d1d5db; border-radius:12px;
  position:relative; transition:background .25s;
}
.toggle-thumb {
  display:block; width:20px; height:20px;
  background:#fff; border-radius:50%;
  position:absolute; top:2px; left:2px;
  transition:transform .25s cubic-bezier(.22,1,.36,1);
  box-shadow:0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch.active .toggle-track { background:#16A34A; }
.toggle-switch.active .toggle-thumb { transform:translateX(20px); }

/* ============================================
   OCV CROP STYLES (kept intact)
   ============================================ */
.ocv-btn {
  background:#16213e; border:none; color:white; padding:10px 14px;
  border-radius:6px; font-size:0.88em; cursor:pointer; transition:all 0.1s;
  font-family:inherit; white-space:nowrap; user-select:none; -webkit-tap-highlight-color:transparent;
}
.ocv-btn:hover { filter:brightness(1.2); }
.ocv-btn:active { transform:scale(0.96); }

.ocv-filter-btn {
  background:transparent; border:1px solid #444; color:#aaa; padding:7px 12px;
  border-radius:16px; font-size:0.78em; cursor:pointer; transition:all 0.15s;
  font-family:inherit; user-select:none; -webkit-tap-highlight-color:transparent;
}
.ocv-filter-btn:hover { border-color:#1a73e8; color:white; }
.ocv-filter-btn.active { background:#1a73e8; border-color:#1a73e8; color:white; font-weight:600; }

/* CamScanner-style filter thumbnail bar */
.ocv-filter-bar {
  display:flex; gap:6px; padding:8px 0; overflow-x:auto;
  justify-content:center; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.ocv-filter-bar::-webkit-scrollbar { display:none; }
.ocv-filter-thumb {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  cursor:pointer; flex-shrink:0; transition:all 0.15s;
}
.ocv-filter-thumb canvas {
  border:2px solid transparent; border-radius:6px; transition:border-color 0.15s;
}
.ocv-filter-thumb.active canvas {
  border-color:#16A34A;
}
.ocv-filter-label {
  font-size:0.65em; color:#aaa; text-align:center; white-space:nowrap;
}
.ocv-filter-thumb.active .ocv-filter-label {
  color:#16A34A; font-weight:600;
}

.ocv-header-controls { display:flex; align-items:center; gap:4px; }
.ocv-zoom-btn { min-width:36px; text-align:center; font-size:1.1em !important; padding:6px 10px !important; }
.ocv-toolbar { display:flex; gap:6px; justify-content:center; padding:6px 0; }
.ocv-action-bar { display:flex; gap:6px; justify-content:center; padding:6px 0; }
.ocv-cancel { background:#6c757d !important; flex:1; font-weight:500; }
.ocv-preview { background:#1a73e8 !important; flex:1; font-weight:700; }
.ocv-crop-btn { background:#28a745 !important; flex:1; font-weight:700; }

@media (max-width:480px) {
  .ocv-btn { padding:12px 10px; font-size:0.85em; min-height:44px; }
  .ocv-filter-btn { padding:8px 10px; font-size:0.75em; min-height:36px; }
  .ocv-toolbar { flex-wrap:wrap; gap:5px; }
  .ocv-toolbar .ocv-btn { flex:1 1 40%; min-width:60px; }
  .ocv-action-bar { gap:5px; }
  .ocv-action-bar .ocv-btn { min-height:48px; font-size:0.95em; }
}

/* --- Animations --- */
@keyframes fadeSlideIn {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes highlightPulse {
  0% { background:#f0fdf4; }
  50% { background:#dcfce7; }
  100% { background:#f0fdf4; }
}
.order-new { animation:fadeSlideIn .4s ease-out; }
.order-new td:first-child { position:relative; }
.order-new td:first-child::before {
  content:''; position:absolute; left:0; top:0; bottom:0;
  width:3px; background:#16A34A; border-radius:0 2px 2px 0;
}

/* --- Top Notification Bar --- */
.notif-bar {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 40px 10px 16px; position:relative;
  background:#fef9e7; color:#7c5e00; font-size:0.82em; line-height:1.5;
  border-bottom:1px solid #f0e6c0;
}
.notif-bar .notif-text { text-align:center; }
.notif-bar .notif-close {
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:#7c5e00; cursor:pointer;
  width:28px; height:28px; display:flex; align-items:center; justify-content:center;
  border-radius:6px; font-size:1.1em; font-family:inherit; transition:background .15s;
  padding:0; line-height:1;
}
.notif-bar .notif-close:hover { background:rgba(0,0,0,0.08); }
@media (max-width:480px) {
  .notif-bar { font-size:0.75em; padding:8px 36px 8px 10px; gap:4px; }
}

/* --- Loading Spinner --- */
.loading-overlay { animation:fadeIn .3s; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* --- Scan Queue Grid --- */
.scan-queue-grid {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:10px;
  padding:4px 0 16px; max-height:30vh; overflow-y:auto;
}
.sq-card {
  position:relative; border-radius:12px; overflow:hidden;
  background:#f3f4f6; aspect-ratio:3/4;
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  border:2px solid transparent; transition:border .15s;
}
.sq-card:active { border-color:#16A34A; }
.sq-thumb { width:100%; height:100%; }
.sq-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.sq-page {
  position:absolute; bottom:6px; left:6px;
  background:rgba(0,0,0,0.65); color:#fff;
  font-size:0.7em; font-weight:700;
  width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.sq-delete {
  position:absolute; top:4px; right:4px;
  background:rgba(0,0,0,0.5); color:#fff; border:none;
  width:22px; height:22px; border-radius:50%;
  font-size:0.9em; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.sq-delete:hover { background:rgba(220,38,38,0.8); }
.sq-filter {
  position:absolute; top:6px; left:6px;
  background:rgba(22,163,74,0.85); color:#fff;
  font-size:0.55em; font-weight:700; text-transform:uppercase;
  padding:2px 6px; border-radius:4px; letter-spacing:0.3px;
}

/* --- Scan Big Preview --- */
.scan-preview-big {
  width:100%; max-height:55vh; min-height:200px; border-radius:12px; overflow:hidden;
  background:#111827; margin-bottom:12px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(0,0,0,0.25);
  border:2px solid #16A34A;
}
.scan-preview-big img {
  width:100%; height:100%; object-fit:contain; display:block;
}
.scan-preview-big:empty { display:none; }

/* --- Full-screen Scan Zoom --- */
.scan-zoom-modal {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.95); z-index:10000;
  display:flex; align-items:center; justify-content:center;
  animation:fadeIn .2s;
}
.scan-zoom-modal.hidden { display:none; }
.scan-zoom-modal img {
  max-width:95vw; max-height:90vh; object-fit:contain;
  border-radius:4px;
  touch-action:pinch-zoom;
}
.scan-zoom-close {
  position:absolute; top:12px; right:16px;
  color:#fff; font-size:2em; cursor:pointer;
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.15); border-radius:50%;
  transition:background .15s;
}
.scan-zoom-close:hover { background:rgba(255,255,255,0.3); }

/* --- Ultra-Compact Settings Layout for Mobile --- */
@media (max-width: 640px) {
  .qp-wrap {
    padding: 0 10px 90px;
  }
  .qp-doc-card {
    margin: 8px 0 10px;
    border-radius: 16px;
  }
  .qp-doc-preview {
    padding: 10px;
    min-height: 110px;
    border-radius: 16px;
  }
  .qp-doc-preview img {
    max-height: 115px;
  }
  .qp-doc-label {
    padding: 10px;
    font-size: 0.76em;
  }
  .btn-preview-prominent {
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
    font-size: 0.82em !important;
  }
  .qp-card {
    padding: 11px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
  }
  .qp-card-title {
    margin-bottom: 8px;
    font-size: 0.82em;
  }
  .qp-opt {
    padding: 10px 11px;
    border-radius: 12px;
  }
  .qp-opt-label {
    font-size: 0.82em;
  }
  .qp-opt-sub {
    font-size: 0.68em;
  }
  .qp-copies-btn {
    width: 30px;
    height: 30px;
  }
  .qp-copies-val {
    min-width: 26px;
    font-size: 0.95em;
  }
}

/* ========================================================
   MODERN 4-STEP UI REDESIGN STYLES (MATCHING SCREENSHOTS)
   ======================================================== */

/* --- Top Header Rate Banner --- */
.top-rate-banner {
  background: #0f172a;
  padding: 8px 16px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}
.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.rate-pill.bw {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
}
.rate-pill.color {
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(217, 70, 239, 0.4);
}

/* --- Universal 4-Step Stepper Header --- */
.flow-stepper-container {
  max-width: 440px;
  margin: 6px auto 10px;
  padding: 0 14px;
}
.flow-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.flow-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}
.flow-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
}
.flow-step-item.completed .flow-step-circle {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.flow-step-item.active .flow-step-circle {
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.25), 0 4px 14px rgba(139, 92, 246, 0.35);
  transform: scale(1.05);
}
.flow-step-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 4px;
  transition: color 0.2s;
}
.flow-step-item.active .flow-step-label {
  color: #7c3aed;
  font-weight: 800;
}
.flow-step-item.completed .flow-step-label {
  color: #1e293b;
}
.flow-step-line {
  position: absolute;
  top: 19px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 2px;
}
.flow-step-line-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #d946ef);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* --- Main Flow Card & Container --- */
.flow-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 12px 14px;
}
.flow-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px -4px rgba(0,0,0,0.06), 0 4px 10px -2px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  position: relative;
}

/* --- Step 1: Upload Screen Styles --- */
.upload-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f3ff;
  color: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.12);
}
.gradient-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  margin: 0 0 3px;
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.upload-sub {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  margin: 0 0 8px;
  font-weight: 500;
}
.format-pill-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.format-pill {
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
}
.format-pill.pdf {
  border: 1.5px solid #fecdd3;
  color: #e11d48;
  background: #fff1f2;
}
.format-pill.jpg {
  border: 1.5px solid #bbf7d0;
  color: #16a34a;
  background: #f0fdf4;
}
.format-pill.png {
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
}

/* Upload Dropzone */
.dropzone-box {
  border: 2px dashed #c4b5fd;
  border-radius: 16px;
  padding: 14px 12px;
  background: #faf5ff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dropzone-box:active, .dropzone-box.dragover {
  background: #f3e8ff;
  border-color: #8b5cf6;
  transform: scale(0.99);
}
.dropzone-prompt {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7c3aed;
  margin: 0;
}
.choose-files-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 9px 24px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 70, 239, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.choose-files-btn:active {
  transform: scale(0.96);
}

/* Modern ID Card Option Box */
.id-card-option-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.id-card-option-box:active {
  transform: scale(0.98);
}
.id-card-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.id-card-info-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.id-card-info-sub {
  font-size: 0.72rem;
  color: #0369a1;
  margin-top: 1px;
  font-weight: 500;
}
.id-card-arrow {
  margin-left: auto;
  color: #0284c7;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Security Note */
.security-note-text {
  text-align: center;
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

/* --- Document Preview Sheets & Framing --- */
.screen-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen-header-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 8px;
}
.preview-sheet-frame {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.preview-sheet-paper {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  padding: 4px;
  width: auto;
  max-width: 290px;
  max-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.preview-sheet-paper img {
  max-width: 100%;
  max-height: 43vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* --- Quick Edit Toolbar (Rotate & Crop directly under preview) --- */
.quick-edit-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
}
.quick-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.quick-tool-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.quick-tool-btn:active {
  transform: scale(0.95);
  background: #e2e8f0;
}

/* --- Page Navigator [ < ] Page 1 / 2 [ > ] --- */
.page-navigator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 14px;
}
.page-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-weight: 800;
  font-size: 1.1rem;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.page-nav-btn:active {
  transform: scale(0.94);
  background: #f8fafc;
}
.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-nav-indicator {
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
  min-width: 90px;
  text-align: center;
}

/* --- Action Buttons (Large Green & White) --- */
.btn-action-green {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 800;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-action-green:active {
  transform: scale(0.98);
  background: #15803d;
}

.btn-action-white {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-action-white:active {
  transform: scale(0.98);
  background: #f8fafc;
}

.btn-sub-caption {
  font-size: 0.74rem;
  color: #64748b;
  text-align: center;
  margin: 6px 0 12px;
  line-height: 1.35;
}

.dual-button-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.dual-button-row .btn-action-white {
  flex: 1;
}
.dual-button-row .btn-action-green {
  flex: 1.4;
}

/* --- Step 4: Pay Screen Options --- */
.print-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 18px;
}
.print-opt-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.print-opt-card.selected {
  border-color: #8b5cf6;
  background: #faf5ff;
  box-shadow: 0 0 0 1px #8b5cf6, 0 4px 14px rgba(139, 92, 246, 0.12);
}
.print-opt-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.print-opt-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}
.print-opt-rate {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
.print-opt-card.selected .print-opt-rate {
  color: #7c3aed;
}

/* Copies Control */
.copies-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin: 14px 0 16px;
}
.copies-control-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.copies-counter-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 8px;
}
.copies-btn-square {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.copies-count-num {
  font-weight: 900;
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
  color: #0f172a;
}

/* Calculation & Summary Rows */
.price-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
}
.price-breakdown-row .val {
  color: #0f172a;
  font-weight: 700;
}
.price-divider-line {
  height: 1px;
  background: #e2e8f0;
  margin: 10px 0;
}
.total-highlight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.total-highlight-label {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}
.total-highlight-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #8b5cf6;
  display: flex;
  align-items: center;
}

/* Customer Name Input Box */
.customer-name-field {
  margin: 14px 0 6px;
}
.customer-name-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.customer-name-field input:focus {
  border-color: #8b5cf6;
}

/* --- Which Pages to Print Section in Step 3 --- */
.which-pages-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.which-pages-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.which-pages-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.which-page-tab {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.which-page-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 70, 239, 0.35);
}
.which-pages-sub {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.which-pages-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.88rem;
  font-family: inherit;
  margin-top: 8px;
  box-sizing: border-box;
  outline: none;
}
.which-pages-input:focus {
  border-color: #8b5cf6;
}

/* ===== Step 2 Filter Toggle (Original / Magic Color) ===== */
.edit-filter-section {
  margin: 8px 0 12px;
}
.edit-filter-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.edit-filter-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.edit-filter-tab {
  padding: 10px 8px;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.edit-filter-tab:hover {
  border-color: #a78bfa;
  background: #faf5ff;
}
.edit-filter-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 70, 239, 0.35);
}
