/* --- DESIGN SYSTEM & SYSTEM VARIABLES --- */
:root {
    --bg-main: #fcfbf9;
    /* Premium Soft Ivory */
    --bg-gradient-end: #f4f1ea;
    /* Elegant Soft Sand */
    --bg-card: #ffffff;
    /* Pure White */
    --primary-amber: #b45309;
    /* Deep Rich Gold / Amber */
    --accent-gold: #d97706;
    /* Bright Amber */
    --accent-orange: #ff6f00;
    /* Saffron Orange */
    --text-primary: #3b2314;
    /* Deep Mahogany/Warm Brown (no black) */
    --text-secondary: #74523d;
    /* Terracotta/Soft Warm Brown */
    --text-light: #9c7f6b;
    /* Soft Light Brown */
    --border-gold: rgba(217, 119, 6, 0.18);
    /* Elegant Warm Gold Border */
    --font-heading: 'Noto Sans', sans-serif;
    --font-body: 'Noto Sans', sans-serif;

    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --shadow-premium: 0 20px 40px -10px rgba(180, 83, 9, 0.06), 0 0 1px rgba(180, 83, 9, 0.15);
}

/* --- RESET & BASIC CONFIGURATION --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-container {
    width: 100%;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- PREMIUM HEADER --- */
/* --- PREMIUM HEADER --- */
.header {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}



.portal-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

/* --- NATIVE VERIFICATION CARD STYLES --- */
.verification-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s ease;
}

.verification-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verification-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.verification-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.45;
}

.verify-form {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}

.verify-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1.5px solid var(--border-gold);
    background: var(--bg-main);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.verify-input:focus {
    border-color: var(--primary-amber);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.08);
}

.verify-btn {
    padding: 0 2rem;
    background: #F37420;
    border: none;
    border-radius: var(--border-radius-md);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(243, 116, 32, 0.2);
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(243, 116, 32, 0.3);
    background: #e06316;
}

.verify-btn:active {
    transform: translateY(1px);
}

.verify-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner & Status messages */
.verify-status {
    padding: 1.25rem 1.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.verify-status.loading {
    background: rgba(217, 119, 6, 0.03);
    border: 1.5px dashed var(--border-gold);
    color: var(--primary-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.status-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(180, 83, 9, 0.15);
    border-top: 2px solid var(--primary-amber);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.verify-status.error {
    background: #fdf2f2;
    border: 1.5px solid #f8b4b4;
    color: #9b1c1c;
}

/* Results Layout Grid */
.verify-results {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    border-top: 1px dashed var(--border-gold);
    padding-top: 2.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.4s ease-out;
}

.results-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.gem-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    border: 1.5px solid var(--border-gold);
    background: #fafaf9;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gem-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.gem-image-container:hover .gem-image {
    transform: scale(1.04);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(59, 35, 20, 0.75);
    color: #ffffff;
    font-size: 0.65rem;
    text-align: center;
    padding: 0.35rem 0;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.verified-badge-large {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1.5px solid rgba(16, 185, 129, 0.22);
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.04);
}

.badge-check {
    font-size: 1.05rem;
    font-weight: 800;
}

/* Specifications details */
.results-data {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-heading {
    border-bottom: 2px solid var(--border-gold);
    padding-bottom: 0.75rem;
}

.gem-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.gem-hindi-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    font-weight: 500;
}

.specs-wrapper {
    background: #fdfbf7;
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(217, 119, 6, 0.08);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--text-secondary);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-primary);
}

.specs-table td a {
    color: var(--primary-amber);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.specs-table td a:hover {
    color: var(--accent-gold);
}

.remarks-box {
    background: rgba(217, 119, 6, 0.03);
    border: 1px dashed var(--border-gold);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
}

.remarks-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.remarks-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Button loader state */
.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-loader .dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.btn-loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.btn-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- FOOTER TRUST SEALS --- */
.footer-trust-seals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.seal-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    border: 1px solid var(--border-gold);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.03), 0 1px 2px rgba(180, 83, 9, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.seal-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 24px -6px rgba(180, 83, 9, 0.1), 0 0 0 1px rgba(217, 119, 6, 0.25);
    background: linear-gradient(to bottom, #ffffff, #fdfbf7);
}

.seal-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
    transition: transform 0.3s ease;
}

.seal-badge:hover .seal-icon {
    transform: scale(1.15) rotate(5deg);
}

.seal-text {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 1.5rem 0;
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-light);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}


/* --- DISCLAIMER --- */
.disclaimer-banner {
    background: rgba(15, 23, 42, 0.02);
    border: 1px dashed var(--border-gold);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100%;
}

.disclaimer-title {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-amber);
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.disclaimer-text {
    line-height: 1.55;
    margin: 0;
}

/* --- RESPONSIVE WORK --- */
@media (max-width: 960px) {
    .verify-results {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 520px) {
    body {
        padding: 1rem 0.75rem;
    }

    .verification-card {
        padding: 1.75rem 1.25rem;
        gap: 1.5rem;
    }

    .verify-form {
        flex-direction: column;
    }

    .verify-btn {
        width: 100%;
        padding: 0.85rem;
        min-height: 48px;
    }

    .gem-image-container {
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-trust-seals {
        gap: 0.75rem;
        margin: 1rem 0 2rem;
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .seal-badge {
        padding: 0.6rem 1rem;
        justify-content: center;
    }
}

/* --- PREMIUM CERTIFICATE CARD (PHYSICAL-LIKE) --- */
.cert-card-wrapper {
    margin-top: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.cert-card {
    background-color: #fdfbf7;
    border: 1.5px solid #e2ded5;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 1000px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.cert-header {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cert-header-left {
    display: flex;
    align-items: center;
}

.cert-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.cert-header-right {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.cert-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cert-col-specs {
    flex: 1.3;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cert-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cert-spec-row {
    display: grid;
    grid-template-columns: 160px 15px 1fr;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #333333;
    align-items: center;
}

.cert-spec-label {
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cert-spec-row.title-case .cert-spec-label {
    text-transform: none;
}

.cert-spec-colon {
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.cert-spec-value {
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
}

.cert-tester-sec {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.cert-tester-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cert-tester-box {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    width: 220px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-tester-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #444444;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cert-col-visual {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cert-image-circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px solid #f87171;
    background-color: #ffffff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.cert-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background-color: #ffffff;
}

.cert-verified-badge {
    background-color: #0fa942;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(15, 169, 66, 0.15);
}

.cert-verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #0fa942;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}

.cert-col-qr {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.cert-qr-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.75rem;
}

.cert-qr-container {
    position: relative;
    background-color: #ffffff;
    padding: 6px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.cert-qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-qr-overlay {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 3px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    box-sizing: border-box;
}

.cert-qr-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transform: scale(2.0);
}

.cert-qr-link {
    font-size: 0.8rem;
    color: #444444;
    font-weight: 600;
    margin-top: 0.5rem;
    text-decoration: none;
}

.cert-footer-banner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
    padding-right: 0.5rem;
}

.cert-footer-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Media Queries for Certificate Card Responsiveness */
@media (max-width: 768px) {
    .cert-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cert-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .cert-col-specs, .cert-col-visual, .cert-col-qr {
        width: 100%;
        min-width: unset;
        align-items: center;
    }
    
    .cert-specs-list {
        width: 100%;
        max-width: 400px;
    }
    
    .cert-spec-row {
        grid-template-columns: 140px 15px 1fr;
    }
    
    .cert-tester-sec {
        align-items: center;
    }
    
    .cert-footer-banner {
        justify-content: center;
        padding-right: 0;
        margin-top: 1rem;
    }
}

/* Actions section */
.cert-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.download-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    background: #F37420;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(243, 116, 32, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 116, 32, 0.35);
    background: #e06316;
}

.download-image-btn:active {
    transform: translateY(0);
}

/* Print Styles */
@media print {
    @page {
        size: landscape;
        margin: 1.5cm;
    }

    body, html {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .dashboard-container {
        gap: 0 !important;
    }

    .header,
    .portal-wrapper,
    .disclaimer-banner,
    .footer,
    .cert-actions {
        display: none !important;
    }

    #certificate-card-container {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cert-card-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    .cert-card {
        border: 1px solid #e2ded5 !important;
        box-shadow: none !important;
        background-color: #fdfbf7 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        page-break-inside: avoid;
    }
}

.cert-verified-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-top: 15px;
}

.cert-qr-container-local {
    background-color: #ffffff;
    padding: 6px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.cert-qr-code-local {
    width: 100%;
    height: 100%;
    object-fit: contain;
}