/* ==========================================================================
   POP Style Payment QR Studio - Exact Screenshot Replica & Luxury Finishes
   ========================================================================== */

:root {
  --font-serif-italic: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Theme Defaults: Exact Sampled POP Vermilion */
  --brand-color: #D23701;
  --brand-color-light: #F15412;
  --brand-color-dark: #8E1F00;
  --brand-gradient: radial-gradient(circle at 35% 30%, #F15412 0%, #D23701 55%, #8E1F00 100%);
  --sidebar-bg: #121316;
  --stage-bg: #0B0B0D;
}

/* Color Themes */
.theme-whtlbl,
.theme-pop-vermilion {
  --brand-color: #D23701;
  --brand-color-light: #F15412;
  --brand-color-dark: #8E1F00;
  --brand-gradient: radial-gradient(circle at 35% 30%, #F15412 0%, #D23701 55%, #8E1F00 100%);
}

.theme-neo-indigo {
  --brand-color: #4F46E5;
  --brand-color-light: #818CF8;
  --brand-color-dark: #312E81;
  --brand-gradient: radial-gradient(circle at 35% 30%, #818CF8 0%, #4F46E5 65%, #312E81 100%);
}

.theme-electric-violet {
  --brand-color: #9333EA;
  --brand-color-light: #C084FC;
  --brand-color-dark: #581C87;
  --brand-gradient: radial-gradient(circle at 35% 30%, #C084FC 0%, #9333EA 65%, #581C87 100%);
}

.theme-emerald-mint {
  --brand-color: #059669;
  --brand-color-light: #34D399;
  --brand-color-dark: #064E3B;
  --brand-gradient: radial-gradient(circle at 35% 30%, #34D399 0%, #059669 65%, #064E3B 100%);
}

.theme-obsidian-black {
  --brand-color: #18181B;
  --brand-color-light: #3F3F46;
  --brand-color-dark: #09090B;
  --brand-gradient: radial-gradient(circle at 35% 30%, #3F3F46 0%, #18181B 65%, #09090B 100%);
}

.theme-sapphire-blue {
  --brand-color: #0284C7;
  --brand-color-light: #38BDF8;
  --brand-color-dark: #075985;
  --brand-gradient: radial-gradient(circle at 35% 30%, #38BDF8 0%, #0284C7 65%, #075985 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--stage-bg);
  color: #F3F4F6;
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   APP LAYOUT: SIDEBAR + LIVE STAGE
   -------------------------------------------------------------------------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   LEFT SIDEBAR: CONTROLS & FORM
   ========================================================================== */
.control-sidebar {
  width: 440px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.8rem 3rem;
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sidebar-header {
  margin-bottom: 1.5rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-color-light);
  margin-bottom: 0.8rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-color);
  box-shadow: 0 0 8px var(--brand-color);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.sidebar-sub {
  font-size: 0.82rem;
  color: #9CA3AF;
  line-height: 1.4;
}

/* Preset Strip */
.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chip-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E5E7EB;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-preset:hover,
.chip-preset.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--brand-color);
  color: #FFFFFF;
}

/* Form Sections */
.form-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.4rem;
}

.section-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-color-light);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.field-item {
  margin-bottom: 1.1rem;
}

.field-item:last-child {
  margin-bottom: 0;
}

.field-item label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E5E7EB;
  margin-bottom: 0.35rem;
}

.field-item .req {
  color: #EF4444;
}

.field-item .hint {
  display: block;
  font-size: 0.7rem;
  color: #6B7280;
  font-weight: 400;
  margin-top: 0.1rem;
}

.input-with-icon {
  position: relative;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px rgba(222, 59, 0, 0.2);
  background: rgba(0, 0, 0, 0.65);
}

.input-tag {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #9CA3AF;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.highlight-field {
  background: rgba(222, 59, 0, 0.06);
  border: 1px solid rgba(222, 59, 0, 0.2);
  padding: 0.75rem;
  border-radius: 10px;
}

.highlight-field label {
  color: var(--brand-color-light);
}

/* File Drop Zone */
.file-drop-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

#avatarFileInput {
  display: none;
}

.file-drop-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.file-drop-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.file-name-info {
  font-size: 0.7rem;
  color: #6B7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Amount Mode Switch */
.amount-mode-switch {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.65rem;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #9CA3AF;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.amount-input-box {
  animation: fadeIn 0.2s ease;
}

.amount-input-box.hidden {
  display: none;
}

.currency-box {
  position: relative;
  display: flex;
  align-items: center;
}

.rupee-icon {
  position: absolute;
  left: 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-color);
}

.currency-box input {
  padding-left: 2.1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.chip-amt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E5E7EB;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-amt.active {
  background: var(--brand-color);
  color: #FFFFFF;
  border-color: var(--brand-color);
}

/* Color Picker Grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.color-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #D1D5DB;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.color-btn::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--btn-color);
  box-shadow: 0 0 6px var(--btn-color);
  flex-shrink: 0;
}

.color-btn:hover,
.color-btn.active {
  border-color: var(--brand-color);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.custom-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-color-row label {
  font-size: 0.75rem;
  color: #9CA3AF;
}

#customColorInput {
  -webkit-appearance: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
}

#customColorInput::-webkit-color-swatch {
  border: 1px solid #FFF;
  border-radius: 50%;
}

.hex-badge {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--brand-color-light);
}

.btn-clean-reset {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clean-reset:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

/* ==========================================================================
   RIGHT PREVIEW STAGE: EXACT SCREENSHOT REPLICA
   ========================================================================== */
.preview-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 3rem;
  background: var(--stage-bg);
  position: relative;
  overflow-x: hidden;
}

/* Stage Topbar */
.stage-topbar {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stage-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #9CA3AF;
}

.live-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.action-buttons-strip {
  display: flex;
  gap: 0.5rem;
}

.btn-stage-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stage-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-stage-action.primary {
  background: var(--brand-color);
  border-color: var(--brand-color);
  box-shadow: 0 4px 15px rgba(222, 59, 0, 0.35);
}

.btn-stage-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(222, 59, 0, 0.5);
}

/* --------------------------------------------------------------------------
   THE SCREEN CANVAS: EXACT PIXEL-PERFECT REPLICA OF REFERENCE POSTER
   -------------------------------------------------------------------------- */
.screen-canvas-container {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 9 / 16;
  position: relative;
  background: radial-gradient(circle at 50% 12%, #686973 0%, #303138 35%, #18191E 65%, #050507 100%);
  border-radius: 44px;
  padding: 1rem 1.4rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), inset 0 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* 1. Curved Perspective Wireframe Grid Ceiling */
.ceiling-wireframe-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 290px;
  pointer-events: none;
  z-index: 1;
}

/* 2. Top Luxury Header (THE WHITE LABEL COMPANY - Pure White with Vignette Backing) */
.pop-brand-top {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-vignette-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 64px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

.brand-pure-white-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #FFFFFF !important;
  text-align: center;
  margin: 0;
  padding: 0 0.5rem;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 14px rgba(0, 0, 0, 0.9);
}

/* 3. THE WHITE PAYMENT CARD (Exact Proportions & Radius) */
.pop-payment-card {
  width: 100%;
  max-width: 395px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 60%, #EFEFF4 100%);
  border-radius: 28px;
  padding: 1.8rem 1.4rem 1.5rem;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.95);
}

/* 3D Sphere Avatar Badge */
.card-avatar-wrap {
  margin-bottom: 0.65rem;
}

.avatar-sphere-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #FF7A3D 0%, #D23701 48%, #781A00 100%);
  box-shadow: 
    0 10px 22px rgba(210, 55, 1, 0.5),
    inset 0 3px 5px rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.avatar-sphere-text {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 800;
  font-size: 25px;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Card Client Name */
.card-client-name {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: #0E0F12;
  letter-spacing: -0.3px;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

/* Details Sub (Amount) */
.card-details-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-inter);
  font-size: 13.5px;
  color: #55555F;
  margin-bottom: 0.1rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-label {
  font-weight: 500;
  color: #6B7280;
}

.detail-val {
  font-weight: 600;
  color: #1F2937;
}

/* Hairline Divider */
.card-divider-line {
  width: 100%;
  height: 1px;
  background: #E5E7EB;
  margin: 0.75rem 0 0.9rem;
}

/* QR Code Section (Prominent, Edge-to-Edge) */
.card-qr-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.1rem;
}

.qr-canvas-wrapper {
  width: 280px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
}

.qr-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 4. Floating 3D Depth Discs / Coins (Exact Reference Positioning) */
.floating-coins-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.coin {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #FF7A3D 0%, #D23701 48%, #781A00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.65),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.coin span {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

/* Exact Reference Coordinates */
/* 1. Small sharp tilted coin under card center-left */
.coin-ref-1 {
  width: 42px;
  height: 42px;
  left: 35%;
  bottom: 122px;
  transform: rotate(-15deg);
}
.coin-ref-1 span { font-size: 19px; }

/* 2. Tiny sharp coin left edge */
.coin-ref-2 {
  width: 28px;
  height: 28px;
  left: 11%;
  bottom: 96px;
  transform: rotate(18deg);
}
.coin-ref-2 span { font-size: 13px; }

/* 3. Tiny sharp coin far left edge */
.coin-ref-3 {
  width: 24px;
  height: 24px;
  left: 1%;
  bottom: 160px;
  transform: rotate(-25deg);
}
.coin-ref-3 span { font-size: 11px; }

/* 4. Small coin lower-mid right */
.coin-ref-4 {
  width: 28px;
  height: 28px;
  right: 25%;
  bottom: 84px;
  transform: rotate(-10deg);
}
.coin-ref-4 span { font-size: 13px; }

/* 5. Tiny coin far right edge */
.coin-ref-5 {
  width: 22px;
  height: 22px;
  right: 5%;
  bottom: 68px;
  transform: rotate(20deg);
}
.coin-ref-5 span { font-size: 10px; }

/* 6. Large blurred disc bottom right foreground */
.coin-ref-6 {
  width: 76px;
  height: 76px;
  right: 17%;
  bottom: -22px;
  filter: blur(5px);
  transform: rotate(15deg);
  opacity: 0.9;
}
.coin-ref-6 span { font-size: 34px; }

/* 7. Large heavy blurred disc bottom center foreground */
.coin-ref-7 {
  width: 105px;
  height: 105px;
  left: 23%;
  bottom: -40px;
  filter: blur(10px);
  transform: rotate(-10deg);
  opacity: 0.95;
}
.coin-ref-7 span { font-size: 46px; }

/* 8. Oval tilted coin bottom left edge */
.coin-ref-8 {
  width: 46px;
  height: 28px;
  left: -12px;
  bottom: 25px;
  transform: rotate(-20deg);
  border-radius: 50%;
}
.coin-ref-8 span { font-size: 14px; }

/* 5. Protocol Inspector */
.protocol-inspector {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.proto-lbl {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.protocol-inspector code {
  font-family: monospace;
  font-size: 0.72rem;
  color: #A7F3D0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-micro-test {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-micro-test:hover {
  background: var(--brand-color);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(18, 19, 22, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--brand-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
  pointer-events: none;
}

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

/* Print Rules */
@media print {
  body {
    background: #FFFFFF !important;
  }
  .control-sidebar,
  .stage-topbar,
  .protocol-inspector,
  .toast,
  .ceiling-wireframe-grid,
  .floating-coins-layer,
  .pop-brand-top {
    display: none !important;
  }
  .preview-stage {
    padding: 0 !important;
    background: #FFFFFF !important;
  }
  .screen-canvas-container {
    box-shadow: none !important;
    background: #FFFFFF !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
  }
  .pop-payment-card {
    box-shadow: none !important;
    border: none !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .app-layout {
    flex-direction: column;
  }
  .control-sidebar {
    width: 100%;
    max-height: none;
    position: static;
  }
  .preview-stage {
    padding: 1.5rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .screen-canvas-container {
    max-width: 100%;
    border-radius: 28px;
    padding: 1.8rem 1rem 2.5rem;
  }
  .pop-payment-card {
    padding: 1.4rem 1rem 1.2rem;
  }
  .qr-canvas-wrapper {
    width: 240px;
    height: 240px;
  }
}
