:root {
    /* Extended vars – base vars are in critical inline CSS */
    --glass: rgba(11, 15, 26, 0.85);
    --depth-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
    --hover-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Background elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    contain: strict;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    opacity: 0.4;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--sw-color);
    bottom: -50px;
    left: -50px;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--hw-color);
    top: 40%;
    left: 20%;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg==');
    opacity: 0.03;
    pointer-events: none;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 50px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    contain: layout;
}

/* Header & Search */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(145deg, rgba(23, 32, 53, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), var(--depth-shadow);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.search-container:focus-within .search-icon {
    color: var(--accent);
}

#searchInput {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 1.1rem;
}

#clearSearch {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
}

/* Custom Lang Switcher */
.lang-switcher-custom {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 180px;
    user-select: none;
}

.lang-selected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 0.7rem 1.2rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-selected:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.lang-selected i:first-child {
    color: var(--accent);
}

.lang-selected i:last-child {
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-switcher-custom.open .lang-selected i:last-child {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    width: 100%;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.lang-switcher-custom.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-option:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding-left: 1.5rem;
}

.lang-option.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.lang-option.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.tab[data-type="hardware"].active {
    background: var(--hw-color);
    border-color: var(--hw-color);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.tab[data-type="software"].active {
    background: var(--sw-color);
    border-color: var(--sw-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Filter Toggle (Mobile/Desktop) */
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.filter-toggle.open .toggle-chevron {
    transform: rotate(180deg);
}

.filters-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.filters-collapsible.open {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

/* Sub-tabs */
.sub-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sub-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-tab:hover {
    color: var(--text-primary);
}

.sub-tab.active {
    background: rgba(249, 115, 22, 0.1);
    color: var(--hw-color);
    border-color: var(--hw-color);
}

.sub-tab.sw.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--sw-color);
    border-color: var(--sw-color);
}

/* Vendor Tabs */
.vendor-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.vendor-tab {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.vendor-tab.intel {
    color: #0071c5;
}

.vendor-tab.amd {
    color: #ed1c24;
}

.vendor-tab.nvidia {
    color: #76b900;
}

.vendor-tab.microsoft {
    color: #00a4ef;
}

.vendor-tab.asus {
    color: #00539b;
}

.vendor-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vendor-tab.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard */
.dashboard {
    margin-bottom: 3rem;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.dashboard-header i {
    color: var(--hw-color);
}

/* .dashboard-grid, .dash-tile base defined in critical CSS */
.dash-tile {
    background: linear-gradient(145deg, rgba(28, 38, 61, 0.8) 0%, rgba(18, 26, 45, 0.9) 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dash-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255, 255, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dash-tile:hover::before {
    opacity: 1;
}

.dash-tile:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--hover-shadow);
    z-index: 5;
}

.dash-tile.hardware {
    border-left: 3px solid rgba(249, 115, 22, 0.6);
}

.dash-tile.hardware:hover {
    border-left-color: var(--hw-color);
    box-shadow: 0 8px 30px -10px rgba(249, 115, 22, 0.25), var(--hover-shadow);
}

.dash-tile.software {
    border-left: 3px solid rgba(139, 92, 246, 0.6);
}

.dash-tile.software:hover {
    border-left-color: var(--sw-color);
    box-shadow: 0 8px 30px -10px rgba(139, 92, 246, 0.25), var(--hover-shadow);
}

/* .dash-tile-code, .dash-tile-desc, .dash-tile .badge defined in critical CSS */

/* Results Grid */
#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(145deg, rgba(23, 32, 53, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    content-visibility: auto;
    contain-intrinsic-size: 1px 300px;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--hover-shadow);
    z-index: 10;
}

.card.hardware {
    border-top: 3px solid rgba(249, 115, 22, 0.6);
}

.card.hardware:hover {
    border-top-color: var(--hw-color);
    box-shadow: 0 12px 40px -10px rgba(249, 115, 22, 0.25), var(--hover-shadow);
}

.card.software {
    border-top: 3px solid rgba(139, 92, 246, 0.6);
}

.card.software:hover {
    border-top-color: var(--sw-color);
    box-shadow: 0 12px 40px -10px rgba(139, 92, 246, 0.25), var(--hover-shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

/* .badge, .badge.hardware, .badge.software defined in critical inline CSS */

.category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.code-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.2;
}

.description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.vendor-chips {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vendor-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    color: var(--text-secondary);
}

.solution {
    margin-top: auto;
    padding: 1.2rem;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.solution h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.solution h4 i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

.solution p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.card-footer-hint {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.7;
    transition: all 0.3s;
}

.card:hover .card-footer-hint {
    opacity: 1;
    transform: translateX(5px);
}

.card-footer-hint i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.card:hover .card-footer-hint i {
    transform: translateX(5px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(145deg, rgba(23, 32, 53, 0.4) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-results i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-results h2 {
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.report-btn {
    background: linear-gradient(135deg, var(--accent), #1e3a8a);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.report-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 3rem;
    overflow-y: auto;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.copy-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: #4ade80;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.1;
}

.modal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.modal-section h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-section h3 i {
    color: var(--accent);
}

.modal-desc-section {
    border-left: 3px solid var(--accent);
}

.modal-sol-section {
    border-left: 3px solid var(--hw-color);
    background: rgba(249, 115, 22, 0.04);
}

.modal-sol-section h3 i {
    color: var(--hw-color);
}

.modal-section p,
.modal-section div>p {
    color: #cbd5e1;
    line-height: 1.8;
    white-space: pre-line;
    font-size: 1.05rem;
}

/* Rich solution content – ordered list steps */
.modal-section ol.sol-steps {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 1.4rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-section ol.sol-steps li strong {
    color: var(--text-primary);
}

.modal-section ol.sol-steps li code {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: 'Consolas', 'Courier New', monospace;
}

.advanced {
    background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.05), transparent);
    border-color: rgba(139, 92, 246, 0.2);
}

.advanced h3 i {
    color: var(--sw-color);
}

/* YouTube section */
.modal-yt-section {
    border-color: rgba(255, 0, 0, 0.25);
    background: linear-gradient(to bottom right, rgba(255, 0, 0, 0.04), transparent);
}

.modal-yt-section h3 i {
    color: #ff4444;
}

.yt-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.yt-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 0, 0, 0.07);
    border: 1px solid rgba(255, 0, 0, 0.18);
    border-radius: 10px;
    text-decoration: none;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.yt-link:hover {
    background: rgba(255, 0, 0, 0.14);
    border-color: rgba(255, 0, 0, 0.4);
    transform: translateX(3px);
}

.yt-link-icon {
    width: 32px;
    height: 32px;
    background: #ff0000;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #fff;
}

.yt-link-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* External Link */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.external-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Report Modal Specifics */
.report-modal-content {
    text-align: center;
    max-width: 500px;
}

.report-modal-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.report-modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.report-form {
    text-align: left;
}

.report-field {
    margin-bottom: 1.5rem;
}

.report-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.report-field input,
.report-field textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.8rem;
    color: #fff;
    outline: none;
}

.report-field input:focus,
.report-field textarea:focus {
    border-color: var(--accent);
}

.report-submit-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg-color);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.2s;
}

.report-submit-btn:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
}



/* Entrance Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Pulse */
.logo i {
    animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--accent));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px var(--accent));
    }
}

/* Footer Styling */
footer {
    margin-top: 5rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 15px #22c55e;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-indicator span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-disclaimer {
    max-width: 1200px;
    margin: 4rem auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.4;
    line-height: 1.6;
    padding: 0 2rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Utilities – .hidden defined in critical inline CSS */

/* Skeleton Loaders */
.skeleton {
    overflow: hidden;
    position: relative;
    pointer-events: none;
    background: var(--card-bg) !important;
}

.skeleton::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-header {
    width: 40%;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.skeleton-title {
    width: 80%;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 1.8rem;
}

.skeleton-text {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-footer {
    width: 100%;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-top: 1.8rem;
}

.highlight {
    background: rgba(56, 189, 248, 0.25);
    color: var(--accent);
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================
   RESPONSIVE – ALL BREAKPOINTS
   ========================================================== */

/* 1024px – tablets landscape */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* 768px – tablets portrait & large phones */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding-top: 0.5rem;
    }

    /* Lang switcher: inline centered above title on mobile */
    .lang-switcher-custom {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        min-width: 150px;
        margin: 0 auto 1.2rem;
        display: flex;
        justify-content: center;
    }

    .lang-selected {
        width: 100%;
        justify-content: center;
    }

    .lang-options {
        width: 160px;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
    }

    .lang-switcher-custom.open .lang-options {
        transform: translateX(-50%) translateY(0);
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .search-wrapper {
        margin-bottom: 1.5rem;
    }

    .search-container {
        padding: 0.7rem 1rem;
    }

    #searchInput {
        font-size: 1rem;
    }

    #results {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem 1.2rem;
        border-radius: 20px;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-section {
        padding: 1rem;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.88rem;
        flex: 1;
        text-align: center;
        min-width: 80px;
        min-height: 44px;
    }

    .sub-tab {
        min-height: 40px;
        padding: 0.4rem 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    footer {
        padding: 3rem 1.5rem 2rem;
    }

    .report-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 480px – small phones */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .logo {
        gap: 0.6rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.7rem;
    }

    .dash-tile {
        padding: 1rem;
    }

    .dash-tile-code {
        font-size: 0.95rem;
    }

    /* Modal as bottom sheet on tiny phones */
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
        padding: 1.5rem 1rem;
        max-height: 92vh;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .copy-btn {
        margin-left: 0;
        align-self: flex-start;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-section {
        padding: 0.9rem;
        margin-bottom: 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .card {
        padding: 1.4rem;
    }

    .code-title {
        font-size: 1.2rem;
    }

    .no-results {
        padding: 3rem 1rem;
    }

    .tabs {
        gap: 0.4rem;
    }

    .tab {
        font-size: 0.82rem;
        padding: 0.5rem 0.7rem;
    }

    footer {
        padding: 2rem 1rem 1.5rem;
        margin-top: 3rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }
}

/* 360px – very small phones */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .tab {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}