
body {
    margin: 0;
    font-family: Inter, Arial;
    background: #0b0f19;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    height: 60px;

    display: grid;
    grid-template-columns: 220px 1fr 60px;
    align-items: center;

    padding: 0 20px;

    background: rgba(14, 20, 34, 0.85);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-weight: bold;
}

.search {
    display: flex;
    justify-content: center;
}

.search input {
    width: 60%;
    padding: 10px 14px;

    border-radius: 10px;
    border: none;

    background: #151b2c;
    color: white;
    outline: none;
}

.theme-btn {
    width: 40px;
    height: 40px;

    border-radius: 10px;
    border: none;

    background: rgba(255,255,255,0.05);
    color: #ccc;
    cursor: pointer;
}

/* =========================
   LAYOUT
========================= */

.shell {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    height: calc(100vh - 100px);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    background: #0e1422;
    padding: 15px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar a {
    padding: 10px;
    border-radius: 10px;

    color: #aaa;
    text-decoration: none;

    transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1b2336;
    color: #fff;
}

/* =========================
   CONTENT
========================= */

.content {
    padding: 15px;
    overflow: hidden;
}

/* HEADER */
.hero {
    background: linear-gradient(135deg, #1b2336, #2a2f5a);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 15px;
}

/* =========================
   GRID
========================= */

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: start;
}

/* =========================
   HERO LINK
========================= */

.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =========================
   HERO CARD
========================= */

.hero-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    background: #151b2c;
    border-radius: 12px;

    transition: 0.25s;
    cursor: pointer;
}

.hero-card:hover {
    transform: translateY(-5px);
    background: #1b2336;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================
   AVATAR (КВАДРАТ)
========================= */

.hero-left {
    flex-shrink: 0;
}

.hero-img {
    width: 64px;
    height: 64px;

    border-radius: 10px;
    object-fit: cover;

    background: #0e1422;
}

.hero-img.placeholder {
    background: linear-gradient(135deg, #1b2336, #0e1422);
}

/* =========================
   TEXT
========================= */

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-name {
    font-weight: 600;
    font-size: 14px;
}

.hero-role {
    font-size: 12px;
    color: #8b5cf6;
}

/* =========================
   RIGHT FILTER PANEL
========================= */

.right {
    padding: 10px;
}

.panel {
    background: #141b2d;
    padding: 12px;
    border-radius: 12px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter {
    padding: 10px;
    border-radius: 10px;

    border: none;
    cursor: pointer;

    background: #151b2c;
    color: #aaa;

    transition: 0.2s;
    text-align: left;
}

.filter:hover {
    background: #1b2336;
    color: #fff;
    transform: translateX(3px);
}

.filter.active {
    background: #6c5ce7;
    color: white;
}

/* =========================
   FOOTER
========================= */

.footer {
    height: 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    background: #0e1422;
    border-top: 1px solid rgba(255,255,255,0.05);

    font-size: 12px;
    color: #aaa;
}