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

:root {
  --primary-color: #FF6600;
  --primary-dark: #E55A00;
  --primary-light: #FFF4EC;
  --text-dark: #2D3436;
  --text-medium: #636E72;
  --text-light: #B2BEC3;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #DFE6E9;
  --success-color: #00B894;
  --success-dark: #009975;
  --error-bg: #FFEAEA;
  --error-color: #D63031;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #E8ECEF 100%);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: var(--white);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
}

h2 {
  color: var(--text-dark);
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-dark);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

input::placeholder {
  color: var(--text-light);
}

button {
  background: var(--primary-color);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: var(--primary-dark);
}

button:active {
  transform: scale(0.98);
}

#qrcode {
  margin: 24px 0;
  text-align: center;
}

#qrcode img {
  max-width: 250px;
  border-radius: 8px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.order-info {
  background: var(--primary-light);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  color: var(--text-dark);
  font-weight: 500;
}

.error {
  background: var(--error-bg);
  padding: 18px;
  border-radius: 8px;
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
  font-weight: 500;
}

.print-btn {
  background: var(--success-color);
  margin-left: 12px;
}

.print-btn:hover {
  background: var(--success-dark);
}

.help-text {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 20px;
  margin-top: -8px;
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-medium);
  font-size: 0.85rem;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer strong {
  color: var(--primary-color);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 28px 0;
}

table {
  border-radius: 8px;
  overflow: hidden;
}

table th {
  background: var(--primary-light) !important;
  color: var(--text-dark);
  font-weight: 600;
}

table td {
  color: var(--text-medium);
}

@media print {
  body {
    background: white;
  }
  .no-print, .footer {
    display: none;
  }
}
