/* PeptideBundles — COA Verify Page */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
    --pb-navy:    #0a1628;
    --pb-blue:    #0066cc;
    --pb-teal:    #00897b;
    --pb-green:   #1b873a;
    --pb-amber:   #c77b00;
    --pb-red:     #c0392b;
    --pb-gray:    #64748b;
    --pb-light:   #f1f5f9;
    --pb-border:  #e2e8f0;
    --pb-white:   #ffffff;
    --pb-radius:  12px;
    --pb-font:    'DM Sans', -apple-system, sans-serif;
    --pb-mono:    'DM Mono', 'Courier New', monospace;
}

.pb-verify-page {
    min-height: 100vh;
    background: var(--pb-light);
    font-family: var(--pb-font);
    padding: 0;
    margin: 0;
}

/* ── Header bar ─── */
.pb-verify-header {
    background: var(--pb-navy);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pb-verify-header .brand {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
}

.pb-verify-header .brand span { color: #60a5fa; }

.pb-verify-header .header-badge {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pb-verify-header .header-badge::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    background: #34d399;
    border-radius: 50%;
}

/* ── Main container ─── */
.pb-verify-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ── Search form ─── */
.pb-search-card {
    background: var(--pb-white);
    border-radius: var(--pb-radius);
    border: 1px solid var(--pb-border);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.pb-search-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--pb-navy);
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.pb-search-card p {
    font-size: 14px;
    color: var(--pb-gray);
    margin: 0 0 20px;
    line-height: 1.5;
}

.pb-search-form {
    display: flex;
    gap: 10px;
}

.pb-search-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--pb-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--pb-mono);
    font-weight: 500;
    color: var(--pb-navy);
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: border-color .15s;
    background: var(--pb-white);
}

.pb-search-input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--pb-font); font-weight: 400; color: #94a3b8; }
.pb-search-input:focus { outline: none; border-color: var(--pb-blue); box-shadow: 0 0 0 3px rgba(0,102,204,.1); }

.pb-search-btn {
    padding: 11px 20px;
    background: var(--pb-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--pb-font);
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.pb-search-btn:hover { background: #0052a3; }

/* ── Result card ─── */
.pb-result-card {
    background: var(--pb-white);
    border-radius: var(--pb-radius);
    border: 1px solid var(--pb-border);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    display: none;
}

.pb-result-card.visible { display: block; animation: pb-fadein .25s ease; }
@keyframes pb-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Result header */
.pb-result-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--pb-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pb-result-header .product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--pb-navy);
    margin: 0 0 6px;
    letter-spacing: -.01em;
}

.pb-result-header .batch-label {
    font-family: var(--pb-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--pb-blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

.pb-verified-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pb-verified-badge .check-circle {
    width: 44px;
    height: 44px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.pb-verified-badge .check-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--pb-green);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Result details */
.pb-result-details {
    padding: 0 24px;
}

.pb-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--pb-border);
    font-size: 14px;
}

.pb-detail-row:last-child { border-bottom: none; }

.pb-detail-label {
    color: var(--pb-gray);
    font-weight: 400;
}

.pb-detail-value {
    color: var(--pb-navy);
    font-weight: 500;
    text-align: right;
}

.pb-pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.pb-pass-badge::before { content: '✓'; font-weight: 700; }

.pb-coa-version {
    font-family: var(--pb-mono);
    font-size: 12px;
    color: var(--pb-gray);
}

/* COA Download section */
.pb-coa-download {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--pb-border);
}

.pb-coa-download p {
    font-size: 12px;
    color: var(--pb-gray);
    margin: 0 0 12px;
    line-height: 1.5;
}

.pb-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--pb-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--pb-font);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.pb-download-btn:hover { background: #162236; color: #fff; }
.pb-download-btn svg { width: 16px; height: 16px; }

/* ── Not found card ─── */
.pb-not-found {
    background: var(--pb-white);
    border-radius: var(--pb-radius);
    border: 1px solid #fecaca;
    padding: 28px;
    text-align: center;
    display: none;
}

.pb-not-found.visible { display: block; animation: pb-fadein .25s ease; }
.pb-not-found .icon { font-size: 36px; margin-bottom: 12px; }
.pb-not-found h3 { font-size: 16px; font-weight: 600; color: var(--pb-red); margin: 0 0 8px; }
.pb-not-found p { font-size: 13px; color: var(--pb-gray); margin: 0; line-height: 1.6; }

/* ── Loading state ─── */
.pb-loading {
    text-align: center;
    padding: 28px;
    display: none;
    color: var(--pb-gray);
    font-size: 14px;
}

.pb-loading.visible { display: block; }

.pb-spinner-lg {
    width: 32px; height: 32px;
    border: 3px solid rgba(0,102,204,.15);
    border-top-color: var(--pb-blue);
    border-radius: 50%;
    animation: pb-spin .7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes pb-spin { to { transform: rotate(360deg); } }

/* ── Trust footer ─── */
.pb-trust-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.pb-trust-footer a { color: var(--pb-blue); text-decoration: none; }
.pb-trust-footer a:hover { text-decoration: underline; }
