@font-face {
  font-family: 'PlacardFont';
  src: url('Font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #e8e8e8;
  min-height: 100vh;
  padding: 0;
  color: #1a1a1a;
  line-height: 1.4;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: #f5f5f5;
  min-height: 100vh;
}

header {
  background: #1a1a1a;
  color: #ffffff;
  padding: 20px 40px;
  border-bottom: 3px solid #cc0000;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 0.813rem;
  color: #b8b8b8;
  margin-top: 3px;
  font-weight: 400;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #d0d0d0;
  padding: 0;
  margin: 0;
}

.tab-btn {
  padding: 16px 32px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  color: #2c2c2c;
  background: #f5f5f5;
}

.tab-btn.active {
  color: #2c2c2c;
  border-bottom-color: #4a6fa5;
  background: #ffffff;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 0;
}

.tab-content.active {
  display: block;
}

/* Create Sub-tabs */
.create-sub-tabs {
  display: flex;
  background: #f5f5f5;
  border-bottom: 1px solid #d0d0d0;
  padding: 0;
  margin: 0;
}

.create-sub-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.create-sub-tab-btn:hover {
  color: #2c2c2c;
  background: #e8e8e8;
}

.create-sub-tab-btn.active {
  color: #2c2c2c;
  border-bottom-color: #4a6fa5;
  background: #ffffff;
}

/* Create Tab Content */
.create-tab-content {
  display: none;
}

.create-tab-content.active {
  display: block;
}

/* Home Page */
/* Alert Banner */
.alert-banner {
  background: #cc0000;
  color: white;
  padding: 16px 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.alert-icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Main CTA Section */
.home-cta-section {
  background: #1a1a1a;
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.cta-headline {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.cta-button {
  padding: 16px 40px;
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #b30000;
}

/* Comparison Section */
.comparison-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  padding: 0;
}

.comparison-column {
  padding: 40px;
  border: 2px solid;
  text-align: center;
}

.comparison-negative {
  border-color: #cc0000;
}

.comparison-positive {
  border-color: #00aa00;
}

.comparison-icon {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1;
}

.negative-icon {
  color: #cc0000;
}

.positive-icon {
  color: #00aa00;
}

.comparison-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2c2c2c;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-list li {
  padding: 12px 0;
  font-size: 1rem;
  color: #2c2c2c;
  line-height: 1.5;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-list li:last-child {
  border-bottom: none;
}

/* Testimonial Section */
.testimonial-section {
  background: #2c2c2c;
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.testimonial-content {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
  color: white;
}

.quote-mark {
  font-size: 3rem;
  color: #cc0000;
  line-height: 0;
  vertical-align: middle;
  margin: 0 8px;
}

.testimonial-attribution {
  font-size: 1rem;
  color: #b8b8b8;
  margin: 0;
}

/* Features Section */
.features-section {
  background: white;
  padding: 40px;
  text-align: center;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.features-list li {
  padding: 16px 0;
  font-size: 1.125rem;
  color: #2c2c2c;
  border-bottom: 1px solid #e0e0e0;
}

.features-list li:last-child {
  border-bottom: none;
}

.checkmark {
  color: #00aa00;
  font-weight: 900;
  font-size: 1.25rem;
  margin-right: 12px;
}

/* Bookmark Section */
.bookmark-section {
  background: #ff8c42;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bookmark-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.bookmark-text {
  flex: 1;
  min-width: 200px;
}

.bookmark-text p {
  margin: 0;
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

.bookmark-button {
  padding: 12px 24px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: background 0.2s;
}

.bookmark-button:hover {
  background: #333;
}

/* Real Placards Section */
.real-placards-section {
  background: white;
  padding: 60px 40px;
  text-align: center;
}

.real-placards-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #2c2c2c;
}

.placards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.placard-item {
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.placard-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Legacy styles for backward compatibility */
.home-content {
  padding: 0;
  background: transparent;
  text-align: left;
}

.welcome-text {
  display: none;
}

.home-features {
  display: none;
}

.create-placard-btn {
  display: none;
}

.disclaimer {
  padding: 24px 48px;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

.disclaimer p {
  margin: 0;
  max-width: 800px;
}

/* Examples Carousel */
.examples-carousel {
  margin-top: 48px;
  padding: 0 48px;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.carousel-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #ddd;
  background: #f5f5f5;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #b8b8b8;
  padding: 32px 40px;
  margin-top: 48px;
  border-top: 3px solid #cc0000;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 0.813rem;
  line-height: 1.6;
  margin: 0;
}

.footer-content strong {
  color: #ffffff;
}

.footer-links {
  margin-top: 16px;
  text-align: center;
}

.footer-link {
  color: #b8b8b8;
  text-decoration: underline;
  font-size: 0.813rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
}

/* History Page */
.history-content {
  padding: 40px 48px;
  background: white;
}

.history-header {
  background: #1a1a1a;
  color: white;
  padding: 40px;
  text-align: center;
  margin-bottom: 0;
}

.history-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.history-header p {
  font-size: 1.125rem;
  color: #e0e0e0;
  margin: 0;
}

.history-note {
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  padding: 12px 16px;
  background: #f5f5f5;
  border-left: 4px solid #cc0000;
  border-radius: 4px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  table-layout: fixed;
}

.history-table thead {
  background: #f5f5f5;
  border-bottom: 2px solid #d0d0d0;
}

.history-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table th:nth-child(1) {
  width: 25%;
}

.history-table th:nth-child(2) {
  width: 25%;
}

.history-table th:nth-child(3) {
  width: 20%;
}

.history-table th:nth-child(4) {
  width: 30%;
}

.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #2c2c2c;
}

.history-table tbody tr:hover {
  background: #f9f9f9;
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

/* Expandable history rows */
.history-row {
  cursor: pointer;
  transition: background 0.2s;
}

.history-row:hover {
  background: #f5f5f5 !important;
}

.history-row.expanded {
  background: #f0f0f0;
}

.history-expand-row {
  background: #fafafa;
}

.history-expand-row td {
  padding: 0 !important;
}

.history-expand-content {
  padding: 12px 16px !important;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.history-expand-label {
  font-weight: 600;
  color: #666;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-expand-value {
  font-family: 'Courier New', monospace;
  color: #2c2c2c;
  font-size: 0.875rem;
  background: white;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #d0d0d0;
}

/* Pending Section */
.pending-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #d0d0d0;
}

.pending-toggle {
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c2c2c;
  transition: background 0.2s, border-color 0.2s;
}

.pending-toggle:hover {
  background: #eeeeee;
  border-color: #b0b0b0;
}

.pending-toggle.expanded {
  background: #e8e8e8;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.pending-toggle span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pending-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
  color: #666;
}

.pending-table-container {
  border: 1px solid #d0d0d0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: white;
  overflow: hidden;
}

.pending-table {
  margin: 0;
}

.pending-table tbody tr:last-child td {
  border-bottom: none;
}

.history-download-btn {
  padding: 6px 16px;
  background: #4a6fa5;
  color: white;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.history-download-btn:hover {
  background: #3d5a8a;
}

.history-download-btn:active {
  background: #355080;
}

/* Payment Success Popup */
.payment-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.payment-popup-content {
  background: white;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.payment-popup-header {
  background: #2c2c2c;
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.payment-popup-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.payment-popup-close:hover {
  opacity: 0.8;
}

.payment-popup-body {
  padding: 32px 24px;
  text-align: center;
}

.payment-popup-info {
  font-size: 1.125rem;
  color: #2c2c2c;
  margin-bottom: 24px;
  font-weight: 500;
}

.payment-popup-download {
  padding: 12px 32px;
  background: #4a6fa5;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.payment-popup-download:hover {
  background: #3d5a8a;
}

/* History Preview Modal */
.history-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.history-modal-content {
  background: white;
  padding: 0;
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.history-modal-header {
  background: #2c2c2c;
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.history-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.history-modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.history-modal-close:hover {
  opacity: 0.8;
}

.history-modal-body {
  padding: 32px 24px;
}

.history-preview-container {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 24px;
  background: white;
  padding: 8px;
}

.history-preview-container .print-page-wrapper {
  width: 5.95in;
  height: 7.7in;
  overflow: hidden;
  flex-shrink: 0;
}

.history-preview-container .print-page {
  width: 8.5in;
  height: 11in;
  transform: scale(0.7);
  transform-origin: top left;
  border: none;
}

.history-modal-actions {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.history-modal-actions .history-download-btn {
  padding: 12px 32px;
  background: #4a6fa5;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.history-modal-actions .history-download-btn:hover {
  background: #3d5a8a;
}

/* Pricing Page */
.pricing-hero-section {
  background: #1a1a1a;
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.pricing-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.pricing-hero-subtitle {
  font-size: 1.25rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-content {
  padding: 60px 40px;
  background: white;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 3px solid #cc0000;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #cc0000;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-old-price {
  margin-bottom: 8px;
}

.strikethrough {
  text-decoration: line-through;
  color: #999;
  font-size: 1.25rem;
}

.pricing-current-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #2c2c2c;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-features {
  margin: 32px 0;
  text-align: left;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 14px 0;
  font-size: 1.0625rem;
  color: #2c2c2c;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .checkmark {
  color: #00aa00;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing-cta-btn {
  width: 100%;
  padding: 18px 32px;
  background: #cc0000;
  color: white;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 6px;
  transition: background 0.2s;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-cta-btn:hover {
  background: #b30000;
}

.pricing-cta-btn:active {
  background: #355080;
}

.pricing-cta-btn:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.pricing-cta-btn:disabled:hover {
  background: #999;
}

.terms-checkbox-container {
  margin-top: 24px;
  margin-bottom: 16px;
}

.terms-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #2c2c2c;
  cursor: pointer;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-link {
  color: #4a6fa5;
  text-decoration: underline;
}

.terms-link:hover {
  color: #3d5a8a;
}

#licenseIdDisplay {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

.pricing-value-section {
  margin-top: 40px;
  padding: 24px;
  background: #f5f5f5;
  border-left: 4px solid #cc0000;
  border-radius: 4px;
}

.pricing-value-text {
  font-size: 1.125rem;
  color: #2c2c2c;
  margin: 0;
  line-height: 1.6;
}

.pricing-value-text strong {
  color: #cc0000;
  font-weight: 700;
}

/* Migrate/Activate License Section */
.migrate-license-section {
  margin-top: 60px;
  padding: 40px;
  background: #f5f5f5;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  border-left: 4px solid #cc0000;
}

.migrate-license-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.migrate-license-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.migrate-license-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.migrate-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.migrate-input-group label {
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.migrate-input-group input {
  padding: 12px 16px;
  border: 2px solid #999;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: #1a1a1a;
}

.migrate-input-group input:focus {
  outline: none;
  border-color: #cc0000;
}

.migrate-license-btn {
  padding: 14px 32px;
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  align-self: flex-start;
}

.migrate-license-btn:hover {
  background: #b30000;
}

/* General Page */
.general-hero-section {
  background: #1a1a1a;
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.general-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.general-hero-subtitle {
  font-size: 1.25rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
}

.general-content {
  padding: 60px 40px;
  background: white;
  max-width: 800px;
  margin: 0 auto;
}

.general-info-card {
  background: white;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.general-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.general-info-item:last-child {
  border-bottom: none;
}

.general-info-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  flex: 0 0 150px;
}

.general-info-value {
  font-size: 1rem;
  color: #2c2c2c;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.general-info-box {
  font-family: 'Courier New', monospace;
  font-size: 0.938rem;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  display: inline-block;
  min-width: 120px;
}

.general-info-value span:not(.general-info-box) {
  font-family: 'Courier New', monospace;
  font-size: 0.938rem;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  display: inline-block;
}

.general-purchase-link {
  color: #cc0000;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.938rem;
  transition: color 0.2s;
}

.general-purchase-link:hover {
  color: #b30000;
}

.general-copy-btn {
  padding: 6px 16px;
  background: #4a6fa5;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.general-copy-btn:hover {
  background: #3d5a8a;
}

/* Link License Section */
.general-link-license-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.general-link-license-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.general-link-license-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.general-link-license-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.general-link-license-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  border: 2px solid #d0d0d0;
  border-radius: 4px;
  background: white;
}

.general-link-license-input:focus {
  outline: none;
  border-color: #4a6fa5;
}

.general-link-license-btn {
  padding: 12px 24px;
  background: #4a6fa5;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.general-link-license-btn:hover {
  background: #3d5a8a;
}

/* Link License Popup */
.link-license-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.link-license-popup-content {
  background: white;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.link-license-popup-header {
  background: #2c2c2c;
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-license-popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.link-license-popup-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.link-license-popup-close:hover {
  opacity: 0.8;
}

.link-license-popup-body {
  padding: 32px 24px;
  text-align: center;
}

.link-license-popup-body p {
  font-size: 1.125rem;
  color: #2c2c2c;
  margin-bottom: 24px;
  font-weight: 500;
}

.link-license-confirm-btn,
.link-license-cancel-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin: 0 8px;
  transition: background 0.2s;
}

.link-license-confirm-btn {
  background: #cc0000;
  color: white;
}

.link-license-confirm-btn:hover {
  background: #b30000;
}

.link-license-cancel-btn {
  background: #d0d0d0;
  color: #2c2c2c;
}

.link-license-cancel-btn:hover {
  background: #b8b8b8;
}

/* Terms & Privacy Page */
.terms-privacy-content {
  padding: 32px 48px;
  background: white;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.terms-privacy-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #ddd;
  margin-bottom: 24px;
}

.terms-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.terms-tab-btn:hover {
  color: #2c2c2c;
  background: #f5f5f5;
}

.terms-tab-btn.active {
  color: #4a6fa5;
  border-bottom-color: #4a6fa5;
  background: transparent;
}

.terms-privacy-viewer {
  width: 100%;
  height: calc(100vh - 300px);
  min-height: 600px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
}

/* Instructions Page */
.instructions-hero-section {
  background: #1a1a1a;
  color: white;
  padding: 60px 40px;
  text-align: center;
}

.instructions-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.instructions-hero-subtitle {
  font-size: 1.25rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
}

.instructions-content {
  padding: 60px 40px;
  background: white;
  max-width: 900px;
  margin: 0 auto;
}

.instruction-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
  align-items: flex-start;
}

.instruction-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.instruction-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #cc0000;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.instruction-content-wrapper {
  flex: 1;
}

.instruction-step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.instruction-step p {
  font-size: 1.125rem;
  color: #2c2c2c;
  line-height: 1.7;
  margin: 0;
}

.instruction-step p strong {
  color: #cc0000;
  font-weight: 700;
}

.instructions-tip-section {
  margin-top: 60px;
  padding: 32px;
  background: #ff8c42;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tip-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.tip-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.tip-content p {
  font-size: 1.0625rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.6;
}

/* Create Page Header */
.create-page-header {
  background: #1a1a1a;
  color: white;
  padding: 40px;
  text-align: center;
}

.create-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.create-page-subtitle {
  font-size: 1.125rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
}

.controls {
  padding: 24px 40px;
  background: #ffffff;
  border-bottom: 2px solid #ddd;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.control-group {
  flex: 0 1 auto;
  min-width: 240px;
}

.control-group label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-text {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.control-group select,
.control-group input {
  padding: 9px 12px;
  border: 2px solid #999;
  border-radius: 2px;
  font-size: 0.938rem;
  font-family: inherit;
  background: white;
  color: #1a1a1a;
  height: 38px;
  font-weight: 500;
}

.control-group select:focus,
.control-group input:focus {
  outline: none;
  border-color: #cc0000;
}

.generate-btn {
  padding: 12px 40px;
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  height: auto;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
}

.generate-btn:hover {
  background: #b30000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn:active {
  background: #990000;
}

.generation-count-display {
  margin-top: 8px;
  font-size: 0.813rem;
  color: #666;
  text-align: center;
}

.testing-section {
  padding: 20px 40px;
  background: #e8e8e8;
  border-bottom: 2px solid #ccc;
}

.testing-section h3 {
  color: #1a1a1a;
  margin-bottom: 14px;
  font-size: 0.938rem;
  font-weight: 700;
  text-transform: uppercase;
}

.testing-controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.test-control-group {
  flex: 0 1 auto;
  min-width: 140px;
}

.test-control-group label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.test-control-group span {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.test-control-group input,
.test-control-group select {
  padding: 7px 10px;
  border: 2px solid #999;
  border-radius: 2px;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  color: #1a1a1a;
  height: 34px;
}

.test-control-group input:focus,
.test-control-group select:focus {
  outline: none;
  border-color: #cc0000;
}

.preview-section {
  padding: 32px 48px 0 48px;
  background: white;
  overflow: visible;
}

.preview-section h2 {
  margin-bottom: 24px;
  color: #2c2c2c;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 3px solid #cc0000;
  padding-bottom: 12px;
  display: inline-block;
  width: 100%;
}

.preview-container {
  display: flex;
  gap: 1px;
  flex-wrap: nowrap;
  justify-content: center;
  flex-direction: row;
  align-items: flex-start;
  overflow: visible;
  width: fit-content;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

.print-page-wrapper {
  width: 5.95in;
  height: 7.7in;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.print-page {
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  max-width: 8.5in;
  min-height: 11in;
  max-height: 11in;
  background: white;
  border: 1px solid #d0d0d0;
  overflow: hidden;
  position: relative;
  transform: scale(0.7);
  transform-origin: top left;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.instructions-background {
  width: 8.5in;
  height: 11in;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3;
}

.background-image {
  width: 8.5in;
  height: 11in;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}

.unNumberBox {
  position: absolute;
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform-origin: center center;
}

.unNumberBox.left-edge {
  left: 0;
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.unNumberBox.right-edge {
  right: 0;
  left: auto;
  transform: translateX(50%) translateY(-50%) rotate(-45deg);
}

/* Numbers tab - centered text with 2 lines, rotated -90 degrees */
.unNumberBox.numbers-centered {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Two-line number display for Numbers tab */
.unNumber.numbers-two-lines {
  white-space: pre-line !important;
  line-height: 1em;
  text-align: center;
  display: block;
  font-size: 2.88in;
  font-weight: 900;
  color: black;
  font-family: 'PlacardFont', 'Arial Black', 'Arial', sans-serif;
  letter-spacing: -0.05em;
  margin: 0 auto;
  padding: 0;
  width: auto;
  max-width: 100%;
  transform: none;
  box-sizing: border-box;
  position: relative;
}

/* Create tab description */
.create-tab-description {
  padding: 20px 40px;
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  margin: 0;
  border-left: 4px solid #cc0000;
}

.create-tab-description p {
  margin: 0;
  font-size: 1rem;
  color: #2c2c2c;
  line-height: 1.6;
  font-weight: 500;
}

.unNumber {
  font-size: 2.88in;
  font-weight: 900;
  line-height: 1;
  color: black;
  text-align: center;
  font-family: 'PlacardFont', 'Arial Black', 'Arial', sans-serif;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

/* Print styles */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .container {
    box-shadow: none;
    border-radius: 0;
  }

  header,
  .tabs,
  .controls,
  .preview-section h2,
  .preview-container,
  .disclaimer,
  .home-content,
  .history-content,
  .instructions-content {
    display: none;
  }

  .print-page {
    page-break-after: always;
    border: none;
    margin: 0;
    padding: 0;
    width: 8.5in;
    height: 11in;
    overflow: hidden;
  }

  .print-page:last-child {
    page-break-after: auto;
  }
}

/* PDF generation styles */
.pdf-page {
  page-break-after: always;
  page-break-inside: avoid;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .container {
    max-width: 100%;
  }

  header {
    padding: 16px 20px;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .home-content {
    padding: 0;
  }

  .home-features ul {
    max-width: 100%;
  }

  /* Home Page Mobile Styles */
  .alert-banner {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .home-cta-section {
    padding: 40px 20px;
  }

  .cta-headline {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .comparison-section {
    grid-template-columns: 1fr;
  }

  .comparison-column {
    padding: 32px 20px;
  }

  .comparison-icon {
    font-size: 2.5rem;
  }

  .comparison-title {
    font-size: 1.25rem;
  }

  .testimonial-section {
    padding: 40px 20px;
  }

  .testimonial-quote {
    font-size: 1.125rem;
  }

  .quote-mark {
    font-size: 2rem;
  }

  .features-section {
    padding: 32px 20px;
  }

  .features-list li {
    font-size: 1rem;
  }

  .bookmark-section {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
  }

  .bookmark-text {
    text-align: center;
  }

  .bookmark-button {
    width: 100%;
  }

  .real-placards-section {
    padding: 40px 20px;
  }

  .real-placards-title {
    font-size: 1.5rem;
  }

  .placards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .examples-carousel {
    margin-top: 32px;
    padding: 0 20px;
  }
  
  .carousel-item {
    width: 150px;
    height: 150px;
  }
  
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .carousel-prev {
    left: 5px;
  }
  
  .carousel-next {
    right: 5px;
  }
  
  .site-footer {
    padding: 24px 20px;
  }

  .history-header {
    padding: 32px 20px;
  }

  .history-header h2 {
    font-size: 1.5rem;
  }

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

  .history-content {
    padding: 24px 20px;
    overflow-x: auto;
    overflow-y: visible;
  }

  .history-table {
    font-size: 0.875rem;
  }

  .history-table th,
  .history-table td {
    padding: 10px 12px;
  }

  .pending-section {
    margin-top: 24px;
    padding-top: 20px;
  }

  .pending-toggle {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  .pending-table-container {
    overflow-x: auto;
  }

  .history-download-btn {
    padding: 8px 14px;
    font-size: 0.813rem;
  }

  .pricing-hero-section {
    padding: 40px 20px;
  }

  .pricing-hero-title {
    font-size: 1.75rem;
  }

  .pricing-hero-subtitle {
    font-size: 1rem;
  }

  .pricing-content {
    padding: 40px 20px;
  }

  .migrate-license-section {
    padding: 32px 24px;
    margin-top: 40px;
  }

  .migrate-license-title {
    font-size: 1.25rem;
  }

  .general-hero-section {
    padding: 40px 20px;
  }

  .general-hero-title {
    font-size: 1.75rem;
  }

  .general-hero-subtitle {
    font-size: 1rem;
  }

  .general-content {
    padding: 40px 20px;
  }

  .general-info-card {
    padding: 32px 24px;
  }

  .general-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .general-info-label {
    flex: none;
  }

  .general-info-value {
    flex: none;
    width: 100%;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-badge {
    font-size: 0.688rem;
    padding: 4px 16px;
  }

  .pricing-card {
    padding: 24px;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .pricing-cta-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .terms-checkbox-container {
    margin-top: 20px;
    margin-bottom: 12px;
  }
  
  .terms-checkbox-label {
    font-size: 0.813rem;
  }
  
  .terms-privacy-content {
    padding: 24px 20px;
  }
  
  .terms-privacy-viewer {
    height: calc(100vh - 250px);
    min-height: 400px;
  }
  
  .terms-tab-btn {
    padding: 10px 16px;
    font-size: 0.938rem;
  }

  .instructions-hero-section {
    padding: 40px 20px;
  }

  .instructions-hero-title {
    font-size: 1.75rem;
  }

  .instructions-hero-subtitle {
    font-size: 1rem;
  }

  .instructions-content {
    padding: 40px 20px;
  }

  .instruction-step {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .instruction-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .instruction-step h3 {
    font-size: 1.25rem;
  }

  .instruction-step p {
    font-size: 1rem;
  }

  .instructions-tip-section {
    flex-direction: column;
    padding: 24px;
    margin-top: 40px;
  }

  .tip-icon {
    font-size: 2rem;
  }

  .create-page-header {
    padding: 32px 20px;
  }

  .create-page-title {
    font-size: 1.5rem;
  }

  .create-page-subtitle {
    font-size: 1rem;
  }

  .payment-popup-content {
    max-width: 90%;
    width: 90%;
  }

  .payment-popup-header {
    padding: 16px 20px;
  }

  .payment-popup-header h2 {
    font-size: 1.25rem;
  }

  .payment-popup-body {
    padding: 24px 20px;
  }

  .payment-popup-info {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .payment-popup-download {
    width: 100%;
    padding: 14px;
  }

  /* History Modal Mobile Styles */
  .history-modal-content {
    max-width: 95%;
    width: 95%;
    max-height: 90vh;
  }

  .history-modal-header {
    padding: 16px 20px;
  }

  .history-modal-header h2 {
    font-size: 1.25rem;
  }

  .history-modal-body {
    padding: 20px 16px;
  }

  .history-preview-container {
    padding: 4px;
    gap: 1px;
    flex-direction: column;
    align-items: center;
  }

  .history-preview-container .print-page-wrapper {
    width: calc(50vw - 20px);
    max-width: 150px;
    height: auto;
    aspect-ratio: 8.5 / 11;
    margin-bottom: 4px;
  }

  .history-preview-container .print-page {
    transform: scale(0.2);
  }

  .history-modal-actions .history-download-btn {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  /* Home Page Small Mobile */
  .alert-banner {
    padding: 10px 16px;
    font-size: 0.813rem;
  }

  .home-cta-section {
    padding: 32px 16px;
  }

  .cta-headline {
    font-size: 1.5rem;
  }

  .cta-description {
    font-size: 0.938rem;
  }

  .comparison-column {
    padding: 24px 16px;
  }

  .testimonial-section {
    padding: 32px 16px;
  }

  .testimonial-quote {
    font-size: 1rem;
  }

  .features-section {
    padding: 24px 16px;
  }

  .bookmark-section {
    padding: 20px 16px;
  }

  .real-placards-section {
    padding: 32px 16px;
  }

  .placards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .history-modal-content {
    max-width: 98%;
    width: 98%;
    max-height: 95vh;
  }

  .history-modal-header {
    padding: 12px 16px;
  }

  .history-modal-header h2 {
    font-size: 1.125rem;
  }

  .history-modal-body {
    padding: 16px 12px;
  }

  .history-preview-container {
    padding: 2px;
    gap: 1px;
  }

  .history-preview-container .print-page-wrapper {
    width: calc(50vw - 16px);
    max-width: 120px;
  }

  .history-preview-container .print-page {
    transform: scale(0.15);
  }

  .controls {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .control-group {
    min-width: 100%;
    width: 100%;
  }

  .generate-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .testing-section {
    padding: 16px 20px;
  }

  .testing-controls {
    flex-direction: column;
    gap: 12px;
  }

  .test-control-group {
    width: 100%;
    min-width: 100%;
  }

  .preview-section {
    padding: 24px 20px;
    background: #f5f5f5;
  }

  .preview-section h2 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .preview-container {
    flex-direction: row;
    gap: 2px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    background: #666;
    padding: 2px;
    overflow-x: auto;
  }

  .print-page-wrapper {
    width: calc(50vw - 32px);
    max-width: 170px;
    height: auto;
    aspect-ratio: 8.5 / 11;
    overflow: hidden;
    flex-shrink: 0;
  }

  .print-page {
    width: 8.5in;
    height: 11in;
    min-width: 8.5in;
    max-width: 8.5in;
    min-height: 11in;
    max-height: 11in;
    transform: scale(0.2);
    transform-origin: top left;
    border: none;
  }

  .background-image {
    width: 8.5in;
    height: 11in;
  }
}

@media (max-width: 480px) {
  .pending-section {
    margin-top: 20px;
    padding-top: 16px;
  }

  .pending-toggle {
    padding: 8px 12px;
    font-size: 0.813rem;
  }

  .history-download-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  header {
    padding: 14px 16px;
  }

  header h1 {
    font-size: 1.125rem;
  }

  .controls {
    padding: 16px;
  }

  .preview-section {
    padding: 20px 16px;
  }

  .preview-container {
    padding: 2px;
    gap: 2px;
  }

  .print-page-wrapper {
    width: calc(50vw - 28px);
    max-width: 150px;
  }

  .print-page {
    transform: scale(0.175);
  }

  /* Numbers tab mobile fixes */
  .unNumberBox.numbers-centered {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) rotate(-90deg) !important;
    transform-origin: center center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .unNumber.numbers-two-lines {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .general-hero-section {
    padding: 32px 16px;
  }

  .general-hero-title {
    font-size: 1.5rem;
  }

  .general-content {
    padding: 32px 16px;
  }

  .general-info-card {
    padding: 20px;
  }

  .migrate-license-section {
    padding: 24px 16px;
    margin-top: 32px;
  }

  .migrate-license-title {
    font-size: 1rem;
  }
}
