/* ===== SIGNUP PAGE ===== */
.signup-page {
  min-height: 100vh;
  background: var(--color-gray-100);
}

.signup-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.signup-logo img {
  height: 48px;
  width: auto;
}

.signup-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  transition: color var(--transition);
}

.signup-back:hover {
  color: var(--color-accent);
}

.signup-main {
  position: relative;
  padding-top: var(--header-height);
}

.signup-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.signup-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.12;
  filter: blur(2px);
}

.signup-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.85) 0%, rgba(245, 247, 250, 0.95) 40%, #f5f7fa 100%);
}

/* Form panel */
.signup-panel {
  position: relative;
  z-index: 1;
  padding: 48px 20px 64px;
  display: flex;
  justify-content: center;
}

.signup-panel-inner {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.signup-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  background: rgba(245, 142, 51, 0.12);
  margin-bottom: 16px;
}

.signup-panel h1 {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
  line-height: 1.2;
}

.signup-lead {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.6;
  margin-bottom: 28px;
}

.signup-form .form-group {
  margin-bottom: 16px;
}

.signup-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.signup-form input,
.signup-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-white);
  transition: border-color var(--transition);
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.signup-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
}

.signup-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 16px;
}

/* Roadmap */
.signup-roadmap {
  position: relative;
  z-index: 1;
  padding: 0 20px 80px;
  text-align: center;
}

.signup-roadmap h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.signup-roadmap h2 .highlight {
  color: var(--color-accent);
}

.signup-roadmap-desc {
  font-size: 16px;
  color: var(--color-gray-700);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.roadmap-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto 32px;
  padding-top: 36px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-gray-300);
}

.roadmap-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.roadmap-marker span {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-white);
  border: 2px solid var(--color-gray-300);
  box-shadow: var(--shadow-sm);
}

.roadmap-marker::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-gray-300);
}

.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.roadmap-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.roadmap-card--purple { background: #f3eef9; }
.roadmap-card--blue { background: #e8f4fc; }
.roadmap-card--green { background: #e8f7ef; }

.roadmap-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.roadmap-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gray-700);
}

.roadmap-card li i {
  color: var(--color-heading);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Success / Order ticket */
.signup-success {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(13, 51, 93, 0.55);
  backdrop-filter: blur(6px);
  animation: signupFadeIn 0.4s ease;
}

.signup-success[hidden] {
  display: none !important;
}

@keyframes signupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.signup-success-inner {
  width: 100%;
  max-width: 440px;
  animation: ticketSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ticketSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.order-ticket {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.order-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-primary);
  color: var(--color-white);
}

.order-ticket-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.order-ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(245, 142, 51, 0.25);
  color: #ffd4a8;
}

.order-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: statusPulse 1.2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.order-ticket-protocol {
  padding: 20px 24px;
  text-align: center;
  border-bottom: 2px dashed var(--color-gray-200);
}

.order-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
  margin-bottom: 4px;
}

.order-ticket-protocol strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: 0.04em;
}

.order-ticket-customer {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 13px;
  color: var(--color-gray-700);
}

.order-ticket-customer p {
  margin-bottom: 6px;
}

.order-ticket-customer p:last-child {
  margin-bottom: 0;
}

.order-ticket-customer span {
  color: var(--color-gray-500);
}

.order-progress {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-progress-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.order-progress-step.active {
  opacity: 1;
}

.order-progress-step.done {
  opacity: 0.7;
}

.order-progress-step.done .order-step-icon {
  background: #22c55e;
  color: var(--color-white);
}

.order-step-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.order-progress-step.active .order-step-icon {
  background: var(--color-accent);
  color: var(--color-white);
  animation: stepIconPulse 1s ease-in-out infinite;
}

@keyframes stepIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 142, 51, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245, 142, 51, 0); }
}

.order-step-text strong {
  display: block;
  font-size: 14px;
  color: var(--color-heading);
  margin-bottom: 2px;
}

.order-step-text span {
  font-size: 12px;
  color: var(--color-gray-500);
}

.order-ticket-footer {
  padding: 24px;
  background: var(--color-gray-100);
  text-align: center;
}

.order-kitchen-animation {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.order-kitchen-animation span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: kitchenBounce 1.2s ease-in-out infinite;
}

.order-kitchen-animation span:nth-child(2) { animation-delay: 0.15s; }
.order-kitchen-animation span:nth-child(3) { animation-delay: 0.3s; }

@keyframes kitchenBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-8px); opacity: 1; }
}

.order-message {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-gray-700);
  margin-bottom: 20px;
}

.order-message strong {
  color: var(--color-heading);
}

.signup-page.is-success .signup-panel,
.signup-page.is-success .signup-roadmap {
  filter: blur(4px);
  pointer-events: none;
}

body.receipt-open {
  overflow: hidden;
}

/* ===== THERMAL PRINTER RECEIPT ===== */
.signup-success-dismiss {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 210;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.signup-success-dismiss:hover {
  background: rgba(255, 255, 255, 0.25);
}

.printer-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(360px, 100%);
  margin: auto;
  padding: 48px 0 16px;
}

.thermal-printer {
  width: 100%;
  max-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
}

.thermal-printer-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #3d3d3d 0%, #2a2a2a 100%);
  border-radius: 14px 14px 0 0;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.thermal-printer-icon {
  font-size: 22px;
  color: var(--color-accent);
  animation: printerIconPulse 1s ease-in-out infinite;
}

@keyframes printerIconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.thermal-printer-label {
  font-size: 14px;
  font-weight: 600;
}

.thermal-printer-slot {
  height: 8px;
  margin: 0 24px;
  background: #111;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.thermal-printer.is-printing .thermal-printer-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(245, 142, 51, 0.35) 3px,
    rgba(245, 142, 51, 0.35) 4px
  );
  animation: slotFeed 0.15s linear infinite;
}

@keyframes slotFeed {
  from { transform: translateX(0); }
  to { transform: translateX(4px); }
}

.thermal-printer-output {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 10px 10px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 0 0 14px 14px;
  -webkit-overflow-scrolling: touch;
}

.receipt-paper {
  font-family: 'Courier New', Courier, monospace;
  transform-origin: top center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #fffef9 0%, #f7f3ea 100%);
  position: relative;
}

.receipt-paper::after {
  content: '';
  display: block;
  height: 10px;
  margin-top: 4px;
  background:
    radial-gradient(circle at 5px 0, transparent 5px, #f7f3ea 5px) -5px 0 / 10px 10px repeat-x;
}

.receipt-paper.is-printing {
  animation: receiptPrintOut 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes receiptPrintOut {
  0% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px) scaleY(0.3);
  }
  20% {
    opacity: 1;
  }
  100% {
    max-height: calc(100dvh - 160px);
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* Compact receipt layout inside printer */
.receipt-paper .order-ticket-header {
  padding: 14px 16px;
}

.receipt-paper .order-ticket-logo {
  height: 32px;
}

.receipt-paper .order-ticket-status {
  padding: 4px 10px;
  font-size: 11px;
}

.receipt-paper .order-ticket-protocol {
  padding: 14px 16px;
}

.receipt-paper .order-ticket-protocol strong {
  font-size: 17px;
}

.receipt-paper .order-ticket-customer {
  padding: 12px 16px;
  font-size: 12px;
}

.receipt-paper .order-progress {
  padding: 12px 16px;
}

.receipt-paper .order-progress-step {
  padding: 8px 0;
  gap: 10px;
}

.receipt-paper .order-step-icon {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.receipt-paper .order-step-text strong {
  font-size: 13px;
}

.receipt-paper .order-step-text span {
  font-size: 11px;
}

.receipt-paper .order-ticket-footer {
  padding: 16px;
}

.receipt-paper .order-kitchen-animation {
  margin-bottom: 10px;
}

.receipt-paper .order-message {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.receipt-paper .order-ticket-header,
.receipt-paper .order-ticket-protocol,
.receipt-paper .order-ticket-customer,
.receipt-paper .order-progress,
.receipt-paper .order-ticket-footer {
  font-family: var(--font-primary);
}

.receipt-paper .order-ticket-protocol strong {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.08em;
}

.home-roadmap {
  padding: 80px 0;
  background: var(--color-gray-100);
}

.home-roadmap .signup-roadmap-desc {
  margin-bottom: 48px;
}

.contact-form .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-white);
}

.contact-form .optional {
  font-weight: 400;
  color: var(--color-gray-500);
  font-size: 12px;
}

.contact-form .signup-disclaimer {
  margin-top: 12px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .signup-panel-inner {
    padding: 32px 24px;
  }

  .roadmap-timeline {
    display: none;
  }

  .roadmap-cards {
    grid-template-columns: 1fr;
  }

  .signup-success {
    padding: 12px;
  }

  .printer-scene {
    max-width: 100%;
    padding-top: 40px;
  }

  .thermal-printer {
    max-height: calc(100dvh - 48px);
  }
}
