:root {
    --cds-primary: #1976d2;
    --cds-primary-dark: #0f5fb3;
    --cds-secondary: #0f86b3;
    --cds-secondary-dark: #0a6d93;
    --cds-navy: #16324f;
    --cds-text: #334155;
    --cds-muted: #64748b;
    --cds-border: #dbe3ef;
    --cds-border-soft: #e5e7eb;
    --cds-soft: #f4f9ff;
    --cds-surface: rgba(255, 255, 255, 0.96);
    --cds-success: #16a34a;
    --cds-footer-bg: #0f172a;
    --cds-footer-title: #94a3b8;
    --cds-footer-text: #e2e8f0;
    --cds-footer-muted: #64748b;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cds-site-header,
.cds-qr-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}

.cds-site-header-inner,
.cds-qr-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cds-site-header-inner {
    min-height: 72px;
    gap: 16px;
}

.cds-qr-header-inner {
    min-height: 66px;
    gap: 12px;
}

.cds-site-logo,
.cds-qr-logo {
    height: auto;
    display: block;
}

.cds-site-logo {
    width: 160px;
}

.cds-qr-logo {
    width: 150px;
}

.cds-site-badges,
.cds-site-badge,
.cds-qr-badge {
    display: inline-flex;
    align-items: center;
}

.cds-site-badges {
    gap: 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.cds-site-badge,
.cds-qr-badge {
    gap: 6px;
    white-space: nowrap;
}

.cds-qr-badge {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.cds-site-badge-success i,
.cds-qr-badge i {
    color: var(--cds-success);
}

.cds-site-badge-primary i {
    color: var(--cds-primary);
}

.cds-main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.cds-verify-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 38px;
    border-radius: 22px;
    background: var(--cds-surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.cds-prefilled-alert {
    display: none;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.cds-verify-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.cds-verify-title-wrap {
    min-width: 0;
}

.cds-verify-mark {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .85), transparent 42%),
        linear-gradient(135deg, rgba(25, 118, 210, .14), rgba(15, 95, 179, .06));
    border: 1px solid rgba(25, 118, 210, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.cds-verify-mark img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.cds-verify-card h2 {
    margin: 0 0 5px;
    color: var(--cds-navy);
    font-size: 26px;
    font-weight: 800;
}

.cds-verify-card .cds-subtitle {
    margin: 0;
    color: var(--cds-muted);
    font-size: 14px;
    line-height: 1.4;
}

.cds-verify-divider {
    border: 0;
    border-top: 1px solid var(--cds-border-soft);
    margin: 24px 0;
}

.cds-verify-label {
    display: block;
    margin-bottom: 6px;
    color: var(--cds-text);
    font-size: 13px;
    font-weight: 700;
}

.cds-input-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.cds-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--cds-primary);
    opacity: .75;
}

.cds-verify-input {
    min-height: 48px;
    border-radius: 12px !important;
    border-color: var(--cds-border) !important;
    color: var(--cds-text);
    font-size: 15px;
}

.cds-verify-input-icon {
    padding-left: 42px !important;
}

.cds-verify-input:focus {
    border-color: var(--cds-primary) !important;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, .12) !important;
}

.cds-verify-help {
    max-width: 680px;
    margin: 10px auto 0;
    padding: 11px 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    background: var(--cds-soft);
    border: 1px solid #dbeafe;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.cds-verify-help i {
    margin-top: 2px;
    color: var(--cds-primary);
}

.cds-verify-btn,
.cds-download-btn {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cds-verify-btn:hover,
.cds-verify-btn:focus,
.cds-download-btn:hover,
.cds-download-btn:focus {
    color: #fff !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.cds-verify-btn:disabled,
.cds-download-btn:disabled {
    opacity: .6;
    transform: none;
    filter: none;
    cursor: not-allowed;
}

.cds-verify-btn-primary,
.cds-download-btn {
    background: linear-gradient(135deg, var(--cds-primary), var(--cds-primary-dark));
    box-shadow: 0 8px 18px rgba(25, 118, 210, .25);
}

.cds-verify-btn-secondary {
    background: linear-gradient(135deg, var(--cds-secondary), var(--cds-secondary-dark));
    box-shadow: 0 8px 18px rgba(15, 134, 179, .25);
}

.cds-action-note {
    margin: 10px 0 0;
    text-align: center;
    color: var(--cds-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.cds-trust-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--cds-border-soft);
}

.cds-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.cds-trust-pill i {
    color: var(--cds-success);
}

.cds-qr-main {
    flex: 1;
    padding: 18px 0 24px;
}

.cds-qr-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.cds-qr-hero {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(420px 120px at 0% 0%, rgba(255, 255, 255, .22), transparent 70%),
        linear-gradient(135deg, var(--cds-navy) 0%, var(--cds-primary) 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(22, 50, 79, .16);
}

.cds-qr-hero-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cds-qr-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .20);
}

.cds-qr-mark img {
    max-width: 31px;
    max-height: 31px;
    object-fit: contain;
}

.cds-qr-title {
    margin: 0 0 2px;
    font-size: 1.25rem;
    font-weight: 800;
}

.cds-qr-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
    line-height: 1.35;
}

.cds-document-panel {
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(219, 227, 239, .9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.cds-document-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 4px 10px;
}

.cds-document-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cds-navy);
    font-size: 13px;
    font-weight: 800;
}

.cds-document-label i {
    color: var(--cds-primary);
}

.cds-document-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.cds-document-status i {
    color: var(--cds-success);
}

#imgContainer {
    max-height: 72vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 14px;
    border: 1px solid var(--cds-border);
    padding: 8px;
    background: #f8fafc;
}

#imgContainer img {
    width: 100%;
    display: block;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.cds-qr-info {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--cds-soft);
    border: 1px solid #dbeafe;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.cds-qr-info i {
    color: var(--cds-primary);
    margin-right: 6px;
}

.cds-download-area {
    margin-top: 14px;
}

.cds-qr-mini-footer {
    margin: 10px 0 0;
    text-align: center;
    color: var(--cds-muted);
    font-size: 11px;
}

#myModalC .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.cds-loader-body {
    padding: 24px 18px;
    text-align: center;
}

.cds-loader-title {
    margin-bottom: 6px;
    color: var(--cds-navy);
    font-size: 16px;
    font-weight: 800;
}

.cds-loader-subtitle {
    margin-bottom: 14px;
    color: var(--cds-muted);
    font-size: 13px;
}

.cds-loader-img {
    width: 70%;
    max-width: 170px;
    height: auto;
}

#staticBackdrop .modal-dialog {
    max-width: 1140px;
}

#staticBackdrop .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

#staticBackdrop .modal-header {
    background: linear-gradient(135deg, var(--cds-navy) 0%, var(--cds-primary) 100%);
    color: #fff;
    border-bottom: none;
}

#staticBackdrop .modal-title {
    font-weight: 800;
}

#staticBackdrop .close {
    color: #fff;
    opacity: .9;
}

#staticBackdrop .close:hover {
    opacity: 1;
}

#staticBackdrop .modal-body {
    padding: 0;
}

#staticBackdrop .embed-responsive {
    min-height: 75vh;
}

.cds-site-footer {
    background: var(--cds-footer-bg);
    padding: 36px 0 20px;
    margin-top: 0;
}

.cds-site-footer-main {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cds-footer-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--cds-footer-title);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cds-footer-name {
    font-size: 13px;
    color: var(--cds-footer-text);
    font-weight: 600;
    margin-bottom: 4px;
}

.cds-footer-muted {
    font-size: 12px;
    color: var(--cds-footer-muted);
    margin-bottom: 2px;
}

.cds-footer-muted-last {
    margin: 0;
}

.cds-footer-contact {
    font-size: 12px;
    color: var(--cds-footer-text);
    margin-bottom: 6px;
}

.cds-footer-contact-last {
    margin: 0;
}

.cds-footer-contact i {
    color: var(--cds-footer-muted);
    margin-right: 6px;
}

.cds-footer-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(22, 163, 74, .15);
    color: var(--cds-success);
    font-size: 10px;
    margin-right: 7px;
}

.cds-site-footer-bottom {
    padding-top: 14px;
}

.cds-footer-legal {
    gap: 8px;
}

.cds-footer-copy {
    font-size: 11px;
    color: #475569;
}

@media (max-width: 767.98px) {
    .cds-main-wrapper {
        align-items: flex-start;
        padding: 24px 0;
    }

    .cds-verify-card {
        padding: 26px;
        border-radius: 20px;
    }

    .cds-verify-head {
        max-width: 100%;
    }

    .cds-input-wrap,
    .cds-verify-help {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .cds-main-wrapper {
        padding: 20px 0;
    }

    .cds-verify-card {
        padding: 22px;
        border-radius: 18px;
    }

    .cds-verify-head {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cds-verify-mark {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 18px;
    }

    .cds-verify-mark img {
        max-width: 38px;
        max-height: 38px;
    }

    .cds-verify-card h2 {
        font-size: 23px;
    }

    .cds-verify-divider {
        margin: 20px 0;
    }

    .cds-trust-strip {
        gap: 8px;
    }

    .cds-trust-pill {
        width: 100%;
        justify-content: center;
    }

    .cds-qr-header-inner {
        min-height: 60px;
    }

    .cds-qr-logo {
        width: 132px;
    }

    .cds-qr-main {
        padding: 12px 0 18px;
    }

    .cds-qr-hero {
        border-radius: 16px;
        padding: 14px;
    }

    .cds-qr-title {
        font-size: 1.08rem;
    }

    .cds-qr-subtitle {
        font-size: .78rem;
    }

    .cds-document-panel {
        padding: 8px;
        border-radius: 16px;
    }

    .cds-document-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    #imgContainer {
        max-height: 68vh;
        padding: 6px;
    }

    .cds-download-area {
        position: sticky;
        bottom: 10px;
        z-index: 50;
    }

    .cds-download-btn {
        box-shadow: 0 12px 24px rgba(25, 118, 210, .32);
    }

    #staticBackdrop .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    #staticBackdrop .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    #staticBackdrop .embed-responsive {
        min-height: calc(100vh - 57px);
    }
}
