/* =========================================================
   CREDENTIAL & BARCODE VERIFICATION PAGE (verify.css)
   Theme: Emerald Green (#285b40) & Metallic Gold (#a47a22)
========================================================= */
html {
    scroll-behavior: smooth;
}

.verify-section,
.verify-section * {
    box-sizing: border-box;
}

.verify-section {
    width: 100%;
    min-height: 62vh;
    padding: clamp(38px, 5vw, 56px) clamp(14px, 3vw, 24px) clamp(56px, 6vw, 76px);
    background: linear-gradient(180deg, #f5f9f6 0%, #f8fafc 100%);
    overflow-x: clip;
}

.verify-container {
    max-width: 880px;
    margin: 0 auto;
    min-width: 0;
}

/* Header */
.verify-header {
    text-align: center;
    margin-bottom: clamp(22px, 3vw, 30px);
}

.verify-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(40, 91, 64, 0.09);
    border: 1px solid rgba(164, 122, 34, 0.42);
    color: #17352d;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.35;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.verify-eyebrow i {
    color: #a47a22;
    flex-shrink: 0;
}

.verify-title {
    margin: 0 auto 10px;
    max-width: 24ch;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #17352d;
    line-height: 1.18;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.verify-title span {
    color: #285b40;
}

.verify-subtitle {
    margin: 0 auto;
    max-width: 62ch;
    font-size: clamp(0.9rem, 1.1vw, 0.98rem);
    color: #3d4f47;
    line-height: 1.62;
    overflow-wrap: break-word;
}

.verify-subtitle code {
    background: #eef4ef;
    color: #17352d;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

/* Search Card */
.verify-search-card {
    background: #ffffff;
    border: 1px solid rgba(40, 91, 64, 0.16);
    border-radius: 18px;
    padding: clamp(16px, 3vw, 24px);
    box-shadow: 0 10px 28px rgba(23, 53, 45, 0.06);
    margin-bottom: 26px;
}

.verify-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: #17352d;
    margin-bottom: 10px;
}

.verify-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8faf9;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-input-group:focus-within {
    border-color: #285b40;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(40, 91, 64, 0.12);
}

.verify-input-icon {
    color: #a47a22;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.verify-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.96rem;
    font-weight: 600;
    color: #17352d;
    outline: none;
}

.verify-input::placeholder {
    color: #8492a6;
    font-weight: 500;
}

.verify-submit-btn {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #285b40 0%, #17352d 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.verify-submit-btn:hover {
    transform: translateY(-1px);
    background: #087f5b;
    box-shadow: 0 8px 18px rgba(8, 127, 91, 0.22);
}

.verify-helper-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: #52645c;
}

.verify-helper-row i {
    color: #a47a22;
    margin-right: 4px;
}

/* Result Card Base */
.verify-result-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(23, 53, 45, 0.08);
}

.verify-result-card.is-verified {
    border: 2px solid rgba(40, 91, 64, 0.28);
}

.verify-result-card.is-pending {
    border: 2px solid rgba(164, 122, 34, 0.35);
}

/* Verified Top Banner & Large Sparkle Badge */
.verified-banner {
    background: linear-gradient(135deg, #143329 0%, #285b40 65%, #1e4b36 100%);
    padding: clamp(20px, 3.5vw, 28px) clamp(16px, 3.5vw, 26px);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 3px solid #d4af5a;
}

.premium-sparkle-badge {
    position: relative;
    min-width: 148px;
    padding: 14px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5dc8c 0%, #c99a2e 55%, #a47a22 100%);
    color: #132c24;
    border: 2px solid #fff3c4;
    box-shadow: 0 10px 26px rgba(212, 175, 90, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
}

.badge-main-icon {
    font-size: 1.5rem;
    color: #132c24;
}

.badge-main-text {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.2px;
}

/* Sparkle Stars */
.sparkle-star {
    position: absolute;
    color: #fff6cf;
    pointer-events: none;
    animation: sparklePulse 2s infinite ease-in-out;
}

.sparkle-star.s1 {
    top: -10px;
    right: -8px;
    font-size: 1.05rem;
    animation-delay: 0s;
}

.sparkle-star.s2 {
    top: -8px;
    left: 10px;
    font-size: 0.72rem;
    animation-delay: 0.55s;
}

.sparkle-star.s3 {
    bottom: -7px;
    right: 16px;
    font-size: 0.78rem;
    animation-delay: 1.1s;
}

@keyframes sparklePulse {
    0%, 100% {
        transform: scale(0.85) rotate(0deg);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.25) rotate(18deg);
        opacity: 1;
    }
}

.verified-banner-text {
    min-width: 0;
}

.verified-banner-text h2 {
    margin: 0 0 5px;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.verified-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Pending Banner */
.pending-banner {
    background: linear-gradient(135deg, #fdf8ec 0%, #f9f0d6 100%);
    padding: clamp(20px, 3vw, 24px) clamp(16px, 3.5vw, 26px);
    border-bottom: 2px solid rgba(164, 122, 34, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pending-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: #a47a22;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.25px;
    line-height: 1.35;
}

.pending-banner-text {
    min-width: 0;
}

.pending-banner-text h2 {
    margin: 0 0 4px;
    font-size: clamp(1.1rem, 1.9vw, 1.25rem);
    font-weight: 800;
    color: #17352d;
    line-height: 1.25;
}

.pending-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Credential Details Grid */
.credential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(16px, 3vw, 26px);
}

.credential-item {
    background: #f8faf9;
    border: 1px solid #e4ece7;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cred-span-full {
    grid-column: 1 / -1;
}

.cred-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #52645c;
}

.cred-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #17352d;
    overflow-wrap: anywhere;
}

.cred-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #285b40;
}

.cred-pending-text {
    color: #9c6f19;
    font-weight: 800;
}

/* Alert / Notice / Not Found Box */
.verify-alert-box {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 8px 22px rgba(180, 83, 9, 0.08);
}

.verify-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verify-alert-body {
    min-width: 0;
}

.verify-alert-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #78350f;
}

.verify-alert-msg {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.55;
    overflow-wrap: break-word;
}

/* Initial Info Strip */
.verify-info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.verify-info-item {
    background: #ffffff;
    border: 1px solid rgba(40, 91, 64, 0.14);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.verify-info-item i {
    color: #a47a22;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.verify-info-item strong {
    display: block;
    font-size: 0.94rem;
    color: #17352d;
    margin-bottom: 3px;
}

.verify-info-item span {
    font-size: 0.84rem;
    color: #52645c;
    line-height: 1.45;
    overflow-wrap: break-word;
}

/* =========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
========================================= */

@media (max-width: 768px) {
    .verify-section {
        padding: 34px 14px 54px;
    }

    .verify-header {
        text-align: left;
    }

    .verify-title {
        max-width: 100%;
        margin: 0 0 8px;
    }

    .verify-subtitle {
        max-width: 100%;
        margin: 0;
    }

    .verify-search-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .verify-input-group {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 10px;
    }

    .verify-input-icon {
        display: none;
    }

    .verify-input {
        padding: 10px 12px;
        background: #ffffff;
        border: 1px solid #dbe3ec;
        border-radius: 9px;
        font-size: 0.92rem;
    }

    .verify-submit-btn {
        width: 100%;
    }

    .verified-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px;
        gap: 14px;
    }

    .premium-sparkle-badge {
        min-width: 136px;
        padding: 12px 18px;
    }

    .credential-grid,
    .verify-info-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 14px;
    }
}

@media (max-width: 480px) {
    .verify-section {
        padding: 28px 12px 46px;
    }

    .verify-title {
        font-size: 1.5rem;
        line-height: 1.22;
    }

    .verify-subtitle {
        font-size: 0.89rem;
        line-height: 1.58;
    }

    .verify-alert-box {
        flex-direction: column;
        gap: 10px;
        padding: 16px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sparkle-star,
    .verify-submit-btn {
        animation: none;
        transition: none;
    }
}