/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.footer {
  margin-top: 34px;
}

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px 100px;
        }

        .grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            align-items: start;
        }

        @media (max-width: 768px) {
            .container {
              max-width: 1400px;
              margin: 0 auto;
              padding: 30px 20px;
          }
        }

        @media (min-width: 1024px) {
            .grid {
                grid-template-columns: 400px 1fr;
            }
        }

        /* Form Section */
        .form-section {
            background: #fff;
            border-radius: 18px;
            padding: 48px 40px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            position: sticky;
            top: 20px;
        }

        .form-title {
            font-size: 32px;
            font-weight: 600;
            background: linear-gradient(90deg, #0084ff 30%, #ff6600 60%);
 			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
  			text-shadow: 0 0 70px rgba(255, 159, 64, 0.9);
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .form-subtitle {
            font-size: 17px;
            color: #86868b;
            margin-bottom: 32px;
        }

        .input-group {
            margin-bottom: 24px;
        }

        .input-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #1d1d1f;
            margin-bottom: 8px;
        }

        .input-field {
            width: 100%;
            padding: 14px 16px;
            font-size: 17px;
            border: 1px solid #d2d2d7;
            border-radius: 12px;
            background: #fff;
            transition: all 0.2s ease;
            outline: none;
        }

        .input-field:focus {
            border-color: #0071e3;
            box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
        }

        .btn-primary {
            width: 100%;
            padding: 14px 24px;
            font-size: 17px;
            font-weight: 500;
            color: #fff;
            background: #0071e3;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-primary:hover {
            background: #0077ed;
        }

        .btn-primary:active {
            transform: scale(0.98);
        }

        /* Results Section */
        .results-section {
            min-height: 400px;
        }

        .loading {
            display: none;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #d2d2d7;
            border-top-color: #0071e3;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: #86868b;
        }

        .empty-state svg {
            width: 80px;
            height: 80px;
            margin-bottom: 24px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 24px;
            font-weight: 600;
            color: #1d1d1f;
            margin-bottom: 8px;
        }

        .empty-state p {
            font-size: 17px;
        }

        .order-card {
            background: #fff;
            border-radius: 18px;
            padding: 40px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .order-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        }

        .status-badge {
            display: inline-block;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 20px;
            margin-bottom: 24px;
        }

        .status-success {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .status-pending {
            background: #e3f2fd;
            color: #1976d2;
        }

        .status-warning {
            background: #fff3e0;
            color: #f57c00;
        }

        .order-details {
            display: grid;
            gap: 20px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding-bottom: 16px;
            border-bottom: 1px solid #f5f5f7;
        }

        .detail-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .detail-label {
            font-size: 15px;
            color: #86868b;
            font-weight: 500;
        }

        .detail-value {
            font-size: 15px;
            color: #1d1d1f;
            font-weight: 500;
            text-align: right;
            max-width: 60%;
            word-break: break-word;
        }

        .order-note-card {
            margin-top: 20px;
            padding: 14px 16px;
            background: #f5f5f7;
            border: 1px solid #e5e5ea;
            border-radius: 12px;
            text-align: center;
        }

        .order-note-text {
            display: block;
            color: #1d1d1f;
            font-size: 15px;
            font-weight: 600;
            line-height: 1.45;
            word-break: break-word;
        }

        .order-note-card.note-pending .order-note-text {
            color: #0071e3;
        }

        .order-note-card.note-warning .order-note-text {
            color: #f57c00;
        }

        .order-note-card.note-danger .order-note-text {
            color: #d32f2f;
        }

        .order-note-card.note-success .order-note-text {
            color: #34c759;
        }

        .cert-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 24px;
        }

        .btn-download,
        .btn-install-esign {
            min-height: 48px;
            padding: 12px 24px;
            font-size: 17px;
            font-weight: 500;
            color: #fff;
            border: none;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .btn-download {
            background: #fff;
            color: #1d1d1f;
            border: none;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.1);
        }

        .btn-download:hover {
            background: #fff;
            color: #007aff;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 34px rgba(0, 0, 0, 0.14);
        }

        .btn-install-esign {
            background: #0071e3;
            letter-spacing: 0.04em;
            font-weight: 700;
            font-size: 16px;
        }

        .btn-install-esign:hover {
            background: #0077ed;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
        }

        .btn-download:active,
        .btn-install-esign:active {
            transform: scale(0.98);
        }

        .btn-install-esign.show-progress {
            gap: 10px;
            background: #0071e3;
        }

        .btn-install-esign.show-progress::before {
            content: "";
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            flex: 0 0 16px;
        }

        .btn-install-esign.show-progress.error {
            background: #ff3b30;
        }

        .btn-install-esign.disabled {
            cursor: not-allowed;
        }

        .notfound {
            text-align: center;
            padding: 80px 20px;
        }

        .notfound h2 {
            font-size: 24px;
            color: #86868b;
            font-weight: 500;
        }

        @media (max-width: 1023px) {
            .form-section {
                position: static;
            }
        }

        @media (max-width: 640px) {
            .cert-actions {
                grid-template-columns: 1fr;
            }
        }
