/* ==========================================================================
   HERBLIX - Product Verification - Design v3 (exact match to reference image)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* ---- Wrapper ---- */
.pv-verify-container {
    max-width: 380px;
    margin: 30px auto;
    padding: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* ---- Top gradient accent bar ---- */
.pv-top-accent {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #C68B2E 0%, #E0AC4F 50%, #C68B2E 100%);
}

/* ---- Logo Area ---- */
.pv-logo-area {
    padding: 28px 20px 20px;
    background: #ffffff;
    position: relative;
}

/* White card that frames the logo, with a small gold corner dot */
.pv-logo-card {
    position: relative;
    display: inline-block;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 14px 22px;
    margin: 0 auto 16px;
}

.pv-logo-card img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pv-logo-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #D99A2B;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.pv-brand-name {
    font-size: 26px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 3px;
    margin: 0 0 6px;
    font-family: 'Cairo', Arial, sans-serif;
}

.pv-brand-sub {
    font-size: 12px;
    font-weight: 700;
    color: #C17F17;
    letter-spacing: 1.5px;
    margin: 0;
}

.pv-dot-indicator {
    width: 6px;
    height: 6px;
    background: #C68B2E;
    border-radius: 50%;
    margin: 14px auto 0;
}

/* ---- Form Card ---- */
.pv-form-card {
    margin: 4px 16px 0;
    padding: 24px 20px 26px;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.pv-form-title {
    font-size: 18px;
    font-weight: 900;
    color: #004818;
    margin: 0 0 10px;
    line-height: 1.5;
}

.pv-form-desc {
    font-size: 12.5px;
    color: #8a8f94;
    font-weight: 400;
    margin: 0 0 20px;
    line-height: 1.8;
}

.pv-code-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    border: 1.5px solid #f0e6d2;
    border-radius: 30px;
    text-align: center;
    letter-spacing: 1px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    color: #444;
    background: #FBF4E6;
    direction: rtl;
    outline: none;
}

.pv-code-input::placeholder {
    color: #a8a29a;
    letter-spacing: 0.5px;
    direction: rtl;
    font-family: 'Cairo', Tahoma, sans-serif;
    font-size: 13.5px;
}

.pv-code-input:focus {
    border-color: #66B185;
    box-shadow: 0 0 0 3px rgba(102,177,133,0.15);
    background: #fff;
}

.pv-verify-btn {
    width: 100%;
    margin-top: 14px;
    background: #4E9B6F;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(78,155,111,0.3);
}

.pv-verify-btn:hover {
    background: #3d8a5e;
    transform: translateY(-1px);
}

.pv-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pv-btn-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* Spinner */
.pv-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pv-spin 0.7s linear infinite;
}

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

/* ---- Result Box ---- */
.pv-result-box {
    margin: 14px 16px 0;
    padding: 22px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
    font-family: 'Cairo', 'Tahoma', sans-serif;
}

.pv-result-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.pv-result-title {
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pv-result-body {
    font-size: 13px;
    font-weight: 400;
    color: inherit;
    line-height: 1.8;
    margin: 0 0 14px;
}

.pv-contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
}

/* --- VALID --- */
.pv-result-valid {
    background: #eaf7ef;
    color: #1a5c30;
    border: 1.5px solid #b9e2c6;
}
.pv-result-valid .pv-result-icon-circle {
    background: #4E9B6F;
    color: #fff;
}
.pv-result-valid .pv-brand-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 30px;
    padding: 10px 16px;
    font-size: 13px;
    color: #1a5c30;
    margin-top: 10px;
    border: 1px solid #c5e8d0;
}

/* --- USED --- */
.pv-result-used {
    background: #fdf6e8;
    color: #7a5000;
    border: 1.5px solid #f0d080;
}
.pv-result-used .pv-result-icon-circle {
    background: #C68B2E;
    color: #fff;
}
.pv-result-used .pv-used-info-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    border: 1px solid #f0d080;
    line-height: 1.8;
}
.pv-result-used .pv-contact-btn {
    background: #fff;
    color: #7a5000;
    border: 1px solid #f0d080;
}

/* --- INVALID --- */
.pv-result-invalid {
    background: #fdeeee;
    color: #8b1a1a;
    border: 1.5px solid #f5b8b8;
}
.pv-result-invalid .pv-result-icon-circle {
    background: #d9534f;
    color: #fff;
}
.pv-result-invalid .pv-contact-btn {
    background: #fff;
    color: #8b1a1a;
    border: 1px solid #f5b8b8;
}

/* ---- Try Another Code Button ---- */
.pv-retry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 16px 0;
    padding: 13px;
    border: 2px solid #4E9B6F;
    border-radius: 30px;
    background: transparent;
    color: #4E9B6F;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    width: calc(100% - 32px);
}
.pv-retry-btn:hover {
    background: #4E9B6F;
    color: #fff;
}

/* ---- Footer ---- */
.pv-footer {
    margin-top: 20px;
    padding: 14px 16px 20px;
    font-size: 10.5px;
    color: #a8a8a8;
    text-align: center;
    line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 500px) {
    .pv-verify-container {
        margin: 0 auto;
        border-radius: 18px;
    }
    .pv-form-card {
        margin: 4px 12px 0;
        padding: 20px 16px 24px;
    }
    .pv-result-box {
        margin: 12px 12px 0;
    }
    .pv-retry-btn {
        margin: 12px 12px 0;
        width: calc(100% - 24px);
    }
}
