:root {
    --pv-primary: #2451b8;
    --pv-primary-dark: #1a3a8f;
}

body {
    background: linear-gradient(180deg, #f3f6fc 0%, #eef1f8 100%);
    min-height: 100vh;
}

.pv-navbar {
    background: var(--pv-primary-dark);
}

.pv-card {
    border: none;
    border-radius: 16px;
}

/* Honeypot — visually hidden but present in the DOM/tab order is avoided via tabindex=-1 */
.pv-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.pv-code-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pv-code-boxes input {
    width: 48px;
    height: 58px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: 2px solid #d7deec;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pv-code-boxes input:focus {
    outline: none;
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px rgba(36, 81, 184, .15);
}

@media (max-width: 420px) {
    .pv-code-boxes input {
        width: 40px;
        height: 50px;
        font-size: 1.3rem;
    }
}

.pv-result {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.pv-result-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: .5rem;
}

.pv-result.genuine { background: #e7f7ed; border: 1px solid #b7e4c7; }
.pv-result.already_used { background: #fff6e0; border: 1px solid #f5d98f; }
.pv-result.invalid { background: #fdecec; border: 1px solid #f3b6b6; }
.pv-result.blocked { background: #fdecec; border: 1px solid #f3b6b6; }
.pv-result.expired { background: #f1f1f4; border: 1px solid #d5d5dc; }
.pv-result.rate_limited, .pv-result.error { background: #f1f1f4; border: 1px solid #d5d5dc; }

.pv-result-details {
    text-align: left;
    margin-top: 1rem;
    font-size: .92rem;
}

.pv-result-details dt { color: #6c757d; font-weight: 600; }
.pv-result-details dd { margin-bottom: .5rem; }

.pv-product-image {
    max-width: 140px;
    max-height: 140px;
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Admin panel */
.pv-admin-sidebar {
    min-height: 100vh;
    background: #16213e;
    color: #cdd6f4;
}

.pv-admin-sidebar a {
    color: #cdd6f4;
    text-decoration: none;
}

.pv-admin-sidebar .nav-link.active,
.pv-admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 8px;
}

.pv-stat-card {
    border: none;
    border-radius: 14px;
}

.pv-code-input-boxes input.error {
    border-color: #dc3545 !important;
}
