header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 18px 20px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

header h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--text);
    margin: 0;
}

.header-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.header-link:hover {
    transform: scale(1.02);
}

.back-button, .home-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button { left: 30px; }
.home-button { right: 30px; }

.back-button:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--accent);
    transform: translateY(-50%) translateX(-3px);
}

.home-button:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--accent);
    transform: translateY(-50%) translateX(3px);
}

.back-button svg, .home-button svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

@media (max-width: 600px) {
    header {
        padding: 16px 60px;
    }

    header h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .back-button, .home-button {
        width: 36px;
        height: 36px;
    }

    .back-button { left: 15px; }
    .home-button { right: 15px; }
}
