.search-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.search-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 96px 0 48px;
}

.main-card.compact {
    padding: 28px 32px;
}

.search-header.hidden {
    display: none;
}

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

.search-card-head-left h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
}

.quota-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(91, 155, 255, 0.12);
    border: 1px solid rgba(91, 155, 255, 0.35);
    color: #b8ecff;
    white-space: nowrap;
}

.search-filters {
    padding: 0;
    margin-bottom: 18px;
    background: none;
    border: none;
}

.quota-bar-compact {
    padding: 10px 14px;
    margin-bottom: 16px;
}

.quota-bar-compact .quota-bar-track {
    height: 4px;
}

.settings-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-block h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-heading {
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: 700;
}

.results-hint {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* —— Fluidité UI —— */
@keyframes jarvisResultIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.results-animate-in .result-item {
    animation: jarvisResultIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.results-animate-in .result-item:nth-child(1) { animation-delay: 0ms; }
.results-animate-in .result-item:nth-child(2) { animation-delay: 35ms; }
.results-animate-in .result-item:nth-child(3) { animation-delay: 70ms; }
.results-animate-in .result-item:nth-child(4) { animation-delay: 105ms; }
.results-animate-in .result-item:nth-child(5) { animation-delay: 140ms; }
.results-animate-in .result-item:nth-child(6) { animation-delay: 175ms; }
.results-animate-in .result-item:nth-child(7) { animation-delay: 210ms; }
.results-animate-in .result-item:nth-child(8) { animation-delay: 240ms; }
.results-animate-in .result-item:nth-child(n+9) { animation-delay: 270ms; }

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

.tab-pane-enter {
    animation: jarvisTabIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes jarvisPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.search-panel-enter {
    animation: jarvisPanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes jarvisCardIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-card-enter {
    animation: jarvisCardIn 0.22s ease-out both;
}

.search-section.session-reveal {
    animation: jarvisCardIn 0.22s ease-out both;
}

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

#alertContainer .alert {
    animation: jarvisAlertIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-hero-btn.is-loading,
.search-v3-primary.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.search-hero-btn.is-loading::after,
.search-v3-primary.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jarvisBtnSpin 0.6s linear infinite;
}

@keyframes jarvisBtnSpin {
    to { transform: rotate(360deg); }
}

.search-timing-badge {
    margin: 0 0 14px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    opacity: 0.85;
}

.search-mode-btn,
.search-type-select,
.search-hero-btn,
.tab {
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.search-hero-bar {
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.main-card.compact {
    transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.35s ease, box-shadow 0.35s ease;
}

.search-container.compact {
    transition: padding-top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .results-animate-in .result-item,
    .tab-pane-enter,
    .search-panel-enter,
    .main-card-enter,
    #alertContainer .alert {
        animation: none !important;
    }

    .search-hero-btn.is-loading::after,
    .search-v3-primary.is-loading::after {
        animation: none;
    }

    .search-mode-btn,
    .search-type-select,
    .search-hero-btn,
    .tab,
    .main-card.compact,
    .search-container.compact {
        transition: none;
    }
}

.result-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.result-item-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.result-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(91, 155, 255, 0.15);
    color: #b8ecff;
    border: 1px solid rgba(91, 155, 255, 0.25);
}

.result-body {
    min-width: 0;
    flex: 1;
}

.result-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.result-source-badge {
    display: none !important;
}

.result-source-badge--legacy {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(91, 155, 255, 0.12);
    border: 1px solid rgba(91, 155, 255, 0.28);
    color: #9ec8ff;
}

.result-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.result-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.result-birth {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #b8d4ff;
    background: rgba(47, 106, 224, 0.18);
    border: 1px solid rgba(47, 106, 224, 0.35);
    border-radius: 999px;
    vertical-align: middle;
}

.result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

.result-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.result-chip--price {
    color: #b8f0c8;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    font-family: 'JetBrains Mono', monospace;
}

.result-chip--plan {
    color: #c8dcff;
    background: rgba(91, 155, 255, 0.1);
    border-color: rgba(91, 155, 255, 0.28);
}

mark.jarvis-hl {
    background: rgba(91, 155, 255, 0.32);
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}

.result-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.result-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-detail-title {
    margin: 8px 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
}

.result-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
}

.result-section-title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ec8ff;
}

.result-field-grid {
    display: grid;
    gap: 10px;
}

.result-field {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-field:last-child {
    border-bottom: none;
}

.result-field-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.result-field-value {
    font-size: 0.92rem;
    word-break: break-word;
    font-family: 'JetBrains Mono', monospace;
}

.result-field-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.result-map-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.result-map-link {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(91, 155, 255, 0.28);
    background: rgba(91, 155, 255, 0.1);
    color: #9ec8ff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.result-map-link:hover {
    background: rgba(91, 155, 255, 0.2);
    color: #fff;
}

.result-map-link--earth {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
    color: #86efac;
}

.result-map-link--earth:hover {
    background: rgba(52, 211, 153, 0.2);
    color: #fff;
}

.result-copy-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
}

.result-copy-btn:hover {
    background: rgba(91, 155, 255, 0.15);
    color: #fff;
}

@media (max-width: 720px) {
    .result-field {
        grid-template-columns: 1fr;
    }

    .result-item-inner {
        flex-direction: column;
        align-items: stretch;
    }
}

.settings-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.key-field-row {
    display: flex;
    gap: 8px;
}

.key-masked-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text);
}

.key-toggle-btn {
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
}

.key-toggle-btn:hover {
    background: rgba(91, 155, 255, 0.12);
    border-color: rgba(91, 155, 255, 0.35);
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
}

.search-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

.search-legal-note {
    max-width: 560px;
    margin: 12px auto 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.8;
}

.main-card {
    background: rgba(11, 16, 25, 0.92);
    border: 1px solid rgba(91, 155, 255, 0.16);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.quota-bar-wrap {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(91, 155, 255, 0.06);
    border: 1px solid rgba(91, 155, 255, 0.15);
    border-radius: 14px;
}

.quota-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.quota-bar-header strong {
    color: var(--primary);
}

.quota-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.quota-bar-fill.warn {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.quota-bar-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.quota-badge.quota-badge--low {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
}

.quota-badge.quota-badge--empty {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
}

.quota-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-primary {
    margin-bottom: 28px;
}

.search-primary label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 18px;
}

.search-input-main {
    width: 100%;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(91, 155, 255, 0.2);
    border-radius: 14px;
    font-size: 18px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-input-main:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 155, 255, 0.12);
}

.search-hint {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.search-primary .search-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.search-filters {
    padding: 20px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.search-filters-title {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.identity-form {
    margin-bottom: 20px;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.identity-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.identity-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 155, 255, 0.25);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.identity-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.15);
}

.identity-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #93c5fd;
}

.identity-field-wide {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .identity-grid {
        grid-template-columns: 1fr;
    }
}

.search-type-icon {
    font-size: 22px;
}

.search-fields-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .search-primary .search-buttons {
        grid-template-columns: 1fr;
    }
}

.history-panel {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.history-panel h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.history-chip:hover {
    border-color: var(--primary);
    background: rgba(91, 155, 255, 0.08);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.account-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.account-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.account-item span {
    font-size: 15px;
    font-weight: 600;
}

.jarvis-wallpaper {
    position: fixed;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.jarvis-wallpaper-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 130% 90% at 50% 108%, rgba(0, 0, 0, 0.28), transparent 58%),
        linear-gradient(180deg, rgba(5, 8, 16, 0.06) 0%, rgba(5, 8, 16, 0.18) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.has-custom-wallpaper {
    background: transparent !important;
}

body.has-custom-wallpaper .jarvis-wallpaper {
    opacity: 1;
}

body.has-custom-wallpaper .jarvis-wallpaper-overlay {
    opacity: 0.42;
}

body.has-custom-wallpaper .page-bg {
    display: none !important;
}

body.has-custom-wallpaper .header {
    background: rgba(5, 8, 16, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.has-custom-wallpaper .main-card {
    background: rgba(11, 16, 25, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

body.has-custom-wallpaper .search-title,
body.has-custom-wallpaper .search-subtitle {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

body.has-custom-wallpaper .footer {
    background: transparent;
}

.wallpaper-preview {
    position: relative;
    width: 100%;
    height: 160px;
    margin: 12px 0 16px;
    border-radius: 14px;
    border: 2px dashed rgba(91, 155, 255, 0.35);
    background: rgba(0, 0, 0, 0.35) center/cover no-repeat;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.wallpaper-preview:hover,
.wallpaper-preview:focus-visible {
    border-color: rgba(91, 155, 255, 0.7);
    transform: translateY(-1px);
    outline: none;
}

.wallpaper-preview.has-image {
    border-style: solid;
    border-color: rgba(91, 155, 255, 0.25);
}

.wallpaper-preview.has-image .wallpaper-preview-hint {
    opacity: 0;
}

.wallpaper-preview-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(5, 8, 16, 0.55);
    pointer-events: none;
    transition: opacity 0.2s;
}

.wallpaper-preview.drag-over {
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(91, 155, 255, 0.25);
}

.wallpaper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ========== Search page — largeur + mode connecté (base VPS) ========== */

.search-container .container {
    max-width: min(94vw, 1040px);
}

/* —— Quota dock (3 pools, un seul endroit) —— */

.quota-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 18px;
    width: 100%;
    max-width: 720px;
}

.quota-dock[hidden] {
    display: none !important;
}

.quota-dock-pools {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.quota-pool {
    flex: 1 1 150px;
    max-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.quota-pool:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(91, 155, 255, 0.25);
}

.quota-pool--active {
    border-color: rgba(91, 155, 255, 0.45);
    background: rgba(91, 155, 255, 0.08);
}

.quota-pool--fivem.quota-pool--active {
    border-color: rgba(255, 133, 85, 0.45);
    background: rgba(255, 133, 85, 0.08);
}

.quota-pool--osint.quota-pool--active {
    border-color: rgba(91, 155, 255, 0.45);
}

.quota-pool--static {
    cursor: default;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.quota-pool--static:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.quota-pool-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.quota-pool-val {
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #b8d4ff;
}

.quota-pool--fivem .quota-pool-val {
    color: #ffd4b8;
}

.quota-pool--low .quota-pool-val {
    color: #ffb4b4;
}

.quota-pool--empty .quota-pool-val {
    color: #ff6b6b;
}

.quota-pool-track {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.quota-pool-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b9bff, #2f6ae0);
    transition: width 0.3s ease;
}

.quota-pool--fivem .quota-pool-fill {
    background: linear-gradient(90deg, #ffb070, #ff8555);
}

.quota-pool-fill--warn {
    background: linear-gradient(90deg, #fbbf24, #f59e0b) !important;
}

.quota-pool-fill--danger {
    background: linear-gradient(90deg, #f87171, #ef4444) !important;
}

.quota-dock-hint {
    margin: 0;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.75;
    text-align: center;
}

.search-v3-hint--title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #ffd4b8;
}

.search-v3-fivem .search-v3-hint:not(.search-v3-hint--title) {
    text-align: center;
}

.search-container.compact .container {
    max-width: min(94vw, 1040px);
    padding-left: 20px;
    padding-right: 20px;
}

.search-container.compact {
    padding-top: 72px;
    padding-bottom: 28px;
}

.main-card.compact {
    padding: 18px 24px 22px;
    width: 100%;
    border-radius: 18px;
    border-color: rgba(91, 155, 255, 0.14);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.main-card.compact .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 20px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: fit-content;
    max-width: 100%;
}

.main-card.compact .tab {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
}

.main-card.compact .tab.active {
    background: linear-gradient(135deg, #5b9bff 0%, #2f6ae0 55%, #1e4fad 100%);
    border-color: rgba(126, 200, 255, 0.35);
    color: #fff;
    box-shadow: 0 4px 16px rgba(47, 106, 224, 0.3);
}

.main-card.compact .tab.tab--fivem.active {
    background: linear-gradient(135deg, #FFB070 0%, #FF8555 55%, #D94820 100%);
    border-color: rgba(255, 194, 170, 0.35);
    box-shadow: 0 4px 16px rgba(255, 133, 85, 0.32);
}

.search-v3-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.search-v3-panel {
    min-width: 0;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.search-v3-results-pane {
    min-width: 0;
    width: 100%;
}

.search-v3-fivem {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.search-v3-osint .osint-shell {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.search-v3-osint .osint-panel,
.search-v3-osint .osint-output {
    width: 100%;
}

.search-v3-osint .osint-v2-header,
.search-v3-osint .osint-panel .search-hero {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.search-v3-osint .osint-mode-toggle {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.search-v3-osint .osint-v2-toolbar {
    justify-content: center;
    flex-wrap: wrap;
}

.search-v3-osint .search-v3-hint,
.search-v3-osint .osint-v2-desc {
    text-align: center;
}

.search-v3-fivem .search-v3-toolbar {
    justify-content: center;
    flex-wrap: wrap;
}

.search-v3-fivem .search-v3-hint {
    text-align: center;
}

.search-v3-panel .search-v3-hint {
    text-align: center;
}

.search-v3-panel .search-v3-type--general label {
    text-align: center;
}

.search-v3-footer {
    width: 100%;
}

.search-v3-results-pane .results:empty {
    display: none;
}

.search-v3-results-pane .results:not(:empty),
.search-v3-results-pane .results-empty-host:not([hidden]) {
    min-height: 120px;
}

#fivemResults.results,
#osintTab .results {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

body.has-custom-wallpaper .jarvis-wallpaper-overlay {
    opacity: 0.58;
    background:
        linear-gradient(90deg, rgba(5, 8, 16, 0.78) 0%, rgba(5, 8, 16, 0.12) 20%, rgba(5, 8, 16, 0.12) 80%, rgba(5, 8, 16, 0.78) 100%),
        radial-gradient(ellipse 120% 85% at 50% 105%, rgba(0, 0, 0, 0.4), transparent 55%),
        linear-gradient(180deg, rgba(5, 8, 16, 0.1) 0%, rgba(5, 8, 16, 0.32) 100%);
}

@media (max-width: 768px) {
    .main-card.compact .tabs {
        width: 100%;
        justify-content: center;
    }

    .search-v3-panel,
    .search-v3-fivem {
        max-width: 100%;
    }
}

.search-v3-fivem .fivem-tab-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FFD4B8;
}

.search-v3-fivem {
    border-color: rgba(255, 133, 85, 0.12);
}

.search-hero-bar--fivem {
    border-color: rgba(255, 133, 85, 0.28);
}

.search-hero-bar--fivem:focus-within {
    border-color: rgba(255, 133, 85, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 133, 85, 0.1), 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-hero-btn--fivem {
    background: linear-gradient(135deg, #FFB070 0%, #FF8555 55%, #D94820 100%);
    border-left-color: rgba(255, 194, 170, 0.3);
}


.search-v3-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.search-v3-type {
    flex: 1;
    min-width: 0;
}

.search-v3-type label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.search-type-select {
    width: 100%;
    appearance: none;
    padding: 12px 44px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    text-align: center;
    text-align-last: center;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat,
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 155, 255, 0.22);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-type-select:hover,
.search-type-select:focus {
    outline: none;
    border-color: rgba(91, 155, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.1);
}

.search-type-select option {
    background: #0b1019;
    color: var(--text);
}

.search-v3-hint {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.quota-badge {
    background: rgba(91, 155, 255, 0.1);
    border: 1px solid rgba(91, 155, 255, 0.28);
    color: #b8d4ff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.history-panel {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.history-panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.history-panel-count {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: none;
}

.history-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.history-panel-toggle[aria-expanded="true"] .history-chevron {
    transform: rotate(180deg);
}

.history-clear-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: inherit;
}

.history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.history-chips--collapsed {
    max-height: 30px;
    overflow: hidden;
}

.history-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 200px;
    padding: 4px 9px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(91, 155, 255, 0.07);
    border: 1px solid rgba(91, 155, 255, 0.18);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}

.history-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

.search-v3-type--general {
    margin: 0 0 12px;
}

.search-v3-type--general label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}

.search-v3-type--general .search-type-select {
    width: 100%;
    max-width: 100%;
}

/* —— Filtre type (picker custom) —— */

.filter-picker {
    margin: 0 0 14px;
}

.filter-picker-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}

.filter-picker-shell {
    position: relative;
    width: 100%;
}

.filter-picker:has(.filter-picker-shell.is-open) {
    position: relative;
    z-index: 60;
}

#simpleSearchForm.is-filter-menu-covered {
    pointer-events: none;
}

.filter-picker-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.filter-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid rgba(91, 155, 255, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #eef4ff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.filter-picker-shell.is-open .filter-picker-trigger,
.filter-picker-trigger:hover {
    border-color: rgba(91, 155, 255, 0.5);
    background: linear-gradient(180deg, rgba(91, 155, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.filter-picker-shell.is-open {
    z-index: 50;
}

.filter-picker-shell.is-open .filter-picker-trigger {
    box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.12), 0 10px 32px rgba(0, 0, 0, 0.28);
}

.filter-picker-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(91, 155, 255, 0.14);
    color: #9ec8ff;
    flex-shrink: 0;
}

.filter-picker-trigger-icon .ui-ic {
    width: 16px;
    height: 16px;
}

.filter-picker-value {
    flex: 1;
    text-align: center;
}

.filter-picker-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.filter-picker-shell.is-open .filter-picker-chevron {
    transform: rotate(180deg);
    color: #9ec8ff;
}

.filter-picker-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(340px, 52vh);
    overflow-y: auto;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(91, 155, 255, 0.22);
    background: rgba(9, 14, 24, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: filterPickerIn 0.22s ease-out both;
}

.filter-picker-menu[hidden] {
    display: none !important;
}

@keyframes filterPickerIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.filter-picker-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 2px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.filter-picker-option:last-child {
    margin-bottom: 0;
}

.filter-picker-option:hover {
    background: rgba(91, 155, 255, 0.08);
    border-color: rgba(91, 155, 255, 0.15);
}

.filter-picker-option.is-active {
    background: linear-gradient(90deg, rgba(47, 106, 224, 0.28) 0%, rgba(91, 155, 255, 0.1) 100%);
    border-color: rgba(126, 200, 255, 0.35);
}

.filter-picker-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #9ec8ff;
    flex-shrink: 0;
}

.filter-picker-option.is-active .filter-picker-option-icon {
    background: rgba(91, 155, 255, 0.2);
    color: #fff;
}

.filter-picker-option-icon .ui-ic {
    width: 18px;
    height: 18px;
}

.filter-picker-option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.filter-picker-option-label {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5ff;
}

.filter-picker-option-desc {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.85;
}

.filter-picker-option-check {
    width: 18px;
    height: 18px;
    color: #7ec8ff;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.18s;
}

.filter-picker-option.is-active .filter-picker-option-check {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .filter-picker-menu {
        animation: none;
    }
}

.search-v3-toolbar--modes {
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.search-mode-toggle {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-mode-btn {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-secondary, #9fb0c7);
    padding: 8px 20px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-mode-btn:hover {
    color: #fff;
}

.search-mode-btn.active {
    background: linear-gradient(135deg, #5b9bff 0%, #2f6ae0 55%, #1e4fad 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(47, 106, 224, 0.35);
}

.results-list .result-item {
    background: rgba(8, 12, 22, 0.88);
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(91, 155, 255, 0.16);
    border-left: 3px solid rgba(91, 155, 255, 0.55);
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.results-list .result-item:hover {
    border-color: rgba(91, 155, 255, 0.38);
    border-left-color: #5b9bff;
    box-shadow: 0 10px 32px rgba(47, 106, 224, 0.14);
    transform: translateY(-2px);
}

.results-list .result-title {
    font-size: 1.08rem;
    font-weight: 650;
    color: #eef4ff;
    margin: 0 0 4px;
}

.result-item pre {
    background: rgba(0, 0, 0, 0.4);
    color: var(--secondary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-view-btn {
    transition: background 0.2s ease, transform 0.2s ease;
}

.detail-view-btn:hover {
    transform: translateY(-1px);
}

.search-hero {
    margin-bottom: 4px;
}

.search-hero--general {
    margin: 8px 0 12px;
}

.search-hero--general .search-hero-bar {
    border-radius: 16px;
    min-height: 58px;
}

.search-hero--general .search-hero-input {
    padding: 18px 22px;
    font-size: 17px;
}

.search-hero--general .search-hero-btn {
    padding: 0 28px;
    font-size: 15px;
    min-width: 132px;
    width: auto;
}

.search-smart-examples {
    margin: 10px 2px 0;
    font-size: 12px;
    color: var(--text-secondary, #9fb0c7);
    line-height: 1.5;
}

.search-smart-examples code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.search-hero-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    border: 1px solid rgba(91, 155, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-hero-bar:focus-within {
    border-color: rgba(91, 155, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(91, 155, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-hero-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 16px 18px;
    font-size: 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.search-hero-input:focus {
    outline: none;
}

.search-hero-input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.search-hero-btn {
    flex-shrink: 0;
    border: none;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #5b9bff 0%, #2f6ae0 55%, #1e4fad 100%);
    border-left: 1px solid rgba(126, 200, 255, 0.25);
    transition: filter 0.2s, background 0.2s;
}

.search-hero-btn:hover {
    filter: brightness(1.06);
}

.identity-form--card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.identity-form--card .identity-field label {
    font-size: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.identity-form--card .field-tag {
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 700;
    color: #9ec8ff;
    letter-spacing: 0.04em;
}

.identity-form--card .autofill-decoy,
.identity-form--card .jarvis-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.jarvis-bait-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.identity-form--card .identity-field label svg.ui-ic {
    display: none;
}

.identity-form--card .identity-field input {
    padding: 11px 13px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.identity-form--card .identity-field input:focus {
    border-color: rgba(91, 155, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.08);
}

.identity-form--card .identity-grid {
    gap: 10px;
}

.search-v3-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.search-v3-primary {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #5b9bff 0%, #2f6ae0 55%, #1e4fad 100%);
    box-shadow: 0 8px 24px rgba(47, 106, 224, 0.3);
    transition: filter 0.2s, transform 0.2s;
}

.search-v3-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.search-exact-link {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.search-exact-link:hover {
    color: #9ec8ff;
}

/* Quota */
.quota-remaining-text {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.quota-reset-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.is-quota-blocked {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

/* Onboarding */
.search-onboarding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: rgba(91, 155, 255, 0.08);
    border: 1px solid rgba(91, 155, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.search-onboarding[hidden] {
    display: none !important;
}

.search-onboarding-dismiss {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid rgba(91, 155, 255, 0.35);
    border-radius: 8px;
    background: rgba(91, 155, 255, 0.12);
    color: #9ec8ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* Empty state */
.results-empty-host[hidden] {
    display: none !important;
}

.results-empty-state {
    padding: 36px 24px;
    text-align: center;
    border: 1px dashed rgba(91, 155, 255, 0.25);
    border-radius: 16px;
    background: rgba(91, 155, 255, 0.04);
    margin-bottom: 20px;
}

.results-empty-icon {
    margin-bottom: 12px;
    color: var(--accent);
}

.results-empty-icon .ui-ic {
    width: 40px;
    height: 40px;
}

.results-empty-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.results-empty-steps {
    text-align: left;
    max-width: 420px;
    margin: 0 auto 16px;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.results-empty-shortcuts {
    margin: 0;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    opacity: 0.85;
}

/* Skeleton loaders */
.skeleton-wrap {
    padding: 8px 0 24px;
}

.skeleton-label {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.skeleton-card {
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-card--short {
    max-width: 60%;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line--lg {
    height: 16px;
    width: 55%;
}

.skeleton-line--sm {
    width: 35%;
    margin-bottom: 0;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Export bar */
.results-export-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.results-export-btn {
    width: auto !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
}

/* FiveM results */
.results-heading--fivem {
    color: #ff9f43;
}

.results-hint--fivem-limit {
    color: #ffb366;
    font-weight: 500;
}

.results-limit-hint {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(91, 155, 255, 0.22);
    background: rgba(47, 106, 224, 0.1);
    color: #9ec8ff;
    font-size: 13px;
    font-weight: 500;
}

.results-list--fivem .fivem-result-item {
    border-color: rgba(255, 159, 67, 0.35);
    background: rgba(255, 159, 67, 0.06);
}

.results-list--fivem .fivem-result-item .result-title {
    color: #ffbe76;
}

.results-list--fivem .result-field-label {
    color: rgba(255, 190, 118, 0.85);
}

.results-list--fivem .result-copy-btn {
    border-color: rgba(255, 159, 67, 0.3);
    color: #ffb366;
}

.results-list--fivem .result-copy-btn:hover {
    background: rgba(255, 159, 67, 0.15);
}

/* —— Settings panel —— */

.settings-panel {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.settings-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-header {
    text-align: center;
    margin-bottom: 6px;
}

.settings-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #eef4ff;
}

.settings-title .ui-ic {
    width: 22px;
    height: 22px;
    color: #9ec8ff;
}

.settings-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-card {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(91, 155, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.settings-card-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5d4ea;
}

.settings-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(91, 155, 255, 0.12);
    color: #9ec8ff;
    flex-shrink: 0;
}

.settings-card-icon .ui-ic {
    width: 16px;
    height: 16px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.account-stat {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.account-stat-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5ff;
    line-height: 1.3;
    word-break: break-word;
}

.account-stat-value--badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b8d4ff;
    background: rgba(91, 155, 255, 0.14);
    border: 1px solid rgba(91, 155, 255, 0.28);
}

.account-quotas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.account-quotas[hidden] {
    display: none !important;
}

.settings-note--tight {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 11px;
    text-align: center;
    opacity: 0.85;
}

.settings-key-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.settings-key-input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(91, 155, 255, 0.22);
    background: rgba(0, 0, 0, 0.22);
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    color: #e8f0ff;
    letter-spacing: 0.03em;
}

.settings-key-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(91, 155, 255, 0.28);
    background: rgba(91, 155, 255, 0.1);
    color: #9ec8ff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.settings-key-toggle:hover {
    background: rgba(91, 155, 255, 0.18);
    border-color: rgba(126, 200, 255, 0.45);
}

.settings-key-toggle .ui-ic {
    width: 18px;
    height: 18px;
}

.wallpaper-preview--settings {
    height: 130px;
    margin: 0 0 12px;
    border-radius: 14px;
    border-style: dashed;
    border-color: rgba(91, 155, 255, 0.28);
}

.wallpaper-actions--settings {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.settings-action-btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(91, 155, 255, 0.35);
    background: linear-gradient(135deg, rgba(91, 155, 255, 0.18) 0%, rgba(47, 106, 224, 0.12) 100%);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.2s, border-color 0.2s;
}

.settings-action-btn:hover {
    filter: brightness(1.06);
    border-color: rgba(126, 200, 255, 0.5);
}

.settings-action-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.settings-action-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.settings-footer {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.settings-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.settings-logout-btn:hover {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.55);
    transform: translateY(-1px);
}

.settings-logout-btn .ui-ic {
    width: 16px;
    height: 16px;
}

@media (max-width: 560px) {
    .account-stats {
        grid-template-columns: 1fr;
    }

    .account-quotas {
        flex-direction: column;
    }

    .settings-logout-btn {
        width: 100%;
    }
}
