/* Shared shell for candidate area pages */
.candidate-shell {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(11, 18, 32, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.2);
}

.candidate-topbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.82rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.candidate-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.candidate-brand-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #0284c7);
    box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.14);
}

.candidate-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0.24rem;
}

.candidate-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.candidate-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.candidate-nav-link.active {
    color: #0f172a;
    background: linear-gradient(135deg, #5eead4, #7dd3fc);
}

.candidate-user-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.candidate-user-pill {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.79rem;
    white-space: nowrap;
}

.candidate-logout-btn {
    color: #f8fafc;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.79rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.candidate-logout-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.candidate-hero {
    max-width: 1400px;
    margin: 0.95rem auto 0.9rem;
    padding: 1.45rem 1.3rem 1.65rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background:
        radial-gradient(circle at 20% 28%, rgba(15, 148, 136, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.24) 0%, transparent 52%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    color: #f8fafc;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.candidate-hero-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #93c5fd;
    margin-bottom: 0.6rem;
}

.candidate-hero-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.candidate-hero-subtitle {
    margin: 0;
    color: #cbd5e1;
    max-width: 48rem;
}

.candidate-hero-actions {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.candidate-hero-btn {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.55rem 0.92rem;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.candidate-hero-btn.primary {
    background: linear-gradient(135deg, #5eead4, #7dd3fc);
    color: #0f172a;
}

.candidate-hero-btn.secondary {
    color: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.candidate-hero-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .candidate-topbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .candidate-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 14px;
    }

    .candidate-hero {
        margin: 0.8rem 0.85rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .candidate-hero {
        padding: 1.2rem 1rem 1.35rem;
        border-radius: 13px;
    }

    .candidate-hero-title {
        font-size: clamp(1.45rem, 6vw, 1.9rem);
    }

    .candidate-hero-actions .candidate-hero-btn {
        width: 100%;
        text-align: center;
    }
}
