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

:root {
  --ah-blue: #00a0e2;
  --ah-blue-dark: #0080b8;
  --ah-orange: #f58220;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #666666;
  --gray-dark: #333333;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, var(--ah-blue) 0%, var(--ah-blue-dark) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: var(--gray-dark);
}

.container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.header {
  text-align: center;
  color: var(--white);
  padding: 20px 0;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.card-label {
  font-size: 0.875rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.barcode-container {
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.barcode-container svg {
  max-width: 100%;
  height: auto;
}

.scan-me {
  display: inline-block;
  background: var(--ah-orange);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.instructions {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Privacy Section */
.privacy-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.privacy-section h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-section h2::before {
  content: "🔒";
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-list li {
  font-size: 0.875rem;
  color: var(--gray);
  padding-left: 24px;
  position: relative;
}

.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

/* FAQ Section */
.faq-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.faq-section h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--gray-dark);
}

.faq-section details {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.faq-section details:last-of-type {
  border-bottom: none;
}

.faq-section summary {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--ah-blue);
  font-weight: 300;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section details p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 12px;
  padding-left: 4px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--white);
  opacity: 0.8;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid transparent;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
  background: var(--white);
  color: var(--ah-blue);
}

/* Hide elements */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 380px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .card, .privacy-section, .faq-section {
    padding: 20px;
  }
}

/* Fullscreen mode for scanning */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding: 10px;
  }
  
  .header {
    padding: 10px 0;
  }
  
  .header h1 {
    font-size: 1.25rem;
  }
  
  .header p {
    display: none;
  }
  
  .privacy-section,
  .faq-section {
    display: none;
  }
}
