:root {
    --blue: #0b3b85;
    --navy: #06265c;
    --gold: #f4b41a;
    --ink: #14213d;
    --soft: #f5f8ff
}

* {
    box-sizing: border-box
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink);
    background: #fff;
    padding-bottom: 82px
}

a {
    text-decoration: none;
    color: var(--blue)
}

.navbar-brand {
    color: var(--navy) !important;
    font-size: 1.2rem
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    margin-right: 5px
}

.hero {
    padding: 20px 0 46px
}

.hero-card {
    color: #fff;
    min-height: 440px;
    border-radius: 28px;
    padding: 60px clamp(25px, 7vw, 90px);
    background: radial-gradient(circle at 80% 18%, #2472ce 0, transparent 26%), linear-gradient(125deg, #031a42, #0b4a9a);
    position: relative;
    overflow: hidden
}

.hero-card > * {
    position: relative;
    z-index: 1
}

.hero-card:after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 390px;
    height: 390px;
    border: 55px solid rgba(244, 180, 26, .19);
    border-radius: 50%;
    pointer-events: none
}

.page-watermark {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: .07;
    z-index: 0
}

.page-watermark img {
    max-width: min(70vw, 380px);
    width: 100%;
    object-fit: contain
}

main,
section {
    position: relative;
    z-index: 1
}

.eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
    color: #d7e8ff
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 14px 0
}

.hero h1 em {
    color: var(--gold);
    font-style: normal
}

.hero p {
    max-width: 550px;
    color: #dbe9ff;
    font-size: 1.08rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto
}

.hero-card p.text-center {
    text-align: center !important;
}

.btn-gold {
    background: var(--gold);
    border: 0;
    color: #17213b;
    font-weight: 700
}

.trust {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 52px;
    font-size: .82rem;
    color: #d6e6ff;
    justify-content: center
}

.section-space {
    padding: 50px 12px
}

.section-label {
    font-weight: 800;
    color: #0b58b5;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem
}

.section-space h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center
}

.service-card {
    border: 1px solid #e6ecf7;
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    min-height: 245px;
    position: relative;
    transition: .2s;
    box-shadow: 0 10px 30px rgba(19, 56, 117, .05);
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    touch-action: manipulation
}

.service-card > * {
    pointer-events: none
}

.service-card a,
.service-card button,
.service-card input,
.service-card select,
.service-card textarea {
    pointer-events: auto
}

.service-card .icon-circle {
    margin: 0 auto
}

.service-card h3 {
    margin-top: 15px
}

.service-card p {
    min-height: 48px
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 34px rgba(19, 56, 117, .13);
    border-color: #bed0ef
}

.icon-circle {
    width: 47px;
    height: 47px;
    background: #edf4ff;
    color: #0b58b5;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 18px
}

.pill {
    color: #8b6710;
    background: #fff6dc;
    border-radius: 20px;
    padding: 4px 9px;
    font-size: .7rem;
    font-weight: 800
}

.service-card h3 {
    font-size: 1.03rem;
    font-weight: 800;
    margin: 13px 0 7px
}

.service-card p {
    font-size: .82rem;
    color: #73809a;
    max-width: 210px;
    margin-left: auto;
    margin-right: auto
}

#otpModal {
    position: fixed;
    inset: 0;
    z-index: 9999999
}

#otpModal .modal-dialog {
    position: relative;
    z-index: 10000000
}

#otpModal .modal-content {
    background: #fff;
    opacity: 1
}

.modal-backdrop {
    z-index: 9999998;
    background-color: #000
}

.modal-backdrop.show {
    opacity: .72
}

.service-card p.text-center {
    text-align: center
}

.service-card strong {
    color: var(--blue)
}

.arrow {
    position: absolute;
    right: 21px;
    bottom: 21px;
    color: var(--blue)
}

.placement-card {
    background: #fbfcff
}

.notice {
    background: #f6f9ff;
    border: 1px solid #e1ebfc;
    padding: 19px;
    border-radius: 16px;
    display: flex;
    gap: 13px;
    color: #51607d;
    max-width: 860px;
    margin: 0 auto;
}

.notice-centered {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.notice-centered > div {
    min-width: 280px;
}

.notice i {
    color: #0b58b5;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden
}

.modal-header,
.modal-footer {
    border: 0;
    padding: 22px 25px
}

.modal-body {
    padding: 0 25px 22px
}

.modal label {
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 5px
}

.form-control,
.form-select {
    min-height: 45px;
    border-color: #dce3ef
}

.price-box {
    background: #f4f8ff;
    border-radius: 13px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px
}

.price-box strong {
    font-size: 1.35rem;
    color: var(--blue)
}

.checkout-quantity {
    max-width: 260px
}

.checkout-quantity .btn {
    min-width: 48px
}

.checkout-quantity .form-control {
    min-width: 76px
}

.content-page {
    padding: 55px 12px 100px;
    max-width: 880px
}

.content-page h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 12px 0 20px
}

.content-page p {
    font-size: 1.06rem;
    line-height: 1.8;
    color: #53627e
}

.narrow {
    max-width: 600px
}

.lookup-card {
    padding: 25px;
    border-radius: 18px;
    background: #f7f9fe;
    border: 1px solid #e6ecf5
}

.order-lookup-page {
    max-width: 1120px
}

.order-lookup-page.narrow {
    max-width: 880px
}

.lookup-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 26px
}

.lookup-hero h1 {
    margin-bottom: 12px
}

.lookup-entry-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #e4ebf6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(19, 56, 117, .08)
}

.lookup-entry-copy {
    padding: 30px;
    background: linear-gradient(135deg, #f4f8ff, #fff);
    border-right: 1px solid #e4ebf6
}

.lookup-entry-copy h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px
}

.lookup-entry-copy p {
    font-size: .96rem;
    line-height: 1.7;
    margin-bottom: 0
}

.lookup-form-box {
    padding: 30px
}

.lookup-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e4ebf6;
    background: #f8fbff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px
}

.lookup-order-card {
    border: 1px solid #e4ebf6 !important;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(19, 56, 117, .07)
}

.lookup-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px
}

.lookup-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.lookup-order-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px
}

.lookup-order-meta span {
    display: block;
    min-width: 0;
    border: 1px solid #e7edf6;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fbfdff;
    font-size: .92rem;
    overflow-wrap: anywhere
}

.lookup-order-meta strong {
    display: block;
    color: #66748c;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 3px
}

.lookup-voucher-panel {
    border: 1px solid #e4ebf6;
    border-radius: 14px;
    padding: 14px;
    background: #fff
}

#otpModal {
    z-index: 20050 !important
}

.modal-backdrop {
    z-index: 20040 !important
}

#otpModal .modal-content {
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .26)
}

.otp-code-input {
    letter-spacing: .35rem;
    font-weight: 800
}

.letter-spacing-2 {
    letter-spacing: 0.25em
}

.export-single {
    transition: all 0.2s ease;
}

.export-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.export-single:active {
    transform: translateY(0);
}

.mobile-nav {
    display: none
}

.admin-wrap {
    background: #f6f8fc;
    min-height: 100vh;
    padding: 30px
}

.stat {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .03)
}

@media(max-width:767px) {
    body {
        padding-bottom: 100px
    }

    .navbar {
        padding-left: 10px;
        padding-right: 10px
    }

    .hero {
        padding: 4px 0 25px
    }

    .hero-card {
        border-radius: 0;
        min-height: 430px;
        padding: 45px 26px
    }

    .trust {
        margin-top: 37px;
        gap: 12px
    }

    .section-space {
        padding-top: 38px
    }

    .mobile-nav {
        position: fixed;
        display: flex;
        justify-content: space-around;
        align-items: center;
        bottom: 15px;
        z-index: 100;
        width: 94%;
        max-width: 440px;
        left: 3%;
        right: 3%;
        background: rgba(7, 15, 70, 0.95);
        border: 1px solid rgba(228, 234, 245, 0.6);
        box-shadow: 0 10px 30px rgba(6, 38, 92, 0.17);
        border-radius: 18px;
        padding: 10px 5px;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        flex-wrap: wrap;
    }

    .mobile-nav a {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        align-items: center;
        margin: 3px 2px;
        padding: 6px 8px;
        font-size: 0.65rem;
        color: #ffffff;
        text-decoration: none;
        border-radius: 8px;
        transition: background-color 0.2s ease, transform 0.2s ease;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .mobile-nav a:active,
    .mobile-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    .mobile-nav i {
        display: block;
        font-size: 1.15rem;
        color: #ffffff;
        margin-bottom: 2px;
    }

    .mobile-nav span {
        display: block;
        line-height: 1.2;
        white-space: nowrap;
    }

    .site-footer {
        display: block
    }

    .lookup-hero,
    .lookup-toolbar,
    .lookup-order-head {
        flex-direction: column
    }

    .lookup-entry-panel {
        grid-template-columns: 1fr
    }

    .lookup-entry-copy {
        border-right: 0;
        border-bottom: 1px solid #e4ebf6;
        padding: 24px
    }

    .lookup-form-box {
        padding: 24px
    }

    .lookup-order-actions {
        justify-content: flex-start
    }

    .lookup-order-meta {
        grid-template-columns: 1fr
    }

    #buyModal .modal-dialog {
        margin: .75rem
    }

    #buyModal .modal-header,
    #buyModal .modal-footer {
        padding: 18px
    }

    #buyModal .modal-body {
        padding: 0 18px 18px
    }

    #buyModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px
    }

    #buyModal .modal-footer .btn {
        width: 100%;
        margin: 0
    }

    .checkout-quantity {
        max-width: 100%
    }
}
