:root {
  --primary: #4338ca;
  --secondary: #06b6d4;
  --dark: #0f172a;
}

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

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: var(--dark);
}

.controls-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-action {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action:hover {
  background: #1e293b;
}

/* Standard A4 Poster Canvas */
.poster-page {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  padding: 16mm 14mm;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 4px solid #0f172a;
  position: relative;
  overflow: hidden;
}

/* Decorative Header Banner */
.poster-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  color: #ffffff;
  padding: 24px 20px;
  border-radius: 14px;
  text-align: center;
}

.brand-badge {
  display: inline-block;
  background: #06b6d4;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.poster-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.poster-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 500;
}

.shop-name-banner {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
}

/* Main QR Area */
.qr-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 18px 0;
}

.qr-frame {
  border: 4px dashed #6366f1;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.qr-image {
  width: 230px;
  height: 230px;
  display: block;
}

.scan-cta {
  font-size: 1.4rem;
  font-weight: 800;
  color: #4338ca;
  margin-top: 12px;
}

.scan-subtext {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 600;
}

/* 3-Step Process */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.step-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.step-circle {
  width: 38px;
  height: 38px;
  background: #4338ca;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 8px;
}

.step-label {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 0.76rem;
  color: #64748b;
}

/* Pricing Table */
.rates-container {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.rates-title {
  background: #f1f5f9;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #334155;
  letter-spacing: 0.5px;
  text-align: center;
}

.rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.rate-cell {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.rate-cell:nth-child(odd) {
  border-right: 1px solid #f1f5f9;
}

.rate-name {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.rate-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* Footer */
.poster-footer {
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

/* Print Stylesheet for exact A4 rendering */
@media print {
  body {
    background: transparent;
    padding: 0;
  }
  .controls-bar {
    display: none !important;
  }
  .poster-page {
    border: none;
    box-shadow: none;
    width: 100%;
    height: 100%;
    padding: 10mm;
    page-break-after: always;
  }
}
