* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    background: #020617;
    color: #e5e7eb;
  }
  
  .page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  
  .card {
    width: 100%;
    max-width: 880px;
    background: #020617;
    border-radius: 16px;
    border: 1px solid #1f2937;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  }
  
  h1 {
    margin: 0 0 4px;
    font-size: 28px;
  }
  
  .subtitle {
    margin: 0 0 20px;
    color: #9ca3af;
    font-size: 14px;
  }
  
  .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  
  .input {
    flex: 1;
    min-width: 120px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
  }
  
  .input:focus {
    outline: none;
    border-color: #22c55e;
  }
  
  .age-input {
    max-width: 100px;
  }
  
  .button {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: #22c55e;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
  }
  
  .button:disabled {
    background: #4b5563;
    cursor: not-allowed;
  }
  
  .loading {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
  }
  
  .hidden {
    display: none;
  }
  
  .result {
    display: grid;
    gap: 16px;
  }
  
  .result-section {
    padding: 16px;
    border-radius: 12px;
    background: #020617;
    border: 1px solid #1f2937;
  }
  
  .result-section h2,
  .result-section h3 {
    margin-top: 0;
  }
  
  .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  
  .table th,
  .table td {
    padding: 6px 4px;
    border-bottom: 1px solid #111827;
    text-align: left;
  }
  
  .table th {
    border-bottom: 1px solid #1f2937;
  }
  
  .perf-good {
    color: #22c55e;
    font-weight: 600;
  }
  
  .perf-bad {
    color: #f97316;
    font-weight: 600;
  }
  
  .license-page {
    background: #7b8fb4;
  }
  
  .license-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  
  .license-preview-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
  }
  
  .license-card {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 24px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #e5f3ff, #c9ddf5);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    border: 1px solid #93b4d8;
  }
  
  .license-header {
    background: #3b69ff;
    color: #f9fafb;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
  }
  
  .license-header-badge {
    font-size: 16px;
  }
  
  .license-front-body,
  .license-back-body {
    padding: 16px 20px 14px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .license-photo-frame {
    width: 110px;
    height: 130px;
    border-radius: 8px;
    border: 2px solid #98b3d9;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .license-photo-silhouette {
    font-size: 48px;
  }
  
  .license-front-info {
    flex: 1;
  }
  .license-label {
    min-width: 110px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2933;
    text-align: left;
  }
  
  .license-value {
    margin-top: 4px;
    width: 100%;
    text-align: left;
    padding: 10px 6px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #232323;
  }
  
  .license-front-footer,
  .license-back-footer {
    padding: 6px 12px 10px;
    text-align: right;
  }
  
  .license-footer-text {
    font-size: 11px;
    color: #4b5563;
  }
  
  /* BACK OF CARD */
  
  .license-back-body {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .license-journey {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .license-text {
    font-size: 14px;
    color: #1118277e;
    text-align: left;
    margin-top: 8px;
  }
  
  .license-date {
    margin-top: 8px;
    font-size: 12px;
    color: #4b5563;
    text-align: left;
  }
  
  .print-button {
    margin-top: 8px;
  }
  
  /* Print: focus on the cards only */
  @media print {
    body {
      background: white;
    }
    .page {
      padding: 0;
    }
    .license-preview-title,
    .print-button {
      display: none;
    }
    .license-card {
      box-shadow: none;
      border-color: #000;
      margin-bottom: 12px;
    }
  }
  