:root {
    color-scheme: light;
    --bg: #edf1fb;
    --surface: #ffffff;
    --surface-alt: #f7f8ff;
    --text: #112240;
    --text-muted: #4b5f82;
    --primary: #3a63d1;
    --primary-dark: #1b4099;
    --border: #d6def5;
    --shadow-soft: 0 18px 40px rgba(58, 99, 209, 0.12);
    --success: #14a44d;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: .75rem;
}

figure {
    margin: 0 0 1rem;
}

figcaption {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .5rem;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: .4rem 0;
}

.brand__logo {
    display: inline-flex;
    max-width: 385px;
}

.brand__logo svg {
    display: block;
    width: 385px;
    height: auto;
}

.primary-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: var(--text);
    font-weight: 300;
    padding: .4rem .2rem;

}

.primary-nav a.is-active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.lang-switcher {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.site-header__toggle-line {
    width: 18px;
    height: 2px;
    background: var(--primary);
    transition: transform .2s ease, opacity .2s ease;
}

.site-header__toggle.is-open .site-header__toggle-line {
    width: 22px;
}

.site-header__toggle.is-open .site-header__toggle-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.site-header__toggle.is-open .site-header__toggle-line:nth-child(2) {
    opacity: 0;
}

.site-header__toggle.is-open .site-header__toggle-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.lang-switcher a {
    padding: .35rem .6rem;
    border-radius: .4rem;
    font-size: .85rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.lang-switcher a.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.site-main {
    padding: 1.5rem 0 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.intro-panel {
    background: var(--surface);
    border-radius: 1.2rem;
    padding: 2.75rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.intro-panel__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-panel__content .btn {
    align-self: center;
    display: inline-flex;
    margin: 1rem 0 2rem;
}

.intro-panel p {
    max-width: 920px;
    color: var(--text-muted);
    margin: 0 auto;
    font-size: 1.05rem;
}

.intro-panel__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.intro-panel__card {
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.6rem;
    background: var(--surface-alt);
    box-shadow: 0 12px 30px rgba(58, 99, 209, 0.08);
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.intro-panel__card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
}

.intro-panel__card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.intro-panel__card a {
    margin-top: auto;
    font-weight: 600;
    text-decoration: none;
}

.intro-panel__card a:hover {
    text-decoration: underline;
}

.breadcrumbs {
    font-size: .9rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.breadcrumbs ol {
    display: flex;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: "/";
    margin-left: .35rem;
    color: var(--border);
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: var(--text-muted);
}

.page-article {
    background: var(--surface);
    border-radius: 1.2rem;
    padding: 2.9rem;
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: center;
    width: 100%;
}

.page-hero__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.page-body {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.page-body section,
.page-body article {
    border: 1px solid rgba(17, 34, 64, 0.08);
    border-radius: 1.1rem;
    padding: 1.75rem;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.page-body h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
}

.page-body h2::after {
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(58, 99, 209, 0.45), transparent);
}

.page-body h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.page-body p {
    margin: .4rem 0;
}

.page-body ul,
.page-body ol {
    padding-left: 1.4rem;
    margin: .6rem 0;
    color: var(--text);
}

.page-body ol li::marker {
    font-weight: 700;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.feature-list li {
    border-left: 4px solid var(--primary);
    border-radius: .35rem;
    padding: .85rem 1.1rem;
    background: linear-gradient(90deg, #ffffff 0%, rgba(237, 241, 251, 0.65) 100%);
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.feature-list li a {
    color: var(--primary);
    font-weight: 600;
}

.feature-list li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.hub-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.5rem;
}

.hub-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(17, 34, 64, 0.08);
    padding: 1.4rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.09);
}

.hub-card__link {
    margin-top: auto;
    font-weight: 600;
}

.seo-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(17, 34, 64, 0.08);
    padding: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6ff 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.seo-card__title {
    text-transform: uppercase;
    font-size: .85rem;
    color: var(--text-muted);
    letter-spacing: .15rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.contact-form input,
.contact-form textarea {
    padding: .75rem;
    border-radius: .6rem;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
}

.contact-form button {
    align-self: flex-start;
    padding: .65rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: .6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    border-radius: 0.95rem;
    border-left: 4px solid var(--primary) !important;
    padding: 1.1rem 1.4rem;
    background: linear-gradient(90deg, #ffffff 0%, rgba(237, 241, 251, 0.65) 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 10px;
}

.site-footer {
    background: #0c1120;
    color: #dfe6fb;
    padding: 2rem 1.5rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.site-footer__note {
    margin: .4rem 0 0;
    color: #96a1c9;
    font-size: .9rem;
}

.site-footer__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer__links-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 150px;
}

.site-footer__links-group strong {
    color: #96a1c9;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .1rem;
}

.site-footer__links-group a {
    color: #dfe6fb;
    font-weight: 300;
}

.site-footer .lang-switcher__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.site-footer .lang-switcher__tags a {
    font-size: .75rem;
    padding: .25rem .45rem;
    border-radius: .3rem;
}

.share-panel {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.share-panel__actions,
.share-panel__fallback {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.share-panel__chip {
    border: 1px solid rgba(223, 230, 251, 0.5);
    border-radius: .35rem;
    padding: .3rem .6rem;
    color: #dfe6fb;
    background: transparent;
    font-size: .75rem;
    line-height: 1.2;
    letter-spacing: .05em;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.share-panel__chip:hover,
.share-panel__chip:focus {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.share-panel__share-button {
    display: none;
    cursor: pointer;
}

.share-panel__share-button--ready {
    display: inline-flex;
}

.share-panel__fallback--hidden {
    display: none;
}

.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 680px);
    background: rgba(12, 17, 32, 0.9);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-banner__text {
    font-size: .9rem;
    text-align: center;
}

.cookie-banner__text a {
    color: #8fb4ff;
    text-decoration: underline;
}

.cookie-banner__accept {
    align-self: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border-radius: .8rem;
    padding: .65rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(10, 33, 66, 0.15);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: var(--surface-alt);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0;
    border: none;
    font-weight: 300;
    text-decoration: none;
    box-shadow: none;
}

.btn-link:hover,
.btn-link:focus {
    text-decoration: none;
    box-shadow: none;
}

#new_lookup_form {
    width: 100%;
}

#new_lookup_form>form>div {
    display: inline-block;
    vertical-align: top;
    margin: 0 3px;
}

#new_lookup_form>form>div a {
    display: block;
}
#new_lookup_form>form>div button{
    margin-top: .3rem;
}

.lookup-panel {
    background: var(--surface);
    border-radius: 0.7rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    /* box-shadow: 0 14px 40px rgba(17, 38, 146, 0.08); */
    /* margin-bottom: 1.5rem; */
    max-width: 650px;
    text-align: center;
    margin: 0 auto 1.5rem;
}

.lookup-panel>div {
    display: inline-block;
    width: 254px;
    vertical-align: top;
    text-align: center;
    margin: 0 20px;
}

.lookup-panel--standalone {
    margin-top: 1rem;
}

.lookup-panel header {
    display: flex;
    align-items: center;
    min-height: 135px;
}

.lookup-panel header h2 {
    margin: 0 0 .4rem;
}

.lookup-panel header p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.lookup-form {
    /* display: flex; */
    flex-direction: column;
    gap: .5rem;
}

.lookup-form__field label {
    font-weight: 600;
}

.lookup-form__input,
.lookup-form .form-control,
.lookup-form input,
.lookup-form textarea {
    width: 100%;
    padding: .85rem;
    border-radius: .8rem;
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

#header-imei-field,
#lookup-imei-field {
    width: 190px;
}

#header-imei-field::placeholder,
#lookup-imei-field::placeholder {
    font-size: 13px;
}

#header-imei-field::-webkit-input-placeholder,
#lookup-imei-field::-webkit-input-placeholder {
    font-size: 13px;
}

#header-imei-field:-ms-input-placeholder,
#lookup-imei-field:-ms-input-placeholder {
    font-size: 13px;
}

#header-imei-field::-ms-input-placeholder,
#lookup-imei-field::-ms-input-placeholder {
    font-size: 13px;
}

.lookup-form__label {
    display: block;
    margin-bottom: .3rem;
    font-weight: 300;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.lookup-form__actions {
    /* display: flex; */
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: .5rem;
}

.lookup-form__hint {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
}

.results-panel,
.results-info,
.faq-panel,
.success-panel,
.result-status,
.next-steps,
.signup-panel {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(17, 38, 146, 0.05);
    margin-top: 1.5rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.result-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--surface-alt);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.result-card__meta {
    font-size: .85rem;
    color: var(--text-muted);
}

.result-card__imei {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .1rem;
}

.result-card__note {
    margin: 0;
}

.result-card__phone {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
}

.result-card__contact {
    border: 1px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    padding: .5rem;
    border-radius: .65rem;
    cursor: pointer;
    font-weight: 600;
}

.result-card__email {
    display: none;
    font-weight: 600;
}

.result-card__email.is-visible {
    display: block;
}

.results-panel__cta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-grid article {
    border-radius: .95rem;
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.4rem;
    background: linear-gradient(90deg, #ffffff 0%, rgba(237, 241, 251, 0.65) 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.faq-panel article {
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--primary);
    border-radius: .65rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(90deg, #ffffff 0%, rgba(237, 241, 251, 0.45) 100%);
    box-shadow: inset 0 1px 0 rgba(17, 34, 64, 0.05);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-form .form-control {
    font-family: inherit;
    font-size: 1rem;
}

.signup-form__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.signup-form__disclaimer {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
}

.success-panel__status {
    border: 1px solid var(--border);
    border-radius: .9rem;
    padding: 1rem;
    background: var(--surface-alt);
    margin-bottom: 1rem;
}

.success-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.status-meter {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--surface-alt);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.status-meter__label {
    font-weight: 600;
    color: var(--text-muted);
}

.status-meter__bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 999px;
    animation: pulseBar 1.5s infinite;
}

@keyframes pulseBar {
    0% {
        width: 10%;
        opacity: .6;
    }

    50% {
        width: 80%;
        opacity: 1;
    }

    100% {
        width: 40%;
        opacity: .8;
    }
}

@media (max-width: 1024px) {
    .primary-nav ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    .page-body section,
    .page-body article {
        padding: 1rem;
    }

    .page-body h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem;
    }

    .page-body h2::after {
        content: none;
    }

    .feature-list {
        gap: .65rem;
    }

    .feature-list li {
        padding: .9rem 1rem;
    }

    .faq-item {
        padding: .85rem 1rem;
    }
}

@media (max-width: 768px) {
    #new_lookup_form>form>div{
        width: 100%;
    }
    .lookup-panel header {
        min-height: 0;
    }

    .lookup-panel>div {
        margin: 0;
    }

    .lookup-panel--standalone {
        margin-left: -22px;
        margin-right: -22px;
    }

    .lookup-form__label{
        margin-top: 0;
    }

    .brand__logo {
        max-width: 280px;
    }

    .primary-nav a {
        font-size: 18px;
    }

    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9rem 1rem 0.6rem;
        gap: .5rem;
    }

    .site-header__toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }

    .site-header__nav {
        width: 100%;
        flex-direction: column;
        border-top: 1px solid var(--border);
        padding-top: 1rem;
        display: none;
    }

    .site-header__nav.is-open {
        display: flex;
    }

    .primary-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .page-article {
        padding: 1.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .lang-switcher,
    .share-panel {
        width: 100%;
    }
}

h3 {
    font-size: 1.2rem;
}

.page-article {
    border: 1px solid #d7ddea;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

section.seo-card ul {
    padding-left: 0;
}