/* Feabox Authentication Center – query UI */
:root {
    --fea-bg: #0a0a0f;
    --fea-tab-bar: #14151c;
    --fea-input-bg: #3b3953;
    --fea-blue: #4041c5;
    --fea-blue-hover: #4f50d4;
    --fea-text: #ffffff;
    --fea-muted: #9a9cb0;
    --fea-border: rgba(255, 255, 255, 0.08);
    --fea-green: #3ddc97;
    --fea-amber: #ffb454;
    --fea-red: #ff5d73;
    --fea-query-width: 400px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--fea-bg);
    color: var(--fea-text);
    font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Decorative background curves (green gradient shapes) */
body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

body::before {
    width: 720px;
    height: 720px;
    right: -180px;
    top: 10%;
    background: radial-gradient(circle at 30% 40%, rgba(82, 254, 125, 0.14) 0%, rgba(82, 254, 125, 0.04) 45%, transparent 70%);
    transform: rotate(-18deg);
}

body::after {
    width: 560px;
    height: 560px;
    right: -60px;
    bottom: 5%;
    background: radial-gradient(ellipse at 60% 50%, rgba(64, 65, 197, 0.12) 0%, transparent 65%);
    transform: rotate(12deg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ---------------------------------------------------------------- Header */
.fea-header {
    position: relative;
    z-index: 10;
    background: transparent;
}

.fea-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fea-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.fea-logo span {
    color: #f00069;
}

.fea-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.fea-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fea-muted);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.fea-nav a:hover,
.fea-nav a.active {
    color: #fff;
}

.fea-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* ---------------------------------------------------------------- Main */
.fea-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 280px);
}

/* Query block – centered column matching screenshot */
.fea-query-wrap {
    width: 100%;
    max-width: var(--fea-query-width);
    margin: 0 auto;
}

/* Pill tabs */
.fea-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.fea-tabs {
    display: inline-flex;
    background: var(--fea-tab-bar);
    border-radius: 50px;
    padding: 6px;
    gap: 2px;
}

.fea-tab {
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.fea-tab:not(.active) {
    color: rgba(255, 255, 255, 0.85);
}

.fea-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
}

.fea-tab.active {
    background: var(--fea-blue);
    color: #fff;
}

/* Panels */
.fea-panel {
    display: none;
    animation: feaFade 0.3s ease;
}

.fea-panel.active {
    display: block;
}

@keyframes feaFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fea-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.fea-input {
    display: block;
    width: 100%;
    max-width: var(--fea-query-width);
    height: 56px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background-color: var(--fea-input-bg);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.fea-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.fea-input:focus {
    box-shadow: 0 0 0 2px rgba(64, 65, 197, 0.55);
}

.fea-hint {
    margin-top: 12px;
    font-size: 13px;
}

.fea-hint a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.fea-hint a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Blue action button – screenshot style */
.fea-btn {
    display: inline-block;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    background: var(--fea-blue);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.15s ease;
    line-height: 1.2;
}

.fea-btn:hover {
    background: var(--fea-blue-hover);
    transform: translateY(-1px);
}

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

.fea-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Help */
.fea-help {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background: rgba(20, 21, 28, 0.85);
    border: 1px solid var(--fea-border);
    border-radius: 14px;
    text-align: center;
}

.fea-help.open {
    display: block;
}

.fea-help p {
    color: var(--fea-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 0;
}

.fea-help img {
    max-width: 280px;
    margin-top: 12px;
    border-radius: 8px;
}

/* Device result */
.fea-device-result {
    margin-top: 28px;
    width: 100%;
}

.fea-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fea-tab-bar);
    border: 1px solid var(--fea-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13px;
}

.fea-table th,
.fea-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--fea-border);
}

.fea-table th {
    background: rgba(64, 65, 197, 0.2);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fea-table td {
    color: var(--fea-text);
}

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

/* Status text */
.fea-search-status {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fea-muted);
}

.fea-search-status.ok    { color: var(--fea-green); }
.fea-search-status.warn  { color: var(--fea-amber); }
.fea-search-status.error { color: var(--fea-red); }

/* Dealer verification – below query, same width */
.fea-dealer-search {
    width: 100%;
    max-width: 560px;
    margin: 72px auto 0;
    padding: 36px 28px;
    background: rgba(20, 21, 28, 0.6);
    border: 1px solid var(--fea-border);
    border-radius: 16px;
    text-align: center;
}

.fea-search-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.35;
    color: #fff;
}

.fea-search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.fea-search-form .fea-input {
    max-width: 100%;
}

.fea-search-form .fea-btn {
    align-self: flex-start;
}

.fea-search-result {
    margin-top: 24px;
    text-align: left;
}

.fea-cert {
    background: rgba(59, 57, 83, 0.35);
    border: 1px solid var(--fea-border);
    border-radius: 12px;
    padding: 24px;
}

.fea-cert-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.fea-cert-badge.ok    { background: rgba(61, 220, 151, 0.16); color: var(--fea-green); }
.fea-cert-badge.warn  { background: rgba(255, 180, 84, 0.16); color: var(--fea-amber); }
.fea-cert-badge.error { background: rgba(255, 93, 115, 0.16); color: var(--fea-red); }

.fea-cert p {
    line-height: 1.65;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 12px;
}

.fea-cert-name {
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid var(--fea-blue);
}

.fea-cert-region {
    color: #8b8dff;
    font-weight: 600;
}

.fea-cert-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--fea-border);
    display: grid;
    gap: 8px;
}

.fea-cert-meta .row {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.fea-cert-meta .label {
    color: var(--fea-muted);
    min-width: 150px;
}

.fea-cert-meta .value {
    color: #fff;
    font-weight: 600;
}

.fea-cert-img {
    width: 100%;
    border-radius: 10px;
}

/* ---------------------------------------------------------------- Footer */
.fea-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border-top: 1px solid var(--fea-border);
    background: rgba(10, 10, 15, 0.9);
}

.fea-footer-top {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fea-footer .fea-logo {
    font-size: 20px;
}

.fea-subscribe-text {
    color: var(--fea-muted);
    font-size: 13px;
    font-weight: 600;
    max-width: 240px;
}

.fea-subscribe {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fea-subscribe input {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--fea-border);
    background: rgba(59, 57, 83, 0.5);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    min-width: 200px;
}

.fea-subscribe input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fea-subscribe button {
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: var(--fea-blue);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.fea-footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px 32px;
    border-top: 1px solid var(--fea-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    color: var(--fea-muted);
}

.fea-footer-bottom .links {
    display: flex;
    gap: 24px;
}

.fea-footer-bottom .links a:hover {
    color: #fff;
}

.fea-footer-bottom .address {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fea-footer-bottom .address svg {
    width: 14px;
    height: 14px;
    fill: var(--fea-muted);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
    .fea-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--fea-tab-bar);
        border-bottom: 1px solid var(--fea-border);
        padding: 8px 24px 16px;
        display: none;
    }

    .fea-nav.open {
        display: flex;
    }

    .fea-nav a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--fea-border);
    }

    .fea-nav-toggle {
        display: block;
    }

    .fea-header {
        background: rgba(10, 10, 15, 0.95);
    }
}

@media (max-width: 480px) {
    :root {
        --fea-query-width: 100%;
    }

    .fea-tab {
        padding: 9px 14px;
        font-size: 12px;
    }

    .fea-main {
        padding: 32px 18px 64px;
    }

    .fea-dealer-search {
        margin-top: 48px;
        padding: 24px 18px;
    }

    .fea-search-title {
        font-size: 17px;
    }

    .fea-table {
        font-size: 11px;
    }

    .fea-table th,
    .fea-table td {
        padding: 8px 6px;
    }
}
