body {
    background-color: #0b0f19;
    color: #cbd5e1;
    overflow-x: hidden;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md);
    height: 80px;
    background: #0b0f19;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand a img {
    width: 150px;
}

.nav-brand i {
    color: #e28743;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: #94a3b8;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #8b71ff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-primary {
    background: #8b71ff;
    color: #fff;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: var(--fs-sm);
    box-shadow: 0 4px 14px rgba(139, 113, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #735bf2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 113, 255, 0.4);
}

.btn-ghost {
    color: #cbd5e1;
    font-weight: 500;
}
.btn-ghost:hover {
    color: #fff;
}

.companies-page {
    position: relative;
    overflow: hidden;
}

.companies-page::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 113, 255, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.companies-hero {
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
}

.hero-label {
    text-transform: uppercase;
    color: #8b71ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: inline-block;
}

.companies-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.companies-hero h1 .highlight-text {
    color: #8b71ff;
}

.hero-subtitle {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
    font-size: 1.1rem;
}

.search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-wrapper:focus-within {
    border-color: rgba(139, 113, 255, 0.5);
    box-shadow: 0 0 25px rgba(139, 113, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.search-wrapper > i {
    padding-left: 16px;
    color: #64748b;
    font-size: 20px;
}

.search-wrapper input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
}

.search-wrapper input::placeholder {
    color: #64748b;
}

.search-wrapper .search-btn {
    background: #8b71ff;
    color: #fff;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s;
}

.search-wrapper .search-btn:hover {
    background: #735bf2;
}

.hero-tags {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-tag {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255,255,255,0.02);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag i {
    font-size: 12px;
    color: #8b71ff;
}

.hero-tag:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.hero-tag.active {
    border-color: #8b71ff;
    color: #fff;
    background: rgba(139, 113, 255, 0.15);
}

.companies-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px var(--space-4xl) 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .companies-layout {
        grid-template-columns: 220px 1fr;
        padding-left: var(--space-2xl);
        padding-right: var(--space-2xl);
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .companies-hero {
        padding: 84px 24px 52px;
    }
}

@media (max-width: 768px) {
    .companies-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px var(--space-lg) 56px;
    }

    .main-nav {
        height: auto;
        min-height: 80px;
        padding-top: 14px;
        padding-bottom: 14px;
        row-gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .nav-brand a img {
        width: 128px;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .btn-primary,
    .btn-ghost {
        padding: 9px 14px;
        font-size: 13px;
    }

    .companies-hero {
        padding: 72px 16px 44px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }

    .search-wrapper {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }

    .search-wrapper > i {
        padding-left: 8px;
    }

    .search-wrapper input {
        width: 100%;
        padding: 12px;
    }

    .search-wrapper .search-btn {
        width: 100%;
        padding: 12px 18px;
    }

    .hero-tags {
        margin-top: 28px;
        gap: 10px;
    }

    .hero-tag {
        padding: 7px 14px;
        font-size: 13px;
    }

    .filters-sidebar {
        padding: 18px;
    }

    .companies-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .company-card {
        padding: 18px;
    }

    .card-body h3 {
        font-size: 18px;
    }

    .card-footer {
        gap: 12px;
    }

    .active-jobs-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .companies-page::before {
        width: 380px;
        height: 380px;
        top: -10%;
        left: -25%;
    }

    .companies-hero h1 {
        font-size: clamp(2rem, 10vw, 2.4rem);
        margin-bottom: 12px;
    }

    .hero-label {
        letter-spacing: 1.4px;
        margin-bottom: 12px;
    }

    .companies-layout {
        padding: 18px 14px 46px;
    }

    .filter-label {
        font-size: 13px;
    }

    .filter-label-text {
        gap: 8px;
    }

    .card-header {
        align-items: flex-start;
        gap: 10px;
    }

    .company-logo {
        width: 48px;
        height: 48px;
        padding: 7px;
    }

    .card-rating {
        font-size: 12px;
        padding: 5px 10px;
    }

    .card-meta {
        gap: 6px;
    }

    .meta-tag,
    .meta-location {
        font-size: 11px;
    }

    .card-footer {
        padding-top: 14px;
    }

    .active-jobs-link {
        gap: 6px;
    }

    .view-profile-btn {
        width: 30px;
        height: 30px;
    }
}

.filters-sidebar {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: 16px;
    height: fit-content;
}

.filters-sidebar section {
    margin-bottom: 32px;
}

.filter-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 700;
}

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

.filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.filter-label:hover {
    color: #ffffff;
}

.filter-label-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-count {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #64748b;
}

.filter-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: transparent;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-label input[type="checkbox"]:hover {
    border-color: rgba(139, 113, 255, 0.5);
}

.filter-label input[type="checkbox"]::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    transform: scale(0);
    transition: 0.2s transform cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-label input[type="checkbox"]:checked {
    background: #8b71ff;
    border-color: #8b71ff;
}

.filter-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.clear-filters-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ced4da;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s;
}

.clear-filters-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.company-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.company-card:hover {
    border-color: rgba(139, 113, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(139, 113, 255, 0.05);
}

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

.company-logo {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.company-logo img {
    border-radius: 4px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-rating {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-body h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.meta-location {
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.active-jobs-link {
    color: #8b71ff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.active-jobs-link:hover {
    color: #a78bfa;
}

.active-jobs-link i {
    transition: transform 0.2s;
}

.company-card:hover .active-jobs-link i {
    transform: translateX(4px);
}

.view-profile-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.2s;
}
.company-card:hover .view-profile-btn {
    background: #8b71ff;
    color: #fff;
}

.main-footer {
    background: #080b13;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 80px calc(var(--space-4xl) + 20px) 40px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.footer-brand i {
    color: #e28743;
}

.footer-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 600;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    gap: 16px;
}
.social-links a {
    color: #64748b;
    font-size: 16px;
    transition: color 0.2s;
}
.social-links a:hover {
    color: #8b71ff;
}

@media (max-width: 1024px) {
    .main-footer {
        padding: 64px var(--space-2xl) 32px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 48px var(--space-lg) 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .footer-desc {
        max-width: none;
    }

    .footer-bottom {
        margin-top: 36px;
        padding-top: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 16px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .footer-col h4 {
        margin-bottom: 14px;
    }

    .footer-col ul {
        gap: 12px;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .social-links {
        justify-content: center;
        width: 100%;
    }
}
