/* Page styles for lookup.html */
.top-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), #2563EB);
    }


    :root {
      --primary: #1E3A8A;
      --primary-dark: #1D2C51;
      --primary-light: #E6F1FF;
      --primary-medium: #C4DDFC;
      --foreground: #1f2937;
      --muted: #6b7280;
      --background: #fcfcfc;
      --card: #ffffff;
      --border: #e5e7eb;
      --secondary: #f3f4f6;
      --success: #059669;
      --warning: #d97706;
    }
    
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      min-height: 100vh;
    }
    
    /* Header */
    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .nav-link {
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 500;
      color: var(--foreground);
      text-decoration: none;
      border-radius: 5px;
      transition: background 0.15s;
    }
    
    .nav-link:hover {
      background: var(--secondary);
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 500;
      border-radius: 5px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.15s;
      font-family: inherit;
    }
    
    .btn-primary {
      background: var(--primary);
      color: white;
    }
    
    .btn-primary:hover {
      background: var(--primary-dark);
    }
    
    .btn-primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    
    .btn-lg {
      padding: 14px 28px;
      font-size: 15px;
    }
    
    .btn-full {
      width: 100%;
    }
    
    /* Hero Section */
    .hero {
      background: linear-gradient(135deg, #1D2C51 0%, #1E3A8A 100%);
      padding: 64px 24px 80px;
      position: relative;
      overflow: hidden;
    }
    
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    
    .hero-inner {
      max-width: 1400px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
    
    .hero-content {
      text-align: center;
      color: white;
      margin-bottom: 48px;
    }
    
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(10px);
      padding: 8px 16px;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 24px;
    }
    
    .hero-badge svg {
      width: 16px;
      height: 16px;
    }
    
    .hero h1 {
      font-size: 44px;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
    }
    
    @media (max-width: 768px) {
      .hero h1 { font-size: 32px; }
    }
    
    .hero p {
      font-size: 18px;
      opacity: 0.9;
      max-width: 560px;
      margin: 0 auto;
    }
    
    /* Search Card - Floating */
    .search-section {
      max-width: 640px;
      margin: 0 auto;
    }
    
    .search-card {
      background: var(--card);
      border-radius: 5px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      overflow: hidden;
    }
    
    .card-body {
      padding: 32px;
    }
    
    @media (max-width: 640px) {
      .card-body { padding: 24px; }
    }
    
    /* Form */
    .form-label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 10px;
    }
    
    .input-wrapper {
      position: relative;
      margin-bottom: 20px;
    }
    
    .input-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
    }
    
    .input-icon svg {
      width: 20px;
      height: 20px;
    }
    
    .form-input {
      width: 100%;
      height: 60px;
      padding: 0 16px 0 52px;
      font-size: 20px;
      font-family: 'SF Mono', Monaco, monospace;
      letter-spacing: 0.12em;
      background: var(--secondary);
      border: 2px solid transparent;
      border-radius: 5px;
      outline: none;
      text-transform: uppercase;
      transition: all 0.15s;
    }
    
    .form-input:focus {
      border-color: var(--primary);
      background: white;
      box-shadow: 0 0 0 4px var(--primary-light);
    }
    
    .form-input::placeholder {
      color: #9ca3af;
      letter-spacing: 0.15em;
    }
    
    .form-hint {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
    }
    
    .form-hint span {
      font-size: 13px;
      color: var(--muted);
    }
    
    .demo-code {
      font-family: 'SF Mono', Monaco, monospace;
      font-size: 12px;
      font-weight: 600;
      color: var(--primary);
      background: var(--primary-light);
      padding: 4px 10px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .demo-code:hover {
      background: var(--primary-medium);
    }
    
    /* Spinner */
    .spinner {
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      display: inline-block;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    /* Results */
    .results {
      border-top: 1px solid var(--border);
      padding: 24px 32px 32px;
    }
    
    @media (max-width: 640px) {
      .results { padding: 24px; }
    }
    
    .result-banner {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 16px;
      border-radius: 5px;
      margin-bottom: 24px;
    }
    
    .result-banner.success {
      background: #ECFDF5;
      border: 1px solid #A7F3D0;
    }
    
    .result-banner.warning {
      background: #FFFBEB;
      border: 1px solid #FDE68A;
    }
    
    .result-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .result-icon.success {
      background: #D1FAE5;
    }
    
    .result-icon.success svg {
      color: var(--success);
    }
    
    .result-icon.warning {
      background: #FEF3C7;
    }
    
    .result-icon.warning svg {
      color: var(--warning);
    }
    
    .result-icon svg {
      width: 20px;
      height: 20px;
    }
    
    .result-content h3 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 4px;
    }
    
    .result-banner.success .result-content h3 { color: #065F46; }
    .result-banner.warning .result-content h3 { color: #92400E; }
    
    .result-content p {
      font-size: 14px;
    }
    
    .result-banner.success .result-content p { color: #047857; }
    .result-banner.warning .result-content p { color: #B45309; }
    
    .result-tips {
      margin-top: 12px;
      padding-left: 0;
      list-style: none;
    }
    
    .result-tips li {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #B45309;
      margin-bottom: 4px;
    }
    
    .result-tips li::before {
      content: '';
      width: 4px;
      height: 4px;
      background: #F59E0B;
      border-radius: 50%;
    }
    
    /* Certificate Preview */
    .cert-preview {
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }
    
    .cert-preview-header {
      background: var(--secondary);
      padding: 14px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .cert-preview-header span:first-child {
      font-size: 14px;
      font-weight: 600;
    }
    
    .cert-number-badge {
      font-size: 12px;
      font-family: 'SF Mono', Monaco, monospace;
      color: var(--primary);
      background: var(--primary-light);
      padding: 4px 10px;
      border-radius: 5px;
      font-weight: 600;
    }
    
    .cert-preview-body {
      padding: 8px 20px;
    }
    
    .cert-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }
    
    .cert-row:last-child {
      border-bottom: none;
    }
    
    .cert-row-label {
      font-size: 14px;
      color: var(--muted);
    }
    
    .cert-row-value {
      font-size: 14px;
      font-weight: 600;
    }
    
    .verified-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--success);
      background: #ECFDF5;
      padding: 6px 12px;
      border-radius: 5px;
    }
    
    .verified-badge svg {
      width: 14px;
      height: 14px;
    }
    
    /* Demo warning bar */
    .demo-warning-bar {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      background: #fffbeb;
      border-bottom: 1px solid #fde68a;
      padding: 10px 16px;
      font-size: 13px;
      color: #92400e;
      line-height: 1.45;
    }

    .demo-warning-bar svg {
      stroke: #d97706;
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* Org verified inline badge */
    .org-verified {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: wrap;
    }

    .org-verified-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
      color: var(--success, #16a34a);
      background: #ecfdf5;
      border: 1px solid #bbf7d0;
      padding: 2px 7px 2px 5px;
      border-radius: 20px;
      white-space: nowrap;
    }

    .org-verified-badge svg {
      stroke: var(--success, #16a34a);
      flex-shrink: 0;
    }

    .cert-preview-footer {
      padding: 20px;
      border-top: 1px solid var(--border);
    }
    
    /* Trust Bar */
    .trust-bar {
      background: #f8fafc;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .trust-bar-label {
      text-align: center;
      padding: 28px 24px 0;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    
    .trust-bar-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 16px 0 28px;
      display: flex;
      align-items: stretch;
    }
    
    .trust-item {
      flex: 1;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 16px 28px;
      border-right: 1px solid var(--border);
    }

    .trust-item:last-child {
      border-right: none;
    }
    
    .trust-icon {
      width: 38px;
      height: 38px;
      background: var(--primary-light);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 2px;
    }
    
    .trust-icon svg {
      width: 18px;
      height: 18px;
      color: var(--primary);
    }
    
    .trust-text h4 {
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 4px;
      color: var(--foreground);
      white-space: nowrap;
    }
    
    .trust-text p {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
    }

    @media (max-width: 900px) {
      .trust-bar-inner {
        flex-wrap: wrap;
        padding: 12px 16px 20px;
      }
      .trust-item {
        flex: 1 1 calc(50% - 16px);
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px 20px;
      }
      .trust-item:nth-child(1),
      .trust-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
      }
      .trust-item:nth-child(3),
      .trust-item:nth-child(4) {
        border-bottom: none;
      }
      .trust-item:nth-child(odd) {
        border-right: 1px solid var(--border);
      }
      .trust-text h4 {
        white-space: normal;
      }
    }
    
    @media (max-width: 500px) {
      .trust-item {
        flex: 1 1 100%;
        border-right: none !important;
        border-bottom: 1px solid var(--border);
      }
      .trust-item:last-child {
        border-bottom: none;
      }
    }
    
    /* Info Section */
    .info-section {
      background: var(--primary-light);
      padding: 64px 24px;
    }
    
    .info-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .info-header {
      text-align: center;
      margin-bottom: 48px;
    }
    
    .info-header h2 {
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 12px;
    }
    
    .info-header p {
      font-size: 16px;
      color: var(--muted);
      max-width: 480px;
      margin: 0 auto;
    }
    
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
    }
    
    @media (max-width: 900px) {
      .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    }
    
    .step-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 32px;
      text-align: center;
      position: relative;
    }
    
    .step-number {
      width: 48px;
      height: 48px;
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 700;
      margin: 0 auto 20px;
    }
    
    .step-card h3 {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    
    .step-card p {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
    }
    
    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, #1D2C51 0%, #1E3A8A 100%);
      padding: 64px 24px;
      text-align: center;
      color: white;
    }
    
    .cta-inner {
      max-width: 600px;
      margin: 0 auto;
    }
    
    .cta-section h2 {
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 12px;
    }
    
    .cta-section p {
      font-size: 16px;
      opacity: 0.9;
      margin-bottom: 28px;
    }
    
    .btn-white {
      background: white;
      color: var(--primary);
      font-weight: 600;
    }
    
    .btn-white:hover {
      background: #f8fafc;
      transform: translateY(-1px);
    }
    
        /* Utility */
    .hidden { display: none; }

    /* Mobile responsive */
    @media (max-width: 960px) {
      .nav-links { display: none; }
      .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
      .footer-links { flex-wrap: wrap; }
    }
    @media (max-width: 480px) {
      .footer-inner { align-items: center; text-align: center; }
      .footer-links { justify-content: center; }
    }
